:root {
  color-scheme: dark;
  --bg: #03070d;
  --bg-soft: #070c14;
  --panel: rgba(10, 18, 29, 0.88);
  --line: rgba(166, 202, 226, 0.14);
  --line-strong: rgba(59, 231, 222, 0.35);
  --text: #f4f8fb;
  --muted: #8d9aa8;
  --cyan: #11d8d0;
  --blue: #2b77ff;
  --violet: #8152ff;
  --danger: #ff6677;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  height: 88px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; font-weight: 720; letter-spacing: -.02em; font-size: 18px; }
.brand-mark { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(3,10,17,.72); }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; border-radius: 50%; }
.brand-mark::before { inset: 5px; border: 2px solid var(--cyan); border-left-color: var(--violet); }
.brand-mark::after { width: 2px; height: 9px; top: 5px; background: white; box-shadow: 0 0 8px white; }
.brand-mark span { width: 4px; height: 4px; background: var(--blue); right: 3px; bottom: 4px; box-shadow: 0 0 9px var(--blue); }

.main-nav { display: flex; gap: 34px; color: #b9c3cc; font-size: 13px; }
.main-nav a, .header-download { transition: color .2s ease, border-color .2s ease, background .2s ease; }
.main-nav a:hover { color: white; }
.header-download { justify-self: end; padding: 10px 19px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: 12px; }
.header-download:hover { border-color: var(--cyan); background: rgba(17,216,208,.08); }

.hero { position: relative; min-height: 760px; height: min(940px, 100svh); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; z-index: -3; inset: 0; background: url('/assets/hero-tunnel.webp') center center / cover no-repeat; }
.hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(1,5,9,.98) 0%, rgba(1,5,9,.82) 25%, rgba(1,5,9,.27) 47%, rgba(1,5,9,.03) 76%), linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
.hero-copy { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding-top: clamp(180px, 22vh, 230px); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: #a7b3be; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 8px rgba(17,216,208,.7); }
h1 { max-width: 650px; margin: 0; font-size: clamp(56px, 6vw, 88px); line-height: .96; letter-spacing: -.062em; }
h1 span, h2 span { background: linear-gradient(92deg, var(--cyan), var(--blue) 58%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 530px; margin: 27px 0 30px; color: #b6c0c9; font-size: 17px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 23px; border: 0; border-radius: 13px; color: white; font-weight: 720; font-size: 14px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .6; transform: none; }
.button svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.button-primary { background: linear-gradient(100deg, #02bdbb, #277afa 57%, #7853f5); box-shadow: 0 12px 38px rgba(37,121,245,.22); }
.button-primary:hover { box-shadow: 0 16px 46px rgba(37,121,245,.36); }
.button-secondary { background: rgba(4,9,16,.72); border: 1px solid rgba(129,82,255,.64); }
.hero-meta { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: #788694; font-size: 11px; }
.hero-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--cyan); }

.hero-stats { position: absolute; left: 0; right: 0; bottom: 0; min-height: 104px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 max(24px, calc((100% - 1180px)/2)); border-top: 1px solid rgba(255,255,255,.09); background: rgba(4,8,14,.76); backdrop-filter: blur(15px); }
.stat { display: flex; align-items: center; justify-content: center; gap: 15px; border-right: 1px solid rgba(255,255,255,.07); }
.stat:last-child { border-right: 0; }
.stat-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(17,216,208,.36); border-radius: 50%; color: var(--cyan); }
.stat-icon.violet { color: #a273ff; border-color: rgba(129,82,255,.4); }
.stat svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.stat strong, .stat small { display: block; }
.stat strong { margin-bottom: 4px; font-size: 13px; }
.stat small { color: #748391; font-size: 10px; }

.section { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 130px 0; }
.section-heading { max-width: 710px; }
.section-heading.compact { max-width: none; }
h2 { margin: 0; font-size: clamp(42px, 5vw, 66px); line-height: 1.02; letter-spacing: -.052em; }
.section-heading > p:last-child, .purchase-copy > p { margin: 24px 0 0; max-width: 610px; color: var(--muted); font-size: 16px; line-height: 1.7; }

.connect { border-bottom: 1px solid var(--line); }
.steps { counter-reset: steps; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 76px 0 0; padding: 0; list-style: none; }
.steps li { position: relative; padding-right: 54px; }
.step-number { display: block; color: #d3dbe2; font: 300 13px/1 ui-monospace, monospace; }
.step-line { width: calc(100% - 32px); height: 1px; margin: 20px 0 29px; background: linear-gradient(90deg, var(--cyan), rgba(17,216,208,.08)); }
.steps li:last-child .step-line { background: linear-gradient(90deg, var(--violet), rgba(129,82,255,.08)); }
.steps h3 { margin: 0 0 12px; font-size: 20px; }
.steps p { max-width: 260px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.purchase { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 90px; }
.purchase-copy ul { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; color: #c8d0d7; font-size: 14px; }
.purchase-copy li span { display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 10px; border-radius: 50%; background: rgba(17,216,208,.1); color: var(--cyan); font-size: 11px; }
.portal { position: relative; min-height: 390px; padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(145deg, rgba(13,26,40,.92), rgba(6,11,19,.96)); box-shadow: 0 36px 90px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.04); overflow: hidden; }
.portal::before { content: ""; position: absolute; width: 270px; height: 270px; right: -110px; top: -150px; border-radius: 50%; background: rgba(43,119,255,.16); filter: blur(48px); pointer-events: none; }
.portal-top { position: relative; display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 38px; color: #8695a3; font-size: 12px; }
.portal-top .price { color: white; font-size: 28px; font-weight: 760; letter-spacing: -.04em; }
.portal-state { position: relative; }
.portal label { display: block; margin-bottom: 10px; color: #c7d0d8; font-size: 12px; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.portal input { width: 100%; min-width: 0; height: 52px; padding: 0 16px; outline: none; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: rgba(0,0,0,.24); color: white; }
.portal input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(17,216,208,.08); }
.portal input::placeholder { color: #5d6a76; }
.form-note { margin: 12px 0 0; color: #667582; font-size: 11px; }
.back-button, .text-button { border: 0; padding: 0; background: transparent; color: var(--cyan); cursor: pointer; font-size: 11px; }
.back-button { margin-bottom: 25px; }
.account-line { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.account-line small, .account-line strong { display: block; }
.account-line small { margin-bottom: 5px; color: #71808d; font-size: 10px; }
.account-line strong { font-size: 14px; }
.portal-message { margin: 0 0 20px; color: #9aa8b4; font-size: 13px; line-height: 1.6; }
.button-wide { width: 100%; }
.subscription-card { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.2); }
.subscription-card small, .subscription-card strong { display: block; }
.subscription-card small { margin-bottom: 6px; color: #71808d; font-size: 10px; }
.subscription-card strong { font-size: 13px; }
.active-label { color: var(--cyan); }
#copy-button { margin-top: 10px; }
.portal-status { position: relative; margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(17,216,208,.2); border-radius: 10px; background: rgba(17,216,208,.07); color: #a9f1ed; font-size: 12px; line-height: 1.45; }
.portal-status.error { border-color: rgba(255,102,119,.25); background: rgba(255,102,119,.08); color: #ff9eaa; }
.payment-note { position: absolute; left: 28px; right: 28px; bottom: 24px; display: flex; align-items: center; gap: 8px; color: #63717e; font-size: 10px; }
.payment-note svg { width: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.faq { border-top: 1px solid var(--line); }
.faq-list { margin-top: 55px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 25px 44px 25px 0; cursor: pointer; list-style: none; font-size: 16px; font-weight: 620; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 20px; color: var(--cyan); font-size: 25px; font-weight: 300; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 760px; margin: -4px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.65; }

footer { width: min(1180px, calc(100% - 48px)); min-height: 110px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--line); color: #677581; font-size: 11px; }
footer p { margin: 0; }
footer > span { justify-self: end; }
footer .brand { color: white; }

[hidden] { display: none !important; }

@media (max-width: 860px) {
  .site-header { width: calc(100% - 32px); height: 72px; grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero { height: auto; min-height: 0; padding-top: 72px; display: flex; flex-direction: column; }
  .hero-media { position: relative; order: 2; inset: auto; width: 100%; aspect-ratio: 16/9; background-size: cover; background-position: center; }
  .hero-shade { display: none; }
  .hero-copy { order: 1; width: calc(100% - 32px); padding: 72px 0 48px; }
  h1 { font-size: clamp(48px, 14vw, 70px); }
  .hero-lead { max-width: 500px; }
  .hero-stats { position: relative; order: 3; grid-template-columns: 1fr; padding: 0 16px; }
  .stat { min-height: 86px; justify-content: flex-start; padding: 0 18px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .stat:last-child { border-bottom: 0; }
  .section { width: calc(100% - 32px); padding: 88px 0; }
  .steps { grid-template-columns: 1fr; gap: 45px; margin-top: 55px; }
  .steps li { padding-right: 0; }
  .step-line { width: 100%; }
  .purchase { grid-template-columns: 1fr; gap: 48px; }
  footer { width: calc(100% - 32px); grid-template-columns: 1fr auto; padding: 26px 0; }
  footer p { display: none; }
}

@media (max-width: 540px) {
  .brand { font-size: 16px; }
  .header-download { padding: 9px 15px; }
  .hero-copy { padding-top: 58px; }
  .eyebrow { font-size: 9px; }
  h1 { font-size: 49px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-media { aspect-ratio: 1.25/1; background-position: 55% center; }
  h2 { font-size: 42px; }
  .field-row { grid-template-columns: 1fr; }
  .portal { min-height: 460px; padding: 22px; }
  .payment-note { left: 22px; right: 22px; bottom: 20px; }
  .subscription-card { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
