/* ==========================================================================
   Finverse — design tokens
   ========================================================================== */

:root {
  --ink-900: #0c0b0a;
  --wrap: 1240px;
  --wrap-pad: 32px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --nav-h: 72px;

  --font-sans: 'Outfit', 'PingFang SC', 'HarmonyOS Sans SC', 'Noto Sans SC',
               'Microsoft YaHei', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html[data-theme='dark'] {
  --bg: #0c0b0a;
  --bg-2: #16120d;
  --panel: rgba(255, 246, 226, .035);
  --panel-2: rgba(255, 246, 226, .062);
  --line: rgba(245, 232, 205, .12);
  --line-strong: rgba(245, 232, 205, .22);
  --text: #f5f1e8;
  --text-dim: #a9a091;
  --text-faint: #786f61;
  --brand: #f4b942;
  --brand-2: #7ad3ff;
  --brand-3: #e08b3a;
  --brand-soft: rgba(244, 185, 66, .14);
  --accent: #7ad3ff;
  --on-brand: #1a1206;
  --up: #ff5b4c;
  --down: #2fbd8b;
  --danger: #ff6b6b;
  --shadow: 0 30px 80px rgba(0, 0, 0, .55);
  --nav-bg: rgba(12, 11, 10, .58);
  --grain-op: .055;
  --vig: rgba(0, 0, 0, .72);
  color-scheme: dark;
}

html[data-theme='light'] {
  --bg: #faf7f2;
  --bg-2: #f2ece2;
  --panel: rgba(60, 44, 20, .035);
  --panel-2: rgba(60, 44, 20, .06);
  --line: rgba(60, 44, 20, .12);
  --line-strong: rgba(60, 44, 20, .24);
  --text: #1c1710;
  --text-dim: #5f5648;
  --text-faint: #8b8171;
  --brand: #8a5f0a;
  --brand-2: #1d6fa5;
  --brand-3: #b5641a;
  --brand-soft: rgba(138, 95, 10, .12);
  --accent: #1d6fa5;
  --on-brand: #fffdf7;
  --up: #c0392b;
  --down: #0e7a54;
  --danger: #c0392b;
  --shadow: 0 24px 60px rgba(60, 44, 20, .14);
  --nav-bg: rgba(250, 247, 242, .72);
  --grain-op: .035;
  --vig: rgba(255, 255, 255, .6);
  color-scheme: light;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: 0; }
p { margin: 0; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol, dl, dd, dt { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand); color: var(--on-brand); }

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

/* ==========================================================================
   Canvas stage, vignette, grain
   ========================================================================== */

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(115% 80% at 50% 42%, transparent 38%, var(--vig) 100%);
  opacity: .9;
  transition: background .5s var(--ease);
}

.grain {
  position: fixed;
  inset: -60%;
  z-index: 4;
  pointer-events: none;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
  will-change: transform;
  transition: opacity .5s var(--ease);
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -2%); }
  80%  { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

main, .footer { position: relative; z-index: 2; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}

.scene {
  position: relative;
  padding: 132px 0;
}

.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--nav-h) + 40px); }
.intro, .markets { min-height: 100svh; display: flex; align-items: center; }
.intro .wrap, .markets .wrap { width: 100%; }
.cta-band { padding: 128px 0 140px; text-align: center; }

.kicker {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 20px;
}

.h2 { font-size: 3rem; font-weight: 600; text-wrap: balance; }
html[lang^='zh'] .h2 em { display: inline-block; }
.h2 em { font-style: normal; color: var(--brand); }

.body { color: var(--text-dim); font-size: 1.0625rem; line-height: 1.85; margin-top: 20px; }
.body.narrow { max-width: 62ch; }
.body + .body { margin-top: 14px; }

.sec-head { max-width: 62ch; margin-bottom: 72px; }
.sec-head .body { margin-top: 22px; }

.note {
  margin-top: 40px;
  font-size: .8125rem;
  color: var(--text-faint);
  max-width: 74ch;
}

/* Reveal on scroll — content is always visible (opacity stays 1) and only
   shifts a little when JS is active, so blocked/disabled JS can never blank
   the page. boot.js adds .js to <html> before first paint. */
.rise {
  opacity: 1;
  transform: none;
  transition: transform .85s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
html.js .rise { transform: translateY(18px); }
html.js .rise.in { transform: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-size: .9375rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); font-weight: 600; }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 84%, #ffffff); }

.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.btn-lg { min-height: 52px; padding: 0 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--line-strong); color: var(--brand); }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 30px; height: 30px; color: var(--brand); flex: none; }
.brand-mark .mark-dot { fill: var(--accent); }
.brand-name { font-size: 1.15rem; font-weight: 600; letter-spacing: .01em; }

.nav-links { display: flex; align-items: center; gap: 30px; margin-left: 12px; }
.nav-links a {
  position: relative;
  font-size: .9375rem;
  color: var(--text-dim);
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--brand);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-current::after { width: 100%; }
.nav-links a.is-current { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

#themeToggle .i-moon { display: none; }
html[data-theme='light'] #themeToggle .i-sun { display: none; }
html[data-theme='light'] #themeToggle .i-moon { display: block; }

.lang {
  position: relative;
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}
.lang button {
  position: relative;
  z-index: 1;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: .8125rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: color .3s var(--ease);
}
.lang button.is-active { color: var(--bg); font-weight: 600; }
.lang-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--brand);
  transition: transform .34s var(--ease), width .34s var(--ease);
}
/* thumb width/position is measured and applied from main.js */

.menu-btn { display: none; }

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--wrap-pad) 26px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.mobile-panel a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.mobile-panel .btn { margin-top: 18px; align-self: flex-start; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero-inner { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 30px;
}
.eyebrow-brand { color: var(--brand); }
.eyebrow .sep { opacity: .4; }

.hero h1 {
  font-size: 5.6rem;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.01em;
  display: flex;
  flex-direction: column;
  gap: .04em;
}
.hero h1 .l2 { color: var(--text-dim); }

.lede {
  margin-top: 30px;
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 34ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-viewport { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee-group { display: flex; align-items: center; }
.marquee-group li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 0 40px;
  white-space: nowrap;
}
.marquee-group b { font-size: 1rem; font-weight: 500; color: var(--text-dim); }
.marquee-group span { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; color: var(--text-faint); }

.marquee-group a { display: flex; align-items: baseline; gap: 9px; color: inherit; text-decoration: none; border-radius: 6px; }
.marquee-group a:hover b, .marquee-group a:focus-visible b { color: var(--brand); }
.marquee-group a:hover span, .marquee-group a:focus-visible span { color: var(--text-dim); }
.marquee-group a:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Split (intro)
   ========================================================================== */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.split-text { max-width: 48ch; }
.split .h2 { font-size: 2.55rem; }
.split-app { min-width: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.stats dt { font-size: .8125rem; color: var(--text-faint); }
.stats dd {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}

/* ==========================================================================
   Feature blocks
   ========================================================================== */

.feature {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature.rev .feature-text { order: 2; }
.feature.rev .feature-app { order: 1; }
.feature-text { max-width: 44ch; }

.idx {
  display: block;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  color: var(--brand);
  margin-bottom: 18px;
}
.feature h3 { font-size: 1.75rem; text-wrap: balance; }
.feature .body { margin-top: 16px; font-size: 1rem; }

.ticks { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: .9375rem;
  color: var(--text-dim);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .55em;
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--brand);
  border-bottom: 1.6px solid var(--brand);
  transform: rotate(-45deg);
}

/* ==========================================================================
   Framework grid
   ========================================================================== */

.framework {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fcard {
  background: var(--bg);
  padding: 30px 26px 34px;
  transition: background-color .35s var(--ease);
}
.fcard:hover { background: var(--bg-2); }
.fletter {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 20px;
}
.fcard h3 { font-size: 1rem; font-weight: 600; }
.fcard p { margin-top: 10px; font-size: .875rem; line-height: 1.7; color: var(--text-dim); }

/* ==========================================================================
   Markets
   ========================================================================== */

.market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.market-card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: border-color .35s var(--ease), transform .35s var(--ease), background-color .35s var(--ease);
}
.market-card:hover { border-color: var(--line-strong); background: var(--panel-2); transform: translateY(-3px); }
.mc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mc-head h3 { font-size: 1.5rem; }
.mc-tag {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  color: var(--brand);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 10px;
}
.market-card .body, .market-card > p { margin-top: 16px; font-size: .9375rem; line-height: 1.75; color: var(--text-dim); }
.mc-list { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.mc-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .875rem; color: var(--text-faint); }
.mc-list b { font-family: var(--font-mono); font-weight: 500; color: var(--text); }

/* ==========================================================================
   Values
   ========================================================================== */

.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.vcard { padding-top: 26px; border-top: 2px solid var(--brand); }
.vnum { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .16em; color: var(--text-faint); }
.vcard h3 { font-size: 1.375rem; margin-top: 30px; }
.vcard p { margin-top: 14px; font-size: .9375rem; line-height: 1.8; color: var(--text-dim); }

/* ==========================================================================
   CTA band + footer
   ========================================================================== */

.cta-inner { max-width: 780px; margin: 0 auto; }
.cta-inner .h2 { font-size: 3.4rem; }
.cta-inner .hero-cta { justify-content: center; }

.footer { padding-top: 92px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, .8fr);
  gap: 56px;
  padding-bottom: 72px;
}
.f-brand .brand { margin-bottom: 22px; }
.f-brand p { font-size: .9375rem; line-height: 1.8; color: var(--text-dim); max-width: 30ch; }

.f-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.f-cols h4, .f-contact h4 {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.f-cols div { display: flex; flex-direction: column; gap: 12px; }
.f-cols a { font-size: .9375rem; color: var(--text-dim); transition: color .25s var(--ease); }
.f-cols a:hover { color: var(--brand); }

.f-contact { display: flex; flex-direction: column; gap: 12px; }
.f-contact a { font-family: var(--font-mono); font-size: .875rem; color: var(--text-dim); transition: color .25s var(--ease); }
.f-contact a:hover { color: var(--brand); }
.f-hours { font-size: .8125rem; color: var(--text-faint); }

.wordmark {
  overflow: hidden;
  text-align: center;
  line-height: .78;
  padding: 0 12px;
  user-select: none;
}
.wordmark span {
  display: block;
  font-size: 15.5rem;
  font-weight: 600;
  letter-spacing: -.045em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  background: linear-gradient(180deg, var(--text) 0%, color-mix(in srgb, var(--text) 40%, transparent) 78%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .92;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding: 26px var(--wrap-pad) 34px;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--text-faint);
}
.footer-bottom .disclaimer { max-width: 60ch; }
.footer-legal {
  margin-top: 10px;
  font-size: .8125rem;
  color: var(--text-faint);
}
.footer-legal a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Modal
   ========================================================================== */

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 8, 7, .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s var(--ease); }
.modal-card {
  position: relative;
  width: min(460px, 100%);
  max-height: 90svh;
  overflow-y: auto;
  padding: 36px 34px 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
  animation: pop .34s var(--ease-out);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-x { position: absolute; top: 16px; right: 16px; }
.modal-card h3 { font-size: 1.5rem; }
.modal-sub { margin-top: 10px; font-size: .9375rem; line-height: 1.7; color: var(--text-dim); }

#trialFormEl { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: .8125rem; color: var(--text-faint); }
.field input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: .9375rem;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field input:focus { outline: none; border-color: var(--brand); background: var(--panel-2); }
.field-hint, .field-error { grid-column: 1 / -1; font-size: .8125rem; color: var(--text-faint); margin: 0; }
.field-error { color: var(--danger); }

/* Honeypot: off-canvas for people, irresistible for naive form bots. */
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Privacy / cross-border consent */
.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: .8125rem;
  line-height: 1.65;
  color: var(--text-dim);
  cursor: pointer;
}
.consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--brand);
}
.consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.consent.is-error { color: var(--danger); }
#trialFormEl .btn-block { grid-column: 1 / -1; margin-top: 6px; }


/* WeChat QR option inside the trial modal */
#trialFormEl > .wechat { grid-column: 1 / -1; }
.wechat { display: grid; gap: 14px; margin-top: 2px; }
.wechat[hidden] { display: none; }
.wechat-or { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--text-faint); font-size: .8125rem; }
.wechat-or::before, .wechat-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wechat-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.wechat-qr { display: block; flex: none; width: 116px; height: auto; border-radius: 8px; }
.wechat-copy { display: grid; gap: 6px; min-width: 0; }
.wechat-t { font-size: .9375rem; font-weight: 600; }
.wechat-p { font-size: .8125rem; line-height: 1.65; color: var(--text-dim); }
.wechat-inline { margin-top: 26px; justify-items: center; text-align: center; }
.wechat-inline .wechat-qr { width: 132px; }
.modal-done { text-align: center; padding: 12px 0 4px; }
.done-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand);
}
.done-mark svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.modal-done .btn { margin-top: 26px; }

/* ==========================================================================
   App mockups (product UI)
   ========================================================================== */

.app {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: .8125rem;
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.app-dots { display: flex; gap: 5px; flex: none; }
.app-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); display: block; }
.app-dots i:first-child { background: color-mix(in srgb, var(--down) 70%, transparent); }
.app-dots i:nth-child(2) { background: color-mix(in srgb, var(--accent) 70%, transparent); }
.app-dots i:last-child { background: color-mix(in srgb, var(--brand) 70%, transparent); }
.app-title { font-size: .75rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-chip {
  margin-left: auto;
  flex: none;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .1em;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--brand);
}
.app-body { padding: 18px 16px 20px; }
.app-dash .app-body { display: flex; flex-direction: column; gap: 14px; }
.dash-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; }

/* watchlist + signals */
.watch-row { grid-template-columns: minmax(0, 1fr) 52px auto; }
.watch-row .spark { width: 52px; height: 18px; }

.signal { display: flex; align-items: flex-start; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: .75rem; line-height: 1.55; color: var(--text-dim); }
.signal:last-child { border-bottom: 0; }
.signal .dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--brand); }
.signal .dot.accent { background: var(--accent); }

.dim { color: var(--text-faint); }

/* table headers */
.rank-head, .holding-head {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.rank-head .rank-hd-score, .rank-head .rank-hd-chg { text-align: right; }
.holding-head span:not(:first-child) { text-align: right; }

/* pattern panel */
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-head > .mono { font-size: .75rem; }
.kv-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.kv { display: flex; flex-direction: column; gap: 4px; }
.kv span { font-size: .6875rem; color: var(--text-faint); }
.kv b { font-family: var(--font-mono); font-size: .9375rem; font-weight: 500; color: var(--text); }

/* breadth + portfolio extras */
.breadth-legend { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; font-size: .6875rem; }
.app--breadth .panel { margin-top: 10px; }
.app--portfolio .donut-wrap { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
  color: var(--text-dim);
}
.panel-hd b { font-weight: 500; color: var(--text); }
.panel-bd { padding: 12px 14px 14px; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }

/* price rows */
.row-list { display: flex; flex-direction: column; }
.row-item {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
}
.row-item:last-child { border-bottom: 0; }
.rank-row { grid-template-columns: 24px minmax(0, 1fr) auto 46px; }
.rank-no { font-family: var(--font-mono); font-size: .6875rem; color: var(--text-faint); }
.rank-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rank-name b { font-weight: 500; font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-name span { font-family: var(--font-mono); font-size: .625rem; color: var(--text-faint); }
.score { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.score-bar { width: 54px; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.score-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.score b { font-family: var(--font-mono); font-size: .6875rem; color: var(--text-dim); font-weight: 500; }
.rank-chg { font-family: var(--font-mono); font-size: .75rem; text-align: right; }

/* charts */
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { fill: var(--text-faint); font-family: var(--font-mono); font-size: 9px; }
.chart .series { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .series-area { fill: url(#fvArea); }
.chart .candle-up { fill: var(--up); }
.chart .candle-down { fill: var(--down); }
.chart .vol-up { fill: color-mix(in srgb, var(--up) 45%, transparent); }
.chart .vol-down { fill: color-mix(in srgb, var(--down) 45%, transparent); }
.chart .annot { stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 3; fill: none; }
.chart .annot-box { fill: var(--accent); }
.chart .annot-text { fill: var(--bg); font-family: var(--font-mono); font-size: 9px; font-weight: 500; }
.chart .entry-line { stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 3 3; }
.chart .ma { fill: none; stroke: var(--brand-2); stroke-width: 1.4; opacity: .8; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .6875rem; color: var(--text-faint); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: block; }

/* portfolio */
.holding-row { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut { width: 108px; height: 108px; flex: none; }
.donut circle { fill: none; stroke-width: 11; }
.donut-legend { display: flex; flex-direction: column; gap: 7px; font-size: .6875rem; color: var(--text-dim); min-width: 0; }
.donut-legend div { display: flex; align-items: center; gap: 7px; }
.donut-legend i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.donut-legend b { margin-left: auto; font-family: var(--font-mono); font-weight: 500; color: var(--text); }

/* breadth */
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.tile span { display: block; font-size: .6875rem; color: var(--text-faint); }
.tile b { display: block; margin-top: 5px; font-family: var(--font-mono); font-size: .875rem; font-weight: 500; }
.tile i { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: .6875rem; font-style: normal; }

.breadth-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--line); }
.breadth-bar i { display: block; height: 100%; }
.heat { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.heat i { aspect-ratio: 1; border-radius: 3px; display: block; background: var(--brand); }

.gauge { display: flex; align-items: center; gap: 14px; }
.gauge svg { width: 116px; height: 62px; flex: none; }
.gauge-val { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; }
.gauge-label { font-size: .75rem; color: var(--text-faint); }

/* generic sparkline */
.spark { width: 52px; height: 18px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  :root { --wrap-pad: 26px; }
  .hero h1 { font-size: 4.4rem; }
  .wordmark span { font-size: 11.5rem; }
  .split { gap: 48px; }
  .feature { gap: 44px; }
  .feature h3 { font-size: 1.5rem; }
  .h2 { font-size: 2.5rem; }
  .cta-inner .h2 { font-size: 2.7rem; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-panel:not([hidden]) { display: flex; }

  .scene { padding: 100px 0; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero h1 { font-size: 3.4rem; }
  .lede { font-size: 1.125rem; }

  .split { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .split .h2 { font-size: 2.2rem; }
  .split-text { max-width: none; }
  .split-app { order: 2; }

  .feature { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 52px 0; }
  .feature.rev .feature-text { order: 1; }
  .feature.rev .feature-app { order: 2; }
  .feature-text { max-width: none; }

  .framework { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-grid { grid-template-columns: minmax(0, 1fr); }
  .value-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }

  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .wordmark span { font-size: 8.2rem; }
  .intro, .markets { min-height: 0; }
}

@media (max-width: 720px) {
  :root { --wrap-pad: 20px; --nav-h: 64px; }

  .scene { padding: 84px 0; }
  .hero h1 { font-size: 2.6rem; }
  .hero h1 .l2 { color: var(--text-dim); }
  .lede { font-size: 1rem; max-width: none; }
  .eyebrow { font-size: .6875rem; letter-spacing: .1em; }
  .h2 { font-size: 1.95rem; }
  .split .h2 { font-size: 1.85rem; }
  .cta-inner .h2 { font-size: 2rem; }
  .body { font-size: 1rem; line-height: 1.8; }
  .sec-head { margin-bottom: 48px; }

  .hero-cta { gap: 10px; }
  .btn-lg { min-height: 48px; padding: 0 22px; font-size: .9375rem; }

  .marquee-group li { padding: 0 24px; }
  .marquee-group b { font-size: .875rem; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; margin-top: 36px; }
  .stats dd { font-size: 1.25rem; }

  .framework { grid-template-columns: minmax(0, 1fr); border-radius: var(--radius); }
  .fcard { padding: 24px 22px 26px; }
  .fletter { font-size: 1.6rem; margin-bottom: 14px; }

  .feature h3 { font-size: 1.3rem; }
  .app { font-size: .75rem; }
  .dash-cols { grid-template-columns: minmax(0, 1fr); }
  .rank-row { grid-template-columns: 20px minmax(0, 1fr) auto 42px; gap: 8px; }
  .holding-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .holding-row > span:nth-child(2) { display: none; }
  .holding-head > span:nth-child(2) { display: none; }
  .chart-head { margin-bottom: 8px; }
  .app-body { padding: 14px 12px 16px; }
  .score-bar { width: 40px; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heat { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .f-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .wordmark { padding: 0 8px; }
  .wordmark span { font-size: 4.6rem; -webkit-text-stroke-width: .8px; }
  .footer { padding-top: 64px; }
  .footer-top { padding-bottom: 52px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .modal-card { padding: 30px 22px 26px; }
  #trialFormEl { grid-template-columns: minmax(0, 1fr); }
  .wechat-body { gap: 14px; padding: 12px 14px; }
  .wechat-qr { width: 104px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2.2rem; }
  .wordmark span { font-size: 3.9rem; }
  .brand-name { font-size: 1.05rem; }
  .lang button { padding: 6px 10px; font-size: .75rem; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js .rise { opacity: 1; transform: none; }
  .grain { animation: none; }
  .marquee-track { animation: none; }
}
