/* =====================================================================
   Robindex.ai — Editorial Private Bank (v3)
   Author: Robindex design system
   Aesthetic: deep-minimalism, paper-light editorial, single accent
   ===================================================================== */

:root {
  /* Light (default) — warm paper */
  --bg:            #F4F1EA;
  --bg-2:          #EFEBE2;
  --surface:       #FFFFFF;
  --surface-2:     #FAF7F0;
  --ink:           #14130E;
  --ink-2:         #2A2822;
  --muted:         #6B6860;
  --muted-2:       #908C82;
  --hair:          rgba(20, 19, 14, 0.10);
  --hair-2:        rgba(20, 19, 14, 0.06);
  --hair-strong:   rgba(20, 19, 14, 0.18);
  --gold:          #997B45;
  --gold-soft:     rgba(153, 123, 69, 0.12);
  --signal:        #14130E;

  /* Type */
  --font-display:  "Newsreader", "Noto Serif SC", "Songti SC", "Times New Roman", serif;
  --font-sans:     "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-mono:     "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --maxw:          1320px;
  --gutter:        clamp(20px, 4vw, 56px);
  --section-pad:   clamp(112px, 16vh, 200px);
  --section-pad-sm: clamp(80px, 11vh, 120px);

  /* Radii (6/12/24 only) */
  --r-sm:          6px;
  --r-md:          12px;
  --r-lg:          24px;

  /* Shadows (multi-layer, subtle) */
  --shadow-1:      0 1px 0 rgba(20,19,14,0.04), 0 1px 2px rgba(20,19,14,0.04);
  --shadow-2:      0 1px 0 rgba(20,19,14,0.04), 0 4px 12px rgba(20,19,14,0.05), 0 1px 3px rgba(20,19,14,0.04);
  --shadow-3:      0 1px 0 rgba(20,19,14,0.04), 0 12px 40px rgba(20,19,14,0.08), 0 4px 12px rgba(20,19,14,0.04);

  /* Springs (no linear) */
  --ease-out:      cubic-bezier(.22,.61,.36,1);
  --ease-spring:   cubic-bezier(.34,1.56,.64,1);
  --ease-in-out:   cubic-bezier(.65,0,.35,1);
}

/* Dark mode — deep ink */
html[data-theme="dark"] {
  --bg:            #0B0A07;
  --bg-2:          #100E0A;
  --surface:       #141210;
  --surface-2:     #1A1814;
  --ink:           #F4F1EA;
  --ink-2:         #E5E0D3;
  --muted:         rgba(244, 241, 234, 0.62);
  --muted-2:       rgba(244, 241, 234, 0.40);
  --hair:          rgba(244, 241, 234, 0.10);
  --hair-2:        rgba(244, 241, 234, 0.06);
  --hair-strong:   rgba(244, 241, 234, 0.18);
  --gold:          #C9A961;
  --gold-soft:     rgba(201, 169, 97, 0.16);
  --signal:        #F4F1EA;
  --shadow-1:      0 1px 0 rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-2:      0 1px 0 rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.4);
  --shadow-3:      0 1px 0 rgba(0,0,0,0.4), 0 16px 48px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
}
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Webfont gate — body stays invisible while Newsreader/DM Sans download,
   then fades in once document.fonts.ready resolves (capped at 1200ms).
   Eliminates the fallback->webfont swap flash without trapping users
   behind a blank page on a broken CDN. JS-disabled visitors miss neither
   class, so the body shows immediately with fallback fonts. */
html.fonts-loading body { opacity: 0; }
html.fonts-ready body {
  opacity: 1;
  transition: opacity .6s var(--ease-out);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Selection */
::selection { background: var(--ink); color: var(--bg); }

/* ---------- Container & rules ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.rule { height: 1px; background: var(--hair); width: 100%; }

/* ---------- Type scale ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.98;
  font-feature-settings: "ss01", "liga";
}
.display em { font-style: italic; font-weight: 300; color: var(--ink); }
.d-hero { font-size: clamp(56px, 9.6vw, 144px); }
.d-1    { font-size: clamp(44px, 6.4vw, 96px); }
.d-2    { font-size: clamp(36px, 4.8vw, 72px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: -0.005em;
  max-width: 56ch;
}
.muted { color: var(--muted); }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 300; }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .35s var(--ease-spring), background-color .25s var(--ease-out),
              color .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
  border: 1px solid transparent;
  will-change: transform;
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.99); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover {
  background: var(--ink-2);
  box-shadow: var(--shadow-2);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hair-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }

.btn .ico { width: 16px; height: 16px; flex: 0 0 16px; }

/* Disabled / "coming soon" state — used while features are gated.
   pointer-events stays auto so :hover fires for the tooltip — the
   disabled attribute already prevents click + focus + submit. */
.btn:disabled,
.btn[aria-disabled="true"] {
  position: relative;
  opacity: 0.45;
  cursor: not-allowed;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--hair-strong);
  box-shadow: none;
}
.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  transform: none;
  background: transparent;
  color: var(--muted);
}

/* Hover tooltip driven by [data-tooltip]. Used on disabled CTAs to hint
   "Coming Soon" instead of leaving the button feeling broken. */
.btn[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  box-shadow: var(--shadow-2);
  animation: tipIn 0.18s var(--ease-out);
}
.btn[data-tooltip]:hover::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--ink);
  z-index: 10;
  pointer-events: none;
}
@keyframes tipIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 300;
  line-height: 1;
}
.brand-mark {
  width: 28px; height: 28px; display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--ink);
  flex: 0 0 28px;
  /* nudge SVG up 1px so its horizontal line sits at the cap-height midline of "Robindex" */
  transform: translateY(-1px);
}
.brand-word { line-height: 1; }
.brand-word em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.nav-center {
  display: flex; gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
.nav-center a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.nav-center a:hover { color: var(--ink); background: var(--hair-2); }

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

/* Language switch */
.lang {
  position: relative;
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px;
  border-radius: 999px;
  font-size: 13.5px; color: var(--ink-2);
  transition: background-color .25s var(--ease-out);
}
.lang-btn:hover { background: var(--hair-2); }
.lang-btn svg { opacity: .55; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 6px;
  box-shadow: var(--shadow-3);
  display: none;
  flex-direction: column;
}
.lang.open .lang-menu { display: flex; animation: pop .25s var(--ease-spring); }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 8px;
  font-size: 14px; color: var(--ink-2); text-align: left;
}
.lang-menu button:hover { background: var(--hair-2); color: var(--ink); }
.lang-menu .fallback {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2);
}
.lang-menu .check { color: var(--gold); opacity: 0; font-size: 12px; }
.lang-menu button.active .check { opacity: 1; }

.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.theme-toggle:hover { background: var(--hair-2); color: var(--ink); }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: inline; }

@keyframes pop {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Section mark — replaces the eyebrow as a visual anchor ---------- */
.mark {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 32px;
  transform-origin: left center;
}
.mark.center { margin-left: auto; margin-right: auto; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: var(--section-pad) 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.section-head .eyebrow-row {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--hair);
}
.section-head .eyebrow-row .num {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted-2);
  letter-spacing: 0.16em;
}

/* ===================================================================
   1. HERO
   =================================================================== */
.hero {
  padding-top: clamp(120px, 18vh, 200px);
  padding-bottom: clamp(100px, 14vh, 160px);
  position: relative;
  overflow: hidden;
}
.hero .container { text-align: center; }
.hero .display { margin: 0 auto 44px; max-width: 18ch; }
.hero .lead { margin: 0 auto 56px; text-align: center; max-width: 52ch; }
.cta-row {
  display: inline-flex; gap: 12px; flex-wrap: wrap;
  justify-content: center; align-items: center;
}
.hero .trust-row {
  display: flex; gap: 28px; justify-content: center; align-items: center;
  margin-top: 64px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero .trust-row .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }

/* Hero orbital backdrop — three nested concentric rings, each one a
   <g class="ring"> (scale breath) wrapping a <g class="spin"> (rotation),
   so the two transforms never collide on the same node. Decorative only
   — aria-hidden on the parent, pointer-events: none here. */
.hero-orbit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  color: var(--ink);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 1.4s var(--ease-out) .15s, transform 1.6s var(--ease-spring) .15s;
}
html.fonts-ready .hero-orbit,
html:not(.fonts-loading) .hero-orbit {
  opacity: 1;
  transform: scale(1);
}
.hero-orbit .orbit-svg {
  width: min(1180px, 96vw);
  height: min(1180px, 96vw);
  max-height: 110vh;
  overflow: visible;
}
.hero-orbit .ring,
.hero-orbit .spin {
  /* transform-box defaults to view-box on SVG in modern browsers, but pin
     it so 600px 600px reliably maps to the viewBox centre everywhere. */
  transform-box: view-box;
  transform-origin: 600px 600px;
}
.hero-orbit .ring { animation: orbitBreath 9s var(--ease-in-out) infinite; }
.hero-orbit .r-outer { animation-duration: 9s;  animation-delay: 0s; }
.hero-orbit .r-mid   { animation-duration: 11s; animation-delay: -3.2s; }
.hero-orbit .r-inner { animation-duration: 13s; animation-delay: -6.5s; }

.hero-orbit .spin {
  animation: orbitSpin 80s linear infinite;
}
.hero-orbit .spin.reverse { animation: orbitSpin 60s linear infinite reverse; }
.hero-orbit .spin.slow    { animation-duration: 110s; }

.hero-orbit .ring-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-opacity: 0.16;
  vector-effect: non-scaling-stroke;
}
.hero-orbit .ring-stroke.faint    { stroke-opacity: 0.11; }
.hero-orbit .ring-stroke.faintest { stroke-opacity: 0.07; }

.hero-orbit .orbit-dot {
  fill: currentColor;
  filter: drop-shadow(0 0 6px currentColor);
}
.hero-orbit .orbit-dot.gold {
  fill: var(--gold);
  filter: drop-shadow(0 0 8px var(--gold));
}
.hero-orbit .orbit-dot.subtle {
  fill: var(--muted-2);
  filter: none;
  opacity: 0.7;
}

/* Central radial bloom — soft gold glow that breathes on its own cadence. */
.hero-orbit .orbit-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(620px, 64vw);
  height: min(620px, 64vw);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--gold-soft), transparent 72%);
  filter: blur(40px);
  opacity: 0.85;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  animation: glowBreath 10s var(--ease-in-out) infinite;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
@keyframes orbitBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.018); }
}
@keyframes glowBreath {
  0%, 100% { opacity: 0.7;  transform: translate(-50%, -50%) scale(0.98); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.04); }
}

.hero .container { position: relative; z-index: 1; }

/* Hero text — slightly longer reveal duration to pair with the orbit
   intro and let the staggered cascade feel cinematic, not snappy. */
.hero .reveal {
  transition-duration: 1.05s;
}

/* ===================================================================
   2. ROTATING WORD + ASSET TICKER
   =================================================================== */
.invest {
  padding-top: var(--section-pad);
  padding-bottom: 56px;
}
.invest .invest-headline {
  text-align: center;
  margin-bottom: 56px;
}
.invest .rot-line {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5.6vw, 80px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.invest .rot {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  text-align: left;
  font-style: italic;
  color: var(--gold);
}
.invest .rot .slot {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
  transition: width .55s var(--ease-out);
}
.invest .rot .word {
  display: inline-block;
  transition: transform .55s var(--ease-out), opacity .55s var(--ease-out), filter .55s var(--ease-out);
}
.invest .rot .word.out {
  opacity: 0;
  transform: translateY(-12px);
  filter: blur(8px);
}
.invest .rot .word.in {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(8px);
  animation: wordIn .55s var(--ease-out) forwards;
}
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.invest .sub-line {
  text-align: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
}
.invest .sub-line .pip { color: var(--ink-2); }
.invest .sub-line .sep {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hair-strong);
  margin: 0 14px;
  transform: translateY(-3px);
}

/* Marquee */
.ticker {
  margin-top: 56px;
  overflow: hidden;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 28px 0;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 64s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: baseline; gap: 14px;
  white-space: nowrap;
  font-size: 18px;
}
.ticker-item .sym {
  font-family: var(--font-mono); font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.ticker-item .desc {
  font-size: 14px; color: var(--muted);
  letter-spacing: -0.005em;
}
.ticker-item .bullet {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
  align-self: center;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================================================================
   3. SMART LOCK
   =================================================================== */
.smartlock { padding: var(--section-pad) 0; background: var(--bg-2); }
.smartlock .grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.smartlock .copy h2 { margin: 0 0 40px; }
.smartlock .copy p { color: var(--muted); max-width: 50ch; line-height: 1.6; }
.smartlock .copy p + p { margin-top: 18px; }
.smartlock .copy .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.4;
  color: var(--ink-2);
  margin: 32px 0 36px;
  max-width: 30ch;
}
.smartlock .copy .quote::before {
  content: "“"; color: var(--gold); margin-right: 4px;
}
.smartlock .copy .quote::after {
  content: "”"; color: var(--gold); margin-left: 2px;
}

/* Vault visual */
.vault {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--hair);
  padding: clamp(20px, 3vw, 36px);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.vault-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 16px;
}
.vault-head .label {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.vault-head .status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase;
}
.vault-head .status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--gold-soft); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}
.vault-body {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}
.vault-meta {
  display: flex; flex-direction: column; gap: 4px;
}
.vault-meta .amount {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5.2vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.vault-meta .amount .currency {
  font-size: 0.45em; color: var(--muted); letter-spacing: 0.02em;
  margin-right: 6px;
  font-family: var(--font-mono);
  vertical-align: 0.3em;
}
.vault-meta .ticker-name {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 8px;
}
.vault-timeline {
  margin-top: 24px;
  position: relative;
  padding: 24px 0;
}
.vault-timeline .track {
  height: 2px; background: var(--hair); border-radius: 2px;
  position: relative;
}
.vault-timeline .track .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 38%;
  background: var(--ink);
  border-radius: 2px;
}
.vault-timeline .marker {
  position: absolute;
  top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.vault-timeline .marker .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--ink);
}
.vault-timeline .marker.active .dot {
  background: var(--ink);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.vault-timeline .marker .lbl {
  position: absolute; top: 18px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
}
.vault-foot {
  border-top: 1px solid var(--hair);
  padding-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.vault-foot .cell { display: flex; flex-direction: column; gap: 4px; }
.vault-foot .cell .k {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.vault-foot .cell .v {
  font-size: 16px; color: var(--ink);
  font-family: var(--font-display); font-weight: 300;
  letter-spacing: -0.01em;
}
.vault-foot .cell .v em { color: var(--gold); font-style: normal; }

/* ===================================================================
   4. ROBIN AI
   =================================================================== */
.robin { padding: var(--section-pad) 0; }
.robin .grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.robin .copy h2 { margin: 0 0 40px; }
.robin .copy p { color: var(--muted); max-width: 48ch; line-height: 1.6; }
.robin .copy p + p { margin-top: 18px; }
.robin .black-card {
  margin-top: 32px;
  background: linear-gradient(180deg, #1A1814 0%, #0E0D0A 100%);
  color: #F4F1EA;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex; align-items: center; gap: 20px;
  box-shadow: var(--shadow-3);
}
.robin .black-card .seal {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #C9A961 0%, #997B45 100%);
  display: flex; align-items: center; justify-content: center;
  color: #14130E;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 400;
  line-height: 1;
  padding-top: 2px; /* shift "B" down so its caps-only glyph sits at the square's visual center */
  flex: 0 0 56px;
}
.robin .black-card .meta { flex: 1; }
.robin .black-card .meta .tier {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(244,241,234,0.55);
}
.robin .black-card .meta .gate {
  font-family: var(--font-display); font-weight: 300;
  font-size: 22px; letter-spacing: -0.01em;
  margin-top: 4px;
}
.robin .black-card .meta .gate em { color: #C9A961; font-style: normal; }

/* Robin chat panel */
.chat {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--hair);
}
.chat-head .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #1A1814, #2A2822);
  color: #F4F1EA;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-size: 16px;
}
.chat-head .who { font-weight: 500; font-size: 14px; }
.chat-head .role { font-size: 12px; color: var(--muted); }
.chat-head .live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
}
.chat-head .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
.bubble {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14.5px; line-height: 1.5;
  letter-spacing: -0.005em;
}
.bubble.user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--bg);
  border-bottom-right-radius: 4px;
}
.bubble.robin {
  align-self: flex-start;
  background: var(--bg-2);
  color: var(--ink-2);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--hair);
}
.bubble.robin .h { font-weight: 500; color: var(--ink); }
.bubble.robin .row {
  margin-top: 8px;
  display: flex; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.bubble.robin .row .k { color: var(--ink-2); }
.bubble.robin .row em { color: var(--gold); font-style: normal; }

.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2);
  animation: blink 1.4s var(--ease-in-out) infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-2px); }
}

/* ===================================================================
   5. CUSTODY
   =================================================================== */
.custody {
  padding: var(--section-pad) 0;
  background: var(--bg-2);
}
.custody .grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.custody .copy h2 { margin: 0 0 40px; max-width: 14ch; }
.custody .copy p { color: var(--muted); max-width: 48ch; line-height: 1.6; }
.custody .copy p + p { margin-top: 18px; }
.custody .stack {
  margin-top: 32px;
  display: grid; gap: 12px;
}
.custody .stack .row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  font-size: 14px;
}
.custody .stack .row .k {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  flex: 0 0 110px;
}
.custody .stack .row .v { color: var(--ink); }
.custody .stack .row .v em { color: var(--gold); font-style: normal; }

/* TX visual */
.tx-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-2);
}
.tx-card .head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; border-bottom: 1px solid var(--hair);
}
.tx-card .head .lbl {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.tx-card .head .chain {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-2);
  background: var(--bg-2);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--hair);
}
.tx-row {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 16px; padding: 14px 0;
  border-bottom: 1px dashed var(--hair);
  font-size: 13.5px;
}
.tx-row:last-child { border-bottom: 0; }
.tx-row .k { font-family: var(--font-mono); color: var(--muted); letter-spacing: 0.06em; }
.tx-row .v { color: var(--ink); word-break: break-all; }
.tx-row .v.hash { font-family: var(--font-mono); color: var(--gold); }
.tx-row .v .ok {
  display: inline-flex; align-items: center; gap: 6px;
  color: #2A6A3A;
}
html[data-theme="dark"] .tx-row .v .ok { color: #6BBA80; }
.tx-row .v .ok::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

.tx-foot {
  margin-top: 18px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em;
}
.tx-foot a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--hair-strong);
  padding-bottom: 2px;
}
.tx-foot a:hover { color: var(--gold); border-color: var(--gold); }

/* ===================================================================
   6. COMPARISON TABLE
   =================================================================== */
.compare { padding: var(--section-pad) 0; }
.compare .section-head { margin-bottom: 72px; }
.compare .section-head h2 { margin: 0 0 24px; max-width: 14ch; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 15px;
}
.compare-table thead th {
  text-align: left;
  font-weight: 400;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--hair-strong);
  vertical-align: bottom;
}
.compare-table th.col-trad {
  color: var(--muted);
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.01em;
}
.compare-table th.col-rx {
  color: var(--ink);
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.01em;
  position: relative;
}
.compare-table th.col-rx em { color: var(--gold); font-style: normal; }
.compare-table th.col-rx::after {
  content: ""; position: absolute;
  bottom: -1px; left: 24px; right: 24px;
  height: 2px; background: var(--ink);
}
.compare-table th.col-dim {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500;
}
.compare-table tbody td {
  padding: 22px 24px;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody td.dim {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase;
  width: 28%;
}
.compare-table tbody td.trad {
  color: var(--muted); width: 36%;
}
.compare-table tbody td.rx {
  color: var(--ink); width: 36%;
  font-weight: 500;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
}
.compare-table tbody td.rx em { color: var(--gold); font-style: normal; font-weight: 500; }
.compare-table tbody tr:hover td { background: var(--bg-2); }

/* ===================================================================
   7. FINAL CTA
   =================================================================== */
.cta-final {
  padding: clamp(140px, 22vh, 240px) 0;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.cta-final .display { margin: 0 auto 24px; max-width: 16ch; }
.cta-final .wordmark {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 48px;
}
.cta-final .cta-row { margin-top: 0; }
.cta-final::before {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 1px; background: var(--hair);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  padding: 72px 0 48px;
  border-top: 1px solid var(--hair);
  background: var(--bg);
}
.site-footer .top {
  display: grid;
  /* BLOG: change back to '2fr 1fr 1fr 1fr' when the Resources column is restored */
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.site-footer .col h4 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  margin: 0 0 16px;
}
.site-footer .col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .col a { font-size: 14px; color: var(--ink-2); transition: color .25s var(--ease-out); }
.site-footer .col a:hover { color: var(--gold); }
.site-footer .col p { font-size: 13.5px; color: var(--muted); max-width: 36ch; }

/* Footer brand should match header brand size — override the .col a font-size shrink */
.site-footer .col a.brand { font-size: 24px; color: var(--ink); }
.site-footer .col a.brand:hover { color: var(--ink); }
.site-footer .col a.brand:hover .brand-word em { color: var(--gold); }
.site-footer .bottom {
  border-top: 1px solid var(--hair);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted-2); letter-spacing: 0.12em; text-transform: uppercase;
  flex-wrap: wrap; gap: 16px;
}

/* ===================================================================
   MOBILE APP DOWNLOAD MODAL
   =================================================================== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: color-mix(in oklab, var(--ink) 50%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .35s var(--ease-out), visibility 0s linear 0s;
}
.modal {
  width: 100%;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  transform: translateY(16px) scale(.98);
  opacity: 0;
  transition: transform .45s var(--ease-spring), opacity .35s var(--ease-out);
}
.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.modal-close:hover { background: var(--hair-2); color: var(--ink); }

.modal-head { text-align: center; margin-bottom: 36px; }
.modal-head h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 12px;
}
.modal-head p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  max-width: 44ch;
  margin: 0 auto;
}

.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dl-grid .full { grid-column: 1 / -1; }
.dl-card {
  background: var(--bg-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.dl-card:hover { border-color: var(--hair-strong); }
.dl-card .dl-head {
  display: flex; align-items: center; gap: 12px;
}
.dl-card .dl-logo {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  flex: 0 0 32px;
}
.dl-card .dl-meta { display: flex; flex-direction: column; line-height: 1.2; }
.dl-card .dl-meta .small {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.dl-card .dl-meta .big {
  font-family: var(--font-display); font-weight: 300; font-size: 22px;
  letter-spacing: -0.01em; margin-top: 2px;
}
.dl-card .qr {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border-radius: var(--r-sm);
  padding: 12px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border: 1px solid var(--hair);
}
.dl-card .qr svg { width: 100%; height: 100%; }
.dl-card .qr-caption {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  text-align: center;
}
.dl-card.apk {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.dl-card.apk .dl-head { flex: 1; }
.dl-card.apk .arrow {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
  color: var(--ink);
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .35s var(--ease-spring);
}
.dl-card.apk:hover .arrow {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .dl-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 960px) {
  :root { --section-pad: var(--section-pad-sm); }
  .nav-center { display: none; }
  .smartlock .grid, .robin .grid, .custody .grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .robin .grid > .visual { order: -1; }
  .custody .grid > .visual { order: -1; }
  .site-footer .top { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .compare-table tbody td.dim { width: auto; }
  .compare-table { font-size: 14px; }
  .compare-table tbody td { padding: 16px 14px; }
  .compare-table thead th { padding: 18px 14px 14px; }
  .hero { padding-top: clamp(80px, 14vh, 140px); }
  .smartlock .copy h2,
  .robin .copy h2,
  .custody .copy h2 { margin-bottom: 32px; }
  .compare .section-head { margin-bottom: 48px; }
}
@media (max-width: 640px) {
  .lang-btn span.lbl { display: none; }
  .site-footer .top { grid-template-columns: 1fr; gap: 40px; }
  .compare-wrap { overflow-x: auto; }
  .compare-table { min-width: 640px; }
  .hero .cta-row,
  .cta-final .cta-row { flex-direction: column; width: 100%; }
  .hero .cta-row .btn,
  .cta-final .cta-row .btn { width: 100%; justify-content: center; }
  .invest .rot-line { line-height: 1.15; }
}

/* Chinese / Japanese / Korean — slightly more line-height for breathing */
html[lang="zh"], html[lang="ja"], html[lang="ko"] {
  --line-cjk: 1.7;
}
html[lang="zh"] .lead,
html[lang="ja"] .lead,
html[lang="ko"] .lead { line-height: 1.65; }
html[lang="zh"] .display,
html[lang="ja"] .display,
html[lang="ko"] .display { line-height: 1.12; letter-spacing: -0.015em; }
html[lang="zh"] .smartlock .copy p,
html[lang="zh"] .robin .copy p,
html[lang="zh"] .custody .copy p { line-height: 1.75; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-orbit { opacity: 1; transform: none; }
  .hero-orbit .ring,
  .hero-orbit .spin,
  .hero-orbit .orbit-glow { animation: none !important; }
}
