:root {
  --bg: #07080d;
  --surface: #10121a;
  --elevated: #171a24;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f1ec;
  --muted: #9b9aa8;
  --accent: #7c6cff;
  --accent-2: #4de1c1;
  --glow: rgba(124, 108, 255, 0.35);
  --radius: 18px;
  --header-h: 72px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Syne", system-ui, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(720px, calc(100% - 40px));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(180deg, #8b7dff, var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px var(--glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(7, 8, 13, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 8, 13, 0.9);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent));
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  color: var(--text);
}

.hero {
  position: relative;
  padding: 72px 0 48px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto;
  height: 420px;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  margin-bottom: 12px;
}

.lede,
.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 52ch;
}

.hero-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 14px;
}

.hero-form input {
  flex: 1 1 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
}

.hero-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-note {
  flex-basis: 100%;
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--accent-2);
}

.form-note.is-error {
  color: #ff8b8b;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.orb-a {
  width: 220px;
  height: 220px;
  right: 10%;
  top: 0;
  background: #7c6cff;
  opacity: 0.35;
}

.orb-b {
  width: 180px;
  height: 180px;
  left: 8%;
  bottom: 8%;
  background: #4de1c1;
  opacity: 0.22;
}

.glass-card {
  position: absolute;
  width: min(320px, 90%);
  right: 8%;
  top: 48px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(23, 26, 36, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.glass-card header {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.glass-card header strong {
  color: var(--accent-2);
}

.spark {
  height: 72px;
  margin: 16px 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 70%, rgba(77, 225, 193, 0.08) 100%),
    radial-gradient(circle at 12% 70%, #4de1c1 2px, transparent 3px),
    radial-gradient(circle at 28% 48%, #4de1c1 2px, transparent 3px),
    radial-gradient(circle at 46% 58%, #7c6cff 2px, transparent 3px),
    radial-gradient(circle at 64% 30%, #7c6cff 2px, transparent 3px),
    radial-gradient(circle at 82% 22%, #4de1c1 2px, transparent 3px);
}

.glass-card footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4de1c1;
  box-shadow: 0 0 0 6px rgba(77, 225, 193, 0.15);
}

.glass-card--delay {
  left: 0;
  right: auto;
  top: auto;
  bottom: 20px;
}

.glass-card--delay h3 {
  font-size: 1.15rem;
  margin: 6px 0 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--elevated);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.logos {
  padding: 28px 0 8px;
  color: var(--muted);
}

.logos p {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.logos ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  opacity: 0.55;
}

.features,
.pricing,
.stories,
.faq,
.cta {
  padding: 88px 0;
}

.section-head {
  margin-bottom: 40px;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-grid,
.price-grid,
.story-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature,
.price-card,
.stories blockquote,
.cta-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--elevated);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.feature h3,
.price-card h3 {
  margin-bottom: 8px;
}

.feature p,
.price-card li {
  color: var(--muted);
}

.billing-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
}

.billing-toggle button {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: var(--elevated);
  position: relative;
  cursor: pointer;
}

.billing-toggle button::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.billing-toggle button[aria-checked="true"] {
  background: var(--accent);
}

.billing-toggle button[aria-checked="true"]::after {
  transform: translateX(20px);
}

.billing-toggle em {
  color: var(--accent-2);
  font-style: normal;
}

.price-grid {
  grid-template-columns: repeat(3, 1fr);
}

.price {
  font-family: var(--display);
  font-size: 2.4rem;
  margin: 10px 0 18px;
}

.price small {
  font-size: 0.95rem;
  color: var(--muted);
}

.price-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.price-card--featured {
  background: linear-gradient(180deg, #161428, #10121a);
  border-color: rgba(124, 108, 255, 0.45);
  transform: translateY(-6px);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.story-grid {
  grid-template-columns: 1fr 1fr;
}

.stories blockquote p {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.stories footer {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 0.9rem;
}

.accordion details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.accordion summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion p {
  color: var(--muted);
  margin-top: 10px;
}

.cta {
  padding-top: 20px;
}

.cta-box {
  text-align: center;
  padding: 56px 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 108, 255, 0.25), transparent 40%),
    var(--surface);
}

.cta-box p {
  color: var(--muted);
  margin: 10px 0 22px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .nav,
  .header-actions .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .hero-grid,
  .feature-grid,
  .price-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .price-card--featured {
    transform: none;
  }

  .hero-visual {
    min-height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .btn {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
