/* =========================================================
   #startfromcero — Wealth Mode product page
   ========================================================= */

:root {
  /* Type */
  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Logo (inline SVG data URI — bulletproof against asset 403s) */
  --logo-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 328 328" fill="none"><path d="M149 66C149 70.4183 145.418 74 141 74H112C107.582 74 104 77.5817 104 82V126C104 130.418 100.418 134 96 134H82C77.5817 134 74 137.582 74 142V186C74 190.418 77.5817 194 82 194H96C100.418 194 104 197.582 104 202V246C104 250.418 107.582 254 112 254H141C145.418 254 149 257.582 149 262V306C149 310.418 145.418 314 141 314H82C77.5817 314 74 310.418 74 306V262C74 257.582 70.4183 254 66 254H52C47.5817 254 44 250.418 44 246V202C44 197.582 40.4183 194 36 194H22C17.5817 194 14 190.418 14 186V142C14 137.582 17.5817 134 22 134H36C40.4183 134 44 130.418 44 126V82C44 77.5817 47.5817 74 52 74H66C70.4183 74 74 70.4183 74 66V22C74 17.5817 77.5817 14 82 14H141C145.418 14 149 17.5817 149 22V66Z" fill="white"/><path d="M179 66C179 70.4183 182.582 74 187 74H216C220.418 74 224 77.5817 224 82V126C224 130.418 227.582 134 232 134H246C250.418 134 254 137.582 254 142V186C254 190.418 250.418 194 246 194H232C227.582 194 224 197.582 224 202V246C224 250.418 220.418 254 216 254H187C182.582 254 179 257.582 179 262V306C179 310.418 182.582 314 187 314H246C250.418 314 254 310.418 254 306V262C254 257.582 257.582 254 262 254H276C280.418 254 284 250.418 284 246V202C284 197.582 287.582 194 292 194H306C310.418 194 314 190.418 314 186V142C314 137.582 310.418 134 306 134H292C287.582 134 284 130.418 284 126V82C284 77.5817 280.418 74 276 74H262C257.582 74 254 70.4183 254 66V22C254 17.5817 250.418 14 246 14H187C182.582 14 179 17.5817 179 22V66Z" fill="white"/></svg>');
}

/* Dark — matches the Wealth platform */
:root,
[data-theme="dark"] {
  --bg: #06090b;
  --bg-2: #0b1014;
  --bg-3: #11171c;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --fg: #f1f5f4;
  --fg-2: #c4cdcb;
  --fg-3: #8a9491;
  --fg-4: #565d5b;
  --accent: #6be4d7;
  --accent-strong: #4dd5c6;
  --accent-fg: #042a25;
  --accent-glow: rgba(107, 228, 215, 0.18);
  --positive: #5ee29e;
  --warn: #f3b35b;
  --grid: rgba(255, 255, 255, 0.04);
  --noise-opacity: 0.04;
}

[data-theme="light"] {
  --bg: #f4f1ea;
  --bg-2: #ece8df;
  --bg-3: #e2ddd1;
  --bg-card: rgba(0, 0, 0, 0.025);
  --bg-card-hover: rgba(0, 0, 0, 0.045);
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.18);
  --fg: #0e1311;
  --fg-2: #2c3331;
  --fg-3: #5a615f;
  --fg-4: #8a8f8d;
  --accent: #0a857a;
  --accent-strong: #086e65;
  --accent-fg: #f7fcfb;
  --accent-glow: rgba(10, 133, 122, 0.16);
  --positive: #1c8a55;
  --warn: #b87425;
  --grid: rgba(0, 0, 0, 0.05);
  --noise-opacity: 0.025;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.5s var(--ease-in-out), color 0.5s var(--ease-in-out);
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-fg);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* Subtle film grain over the page */
body::before {
  content: none;
}

/* ============== Layout ============== */
.shell {
  position: relative;
  z-index: 2;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ============== Nav ============== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.5s var(--ease-in-out);
}
.nav.scrolled { border-color: var(--border); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.brand-logo {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: var(--fg);
  -webkit-mask: var(--logo-mask) center / contain no-repeat;
  mask: var(--logo-mask) center / contain no-repeat;
  transition:
    background-color 0.4s var(--ease-in-out),
    transform 0.6s var(--ease-spring);
}
.brand:hover .brand-logo {
  background-color: var(--accent);
  transform: rotate(-12deg) scale(1.05);
}
.brand-mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  transition: transform 0.6s var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(-90deg); }

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
}
.nav-links a {
  position: relative;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.35s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { padding: 14px 20px; }
}

.nav-right { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--fg-2);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, color 0.25s, transform 0.4s var(--ease-spring);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(180deg);
}
.theme-toggle svg { width: 16px; height: 16px; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 30px var(--accent-glow); }
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-fg);
  box-shadow: 0 0 0 0 var(--accent-fg);
  animation: pulse 2s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50% { box-shadow: 0 0 0 4px transparent; opacity: 0.6; }
}

/* ============== Hero ============== */
.hero {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 70%);
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: blink 1.6s var(--ease-in-out) infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-headline {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 28px 0 0;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-headline .reveal-line {
  display: block;
  overflow: hidden;
}
.hero-headline .reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: lineUp 1s var(--ease-out) forwards;
}
.hero-headline .reveal-line:nth-child(2) > span { animation-delay: 0.1s; }
.hero-headline .reveal-line:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes lineUp {
  to { transform: translateY(0); }
}

.hero-sub-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  margin-top: 56px;
  align-items: end;
}
@media (max-width: 900px) {
  .hero-sub-wrap { grid-template-columns: 1fr; gap: 32px; }
}

.hero-sub {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--fg-2);
  max-width: 560px;
  text-wrap: pretty;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.hero-meta-row {
  display: flex; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-3);
  text-transform: uppercase;
}
.hero-meta-row strong { color: var(--fg); font-weight: 500; }

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px 18px 28px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring);
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn-primary > * { position: relative; z-index: 1; transition: color 0.25s; }
.btn-primary:hover { color: var(--accent-fg); }
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary .arrow {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  transition: background 0.25s, color 0.25s, transform 0.4s var(--ease-spring);
}
.btn-primary:hover .arrow {
  background: var(--accent-fg);
  color: var(--accent);
  transform: rotate(90deg);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  padding: 14px 4px;
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.25s, gap 0.3s var(--ease-out);
}
.btn-ghost:hover { color: var(--fg); gap: 16px; }

.hero-stats {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
.hero-stat {
  padding: 28px 20px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.hero-stat:last-child { border-right: none; }
@media (max-width: 900px) {
  .hero-stat:nth-child(2n) { border-right: none; }
  .hero-stat:not(:last-child):not(:nth-last-child(2)) {
    border-bottom: 1px solid var(--border);
  }
  /* On odd total (5), last sits alone on its row */
  .hero-stat:nth-last-child(2) {
    border-bottom: 1px solid var(--border);
  }
}
.hero-stat-num {
  font-family: var(--f-display);
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat-num .baht { color: var(--accent); }

/* Smaller variant when stats sit under a section heading, so "Unlimited" doesn't crowd */
.section .hero-stats { margin-top: 56px; }
.section .hero-stat { padding: 22px 16px; }
.section .hero-stat-num {
  font-size: clamp(18px, 1.5vw, 24px);
  letter-spacing: -0.01em;
}
.section .hero-stat-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.35;
}
.hero-stat-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ============== Section heading ============== */
.section {
  padding: 120px 0;
  position: relative;
}
@media (max-width: 720px) {
  .section { padding: 80px 0; }
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}
.section-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex; align-items: center; gap: 10px;
}
.section-tag::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}
.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.section-title em { color: var(--accent); font-style: italic; }
.section-lede {
  margin-top: 24px;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 600px;
}
.section-lede-aside {
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-lede-aside::before {
  content: "→";
  font-size: 14px;
  letter-spacing: 0;
}

/* ============== Preview (Wealth dashboard mock) ============== */
.preview-wrap {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.5), 0 0 80px -20px var(--accent-glow);
}
.preview-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-strong);
}
.preview-url {
  padding: 4px 12px;
  background: var(--bg-3);
  border-radius: 6px;
  color: var(--fg-3);
}
.preview-url .scheme { color: var(--accent); }

.preview-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 540px;
}
@media (max-width: 720px) {
  .preview-body { grid-template-columns: 1fr; }
  .preview-side { display: none; }
}

.preview-side {
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex; flex-direction: column; gap: 20px;
}
.preview-side-brand {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; gap: 10px;
}
.preview-side-brand .ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 12px;
}
.preview-side-brand b {
  font-size: 13px; font-weight: 500;
  display: block;
}
.preview-side-brand small {
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
.preview-side-group { display: flex; flex-direction: column; gap: 2px; }
.preview-side-group-title {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin: 10px 0 4px 8px;
}
.preview-side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--f-sans);
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.preview-side-link:hover { background: var(--bg-card); color: var(--fg-2); transform: translateX(2px); }
.preview-side-link:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}
.preview-side-link.active {
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent);
}
.preview-side-link .ico {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

.preview-main {
  padding: 28px 32px;
  position: relative;
}
.preview-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.preview-h1 {
  font-family: var(--f-display);
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 12px 0 8px;
  font-weight: 400;
}
.preview-sub {
  font-size: 13px;
  color: var(--fg-3);
}
.preview-sub b { color: var(--positive); font-weight: 500; }

.preview-kpis {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 720px) {
  .preview-kpis { grid-template-columns: repeat(2, 1fr); }
}
.kpi {
  padding: 14px 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease-out);
  cursor: default;
}
.kpi:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}
.kpi.is-primary { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 6%, transparent); }
.kpi-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex; justify-content: space-between;
}
.kpi-value {
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 10px 0 6px;
}
.kpi-value .b { color: var(--accent); }
.kpi-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in oklab, var(--positive) 16%, transparent);
  color: var(--positive);
  letter-spacing: 0.04em;
}
.kpi-tag.warn { background: color-mix(in oklab, var(--warn) 16%, transparent); color: var(--warn); }
.kpi-foot {
  font-size: 10px;
  color: var(--fg-4);
  font-family: var(--f-mono);
}

.preview-goal {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.preview-goal-name {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.preview-goal-title {
  font-family: var(--f-display);
  font-size: 22px;
  margin: 6px 0 4px;
}
.preview-goal-meta { font-size: 11px; color: var(--fg-3); font-family: var(--f-mono); }
.preview-goal-pct {
  font-family: var(--f-display);
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
}
.preview-goal-pct + div {
  font-size: 10px; color: var(--fg-4); font-family: var(--f-mono);
  margin-top: 4px; text-align: right;
}
.preview-goal-bar {
  grid-column: 1 / -1;
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.preview-goal-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 60%, white));
  border-radius: 2px;
  transition: width 1.2s var(--ease-out);
}

/* ============== Modes ============== */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .modes-grid { grid-template-columns: 1fr; } }

.mode {
  --mode-color: var(--accent);
  position: relative;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color 0.5s var(--ease-out),
    transform 0.6s var(--ease-out),
    background 0.5s var(--ease-out);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mode:hover {
  border-color: var(--mode-color);
  background:
    radial-gradient(120% 80% at 100% 0%,
      color-mix(in oklab, var(--mode-color) 14%, transparent),
      transparent 60%),
    var(--bg-card);
  transform: translateY(-3px);
}

/* status pill */
.mode.live::after,
.mode.soon::after {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  padding: 4px 8px;
  border-radius: 999px;
}
.mode.live::after {
  content: "LAUNCHING SOON";
  color: var(--mode-color);
  border: 1px solid var(--mode-color);
  box-shadow: 0 0 16px color-mix(in oklab, var(--mode-color) 30%, transparent);
}
.mode.soon::after {
  content: "FUTURE";
  color: var(--fg-4);
  border: 1px solid var(--border);
}
.mode:hover.soon::after {
  color: var(--mode-color);
  border-color: var(--mode-color);
}

/* glowing orb that emerges on hover */
.mode-orb {
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--mode-color), transparent 65%);
  opacity: 0;
  filter: blur(40px);
  transition: opacity 0.7s var(--ease-out);
  z-index: -1;
  pointer-events: none;
}
.mode:hover .mode-orb { opacity: 0.4; }

/* head row */
.mode-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mode-glyph {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 26px;
  color: var(--fg-3);
  background: var(--bg-3);
  transition:
    color 0.4s var(--ease-out),
    background 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    transform 0.5s var(--ease-spring);
}
.mode:hover .mode-glyph {
  color: var(--accent-fg);
  background: var(--mode-color);
  border-color: var(--mode-color);
  transform: rotate(-6deg) scale(1.05);
}

.mode-num {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--fg-4);
  letter-spacing: 0.16em;
}
.mode:hover .mode-num { color: var(--mode-color); }

.mode-name {
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 1;
  margin: 4px 0 0;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.mode-desc {
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.55;
  margin: 4px 0 auto;
  max-width: 48ch;
}
.mode-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.mode-feats span {
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-3);
  transition: border-color 0.3s, color 0.3s;
}
.mode:hover .mode-feats span {
  border-color: color-mix(in oklab, var(--mode-color) 40%, var(--border));
  color: color-mix(in oklab, var(--mode-color) 70%, var(--fg-2));
}

/* ============== Manifesto ============== */
.manifesto {
  padding: 160px 0;
  position: relative;
}

.manifesto-quote {
  margin: 32px 0 56px;
  position: relative;
  padding-left: 88px;
  max-width: 1080px;
}
@media (max-width: 720px) {
  .manifesto-quote { padding-left: 0; padding-top: 60px; }
}
.manifesto-quote .quote-mark {
  position: absolute;
  left: 0; top: -36px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 200px;
  line-height: 1;
  color: var(--accent);
  user-select: none;
  opacity: 0.95;
}
@media (max-width: 720px) {
  .manifesto-quote .quote-mark { font-size: 120px; top: -32px; }
}
.manifesto-quote blockquote {
  margin: 0;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.manifesto-body {
  font-family: var(--f-display);
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 1080px;
  text-wrap: pretty;
  color: var(--fg-2);
  margin: 0;
}
.manifesto-body em { color: var(--accent); font-style: italic; }
.manifesto-body .muted { color: var(--fg-4); }

.manifesto-sign {
  margin-top: 80px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sign-avatar {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: visible;
  transition: transform 0.5s var(--ease-spring);
}
.sign-avatar:hover { transform: scale(1.05); }
.sign-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: grayscale(0.1) contrast(1.02);
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 3px color-mix(in oklab, var(--accent) 60%, transparent),
    0 12px 40px -10px rgba(0,0,0,0.5);
  transition: filter 0.5s var(--ease-out);
}
.sign-avatar:hover img { filter: none; }
.sign-avatar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed color-mix(in oklab, var(--accent) 55%, transparent);
  animation: spin 22s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sign-meta { display: flex; flex-direction: column; gap: 2px; }
.sign-meta b {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 26px;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.sign-role {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.sign-line {
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: var(--border);
}
.sign-stamp {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-4);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ============== Features ============== */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.feat {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  background: var(--bg-card);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.6s var(--ease-out);
}
.feat:hover { border-color: var(--accent); transform: translateY(-4px); }

/* Future feature cards — visually dimmed; come alive on hover */
.feat.is-future {
  opacity: 0.7;
  filter: saturate(0.35);
  transition:
    border-color 0.4s,
    transform 0.6s var(--ease-out),
    opacity 0.5s var(--ease-out),
    filter 0.5s var(--ease-out);
}
.feat.is-future .feat-eyebrow {
  color: var(--fg-3);
}
.feat.is-future .feat-title {
  color: var(--fg-2);
}
.feat.is-future:hover {
  opacity: 1;
  filter: saturate(1);
}
.feat.is-future:hover .feat-eyebrow {
  color: var(--accent);
}
.feat.is-future:hover .feat-title {
  color: var(--fg);
}

/* "Soon" badge — mirrors the Constellation FUTURE pill */
.feat.is-soon::after,
.feat.is-future::after {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--fg-3);
  background: var(--bg-3);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.4s, border-color 0.4s, background 0.4s;
}
.feat.is-soon::after { content: "SOON"; }
.feat.is-future::after { content: "FUTURE"; }
.feat.is-soon .feat-eyebrow,
.feat.is-future .feat-eyebrow { padding-right: 70px; }
.feat.is-soon:hover::after,
.feat.is-future:hover::after {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, var(--bg-3));
}
.feat-a { grid-column: span 7; min-height: 360px; }
.feat-b { grid-column: span 5; min-height: 360px; }
.feat-c { grid-column: span 4; min-height: 300px; }
.feat-d { grid-column: span 4; min-height: 300px; }
.feat-e { grid-column: span 4; min-height: 300px; }
.feat-f { grid-column: span 4; min-height: 300px; }
.feat-g { grid-column: span 4; min-height: 300px; }
.feat-h { grid-column: span 4; min-height: 300px; }
@media (max-width: 900px) {
  .feat-a, .feat-b, .feat-c, .feat-d, .feat-e, .feat-f, .feat-g, .feat-h { grid-column: span 12; }
}
.feat-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.feat-title {
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 1.05;
  margin: 10px 0 12px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.feat-desc {
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.5;
  max-width: 420px;
}
.feat-visual {
  margin-top: auto;
  position: relative;
}

/* ============== Waitlist ============== */
.waitlist {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}
.waitlist::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 80%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.waitlist-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.waitlist-h {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 16px 0 0;
  font-weight: 400;
}
.waitlist-h em { color: var(--accent); font-style: italic; }
.waitlist-sub {
  color: var(--fg-2);
  font-size: 18px;
  max-width: 540px;
  margin: 24px auto 0;
  text-wrap: pretty;
}
.wl-form {
  margin: 48px auto 0;
  max-width: 540px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative; /* anchor for absolute-positioned submit */
}
.wl-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.wl-input {
  flex: 1;
  padding: 14px 22px;
  padding-right: 160px; /* room for the absolutely-positioned button on the right */
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--fg);
}
.wl-input::placeholder { color: var(--fg-4); }
.wl-submit {
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 6px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  transition: transform 0.3s var(--ease-spring), background 0.3s;
  white-space: nowrap;
}
.wl-submit:hover { background: var(--accent-strong); transform: translateY(-1px); }
.wl-submit svg { transition: transform 0.4s var(--ease-spring); }
.wl-submit:hover svg { transform: translateX(4px); }
.wl-submit.is-sent { background: var(--accent); color: var(--bg-1); border-color: var(--accent); }
.wl-submit.is-sent:hover { transform: none; }
.wl-submit.is-sent:hover svg { transform: none; }
.wl-submit:disabled { opacity: 0.85; cursor: default; }

.wl-counter {
  margin-top: 32px;
  display: flex; justify-content: center; gap: 32px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}
.wl-counter b { color: var(--fg); display: block; font-size: 14px; }

.wl-status {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent);
  min-height: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.wl-status.show { opacity: 1; transform: translateY(0); }

/* Perks rail */
.perks {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
@media (max-width: 720px) {
  .perks { grid-template-columns: 1fr; }
}
.perk {
  padding: 24px 24px 0;
  border-right: 1px solid var(--border);
  text-align: left;
}
.perk:last-child { border-right: none; }
.perk-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 14px;
}
.perk-title {
  font-family: var(--f-display);
  font-size: 22px;
  margin-bottom: 6px;
}
.perk-desc {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.5;
}

/* ============== Footer ============== */
.foot {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  position: relative;
}
.foot-big {
  font-family: var(--f-display);
  font-size: clamp(72px, 16vw, 240px);
  letter-spacing: -0.04em;
  line-height: 0.88;
  margin: 0 0 64px;
  color: var(--fg);
  word-break: break-word;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.05em;
}
.foot-big em { color: var(--accent); font-style: italic; }
.foot-hash {
  color: var(--accent);
  font-style: italic;
  margin-right: -0.02em;
  display: inline-block;
  transition: transform 0.5s var(--ease-spring);
}
.foot:hover .foot-hash { transform: rotate(-8deg); }
.foot-row {
  display: flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap;
  gap: 32px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { color: var(--fg-4); font-size: 10px; letter-spacing: 0.16em; margin: 0; font-weight: 500; text-transform: uppercase; }
.foot-col a:hover { color: var(--accent); }

/* ============== Splash ============== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity 0.7s var(--ease-in-out);
}
.splash-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  opacity: 0.7;
  pointer-events: none;
}
.splash-glow {
  position: absolute;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(50px);
  pointer-events: none;
  animation: splashGlow 4s ease-in-out infinite alternate;
}
@keyframes splashGlow {
  from { transform: scale(0.9); opacity: 0.6; }
  to   { transform: scale(1.15); opacity: 1; }
}

.splash-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 0 32px;
  text-align: center;
}

/* Mark */
.splash-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(12px);
  animation: splashRise 0.9s 0.1s var(--ease-out) forwards;
}
.splash-logo {
  display: inline-block;
  width: 56px;
  height: 56px;
  background-color: var(--fg);
  -webkit-mask: var(--logo-mask) center / contain no-repeat;
  mask: var(--logo-mask) center / contain no-repeat;
  filter: drop-shadow(0 0 24px var(--accent-glow));
  animation: splashPulse 2.4s ease-in-out infinite;
}
@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.splash-name {
  font-family: var(--f-mono);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--fg);
}

/* Quote */
.splash-quote {
  font-family: var(--f-display);
  font-size: clamp(28px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--fg-2);
  max-width: 920px;
  text-wrap: balance;
  position: relative;
  padding-left: 0.6em;
  opacity: 0;
  transform: translateY(20px);
  animation: splashRise 1.1s 0.45s var(--ease-out) forwards;
}
.splash-quote em {
  font-style: italic;
  color: var(--accent);
}
.splash-q-mark {
  font-family: var(--f-display);
  font-style: italic;
  position: absolute;
  left: -0.05em;
  top: -0.55em;
  font-size: 1.6em;
  color: var(--accent);
  opacity: 0.7;
}

/* Loading bar */
.splash-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: splashRise 0.6s 1s var(--ease-out) forwards;
}
.splash-loading-bar {
  display: block;
  width: 180px;
  height: 1px;
  background: var(--border-strong);
  position: relative;
  overflow: hidden;
}
.splash-loading-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: splashSweep 1.4s 1.1s ease-in-out infinite;
}
@keyframes splashSweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
.splash-loading-text {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--fg-4);
}

@keyframes splashRise {
  to { opacity: 1; transform: translateY(0); }
}

/* Exit — curtain rises */
.splash-exit {
  transform: translateY(-100%);
  transition:
    transform 0.85s cubic-bezier(0.83, 0, 0.17, 1),
    opacity 0.6s 0.3s var(--ease-in-out);
  opacity: 0;
}
.splash-exit .splash-inner {
  transform: translateY(-30px);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.4s var(--ease-out);
}

/* ============== Side indicator (right rail) ============== */
.side-ind {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  align-items: center;
  padding: 16px 18px 16px 32px;
  /* the padding gives a wider hover target */
}
@media (max-width: 720px) {
  .side-ind { display: none; }
}

.side-ind-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}
.side-ind.is-open .side-ind-rail {
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
}

.side-ind-tick {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg-4);
  opacity: 0.45;
  transition:
    width 0.35s var(--ease-out),
    background 0.35s var(--ease-out),
    opacity 0.35s var(--ease-out);
}
.side-ind:hover .side-ind-tick { opacity: 0.75; }
.side-ind-tick.active {
  background: var(--accent);
  opacity: 1;
  width: 28px;
}

/* Pop-out card */
.side-ind-pop {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translate(8px, -50%) scale(0.96);
  background: color-mix(in oklab, var(--bg-2) 92%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 12px 12px;
  min-width: 240px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.4s var(--ease-spring);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.side-ind-pop.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%) scale(1);
}
.side-ind-pop-title {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.side-ind-pop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-ind-pop li a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--fg-2);
  font-size: 13px;
  transition: background 0.2s, color 0.2s, transform 0.25s var(--ease-out);
}
.side-ind-pop li a:hover {
  background: var(--bg-card-hover);
  color: var(--fg);
  transform: translateX(2px);
}
.side-ind-pop li.active a {
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent);
}
.side-ind-pop li a .num {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--fg-4);
  letter-spacing: 0.04em;
}
.side-ind-pop li.active a .num { color: var(--accent); }
.side-ind-pop li a .label {
  font-family: var(--f-display);
  font-size: 18px;
  font-style: italic;
  letter-spacing: -0.01em;
}
.side-ind-pop li a .arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.3s var(--ease-out);
  color: var(--accent);
  font-family: var(--f-mono);
}
.side-ind-pop li a:hover .arrow,
.side-ind-pop li.active a .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============== Cursor glow ============== */
.cursor-glow {
  position: fixed;
  width: 360px; height: 360px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, width 0.4s, height 0.4s;
  mix-blend-mode: screen;
}
[data-theme="light"] .cursor-glow { mix-blend-mode: multiply; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  gap: 64px;
  font-family: var(--f-display);
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--fg-3);
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  width: max-content;
}
.marquee-track span em { color: var(--accent); font-style: italic; }
.marquee-track .sep { color: var(--fg-4); }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* Streams animation (Connectivity feature) */
.streams-svg { width: 100%; height: 220px; }
.streams-svg .node { fill: var(--bg-3); stroke: var(--accent); stroke-width: 1.5; }
.streams-svg .node.center { fill: var(--accent); }
.streams-svg .link { stroke: var(--border-strong); fill: none; stroke-width: 1; }
.streams-svg .pulse { fill: var(--accent); }
.streams-svg text { fill: var(--fg-3); font-family: var(--f-mono); font-size: 10px; }

/* Chart visual (Net worth) */
.chart-svg { width: 100%; height: 200px; }
.chart-svg .line { fill: none; stroke: var(--accent); stroke-width: 2; }
.chart-svg .area { fill: url(#chart-grad); opacity: 0.5; }
.chart-svg .grid-line { stroke: var(--grid); stroke-dasharray: 2 4; }

/* Ticker for numbers */
.ticker {
  display: inline-flex;
  overflow: hidden;
  vertical-align: baseline;
}
.ticker-digit {
  display: inline-block;
  transition: transform 0.6s var(--ease-out);
}

/* Number rolldown */
.num-roll {
  display: inline-block;
  overflow: hidden;
  height: 1em;
  line-height: 1;
  vertical-align: bottom;
}
.num-roll span {
  display: block;
  animation: rolldown 0.6s var(--ease-out);
}
@keyframes rolldown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============== Donut chart ============== */
.donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.donut-svg {
  transform: rotate(-90deg);
  flex-shrink: 0;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  transform: rotate(90deg);
  text-align: center;
}
.donut-center b {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--fg);
  display: block;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.donut-center span {
  font-size: 8px;
  color: var(--fg-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.donut-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  width: 100%;
}
.donut-legend li {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--fg-3);
  min-width: 0;
}
.donut-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.donut-legend .name {
  color: var(--fg-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.donut-legend .val { color: var(--fg); letter-spacing: 0.02em; }

/* ============== Asset class visual ============== */
.assetclass-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.assetclass-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg-3);
}
.assetclass-bar span {
  height: 100%;
  width: 0;
  transition: width 0.9s var(--ease-out);
}
.assetclass-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.assetclass-list li {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg-3);
}
.assetclass-list li:last-child { border-bottom: none; }
.assetclass-list .dot { width: 8px; height: 8px; border-radius: 2px; }
.assetclass-list .name { color: var(--fg-2); }
.assetclass-list .tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 2px 6px;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--border));
  border-radius: 4px;
}
.assetclass-list .val { color: var(--fg); }

/* ============== Expense visual ============== */
.expense-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.expense-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.exp-stat {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}
.exp-stat-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--fg-3);
}
.exp-stat-val {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--warn);
  margin: 4px 0 2px;
  line-height: 1;
}
.exp-stat-val span {
  font-size: 11px;
  color: var(--fg-4);
  font-family: var(--f-mono);
  margin-left: 4px;
}
.exp-stat-foot {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--fg-4);
}
.expense-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-3);
}
.expense-bar .fixed {
  background: #7aa9ff;
  transition: width 1s var(--ease-out);
}
.expense-bar .var {
  background: var(--accent);
  transition: width 1s 0.15s var(--ease-out);
}
.expense-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 8px;
}
.expense-foot i {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}
.expense-foot .dot-fixed { background: #7aa9ff; }
.expense-foot .dot-var { background: var(--accent); }
.expense-foot .total { color: var(--fg); }

/* ============== Tax visual ============== */
.tax-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tax-summary {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}
.tax-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--fg-3);
}
.tax-val {
  font-family: var(--f-display);
  font-size: 28px;
  color: var(--accent);
  margin-top: 4px;
  line-height: 1;
}
.tax-val.small { font-size: 22px; color: var(--fg); }
.tax-eff { text-align: right; }
.tax-brackets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tax-bracket {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
}
.tax-range { color: var(--fg-3); }
.tax-bar {
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
}
.tax-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 50%, var(--warn)));
  width: 0;
  transition: width 1s var(--ease-out);
}
.tax-rate { color: var(--fg); text-align: right; }

/* ============== Billionaires (mini panel) ============== */
.bill-viz {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: stretch;
  min-height: 200px;
}
@media (max-width: 720px) {
  .bill-viz { grid-template-columns: 1fr; }
}
.bill-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bill-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  transition: border-color 0.3s, background 0.3s;
  cursor: default;
}
.bill-chip:hover { border-color: color-mix(in oklab, var(--accent) 40%, var(--border)); }
.bill-chip.active {
  border-color: #ef6b6b;
  background:
    radial-gradient(80% 80% at 0% 0%, color-mix(in oklab, #ef6b6b 12%, transparent), transparent 60%),
    var(--bg-card);
}
.bill-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.bill-meta { min-width: 0; }
.bill-name {
  font-size: 11px;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bill-wealth {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  margin-top: 1px;
}

.bill-graph {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bill-graph-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
}
.bill-active {
  color: #ef6b6b;
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 500;
}
.bill-svg {
  width: 100%;
  flex: 1;
  min-height: 160px;
}
.bill-link {
  stroke: var(--border-strong);
  stroke-width: 0.8;
  opacity: 0.4;
}
.bill-label {
  fill: var(--fg-3);
  font-family: var(--f-mono);
  font-size: 7px;
}
.bill-label-big {
  fill: var(--fg);
  font-family: var(--f-sans);
  font-size: 9px;
  font-weight: 600;
}

/* =========================================================
   Emil-style polish layer — toast, stagger, spring tweaks
   ========================================================= */

/* ----- Spring-curve sweep on key interactive elements ----- */
.feat, .mode, .perk, .nav-cta, .wl-submit, .btn-primary,
.pv-tab, .foot-col a, .nav a, .mode-glyph, .mode-orb {
  transition-timing-function: var(--ease-spring);
}

/* ----- Staggered children reveal ----- */
.stagger > .stagger-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-spring);
  transition-delay: calc(var(--si, 0) * 70ms);
}
.reveal.in .stagger > .stagger-item,
.section.in .stagger > .stagger-item,
.in.stagger > .stagger-item {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .stagger > .stagger-item { transition: opacity 0.2s linear; transform: none; }
}

/* ----- 3D-tilt cards: hint perspective on parents, smooth-out transform ----- */
.feat-grid, .modes-grid { perspective: 1200px; }
.feat, .mode {
  transition: transform 0.45s var(--ease-spring), background 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out), box-shadow 0.45s var(--ease-spring);
  transform-style: preserve-3d;
}
.feat:hover, .mode:hover {
  box-shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--accent-quiet, transparent);
}
@media (hover: none) {
  .feat, .mode { transform: none !important; }
}

/* ----- Toaster (Sonner-inspired) ----- */
.sfc-toaster {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}
.sfc-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-2, #15191c);
  color: var(--fg, #f0f0eb);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  box-shadow:
    0 18px 50px -18px rgba(0, 0, 0, 0.55),
    0 4px 18px -6px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: sfc-toast-in 0.55s cubic-bezier(0.22, 1.4, 0.42, 1) both;
  transform-origin: bottom right;
}
.sfc-toast.leaving {
  animation: sfc-toast-out 0.5s cubic-bezier(0.4, 0, 0.6, 1) both;
}
.sfc-toast-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent, #73d1c0);
  color: var(--bg-1, #0a0e10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  box-shadow: 0 0 0 3px rgba(115, 209, 192, 0.18);
}
.sfc-toast-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sfc-toast-text b { font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em; }
.sfc-toast-text span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fg-3, #9aa1a4);
}
@keyframes sfc-toast-in {
  0%   { opacity: 0; transform: translateY(28px) scale(0.92); }
  60%  { opacity: 1; transform: translateY(-4px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sfc-toast-out {
  to { opacity: 0; transform: translateY(20px) scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .sfc-toast, .sfc-toast.leaving { animation: none; opacity: 1; }
}
@media (max-width: 540px) {
  .sfc-toaster { left: 12px; right: 12px; bottom: 12px; }
  .sfc-toast { min-width: 0; max-width: none; width: 100%; }
}

/* =========================================================
   Waitlist polish — autofill override + responsive button label
   ========================================================= */

/* Kill the browser autofill yellow/white background on the email input.
   Trick: shadow-fill the input with the surrounding bg, defer the bg transition
   so the real color never paints, and force the text fill back to the foreground. */
.wl-input:-webkit-autofill,
.wl-input:-webkit-autofill:hover,
.wl-input:-webkit-autofill:focus,
.wl-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--fg) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
  caret-color: var(--fg);
  transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
}

/* Responsive submit-button label: full on desktop, short on mobile. */
.wl-submit-label-mobile { display: none; }
@media (max-width: 720px) {
  .wl-submit-label-full   { display: none; }
  .wl-submit-label-mobile { display: inline; }
  /* Tighter button on mobile to match the shorter "Join Us" label */
  .wl-input { padding-right: 115px; }
  .wl-submit {
    padding: 0 16px;
    font-size: 12px;
    gap: 7px;
  }
  .wl-submit svg { width: 12px; height: 12px; }
}
