:root {
  color-scheme: dark;
  --page: #141416;
  --night: #07060b;
  --violet: #9c7ef6;
  --pink: #e87cf1;
  --text: #f7f4ff;
  --font-display: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.page {
  position: relative;
  width: 100%;
  background: var(--page);
}

.site-header {
  position: fixed;
  top: clamp(0.9rem, 2.4vw, 1.6rem);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.33rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 28, 45, 0.52), rgba(17, 16, 24, 0.38));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  pointer-events: auto;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  color: rgba(244, 240, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-shadow:
    0 0 0.12em rgba(205, 222, 255, 0.18),
    0 0 0.45em rgba(151, 184, 255, 0.12);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    text-shadow 0.25s ease;
}

.nav__link:hover,
.nav__link:focus-visible,
.nav__link--active {
  color: rgba(250, 248, 255, 0.95);
  background-color: rgba(255, 255, 255, 0.045);
  text-shadow:
    0 0 0.1em rgba(220, 232, 255, 0.55),
    0 0 0.4em rgba(151, 184, 255, 0.38),
    0 0 0.95em rgba(110, 145, 255, 0.2);
}

.nav__link:focus-visible {
  outline: 1px solid rgba(200, 146, 250, 0.7);
  outline-offset: 3px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 34rem;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse 90% 75% at 50% 42%, rgba(86, 58, 156, 0.34), transparent 62%),
    radial-gradient(ellipse 60% 50% at 18% 72%, rgba(171, 73, 173, 0.18), transparent 68%),
    linear-gradient(180deg, #09070f 0%, #0c0914 58%, #141416 100%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero--ready .hero__canvas {
  opacity: 1;
}

.hero--fallback .hero__canvas {
  display: none;
}

.hero__title {
  position: relative;
  top: -10vh;
  z-index: 2;
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: transparent;
  font-size: clamp(3.2rem, 11.8vw, 10.75rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.3;
  text-align: center;
  text-wrap: nowrap;
  user-select: text;
  -webkit-user-select: text;
}

.hero__title-fill,
.hero__title-stroke,
.hero__title-glow {
  display: block;
  background-image: linear-gradient(90deg, var(--violet) 0%, #c47cf3 25%, var(--pink) 50%, #c47cf3 75%, var(--violet) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  transform: translateZ(0);
  animation: title-sweep 6s linear infinite;
}

.hero__title-fill {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}

.hero__title-stroke {
  position: absolute;
  inset: 0;
  z-index: 2;
  filter: blur(0.022em);
  opacity: 0.96;
  user-select: none;
  -webkit-user-select: none;
}

.hero__title-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  filter: blur(0.105em);
  opacity: 0.68;
  user-select: none;
  -webkit-user-select: none;
}

.hero__fade {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: clamp(7rem, 24vh, 17rem);
  background: linear-gradient(180deg, rgba(20, 20, 22, 0) 0%, rgba(20, 20, 22, 0.2) 38%, rgba(20, 20, 22, 0.8) 76%, var(--page) 100%);
  pointer-events: none;
}

.section {
  position: relative;
  padding: clamp(5.5rem, 10vw, 9rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--page);
  scroll-margin-top: 6rem;
}

.features {
  background:
    radial-gradient(ellipse 70% 45% at 82% 0%, rgba(156, 126, 246, 0.055), transparent 65%),
    var(--page);
}

.pricing {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
  background: var(--page);
}

.site-footer {
  padding: 1.35rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--page);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  line-height: 1.2;
}

.footer__brand {
  background-image: linear-gradient(100deg, var(--violet), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-decoration: none;
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer__nav a {
  color: rgba(233, 229, 242, 0.46);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: rgba(250, 248, 255, 0.94);
}

.footer__copy {
  color: rgba(222, 217, 232, 0.3);
  font-size: 0.8rem;
  line-height: 1.2;
}

.container {
  width: min(100%, 70rem);
  margin: 0 auto;
}

.section-title--center {
  text-align: center;
}

.section-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.7rem, 4.6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.accent {
  background-image: linear-gradient(100deg, var(--violet), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.inline-link {
  border-bottom: 1px solid rgba(232, 124, 241, 0.45);
  color: #ddcfff;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.inline-link:hover {
  border-color: rgba(232, 124, 241, 0.9);
  color: #f7f1ff;
}

.section-copy {
  max-width: 38rem;
  margin: 1.4rem 0 0;
  color: rgba(232, 226, 244, 0.56);
  font-size: 1rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  width: min(100%, 62rem);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}

.feature-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: clamp(2.25rem, 4.5vw, 3.25rem) clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  text-align: center;
}

.feature-card__icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.35rem;
  place-items: center;
  border: 1px solid rgba(194, 160, 255, 0.42);
  border-radius: 0.95rem;
  background: linear-gradient(145deg, rgba(156, 126, 246, 0.16), rgba(232, 124, 241, 0.05));
  box-shadow:
    0 0 0.22rem rgba(156, 126, 246, 0.45),
    0 0 0.7rem rgba(156, 126, 246, 0.3),
    0 0 1.6rem rgba(156, 126, 246, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #efe4ff;
}

.feature-card__icon svg {
  width: 1.45rem;
  height: 1.45rem;
  filter:
    drop-shadow(0 0 0.1rem rgba(230, 210, 255, 0.7))
    drop-shadow(0 0 0.35rem rgba(156, 126, 246, 0.55));
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  color: rgba(248, 245, 255, 0.95);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.feature-card p {
  max-width: 27rem;
  margin: 0;
  color: rgba(230, 224, 243, 0.52);
  font-size: 0.92rem;
  line-height: 1.75;
}

.pricing-layout {
  display: block;
}

.pricing-intro {
  width: 100%;
  text-align: center;
}

.pricing-intro .section-copy {
  margin-right: auto;
  margin-left: auto;
}

@keyframes title-sweep {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 200% 50%;
  }
}

@media (max-width: 56rem) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 36rem;
  }
}

@media (max-width: 42rem) {
  .hero {
    min-height: 30rem;
  }

  .hero__title {
    font-size: clamp(2.65rem, 13.2vw, 5.5rem);
    letter-spacing: -0.06em;
  }

  .nav__link {
    min-height: 2.15rem;
    padding: 0.36rem 0.78rem;
    font-size: 0.74rem;
  }

  .section {
    padding: 4.5rem 1.25rem;
    scroll-margin-top: 5rem;
  }

  .section-title {
    font-size: clamp(2.45rem, 11.5vw, 3.4rem);
  }

  .section-copy {
    font-size: 0.94rem;
  }

  .feature-grid {
    gap: 1rem;
  }

  .feature-card {
    padding: 2rem 1.35rem;
  }

  .footer__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
  }

  .footer__nav {
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__canvas {
    transition: none;
  }

  .hero__title-fill,
  .hero__title-stroke,
  .hero__title-glow {
    animation: none;
    background-position: 50% 50%;
  }
}
