:root {
  --bg: #060809;
  --panel: #0b0f11;
  --panel-2: #0f1416;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.11);
  --text: #eef6f6;
  --muted: #84928f;
  --accent: #7ff5ec;
  --accent-2: #2fb8b0;
  --accent-ink: #03211f;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Geist", ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* No text selection / dragging */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
img, svg, a { -webkit-user-drag: none; user-drag: none; }
img { display: block; max-width: 100%; height: auto; pointer-events: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.025em; font-family: var(--font-display); }
.brand, .price { font-family: var(--font-display); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(720px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, #d4fffc 50%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ───────── Background: Figma frame (1920×1080), covers any screen ───────── */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: #050d0f url("assets/bg.webp") center / cover no-repeat; }

/* ───────── Buttons ───────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border: 0; border-radius: 10px;
  font: 600 15px/1 var(--font); letter-spacing: -0.01em;
  color: var(--text); background: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn--block { width: 100%; }
.btn__arrow { flex: none; transition: transform 200ms var(--ease-out); }

/* Primary: solid fill, top light edge, bottom shade, crisp 1px ring — no glow blob */
.btn--primary {
  color: var(--accent-ink); background: var(--accent);
}
/* Secondary: dark raised surface with hairline ring */
.btn--secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px var(--line-2),
    0 1px 2px rgba(0, 0, 0, 0.4);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #a6fbf5; }
  .btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.04);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.09),
      0 0 0 1px rgba(255, 255, 255, 0.18),
      0 1px 2px rgba(0, 0, 0, 0.4);
  }
  .btn:hover .btn__arrow { transform: translateX(3px); }
}

/* ───────── Nav ───────── */
.nav { position: sticky; top: 0; z-index: 50; padding-top: 10px; }
.nav .nav__inner {
  border-radius: 14px; padding: 0 8px 0 16px;
  background: rgba(4, 12, 13, 0.3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 200ms ease;
}
.nav[data-scrolled] .nav__inner { background: rgba(4, 12, 13, 0.55); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 4px; font-size: 14px; color: var(--muted); }
.nav__links a { padding: 6px 12px; border-radius: 8px; color: #a9b8b6; transition: color 150ms ease, background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); } }
@media (max-width: 720px) { .nav__links { display: none; } }

/* ───────── Hero ───────── */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
.hero h1 { margin-top: 0; font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -0.035em; }
.hero__lead { margin-top: 20px; max-width: 30em; font-size: 18px; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.hero__art img { position: relative; width: 82%; filter: drop-shadow(0 20px 60px rgba(127, 245, 236, 0.3)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (max-width: 860px) {
  .hero { padding: 40px 0 64px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; width: min(260px, 66%); margin-inline: auto; }
}

/* ───────── Sections ───────── */
.section { padding: 96px 0; scroll-margin-top: 40px; }
.section--tight { padding: 48px 0; }
.section__head { text-align: center; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.section__head .muted { margin-top: 12px; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

/* ───────── Card: plain surface, no borders ───────── */
.card {
  position: relative; border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 44, 47, 0.55), rgba(8, 20, 22, 0.6));
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(191, 255, 250, 0.1), inset 0 0 0 1px rgba(127, 245, 236, 0.12), 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

/* ───────── Plans: price-list rows, no cards ───────── */
.plans { max-width: 980px; margin-inline: auto; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.plan {
  display: grid; grid-template-columns: 1.1fr 1.4fr auto; align-items: center; gap: 32px;
  padding: 36px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.plan__name h3 { display: flex; align-items: center; gap: 12px; font-size: 40px; font-weight: 800; letter-spacing: -0.035em; }
.plan__name svg { flex: none; }
.plan__name p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.plan__feats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: #b9c6c4; }
.plan__feats li::before { content: "— "; color: var(--accent); }
.plan__buy { display: grid; justify-items: end; gap: 12px; }
.plan__price { font: 800 40px/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plan__price span { margin-left: 4px; font: 400 14px var(--font); letter-spacing: 0; color: var(--muted); }
.plan .btn { min-width: 132px; }
@media (max-width: 820px) {
  .plan { grid-template-columns: 1fr auto; gap: 20px; padding: 28px 0; }
  .plan__feats { grid-column: 1 / -1; grid-row: 2; }
  .plan__name h3, .plan__price { font-size: 32px; }
}
@media (max-width: 480px) { .plan__feats { grid-template-columns: 1fr; } }

/* ───────── Features: strip under the price list, same hairlines ───────── */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); max-width: 980px; margin-inline: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.feature { padding: 22px 24px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.feature:first-child { border-left: 0; padding-left: 0; }
.feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--accent); }
.feature .muted { font-size: 14px; color: #b9c6c4; }
@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(odd) { border-left: 0; padding-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
}

/* ───────── Steps: centered timeline ───────── */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; text-align: center; }
.steps::before {
  content: ""; position: absolute; top: 18px; left: 16.66%; right: 16.66%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 245, 236, 0.5) 15%, rgba(127, 245, 236, 0.5) 85%, transparent);
}
.step { position: relative; display: grid; justify-items: center; }
.step__n {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 20px;
  border-radius: 12px; font: 700 15px/1 var(--font-display); color: var(--accent-ink);
  background: linear-gradient(180deg, #a6fbf5, #5fe0d6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 1px #3fc8be, 0 0 0 6px rgba(127, 245, 236, 0.08), 0 6px 22px -4px rgba(127, 245, 236, 0.5);
}
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.step .muted { font-size: 15px; }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .step__n { margin-bottom: 14px; }
}

/* ───────── FAQ: hairline list ───────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 2px; font-weight: 600; cursor: pointer; list-style: none;
  transition: color 150ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 24px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237ff5ec' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M8 3.5v9M3.5 8h9'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--accent); } }
.faq__body { padding: 0 40px 22px 2px; color: var(--muted); }
.faq details[open] .faq__body { animation: faqIn 220ms var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } }

/* ───────── Footer ───────── */
.footer { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* ───────── Load + scroll reveal ───────── */
.hero h1 .line { display: block; }
.js .reveal {
  opacity: 0; transform: translateY(40px) scale(0.97);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__art.reveal { transform: scale(0.94); transition-duration: 900ms; }
.js .hero__art.reveal.is-in { transform: none; }
.js .plan.reveal.is-in { transition: opacity 800ms var(--ease-out), transform 240ms var(--ease-out), box-shadow 200ms ease; }
.js .nav { animation: navIn 500ms var(--ease-out) both; }
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } }

/* Scroll-scrubbed motion: elements move with the scrollbar itself (replaces the one-shot reveal) */
@supports (animation-timeline: view()) {
  .js .reveal, .js .hero__art.reveal { opacity: 1; transform: none; transition: none; transition-delay: 0s; }
  .js .reveal:not(.hero__copy .reveal):not(.hero__art) {
    animation: scrub linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
  }
  .js .hero__copy { animation: heroOut linear both; animation-timeline: scroll(root); animation-range: 0 520px; }
  .js .hero__art { animation: heroOut linear both; animation-timeline: scroll(root); animation-range: 0 520px; }
  @keyframes scrub { from { opacity: 0; transform: translateY(70px) scale(0.94); } }
  @keyframes heroOut { to { opacity: 0; transform: translateY(-50px) scale(0.97); } }
}

/* Steps line draws as you scroll */
@supports (animation-timeline: view()) {
  .steps::before { transform-origin: 0 50%; animation: draw linear both; animation-timeline: view(); animation-range: entry 30% cover 40%; }
  @keyframes draw { from { transform: scaleX(0); } }
}

/* ───────── Toasts ───────── */
.toaster {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  display: grid; gap: 8px; width: min(380px, 100% - 32px);
  transform: translateX(-50%); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px; pointer-events: auto;
  background: rgba(15, 20, 22, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px var(--line-2), 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 14px;
  transition: opacity 400ms ease, transform 400ms ease;
  @starting-style { opacity: 0; transform: translateY(100%); }
}
.toast[data-leaving] { opacity: 0; transform: translateY(100%); transition-duration: 200ms; }
.toast strong { display: block; color: var(--text); }
.toast span { color: var(--muted); }
.toast__icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--accent); background: rgba(127, 245, 236, 0.1); box-shadow: inset 0 0 0 1px rgba(127, 245, 236, 0.2); }

@media (prefers-reduced-motion: reduce) {
  .hero__art img { animation: none; }
  .js .reveal, .js .hero__art.reveal { transform: none; filter: none; transition: opacity 300ms ease; }
  .js .nav { animation: none; }
  .js .reveal, .js .hero__copy, .js .hero__art { animation: none !important; }
  .btn:active, .btn__arrow { transform: none !important; }
  .toast, .toast[data-leaving] { transform: none; }
}
