@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-700-latin.woff2') format('woff2');
}

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

:root {
  --blue: #2C81F9;
  --cyan: #2BE1F8;
  --mint: #27F8DD;
  --ink: #F2F2F2;
  --body-c: #C9CDD3;
  --dim: #7C838F;
  --faint: #4A4F57;
  --line: rgba(255, 255, 255, .08);
  --grad: linear-gradient(135deg, var(--cyan), var(--blue));
  --input-bg: #1A1A1A;
}

html { scroll-behavior: smooth }

body {
  background: #000;
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none }
a:hover { text-decoration: underline }

.inner { max-width: 1100px; margin: 0 auto; padding: 0 24px }
.inner.wide { max-width: 1240px }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- header ---------- */

header.site {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
header.site.scrolled {
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px }
.brand, .lockup {
  display: inline-flex; align-items: center; gap: 9px;
  color: #fff; font-size: 1.08rem; font-weight: 600; line-height: 1;
}
.brand:hover { text-decoration: none }
.brand-mark { width: 27px; height: 27px; display: block }
.lockup-foot { font-size: .94rem; opacity: .85 }
.lockup-foot .brand-mark { width: 23px; height: 23px }
header.site nav { display: flex; align-items: center; gap: 26px }
.nav-link { color: var(--body-c); font-size: .9rem; font-weight: 500 }
.nav-link:hover { color: #fff; text-decoration: none }
.nav-cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border-radius: 10px; border: 1px solid rgba(43, 225, 248, .45);
  color: var(--cyan); font-size: .88rem; font-weight: 600;
  transition: background .2s, color .2s; white-space: nowrap;
}
.nav-cta:hover { background: rgba(43, 225, 248, .12); text-decoration: none }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 96vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
#aurora { position: absolute; inset: 0; width: 100%; height: 100% }
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(180deg, transparent, #000);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; width: 100% }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--dim); font-size: .85rem; font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 30px;
  background: rgba(0, 0, 0, .35);
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 10px rgba(39, 248, 221, .8);
}

.hero h1 {
  font-size: clamp(1.3rem, 6vw, 3.8rem);
  white-space: nowrap;
  font-weight: 700; line-height: 1.08; letter-spacing: -.02em;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub {
  margin: 26px auto 0; max-width: 620px;
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--body-c);
}
.sub-brief { display: none }

#invite-form { margin-top: 40px }
.pill {
  display: flex; align-items: center; gap: 10px;
  max-width: 560px; margin: 0 auto; padding: 8px;
  background: var(--input-bg); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.pill:focus-within {
  border-color: rgba(43, 225, 248, .5);
  box-shadow: 0 0 0 4px rgba(43, 225, 248, .08);
}
.pill input[type=email] {
  flex: 1; min-width: 0; height: 56px; padding: 0 18px;
  background: transparent; border: 0; outline: none;
  color: var(--ink); font-family: inherit; font-size: 1rem;
}
.pill input[type=email]::placeholder { color: var(--faint) }
.pill button {
  height: 56px; padding: 0 26px; border: 0; border-radius: 12px;
  background: var(--grad); color: #000;
  font-family: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; white-space: nowrap;
  transition: filter .2s, opacity .2s;
}
.pill button:hover { filter: brightness(1.1) }
.pill button:disabled { opacity: .6; cursor: wait }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0 }

#invite-status { min-height: 1.6em; margin-top: 14px; font-size: .92rem; color: var(--dim) }
#invite-status.err { color: #ff8f8f }
#invite-status.ok { color: var(--mint); font-weight: 500; font-size: 1.02rem }

/* ---------- sections ---------- */

section { padding: 110px 0 }
.kicker {
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -.01em;
}
.lede { margin-top: 18px; max-width: 640px; color: var(--body-c); font-size: 1.02rem }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.5s cubic-bezier(.22,.61,.36,1), transform 1.5s cubic-bezier(.22,.61,.36,1) }
.reveal.in { opacity: 1; transform: none }

/* ---------- timeline chart ---------- */

.timeline { padding-bottom: 60px }
.chart-frame { margin-top: 54px }
#forecast-chart { width: 100%; height: auto; display: block }
#forecast-chart .grid line { stroke: rgba(255, 255, 255, .1) }
#forecast-chart .grid line.faint { stroke: rgba(255, 255, 255, .045) }
#forecast-chart .today-line { stroke: rgba(255, 255, 255, .18); stroke-dasharray: 2 6 }
#forecast-chart .axis-label {
  fill: var(--faint); font-family: 'Poppins', sans-serif; font-size: 15px; text-anchor: middle;
}
#forecast-chart .today-label { fill: var(--dim) }
#forecast-chart .history {
  fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round;
}
#forecast-chart .median {
  fill: none; stroke: url(#line-grad); stroke-width: 3.5;
  stroke-linecap: round; stroke-dasharray: 1 10;
}
#forecast-chart .now-dot { fill: var(--cyan) }
#forecast-chart .now-ring { fill: none; stroke: rgba(43, 225, 248, .35); stroke-width: 2 }
#forecast-chart .band { opacity: 0; transition: opacity 2.2s ease .9s }
#forecast-chart .median { opacity: 0; transition: opacity 1.8s ease .7s }
#forecast-chart .now-dot, #forecast-chart .now-ring { opacity: 0; transition: opacity 1.2s ease .5s }
.chart-drawn #forecast-chart .band,
.chart-drawn #forecast-chart .median,
.chart-drawn #forecast-chart .now-dot,
.chart-drawn #forecast-chart .now-ring { opacity: 1 }
#forecast-chart .history { stroke-dasharray: 900; stroke-dashoffset: 900 }
.chart-drawn #forecast-chart .history { animation: draw 2.6s ease forwards }
@keyframes draw { to { stroke-dashoffset: 0 } }

/* ---------- hero headline: levitation + rotating epoch ---------- */

.float-word { white-space: nowrap; display: inline-block }
.float-ch { display: inline-block; will-change: transform }
.hero h1 .float-ch {
  animation: levitate var(--fdur, 7s) ease-in-out var(--fdel, 0s) infinite alternate;
}
@keyframes levitate {
  from { transform: translateY(calc(var(--famp, 1.6px) * -1)) }
  to { transform: translateY(var(--famp, 1.6px)) }
}
.epoch-wrap { white-space: nowrap }
.grad-wave {
  background: linear-gradient(90deg, #2BE1F8, #2C81F9, #27F8DD, #2BE1F8);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradwave 7s linear infinite;
}
@keyframes gradwave { to { background-position: 300% 0 } }

/* ---------- chart scrub demo ---------- */

#forecast-chart .scrub { transition: opacity .6s ease }
#forecast-chart .scrub-line { stroke: rgba(43, 225, 248, .35); stroke-width: 1.5 }
#forecast-chart .scrub-dot { fill: #fff }
#forecast-chart .scrub-bg { fill: rgba(10, 14, 18, .92); stroke: rgba(43, 225, 248, .35) }
#forecast-chart .scrub-date { fill: var(--dim); font-size: 13px; font-family: Poppins, sans-serif }
#forecast-chart .scrub-amt { fill: #fff; font-size: 16px; font-weight: 600; font-family: Poppins, sans-serif }
.chart-note { margin-top: 26px; text-align: center; color: var(--dim); font-size: .92rem }

/* ---------- how it works ---------- */

.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px;
  margin-top: 54px;
  counter-reset: step;
}
.step { position: relative }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); color: #000;
  font-weight: 700; font-size: 1.05rem;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; color: #fff }
.step p { color: var(--body-c); font-size: .95rem }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; left: 64px; right: -24px;
  height: 1px; background: linear-gradient(90deg, var(--line), transparent);
}

/* ---------- privacy ---------- */

.privacy-sec {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(44, 129, 249, .09), transparent 70%);
}
.big-claim {
  margin-top: 34px;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  font-weight: 600; line-height: 1.25; letter-spacing: -.01em;
  max-width: 760px;
  background: linear-gradient(135deg, #fff 30%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fields {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 26px 0 8px;
}
.fields li {
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--input-bg);
  color: var(--body-c); font-size: .9rem;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ---------- footer ---------- */

footer.site { border-top: 1px solid var(--line); padding: 44px 0 56px }
.footer-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 26px }
.footer-links a { color: var(--dim); font-size: .88rem }
.footer-links a:hover { color: var(--ink); text-decoration: none }
.copyright { color: var(--faint); font-size: .8rem; margin-top: 16px }

/* ---------- shared page styles (privacy, plaid) ---------- */

.page-main { padding: 150px 24px 60px }
.page-title h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 700 }
.page-title .meta { color: var(--dim); font-size: .88rem; margin-top: 10px }
.rule { height: 3px; width: 120px; background: var(--grad); border-radius: 2px; margin: 26px 0 8px }
.prose { max-width: 760px; margin: 0 auto }
.prose h2 { font-size: 1.25rem; font-weight: 600; margin: 44px 0 12px; color: #fff }
.prose p, .prose li { color: var(--body-c); font-size: .97rem; margin-bottom: 12px }
.prose ul { padding-left: 22px; margin-bottom: 12px }
.prose strong { color: var(--ink) }
.callout {
  border: 1px solid var(--line); border-left: 4px solid;
  border-radius: 12px; padding: 18px 20px; margin: 22px 0; background: var(--input-bg);
}
.callout p { margin: 0; color: #E6E9ED }
.callout .t { font-weight: 600; margin-bottom: 6px; color: #fff; font-size: .95rem }
.callout.danger { border-left-color: #E05252 }
.callout.success { border-left-color: #2F9E5F }
.center-page {
  min-height: 62vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 140px 20px 60px;
}
.center-page h1 { font-size: 1.9rem; font-weight: 700 }
.center-page p { color: var(--body-c); margin-top: 8px }
.center-rule { margin: 22px auto 14px }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 36px }
  .step:not(:last-child)::after { display: none }
  section { padding: 80px 0 }
}

@media (max-width: 640px) {
  .header-row { height: 60px; padding-inline: 16px }
  .brand { gap: 7px; font-size: .95rem }
  .brand .brand-mark { width: 24px; height: 24px }
  .lockup { height: 18px }
  .nav-link { display: none }
  .nav-cta { height: 36px; padding: 0 12px; font-size: .78rem }
  .hero { min-height: 88vh; padding-top: 110px }
  .hero-inner { padding-inline: 12px }
  .hero h1 { font-size: 6.3vw }
  .sub-full { display: none }
  .sub-brief { display: block; font-size: .95rem; color: var(--dim); margin-top: 18px }
  #invite-form { margin-top: 30px }
  .pill { flex-direction: column; align-items: stretch; padding: 10px; border-radius: 18px }
  .pill button { width: 100% }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .reveal { opacity: 1; transform: none; transition: none }
  .hero h1 .float-ch { animation: none }
  .grad-wave { animation: none }
  #forecast-chart .scrub { display: none }
  #forecast-chart .history { stroke-dasharray: none; stroke-dashoffset: 0 }
  .chart-drawn #forecast-chart .history { animation: none }
  #forecast-chart .band, #forecast-chart .median,
  #forecast-chart .now-dot, #forecast-chart .now-ring { opacity: 1; transition: none }
}
