/* ============================================================
   WhaleLand Swap · Brand Site Styles
   Theme (Iter 9): Polished Black Glass + Multi-Color Palette + Splash + Big SVG Maps
   ============================================================ */

/* ============================================================
   0. SPLASH SCREEN (Iter 9) — first-visit only, 2.2s auto fade
   ============================================================ */
html.wl-splash-on { overflow: hidden; }
html.wl-splash-on body { overflow: hidden; }

.wl-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  cursor: pointer;
  overflow: hidden;
}
.wl-splash.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.wl-splash.is-fading {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease 0.55s;
}

/* Splash backgrounds */
.wl-splash-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(57,255,20,0.18) 0%, transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(55,214,255,0.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(167,139,250,0.08) 0%, transparent 50%);
  animation: wl-splash-bg-pulse 3s ease-in-out infinite;
}
@keyframes wl-splash-bg-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}
.wl-splash-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(57,255,20,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(57,255,20,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, transparent 75%);
}

/* Expanding radar rings */
.wl-splash-rings {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
}
.wl-splash-rings span {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(57,255,20,0.35);
  transform: translate(-50%, -50%);
  animation: wl-splash-ring 2.2s ease-out infinite;
}
.wl-splash-rings span:nth-child(2) { animation-delay: 0.6s; border-color: rgba(55,214,255,0.25); }
.wl-splash-rings span:nth-child(3) { animation-delay: 1.2s; border-color: rgba(167,139,250,0.18); }
@keyframes wl-splash-ring {
  0%   { width: 0; height: 0; opacity: 1; }
  100% { width: 900px; height: 900px; opacity: 0; }
}

/* Splash content */
.wl-splash-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  padding: 24px;
}

/* Big logo */
.wl-splash-logo {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 28px;
  animation: wl-splash-logo-in 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.wl-splash-logo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  box-shadow:
    0 0 0 1px rgba(57,255,20,0.4),
    0 0 40px rgba(57,255,20,0.5),
    0 0 80px rgba(57,255,20,0.35),
    0 24px 60px -10px rgba(0,0,0,0.8);
  animation: wl-splash-logo-pulse 1.8s ease-in-out infinite;
}
.wl-splash-logo-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57,255,20,0.4) 0%, transparent 60%);
  filter: blur(20px);
  animation: wl-splash-logo-glow 2.2s ease-in-out infinite;
}
@keyframes wl-splash-logo-in {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes wl-splash-logo-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
@keyframes wl-splash-logo-glow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.9;  transform: scale(1.15); }
}

/* Brand name with sweep light */
.wl-splash-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  animation: wl-splash-fade-up 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.wl-splash-brand-en {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background:
    linear-gradient(
      90deg,
      #39FF14 0%,
      #39FF14 35%,
      #FFFFFF 50%,
      #39FF14 65%,
      #39FF14 100%
    );
  background-size: 200% 100%;
  background-position: -100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wl-splash-shine 2.6s ease-in-out infinite;
}
.wl-splash-brand-cn {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}
@keyframes wl-splash-shine {
  0%   { background-position: -100% 0; }
  60%  { background-position:  100% 0; }
  100% { background-position:  100% 0; }
}
@keyframes wl-splash-fade-up {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
.wl-splash-bar {
  width: 220px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-bottom: 14px;
  animation: wl-splash-fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}
.wl-splash-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #39FF14 0%, #37D6FF 100%);
  box-shadow: 0 0 12px rgba(57,255,20,0.6);
  animation: wl-splash-bar-fill 1.9s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards;
}
@keyframes wl-splash-bar-fill {
  0%   { width: 0%; }
  100% { width: 100%; }
}

.wl-splash-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  animation: wl-splash-fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}
.wl-splash-meta-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #39FF14;
  box-shadow: 0 0 8px #39FF14;
  animation: wl-splash-meta-blink 0.9s ease-in-out infinite;
}
@keyframes wl-splash-meta-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* Splash mobile */
@media (max-width: 640px) {
  .wl-splash-logo { width: 120px; height: 120px; margin-bottom: 24px; }
  .wl-splash-brand-en { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .wl-splash-brand-cn { font-size: 12.5px; }
  .wl-splash-bar { width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .wl-splash-logo,
  .wl-splash-logo img,
  .wl-splash-logo-glow,
  .wl-splash-brand,
  .wl-splash-brand-en,
  .wl-splash-bar,
  .wl-splash-meta,
  .wl-splash-rings span,
  .wl-splash-bg { animation: none !important; }
  .wl-splash-bar-fill { width: 100% !important; }
}


/* ---------- 1. Design Tokens ---------- */
:root {
  /* === BRAND (Iter 10.5) — neon acid green #39FF14 (yellow-leaning, high luminosity) === */
  --brand-green:        #39FF14;          /* Logo, primary CTA, key number suffix */
  --brand-green-bright: #7DFF5C;          /* Hover / glow peak */
  --brand-green-dim:    #2BDD0F;          /* Pressed / darker accent */
  --brand-green-soft:   rgba(57, 255, 20, 0.12);
  --brand-green-glow:   rgba(57, 255, 20, 0.45);

  /* === MULTI-COLOR SEMANTIC PALETTE (Iter 6) — by meaning, not by mood === */
  --c-green-light:   #7AE582;             /* Live / success / 浅绿 */
  --c-cyan:          #37D6FF;             /* Info / link / data */
  --c-blue:          #5B8FFF;             /* Tech / architecture */
  --c-violet:        #A78BFA;             /* Beta / AI / experimental */
  --c-yellow:        #FFD23F;             /* Reward / highlight / 暖黄 */
  --c-orange:        #FF9F45;             /* Process / warning / 流程 */
  --c-red:           #FF5C5C;             /* Danger / error / 对比 */
  --c-pink:          #FF6CC0;             /* Accent / partnership */

  /* Soft tints for backgrounds (12% opacity) */
  --c-green-light-soft: rgba(122, 229, 130, 0.12);
  --c-cyan-soft:        rgba(55, 214, 255, 0.12);
  --c-blue-soft:        rgba(91, 143, 255, 0.12);
  --c-violet-soft:      rgba(167, 139, 250, 0.12);
  --c-yellow-soft:      rgba(255, 210, 63, 0.12);
  --c-orange-soft:      rgba(255, 159, 69, 0.12);
  --c-red-soft:         rgba(255, 92, 92, 0.12);
  --c-pink-soft:        rgba(255, 108, 192, 0.12);

  /* Glow shadows (for hover & emphasis) */
  --c-cyan-glow:    rgba(55, 214, 255, 0.40);
  --c-blue-glow:    rgba(91, 143, 255, 0.40);
  --c-violet-glow:  rgba(167, 139, 250, 0.40);
  --c-orange-glow:  rgba(255, 159, 69, 0.40);
  --c-red-glow:     rgba(255, 92, 92, 0.40);

  /* Legacy aliases (keep old class names working) */
  --accent-yellow:  var(--c-yellow);
  --accent-cyan:    var(--c-cyan);
  --accent-amber:   var(--c-orange);
  --accent-violet:  var(--c-violet);

  /* === PURE BLACK BASE (Iter 7) — no green tint === */
  --bg-base:    #000000;                  /* pure black */
  --bg-elev-1:  #0A0A0E;                  /* card base */
  --bg-elev-2:  #111116;                  /* hover / active */
  --bg-elev-3:  #18181F;                  /* strong container */

  /* === GLASS LAYERS (Iter 6) — middle-glass spec === */
  --glass-bg:        linear-gradient(135deg, rgba(255, 255, 255, 0.060) 0%, rgba(255, 255, 255, 0.015) 100%);
  --glass-bg-hover:  linear-gradient(135deg, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.025) 100%);
  --glass-border:    rgba(255, 255, 255, 0.10);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  --glass-inset-top: inset 0 1px 0 rgba(255, 255, 255, 0.10);   /* top highlight edge */
  --glass-inset-bottom: inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  --glass-shadow:    0 20px 60px -22px rgba(0, 0, 0, 0.85), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --glass-shadow-hover: 0 28px 80px -22px rgba(0, 0, 0, 0.95), 0 12px 32px -12px rgba(0, 0, 0, 0.7);

  /* Legacy card aliases */
  --bg-card: var(--glass-bg);
  --bg-card-hover: var(--glass-bg-hover);

  /* Text — neutral cool whites */
  --text-primary:   #F2F4F8;
  --text-secondary: #B0B6C3;
  --text-tertiary:  #7B8194;
  --text-muted:     #555A6B;

  /* Borders — neutral whites */
  --border-subtle:  rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong:  rgba(255, 255, 255, 0.18);
  --border-card:    rgba(255, 255, 255, 0.08);
  --border-green:   rgba(57,255,20, 0.30);

  /* Status — bound to new palette */
  --status-live:    var(--c-green-light);
  --status-beta:    var(--c-violet);
  --status-roadmap: #6B7280;
  --status-warning: var(--c-orange);
  --status-danger:  var(--c-red);
  --status-info:    var(--c-cyan);

  /* Typography */
  --font-sans: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Layout widths */
  --container-w: 1520px;
  --container-wide-w: 1760px;
  --gutter: clamp(20px, 3vw, 56px);

  /* Shadows */
  --shadow-glow: 0 0 40px -10px rgba(57,255,20, 0.32);
  --shadow-card: var(--glass-shadow);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* Iter 10.23 — Mobile horizontal-scroll fix WITHOUT breaking sticky header.
   IMPORTANT: putting `overflow-x: clip|hidden` on <html> or <body> creates
   a new sticky containing-block boundary on some browsers (notably iOS
   Safari), which silently breaks `position: sticky` for the top site
   header. So we MUST keep both <html> and <body> at `overflow: visible`.
   To still prevent horizontal scroll caused by stray overflowing children
   we instead:
     1) Fix the actual overflow at the source (see Iter 10.22 header-actions).
     2) Lock the body to `width: 100%; max-width: 100vw` so the layout
        cannot grow wider than the viewport.
     3) Apply `overflow-x: clip` to <main> (.page-main) so any future
        widget that overflows still gets clipped at the content level —
        without touching the sticky containing block (which is the
        viewport / html). */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* No overflow rule — sticky needs <html> to remain the scrolling viewport. */
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Width guard so children with negative margins / large widths still
     can't push the page wider than the viewport. NO overflow-x here —
     it would break sticky on iOS Safari. */
  max-width: 100vw;
  width: 100%;
}

/* Wrapper around <main> — clips horizontal overflow without touching the
   sticky containing block. Applied to the <main> element directly so we
   don't have to add a new wrapper to the JSX tree. */
main {
  overflow-x: clip;            /* Safari 16+ / Chrome 90+ */
  max-width: 100vw;
  width: 100%;
}
@supports not (overflow-x: clip) {
  main { overflow-x: hidden; }
}

/* === Polished Black Glass Background (Iter 6) === */
/* Layer 1: clean near-black base + corner ambient glows (no grain) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    /* Top-left: cool cyan whisper */
    radial-gradient(ellipse 55% 40% at 8% 0%, rgba(55, 214, 255, 0.06) 0%, transparent 55%),
    /* Top-right: violet whisper */
    radial-gradient(ellipse 45% 35% at 95% 8%, rgba(167, 139, 250, 0.05) 0%, transparent 55%),
    /* Bottom-right: cool blue whisper (no green/no orange) */
    radial-gradient(ellipse 40% 45% at 100% 90%, rgba(91, 143, 255, 0.04) 0%, transparent 60%),
    /* Base */
    var(--bg-base);
  z-index: -2;
  pointer-events: none;
}

/* Layer 2: ultra-subtle grid lines (depth cue, no noise) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(to right,  rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 0%, transparent 75%);
}

/* === Hero Aurora — slow drifting color blobs (Iter 6 dynamic ②) === */
.aurora-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.42;
  will-change: transform;
}
.aurora-blob.blob-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--c-cyan) 0%, transparent 65%);
  top: -120px; left: -80px;
  opacity: 0.32;
  animation: aurora-drift-1 22s ease-in-out infinite;
}
.aurora-blob.blob-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--c-violet) 0%, transparent 65%);
  top: 60px; right: -120px;
  opacity: 0.28;
  animation: aurora-drift-2 28s ease-in-out infinite;
}
.aurora-blob.blob-3 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--c-blue) 0%, transparent 65%);
  bottom: -180px; left: 32%;
  opacity: 0.24;
  animation: aurora-drift-3 32s ease-in-out infinite;
}
@keyframes aurora-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(60px, 80px) scale(1.1); }
}
@keyframes aurora-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-80px, 60px) scale(0.95); }
}
@keyframes aurora-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -50px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none; }
}

/* (legacy class — kept as no-op for safety) */
.grain-layer { display: none; }

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover { color: var(--c-cyan); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 0.6em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--text-secondary); }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

::selection { background: var(--brand-green); color: #000; }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}
.container-wide {
  width: 100%;
  max-width: var(--container-wide-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}
/* Full-bleed: break out to viewport edges, no max-width */
.section-fullbleed {
  width: 100%;
  padding-inline: clamp(20px, 3vw, 56px);
  position: relative;
  z-index: 1;
}

main { position: relative; z-index: 1; }

section { padding: clamp(60px, 8vw, 110px) 0; position: relative; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  margin-bottom: 18px;
  font-family: var(--font-mono);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Per-section eyebrow color via data-attr or section id (set inline below) */
.section-eyebrow[data-tone="cyan"]   { color: var(--c-cyan);        background: var(--c-cyan-soft);   border-color: rgba(55, 214, 255, 0.30); }
.section-eyebrow[data-tone="violet"] { color: var(--c-violet);      background: var(--c-violet-soft); border-color: rgba(167, 139, 250, 0.30); }
.section-eyebrow[data-tone="orange"] { color: var(--c-orange);      background: var(--c-orange-soft); border-color: rgba(255, 159, 69, 0.30); }
.section-eyebrow[data-tone="red"]    { color: var(--c-red);         background: var(--c-red-soft);    border-color: rgba(255, 92, 92, 0.30); }
.section-eyebrow[data-tone="yellow"] { color: var(--c-yellow);      background: var(--c-yellow-soft); border-color: rgba(255, 210, 63, 0.30); }
.section-eyebrow[data-tone="blue"]   { color: var(--c-blue);        background: var(--c-blue-soft);   border-color: rgba(91, 143, 255, 0.30); }
.section-eyebrow[data-tone="green"]  { color: var(--brand-green);   background: var(--brand-green-soft);   border-color: rgba(57,255,20, 0.30); }
.section-eyebrow[data-tone="green-light"] { color: var(--c-green-light); background: var(--c-green-light-soft); border-color: rgba(122, 229, 130, 0.30); }
.section-eyebrow[data-tone="pink"]   { color: var(--c-pink);        background: var(--c-pink-soft);   border-color: rgba(255, 108, 192, 0.30); }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 16px;
}
/* .accent default: white-ish (let context override) — no more all-green */
.section-title .accent,
.accent { color: var(--text-primary); }
/* Tone variants for .accent — section can apply via parent[data-tone] or .accent-{tone} */
.accent-green  { color: var(--brand-green) !important; }
.accent-cyan   { color: var(--c-cyan) !important; }
.accent-blue   { color: var(--c-blue) !important; }
.accent-violet { color: var(--c-violet) !important; }
.accent-yellow { color: var(--c-yellow) !important; }
.accent-orange { color: var(--c-orange) !important; }
.accent-red    { color: var(--c-red) !important; }
.accent-pink   { color: var(--c-pink) !important; }
.accent-light-green { color: var(--c-green-light) !important; }

/* Brand emphasis: enlarged + neon-green glow for inline brand words inside section titles
   e.g. <h2 class="section-title">为什么需要 <span class="accent accent-green accent-brand-xl">WhaleLand Swap</span></h2> */
.accent-brand-xl {
  font-family: var(--font-display, "Space Grotesk", Inter, system-ui, sans-serif);
  font-weight: 800;
  font-size: 1.35em;
  letter-spacing: 0.5px;
  line-height: 1.05;
  margin-left: 0.12em;
  text-shadow:
    0 0 18px rgba(57, 255, 20, 0.45),
    0 0 6px rgba(57, 255, 20, 0.35);
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 640px) {
  .accent-brand-xl { font-size: 1.2em; }
}
/* Light mode: tone down neon glow to keep readability */
:root[data-theme="light"] .accent-brand-xl {
  text-shadow:
    0 0 1px rgba(20, 140, 50, 0.25),
    0 1px 0 rgba(0, 0, 0, 0.04);
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-lg { padding: 16px 28px; font-size: 15.5px; }

.btn-primary {
  background: var(--brand-green);
  color: #06090A;
  border-color: var(--brand-green);
}
.btn-primary:hover {
  background: var(--brand-green-bright);
  color: #06090A;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -10px var(--brand-green-glow);
}

/* Iter 6: neutral glass ghost — no green tint on hover */
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-color: var(--border-default);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* Iter 6: outline button — neutral white-glass, not green */
.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border-default);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Iter 6: glass-light ghost — polished white glass for hero secondaries */
.btn-ghost-light {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--glass-inset-top);
}
.btn-ghost-light:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: var(--glass-inset-top), 0 12px 32px -14px rgba(0, 0, 0, 0.6);
}

/* Iter 6: small button — white text + glass, no green */
.btn-sm {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}
.btn-sm.btn-ghost { background: rgba(255, 255, 255, 0.03); }
.btn-sm.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); }

/* ---------- 5. Header (Iter 6 — black glass) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(5, 5, 7, 0.55);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled {
  background: rgba(5, 5, 7, 0.85);
  border-bottom-color: var(--border-default);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 10px 0;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--text-primary);
  text-decoration: none;
}

/* Brand logo wrap (with text variant) — Iter 7 responsive + Iter 9.1 framed */
.brand-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 14px;
  background:
    radial-gradient(120% 100% at 0% 50%, rgba(57,255,20, 0.12), transparent 60%),
    linear-gradient(135deg, rgba(20, 26, 22, 0.9), rgba(10, 14, 12, 0.92));
  border: 1px solid rgba(57,255,20, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(57,255,20, 0.04),
    0 8px 24px -10px rgba(57,255,20, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.brand-logo-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57,255,20, 0.7), transparent);
  pointer-events: none;
}
.brand:hover .brand-logo-wrap {
  border-color: rgba(57,255,20, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(57,255,20, 0.08),
    0 10px 28px -10px rgba(57,255,20, 0.4);
  transform: translateY(-1px);
}
.brand-logo-img {
  display: block;
  opacity: 0.98;
  transition: opacity 0.2s ease;
}
.brand:hover .brand-logo-img { opacity: 1; }

/* Default (PC): show tight horizontal logo, hide square.
   Iter 10.9: new tight logo already contains the wordmark, so the extra
   `.brand-logo-text-pc` would be redundant — hide it. */
.brand-logo-square { display: none; }
.brand-logo-tight  { display: block; }
.brand-logo-text-pc { display: none; }
.brand-logo-text {
  display: flex;
  align-items: center;
  line-height: 1;
}
.brand-logo-main {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.brand-logo-sub { display: none; }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 4px;
}
.primary-nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.18s ease;
}
.primary-nav a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.04); }
.primary-nav a.is-active {
  color: var(--c-cyan);
  background: var(--c-cyan-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--brand-green); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--brand-green); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 7, 7, 0.98);
}
.mobile-nav ul { list-style: none; padding: 14px 24px 22px; margin: 0; }
.mobile-nav li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav li a.is-active { color: var(--c-cyan); }
.mobile-nav .mobile-actions {
  display: flex;
  gap: 10px;
  padding-top: 16px;
}
.mobile-nav .mobile-actions .btn { flex: 1; justify-content: center; padding: 13px 16px; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
}
/* Iter 6: Hero static bg — minimal accent glows; aurora handled by .aurora-layer */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 18% 18%, rgba(57,255,20, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 88% 12%, rgba(55, 214, 255, 0.05) 0%, transparent 60%);
}
.hero-bg::before, .hero-bg::after { content: none; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
}
.hero-text { max-width: 880px; }


.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  font-family: var(--font-mono);
}
.hero-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 6px rgba(57,255,20, 0.6);
}

/* === HERO TITLE — 青绿 wordmark + warm yellow dot accent === */
.hero-title {
  display: flex;
  flex-direction: column;
  margin: 0 0 18px;
  line-height: 0.95;
}
.hero-title-en {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--brand-green);
  letter-spacing: -0.035em;
  line-height: 0.94;
  position: relative;
}
/* Iter 6: cyan → brand-green gradient underline + soft glow */
.hero-title-en::after {
  content: '';
  display: block;
  width: 88px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-cyan) 0%, var(--brand-green) 60%, var(--c-yellow) 100%);
  margin-top: 16px;
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(55, 214, 255, 0.45);
}
.hero-title-cn {
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 1.6vw, 1.25rem);
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 18px;
  letter-spacing: 0.02em;
}
.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.1vw, 0.86rem);
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 12px 0 26px;
}

.hero-sub {
  font-size: 1.02rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
}
.hero-sub strong {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 1.5px solid var(--brand-green);
  padding-bottom: 1px;
}
.hero-slogan {
  display: block;
  margin-top: 8px;
  color: var(--text-tertiary);
  font-size: 0.95em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
}
.trust-tag i { color: var(--c-green-light); font-size: 14px; }
/* Rotate accents across trust tags to break green monotony */
.hero-trust .trust-tag:nth-child(1) i { color: var(--brand-green); }
.hero-trust .trust-tag:nth-child(2) i { color: var(--c-yellow); }
.hero-trust .trust-tag:nth-child(3) i { color: var(--c-cyan); }
.hero-trust .trust-tag:nth-child(4) i { color: var(--c-violet); }
.hero-trust .trust-tag:nth-child(5) i { color: var(--c-orange); }
.hero-trust .trust-tag:nth-child(6) i { color: var(--c-pink); }

/* Legacy hero visual subclasses — hidden (replaced by new SVG-based .hero-visual stage) */
.hero-whale, .hero-orbit, .orbit-node { display: none !important; }

/* Supported chains chip row — official logo + neutral text, no green-overload */
.hero-chains {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 40px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-card);
}
.hero-chains-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  font-weight: 600;
}
.hero-chains-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chain-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 10px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.chain-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}
.chain-chip-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  flex-shrink: 0;
  object-fit: contain;
}
.chain-chip-name {
  letter-spacing: 0.01em;
  line-height: 1;
}
.chain-chip-more {
  color: var(--brand-green);
  border-color: var(--border-green);
  background: var(--brand-green-soft);
  font-family: var(--font-mono);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13.5px;
}
.chain-chip-more:hover {
  background: rgba(57,255,20, 0.15);
  border-color: rgba(57,255,20, 0.4);
  color: var(--brand-green-bright);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
  font-feature-settings: "tnum";
}
/* The suffix (+, %) keeps the brand-green accent so green is used sparingly */
.hero-stat .num [data-counter]::after { /* no-op safety */ }
.hero-stat .num .num-suffix {
  color: var(--brand-green);
  margin-left: 2px;
  font-weight: 700;
}
.hero-stat .label {
  font-size: 12.5px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------- 7. Generic Cards & Grids ---------- */
/* === Iter 6 Glass Card — polished black glass with inset highlight === */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.25s ease, box-shadow 0.3s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    var(--glass-inset-top),
    var(--glass-inset-bottom),
    var(--glass-shadow);
}
/* Top-edge specular highlight — mimics glass reflection */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
  opacity: 0.7;
}
.card:hover {
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
  transform: translateY(-4px);
  box-shadow:
    var(--glass-inset-top),
    var(--glass-inset-bottom),
    var(--glass-shadow-hover);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--border-default);
  position: relative;
  z-index: 1;
}
/* Iter 6: per-card icon tones — set via data-tone attribute */
.card-icon[data-tone="green"]  { background: var(--brand-green-soft);     color: var(--brand-green);  border-color: rgba(57,255,20, 0.30); }
.card-icon[data-tone="cyan"]   { background: var(--c-cyan-soft);          color: var(--c-cyan);       border-color: rgba(55, 214, 255, 0.30); }
.card-icon[data-tone="blue"]   { background: var(--c-blue-soft);          color: var(--c-blue);       border-color: rgba(91, 143, 255, 0.30); }
.card-icon[data-tone="violet"] { background: var(--c-violet-soft);        color: var(--c-violet);     border-color: rgba(167, 139, 250, 0.30); }
.card-icon[data-tone="yellow"] { background: var(--c-yellow-soft);        color: var(--c-yellow);     border-color: rgba(255, 210, 63, 0.30); }
.card-icon[data-tone="orange"] { background: var(--c-orange-soft);        color: var(--c-orange);     border-color: rgba(255, 159, 69, 0.30); }
.card-icon[data-tone="red"]    { background: var(--c-red-soft);           color: var(--c-red);        border-color: rgba(255, 92, 92, 0.30); }
.card-icon[data-tone="pink"]   { background: var(--c-pink-soft);          color: var(--c-pink);       border-color: rgba(255, 108, 192, 0.30); }
.card-icon[data-tone="light-green"] { background: var(--c-green-light-soft); color: var(--c-green-light); border-color: rgba(122, 229, 130, 0.30); }
.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 10px;
}
.card-body { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ---------- 8. Section: Why It Matters (Iter 6 multi-color) ---------- */
.why-card { text-align: left; }
/* Per-card unique tone (4 pain points = 4 different colors) */
.why-card:nth-child(1) .card-icon { background: var(--c-orange-soft); color: var(--c-orange); border-color: rgba(255, 159, 69, 0.30); }
.why-card:nth-child(2) .card-icon { background: var(--c-blue-soft);   color: var(--c-blue);   border-color: rgba(91, 143, 255, 0.30); }
.why-card:nth-child(3) .card-icon { background: var(--c-red-soft);    color: var(--c-red);    border-color: rgba(255, 92, 92, 0.30); }
.why-card:nth-child(4) .card-icon { background: var(--c-yellow-soft); color: var(--c-yellow); border-color: rgba(255, 210, 63, 0.30); }

/* ---------- 9. Core Capabilities (Iter 6 — each capability a unique color) ---------- */
.cap-card { padding: 32px; }
.cap-card .cap-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.cap-card .card-title { font-size: 1.2rem; margin-bottom: 14px; }
.cap-list { list-style: none; padding: 0; margin: 14px 0 0; }
.cap-list li {
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cap-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
  margin-top: 8px;
}
/* Per cap-card color via nth-child (Markets=green, Swap=cyan, Audit=light-green, AI=violet) */
.cap-card:nth-child(1) .cap-num,
.cap-card:nth-child(1) .cap-list li { color: var(--brand-green); }
.cap-card:nth-child(1) .cap-list li { color: var(--text-secondary); }
.cap-card:nth-child(1) .cap-list li::before { background: var(--brand-green); opacity: 1; }
.cap-card:nth-child(1) .card-icon { background: var(--brand-green-soft); color: var(--brand-green); border-color: rgba(57,255,20, 0.30); }

.cap-card:nth-child(2) .cap-num { color: var(--c-cyan); }
.cap-card:nth-child(2) .cap-list li::before { background: var(--c-cyan); opacity: 1; }
.cap-card:nth-child(2) .card-icon { background: var(--c-cyan-soft); color: var(--c-cyan); border-color: rgba(55, 214, 255, 0.30); }

.cap-card:nth-child(3) .cap-num { color: var(--c-green-light); }
.cap-card:nth-child(3) .cap-list li::before { background: var(--c-green-light); opacity: 1; }
.cap-card:nth-child(3) .card-icon { background: var(--c-green-light-soft); color: var(--c-green-light); border-color: rgba(122, 229, 130, 0.30); }

.cap-card:nth-child(4) .cap-num { color: var(--c-violet); }
.cap-card:nth-child(4) .cap-list li::before { background: var(--c-violet); opacity: 1; }
.cap-card:nth-child(4) .card-icon { background: var(--c-violet-soft); color: var(--c-violet); border-color: rgba(167, 139, 250, 0.30); }

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  background: rgba(55, 214, 255, 0.06);
  border: 1px solid rgba(55, 214, 255, 0.25);
  border-radius: 8px;
  font-size: 12px;
  color: var(--status-info);
  font-family: var(--font-mono);
}

/* ---------- 10. Supported Chains ---------- */
/* === Iter 5: Horizontal infinite marquee === */
.chain-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  /* Fade-out edges so logos seem to swim in/out of the ocean */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 120px,
    #000 calc(100% - 120px),
    transparent 100%
  );
          mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 120px,
    #000 calc(100% - 120px),
    transparent 100%
  );
}
.chain-marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
  will-change: transform;
}
.chain-marquee:hover .chain-marquee-track {
  animation-play-state: paused;
}
.chain-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--glass-inset-top), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
}
.chain-marquee-item:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-6px);
  box-shadow: var(--glass-inset-top), 0 16px 40px -12px rgba(0, 0, 0, 0.8);
}
.chain-marquee-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
  object-fit: contain;
  box-shadow: 0 4px 12px -2px rgba(0, 10, 30, 0.5);
}
.chain-marquee-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .chain-marquee-track { animation: none; }
}

/* Legacy grid styles \u2014 kept for fallback */
.chains-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.chain-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  transition: all 0.2s ease;
}
.chain-pill:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.chain-pill .chain-symbol {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #06090A;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.chain-pill .chain-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}
.chain-pill .chain-tag {
  margin-left: auto;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
}

/* Chain color swatches (solid, no gradients) */
.bg-bsc { background: #F0B90B; }
.bg-sol { background: #9945FF; color: #fff !important; }
.bg-base { background: #0052FF; color: #fff !important; }
.bg-eni { background: var(--brand-green); }
.bg-eth { background: #627EEA; color: #fff !important; }
.bg-poly { background: #8247E5; color: #fff !important; }
.bg-arb { background: #28A0F0; color: #fff !important; }
.bg-opbnb { background: #F3BA2F; }
.bg-avax { background: #E84142; color: #fff !important; }
.bg-tron { background: #EB0029; color: #fff !important; }

/* ---------- 11. Workflow Steps (Iter 6 — rainbow progression) ---------- */
.workflow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  position: relative;
}
.flow-step {
  position: relative;
  padding: 22px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--glass-inset-top), 0 6px 18px -8px rgba(0, 0, 0, 0.6);
}
.flow-step:hover {
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
  transform: translateY(-3px);
  box-shadow: var(--glass-inset-top), 0 12px 28px -8px rgba(0, 0, 0, 0.7);
}
.flow-step .flow-num {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-orange);
  color: #06090A;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}
.flow-step .flow-icon {
  font-size: 22px;
  color: var(--c-orange);
  margin: 6px 0 12px;
}
.flow-step h4 { font-size: 14px; margin: 0 0 4px; }
.flow-step p { font-size: 12px; color: var(--text-tertiary); margin: 0; }

/* Iter 6: Rainbow progression for 6 workflow steps */
.flow-step:nth-child(1) .flow-num,
.flow-step:nth-child(1) .flow-icon { color: var(--c-orange); }
.flow-step:nth-child(1) .flow-num { background: var(--c-orange); color: #06090A; }
.flow-step:nth-child(2) .flow-num,
.flow-step:nth-child(2) .flow-icon { color: var(--c-yellow); }
.flow-step:nth-child(2) .flow-num { background: var(--c-yellow); color: #06090A; }
.flow-step:nth-child(3) .flow-num,
.flow-step:nth-child(3) .flow-icon { color: var(--c-cyan); }
.flow-step:nth-child(3) .flow-num { background: var(--c-cyan); color: #06090A; }
.flow-step:nth-child(4) .flow-num,
.flow-step:nth-child(4) .flow-icon { color: var(--c-violet); }
.flow-step:nth-child(4) .flow-num { background: var(--c-violet); color: #06090A; }
.flow-step:nth-child(5) .flow-num,
.flow-step:nth-child(5) .flow-icon { color: var(--c-green-light); }
.flow-step:nth-child(5) .flow-num { background: var(--c-green-light); color: #06090A; }
.flow-step:nth-child(6) .flow-num,
.flow-step:nth-child(6) .flow-icon { color: var(--brand-green); }
.flow-step:nth-child(6) .flow-num { background: var(--brand-green); color: #06090A; }

.workflow-caption {
  text-align: center;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

/* ---------- 12. Architecture (Iter 6 — blue main + 5-layer color gradient) ---------- */
.arch-stack {
  display: grid;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.arch-layer {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  border-left: 3px solid var(--c-blue);
  transition: transform 0.25s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--glass-inset-top), 0 6px 18px -8px rgba(0, 0, 0, 0.5);
}
.arch-layer:hover {
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
  transform: translateX(4px);
}
.arch-layer-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-blue);
}
.arch-layer-title .cn { display: block; color: var(--text-primary); margin-top: 4px; font-size: 0.9em; }
.arch-layer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.arch-item {
  padding: 5px 11px;
  background: rgba(91, 143, 255, 0.08);
  border: 1px solid rgba(91, 143, 255, 0.20);
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-primary);
}
/* Per-layer color gradient (L1 cyan → L5 violet) */
.arch-layer:nth-child(1) { border-left-color: var(--c-cyan); }
.arch-layer:nth-child(1) .arch-layer-title { color: var(--c-cyan); }
.arch-layer:nth-child(2) { border-left-color: var(--c-orange); }
.arch-layer:nth-child(2) .arch-layer-title { color: var(--c-orange); }
.arch-layer:nth-child(3) { border-left-color: var(--c-blue); }
.arch-layer:nth-child(3) .arch-layer-title { color: var(--c-blue); }
.arch-layer:nth-child(4) { border-left-color: var(--brand-green); }
.arch-layer:nth-child(4) .arch-layer-title { color: var(--brand-green); }
.arch-layer:nth-child(5) { border-left-color: var(--c-violet); }
.arch-layer:nth-child(5) .arch-layer-title { color: var(--c-violet); }

/* ---------- 13. Speed Comparison (Iter 6 — red vs green semantic) ---------- */
.speed-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}
.speed-card { padding: 32px; }
.speed-card.is-traditional {
  border-left: 3px solid var(--c-red);
}
.speed-card.is-wl {
  border-left: 3px solid var(--brand-green);
}
.speed-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.speed-card.is-wl h3 { color: var(--brand-green); }
.speed-card.is-traditional h3 { color: var(--c-red); }
.speed-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-tertiary);
  padding: 0 12px;
}
.speed-metric {
  margin: 22px 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  text-align: center;
}
.speed-metric .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brand-green);
  line-height: 1;
}
.speed-card.is-traditional .speed-metric .num { color: var(--c-red); }
.speed-metric .unit { font-size: 14px; color: var(--text-tertiary); margin-top: 4px; }
.speed-list { list-style: none; padding: 0; margin: 0; }
.speed-list li {
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.speed-card.is-wl .speed-list li i { color: var(--brand-green); }
.speed-card.is-traditional .speed-list li i { color: var(--c-red); }

.speed-callout {
  margin-top: 36px;
  padding: 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-align: center;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--glass-inset-top), var(--glass-shadow);
}
.speed-callout .big {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  background: linear-gradient(90deg, var(--c-cyan), var(--brand-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 8px;
}

/* ---------- 14. Status Badges ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-live { background: rgba(22, 163, 74, 0.15); color: #4ADE80; border: 1px solid rgba(22, 163, 74, 0.3); }
.status-beta { background: rgba(139, 92, 246, 0.15); color: #A78BFA; border: 1px solid rgba(139, 92, 246, 0.3); }
.status-roadmap { background: rgba(100, 116, 139, 0.15); color: #94A3B8; border: 1px solid rgba(100, 116, 139, 0.3); }
.status-progress { background: rgba(55, 214, 255, 0.12); color: var(--status-info); border: 1px solid rgba(55, 214, 255, 0.3); }
.status-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- 15. Core Value Section (Iter 6 — 4 colors for 4 values) ---------- */
.value-card { text-align: center; padding: 32px 22px; }
.value-card .value-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-primary);
  margin: 0 auto 18px;
}
.value-card:nth-child(1) .value-icon { background: var(--brand-green-soft);     color: var(--brand-green);  border-color: rgba(57,255,20, 0.30); }
.value-card:nth-child(2) .value-icon { background: var(--c-cyan-soft);          color: var(--c-cyan);       border-color: rgba(55, 214, 255, 0.30); }
.value-card:nth-child(3) .value-icon { background: var(--c-violet-soft);        color: var(--c-violet);     border-color: rgba(167, 139, 250, 0.30); }
.value-card:nth-child(4) .value-icon { background: var(--c-yellow-soft);        color: var(--c-yellow);     border-color: rgba(255, 210, 63, 0.30); }

/* ---------- 16. Ecosystem (Iter 6 — violet primary, 5 color cards) ---------- */
.eco-card { display: flex; flex-direction: column; height: 100%; }
.eco-card .card-body { flex: 1; margin-bottom: 16px; }
.eco-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.eco-list li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
}
.eco-list li i { color: var(--c-violet); font-size: 11px; margin-top: 5px; }
/* Each ecosystem card gets its own color */
/* Iter 9.1: ecosystem cards — unify pink/red → emerald palette */
.eco-card:nth-child(1) .card-icon { background: var(--brand-green-soft);     color: var(--brand-green);     border-color: rgba(57,255,20, 0.30); }
.eco-card:nth-child(1) .eco-list li i { color: var(--brand-green); }
.eco-card:nth-child(2) .card-icon { background: var(--c-cyan-soft);          color: var(--c-cyan);          border-color: rgba(55, 214, 255, 0.30); }
.eco-card:nth-child(2) .eco-list li i { color: var(--c-cyan); }
.eco-card:nth-child(3) .card-icon { background: var(--c-green-light-soft);   color: var(--c-green-light);   border-color: rgba(122, 229, 130, 0.30); }
.eco-card:nth-child(3) .eco-list li i { color: var(--c-green-light); }

/* ---------- 17. Roadmap Timeline ---------- */
.roadmap-timeline {
  position: relative;
  padding: 20px 0;
}
.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-green), transparent);
  transform: translateX(-50%);
}
.roadmap-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 36px;
  position: relative;
}
.roadmap-content {
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
}
.roadmap-content h4 { margin: 8px 0; font-size: 1rem; }
.roadmap-content p { font-size: 13px; margin: 0; }
.roadmap-dot {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.roadmap-dot::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-green);
  border: 3px solid var(--bg-base);
  box-shadow: 0 0 0 2px var(--brand-green-glow);
}

/* ---------- 18. News list ---------- */
.news-list { display: grid; gap: 16px; }
.news-item {
  display: flex;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  border-radius: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.news-item:hover { border-color: var(--border-strong); background: var(--bg-card-hover); transform: translateX(4px); }
.news-date {
  flex-shrink: 0;
  width: 80px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--c-cyan);
}
.news-content h4 { margin: 0 0 6px; font-size: 1rem; }
.news-content p { color: var(--text-secondary); font-size: 13.5px; margin: 0; }
.news-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  background: var(--brand-green-soft);
  color: var(--brand-green);
  margin-right: 8px;
}

/* ---------- 19. CTA Banner (Iter 6 — black glass + perspective grid) ---------- */
.cta-banner {
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--glass-inset-top), var(--glass-shadow);
}
/* Animated perspective grid (Iter 6 dynamic ⑧) */
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(167, 139, 250, 0.12) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(to bottom, rgba(167, 139, 250, 0.12) 1px, transparent 1px) 0 0 / 60px 60px,
    radial-gradient(ellipse 70% 50% at 25% 30%, rgba(167, 139, 250, 0.20), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255, 159, 69, 0.12), transparent 60%);
  transform: perspective(700px) rotateX(55deg) translateY(40%) scale(2);
  transform-origin: center top;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
  animation: cta-grid-flow 12s linear infinite;
}
.cta-banner > * { position: relative; z-index: 1; }
@keyframes cta-grid-flow {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 0 60px, 0 60px, 0 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-banner::before { animation: none; }
}
.cta-banner h2 { margin-bottom: 12px; position: relative; }
.cta-banner p { color: var(--text-secondary); margin-bottom: 28px; position: relative; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- 20. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 11, 24, 0.55);
  padding: 70px 0 32px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 3fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 13.5px; max-width: 320px; }
.footer-tagline-cn { color: var(--text-secondary) !important; margin-top: 18px !important; }
.footer-tagline-en { color: var(--text-tertiary) !important; font-size: 12.5px !important; font-family: var(--font-display); }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.footer-social a:hover {
  background: var(--brand-green-soft);
  border-color: var(--border-strong);
  color: var(--brand-green);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.footer-col h4 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color 0.18s ease;
}
.footer-col a:hover { color: var(--brand-green); }
.ext-icon { font-size: 9px; margin-left: 4px; opacity: 0.6; }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-tertiary);
}
.footer-meta a { color: var(--brand-green); }
.footer-divider { opacity: 0.4; }
.footer-warning {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  align-items: flex-start;
}
.footer-warning i { color: var(--status-warning); margin-top: 2px; flex-shrink: 0; }
.footer-warning strong { color: var(--status-warning); margin-right: 4px; }

/* ---------- 21. Page Hero (sub-pages) ---------- */
.page-hero {
  padding: 80px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(57,255,20, 0.10) 0%, transparent 55%);
  filter: blur(40px);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- 22. Definition lists & content blocks ---------- */
.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
}
.content-block h3 { margin-top: 0; }
.content-block ul { padding-left: 20px; color: var(--text-secondary); }
.content-block li { margin-bottom: 8px; }
.content-block code {
  background: var(--bg-elev-3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--brand-green);
  font-size: 0.88em;
}

.kvs { display: grid; gap: 12px; }
.kv-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}
.kv-row:last-child { border-bottom: none; }
.kv-row .kv-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kv-row .kv-value { color: var(--text-primary); }

/* ---------- 23. Contact form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 12.5px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand-green);
  background: var(--bg-elev-3);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-status {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-top: 12px;
  display: none;
}
.form-status.is-success {
  display: block;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.3);
  color: #4ADE80;
}
.form-status.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

/* ---------- 24. Utility ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-tertiary); }
.mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; } .mb-4 { margin-bottom: 32px; }

.glow-text { text-shadow: 0 0 18px rgba(57,255,20, 0.5); }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
  margin: 40px 0;
}

/* ============================================================
   ---------- 25. RESPONSIVE (Mobile optimized) ----------
   ============================================================ */

/* Tablet & smaller desktop */
@media (max-width: 1080px) {
  .primary-nav { display: none; }
  /* Iter 10.22 — fix mobile horizontal overflow:
     The previous rule `.header-actions .btn-sm:not(.menu-toggle)` had higher
     specificity than `.header-actions .btn-ghost` and was un-hiding the
     "Developers" ghost button (which is both .btn-ghost AND .btn-sm).
     We now use :not(.btn-ghost):not(.menu-toggle) to keep ghost CTAs hidden. */
  .header-actions .btn-ghost { display: none !important; }
  .header-actions .btn-sm:not(.menu-toggle):not(.btn-ghost) { display: inline-flex; }
  .menu-toggle { display: flex; }
  .hero-inner { max-width: 100%; }
  .hero-title-en { font-size: clamp(2.8rem, 9vw, 4.6rem); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-columns { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet */
@media (max-width: 820px) {
  .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(3, 1fr); }
  .speed-grid { grid-template-columns: 1fr; }
  .speed-divider { padding: 12px 0; }
  .arch-layer { grid-template-columns: 1fr; gap: 12px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; padding-top: 32px; margin-top: 40px; }
  .roadmap-timeline::before { left: 12px; }
  .roadmap-item { grid-template-columns: 24px 1fr !important; }
  .roadmap-item .roadmap-content,
  .roadmap-item:nth-child(even) .roadmap-content { grid-column: 2 !important; }
  .roadmap-empty { display: none; }
  .roadmap-dot { grid-column: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .kv-row { grid-template-columns: 1fr; gap: 4px; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
}

/* === MOBILE PHONE === */
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 18px; }

  /* Header — Iter 7: square logo only, no text, more breathing room */
  .header-inner { min-height: 60px; padding: 8px 0; gap: 10px; }
  .brand-logo-tight { display: none !important; }
  .brand-logo-text-pc { display: none !important; }
  .brand-logo-square {
    display: block !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px;
  }
  .brand-logo-wrap { gap: 0; padding: 5px 7px; border-radius: 11px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-sm { padding: 8px 12px; font-size: 12.5px; }

  /* Hero — text-first, no whale visual */
  .hero { padding: 40px 0 44px; }
  .hero-badge {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 18px;
    letter-spacing: 0.08em;
  }
  .hero-title-en {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
    letter-spacing: -0.04em;
    line-height: 0.94;
  }
  .hero-title-cn {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
    margin-top: 12px;
  }
  .hero-tagline {
    font-size: 10.5px;
    margin: 10px 0 18px;
    letter-spacing: 0.12em;
  }
  .hero-sub {
    font-size: 14px;
    margin-bottom: 22px;
    line-height: 1.6;
  }
  .hero-actions {
    gap: 10px;
    margin-bottom: 22px;
  }
  .hero-actions .btn-lg {
    padding: 13px 18px;
    font-size: 14px;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 47%;
  }
  .hero-actions .btn-lg:first-child {
    flex: 1 1 100%;
  }
  .hero-trust .trust-tag {
    font-size: 12.5px;
    padding: 7px 12px;
    gap: 6px;
  }
  .hero-trust .trust-tag i { font-size: 12px; }
  .hero-chains {
    margin: 28px 0 22px;
    padding-top: 22px;
    gap: 12px;
  }
  .hero-chains-label { font-size: 11px; letter-spacing: 0.15em; }
  .chain-chip { padding: 6px 12px 6px 8px; font-size: 12.5px; gap: 7px; }
  .chain-chip-logo { width: 18px; height: 18px; }
  .chain-chip-more { font-size: 12px; padding: 6px 12px; }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 16px;
    margin-top: 32px;
    padding-top: 26px;
  }
  .hero-stat .num { font-size: 1.7rem; }
  .hero-stat .label { font-size: 11.5px; }

  /* Sections */
  section { padding: 50px 0; }
  .section-head { margin-bottom: 40px; }
  .section-title { font-size: 1.55rem; }
  .section-subtitle { font-size: 0.95rem; }
  .section-eyebrow { font-size: 11px; padding: 5px 11px; }

  /* Cards & grids */
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; gap: 14px; }
  .workflow { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card { padding: 22px; border-radius: 14px; }
  .cap-card { padding: 24px; }
  .content-block { padding: 24px; border-radius: 14px; }
  .card-icon { width: 40px; height: 40px; font-size: 16px; margin-bottom: 14px; }
  .card-title { font-size: 1.02rem; }

  /* Footer */
  .site-footer { padding: 50px 0 28px; margin-top: 50px; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .footer-col h4 { font-size: 11.5px; margin-bottom: 10px; }
  .footer-col a { font-size: 12.5px; }
  .footer-meta { font-size: 11.5px; }
  .footer-warning { font-size: 11.5px; padding: 12px 14px; }

  /* CTA */
  .cta-banner { padding: 32px 22px; }
  .cta-banner h2 { font-size: 1.4rem; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Page hero */
  .page-hero { padding: 50px 0 36px; }
  .page-hero h1 { font-size: 1.9rem; }
  .page-hero p { font-size: 0.96rem; }

  /* Speed callout */
  .speed-callout { padding: 22px 18px; }
  .speed-callout .big { font-size: 1.4rem; }

  /* News */
  .news-item { flex-direction: column; gap: 8px; padding: 18px; }
  .news-date { width: auto; }

  /* Architecture layer */
  .arch-layer { padding: 18px; }
  .arch-layer-title { font-size: 0.95rem; }
  .arch-item { font-size: 11px; padding: 4px 9px; }

  /* Buttons */
  .btn { padding: 10px 16px; font-size: 13px; }
  .btn-sm { padding: 8px 14px; font-size: 12.5px; }
  .btn-lg { padding: 13px 20px; font-size: 14px; }
}

/* Very small */
@media (max-width: 420px) {
  .workflow { grid-template-columns: 1fr; }
  .hero-actions .btn-lg { font-size: 13px; padding: 12px 16px; }
  .footer-columns { grid-template-columns: 1fr; }
  .brand-logo-square { width: 32px !important; height: 32px !important; border-radius: 8px; }
}

/* ============================================================
   Whale Showcase (Iter 7) — Large dynamic hero visual
   ============================================================ */
.whale-showcase {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  isolation: isolate;
}

.ws-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(57,255,20, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(57,255,20, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 0%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}
.ws-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 55%, rgba(57,255,20, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 22% 30%, rgba(55, 214, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 78% 70%, rgba(167, 139, 250, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.ws-inner {
  position: relative;
  text-align: center;
}
.ws-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-green);
  background: var(--brand-green-soft);
  border: 1px solid var(--border-green);
  margin-bottom: 20px;
}
.ws-eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 12px var(--brand-green-glow);
  animation: ws-pulse-dot 1.6s ease-in-out infinite;
}
@keyframes ws-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.7); }
}

.ws-title {
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.ws-title-accent {
  background: linear-gradient(90deg, #39FF14 0%, #7DFF5C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 2px;
}
.ws-title-accent-cyan {
  background: linear-gradient(90deg, #37D6FF 0%, #A78BFA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ws-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--text-secondary);
  margin: 0 0 48px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* Stage — the actual visual zone */
.ws-stage {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 1040 / 580;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Radar rings */
.ws-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(57,255,20, 0.25);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ws-ring-1 { width: 460px; height: 460px; animation: ws-ring-pulse 4s ease-out infinite; }
.ws-ring-2 { width: 660px; height: 660px; animation: ws-ring-pulse 4s ease-out infinite 1.3s; border-color: rgba(55, 214, 255, 0.20); }
.ws-ring-3 { width: 860px; height: 860px; animation: ws-ring-pulse 4s ease-out infinite 2.6s; border-color: rgba(167, 139, 250, 0.15); }
@keyframes ws-ring-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0; }
}

/* Rotating radar sweep */
.ws-sweep {
  position: absolute;
  top: 50%; left: 50%;
  width: 860px; height: 860px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 320deg,
    rgba(57,255,20, 0.18) 350deg,
    rgba(57,255,20, 0.45) 360deg
  );
  mask-image: radial-gradient(circle, transparent 28%, #000 30%, #000 100%);
  -webkit-mask-image: radial-gradient(circle, transparent 28%, #000 30%, #000 100%);
  animation: ws-sweep-rotate 6s linear infinite;
  pointer-events: none;
  opacity: 0.65;
}
@keyframes ws-sweep-rotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Orbiting chain dots */
.ws-orbit {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  pointer-events: none;
}
.ws-orbit-1 {
  width: 560px; height: 560px;
  margin: -280px 0 0 -280px;
  animation: ws-orbit-rot 24s linear infinite;
}
.ws-orbit-2 {
  width: 760px; height: 760px;
  margin: -380px 0 0 -380px;
  animation: ws-orbit-rot 36s linear infinite reverse;
}
@keyframes ws-orbit-rot { to { transform: rotate(360deg); } }

.ws-orbit-dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  top: 50%; left: 50%;
  margin: -7px 0 0 -7px;
  box-shadow: 0 0 14px currentColor, 0 0 32px currentColor;
}
.ws-orbit-1 .ws-orbit-dot:nth-child(1) { transform: rotate(0deg)   translate(280px) rotate(0deg); }
.ws-orbit-1 .ws-orbit-dot:nth-child(2) { transform: rotate(90deg)  translate(280px) rotate(-90deg); }
.ws-orbit-1 .ws-orbit-dot:nth-child(3) { transform: rotate(180deg) translate(280px) rotate(-180deg); }
.ws-orbit-1 .ws-orbit-dot:nth-child(4) { transform: rotate(270deg) translate(280px) rotate(-270deg); }
.ws-orbit-2 .ws-orbit-dot:nth-child(1) { transform: rotate(45deg)  translate(380px) rotate(-45deg); }
.ws-orbit-2 .ws-orbit-dot:nth-child(2) { transform: rotate(165deg) translate(380px) rotate(-165deg); }
.ws-orbit-2 .ws-orbit-dot:nth-child(3) { transform: rotate(285deg) translate(380px) rotate(-285deg); }

.ws-orbit-dot[data-c="cyan"]   { background: #37D6FF; color: #37D6FF; }
.ws-orbit-dot[data-c="violet"] { background: #A78BFA; color: #A78BFA; }
.ws-orbit-dot[data-c="yellow"] { background: #FFD23F; color: #FFD23F; }
.ws-orbit-dot[data-c="green"]  { background: #39FF14; color: #39FF14; }
.ws-orbit-dot[data-c="pink"]   { background: #FF6CC0; color: #FF6CC0; }
.ws-orbit-dot[data-c="blue"]   { background: #5B8FFF; color: #5B8FFF; }
.ws-orbit-dot[data-c="orange"] { background: #FF9F45; color: #FF9F45; }

/* Data particles */
.ws-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ws-particle {
  position: absolute;
  bottom: -20px;
  left: var(--x, 50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(57,255,20, 0.6);
  opacity: 0;
  animation: ws-particle-rise var(--s, 14s) linear infinite;
  animation-delay: var(--d, 0s);
}
.ws-particle:nth-child(3n)   { color: rgba(55, 214, 255, 0.6); font-size: 12px; }
.ws-particle:nth-child(4n)   { color: rgba(167, 139, 250, 0.55); font-size: 10px; }
.ws-particle:nth-child(5n)   { color: rgba(255, 210, 63, 0.55); }
@keyframes ws-particle-rise {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(-520px); opacity: 0; }
}

/* Whale SVG */
/* === Iter 9.2: Centered LARGE Speedometer (replaces globe+gauge split) === */
.ws-speedo {
  position: relative;
  width: 100%;
  max-width: 880px;
  height: auto;
  z-index: 2;
  filter:
    drop-shadow(0 0 40px rgba(57,255,20, 0.28))
    drop-shadow(0 0 90px rgba(55, 214, 255, 0.18));
  animation: ws-speedo-float 7s ease-in-out infinite;
}
@keyframes ws-speedo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Outer accent ring slow spin */
.sp-outer-ring {
  animation: sp-ring-spin 24s linear infinite;
}
@keyframes sp-ring-spin {
  to { transform: rotate(360deg); }
}

/* Hub center dot pulse */
.sp-hub-dot {
  transform-origin: 450px 320px;
  animation: sp-hub-pulse 2s ease-in-out infinite;
}
@keyframes sp-hub-pulse {
  0%, 100% { opacity: 1;    r: 6; }
  50%      { opacity: 0.55; r: 4; }
}

/* ============ NEEDLE WOBBLE ============
   The needle pivots at (450, 320) and points UP at angle 0 (which = 3ms tick).
   Angle mapping (semicircle, 180° spread from -90° to +90°):
     -90° = 0ms (far left, green tip)
     -67.5° = 0.5ms
     -45°   = 1ms
     -22.5° = 2ms
       0°   = 3ms (center top)
     +22.5° = 5ms
     +45°   = 10ms
     +67.5° = 30ms
     +90°   = 100ms (far right, red tip)
   We make the needle randomly wobble across 0.4–3.1ms (green→yellow zone),
   occasionally dipping toward 0.4 and once briefly to 3.0 to feel "alive".
   Keyframe values match the 6 readout numbers (sp-num-1..6) for sync.
============ */
.sp-needle {
  animation: sp-needle-dance 14s ease-in-out infinite;
}
@keyframes sp-needle-dance {
  0%   { transform: rotate(-70deg); }   /* 0.421ms — far green */
  16%  { transform: rotate(-70deg); }
  18%  { transform: rotate(-58deg); }   /* 0.872ms — green */
  33%  { transform: rotate(-58deg); }
  35%  { transform: rotate(-42deg); }   /* 1.247ms — green/yellow border */
  50%  { transform: rotate(-42deg); }
  52%  { transform: rotate(-18deg); }   /* 2.183ms — yellow */
  66%  { transform: rotate(-18deg); }
  68%  { transform: rotate(2deg); }     /* 3.054ms — yellow→orange */
  82%  { transform: rotate(2deg); }
  84%  { transform: rotate(-22deg); }   /* 1.933ms — center green/yellow */
  98%  { transform: rotate(-22deg); }
  100% { transform: rotate(-70deg); }   /* loop back to 0.421ms */
}

/* ============ DIGITAL READOUT — sync to needle ============
   All 6 <text> stacked at same position; only one visible at a time.
   Total cycle = 14s, matching needle. Each visible for ~14% of cycle.
   Slight crossfade for natural feel.
============ */
.sp-num {
  opacity: 0;
  animation: sp-num-flash 14s ease-in-out infinite;
}
.sp-num-1 { animation-delay:  0s;    }  /* 0.421 — at 0–16% */
.sp-num-2 { animation-delay:  2.5s;  }  /* 0.872 — at 18–33% */
.sp-num-3 { animation-delay:  4.9s;  }  /* 1.247 */
.sp-num-4 { animation-delay:  7.3s;  }  /* 2.183 */
.sp-num-5 { animation-delay:  9.5s;  }  /* 3.054 */
.sp-num-6 { animation-delay: 11.8s;  }  /* 1.933 */

@keyframes sp-num-flash {
  0%   { opacity: 0; }
  1%   { opacity: 1; }
  14%  { opacity: 1; }
  16%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Ticks subtle breath */
.sp-ticks {
  animation: sp-ticks-breath 4s ease-in-out infinite;
}
@keyframes sp-ticks-breath {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-needle { animation: none; transform: rotate(-22deg); }
  .sp-num    { animation: none; opacity: 0; }
  .sp-num-6  { opacity: 1; }
  .sp-outer-ring, .sp-hub-dot, .sp-ticks, .ws-speedo { animation: none; }
}

/* Floating data badges */
.ws-badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  min-width: 110px;
  z-index: 3;
  animation: ws-badge-float 5s ease-in-out infinite;
}
.ws-badge-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.ws-badge-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.ws-badge-value i {
  font-style: normal;
  font-size: 14px;
  margin-left: 1px;
}
.ws-badge-tl { top: 8%;  left: 2%;  animation-delay: 0s;   border-top:    1.5px solid rgba(57,255,20, 0.45); }
.ws-badge-tl .ws-badge-value i { color: var(--brand-green); }
.ws-badge-tr { top: 12%; right: 2%; animation-delay: 1.2s; border-top:    1.5px solid rgba(55, 214, 255, 0.45); }
.ws-badge-tr .ws-badge-value i { color: var(--c-cyan); }
.ws-badge-bl { bottom: 8%;  left: 4%;  animation-delay: 2.4s; border-top: 1.5px solid rgba(167, 139, 250, 0.45); }
.ws-badge-bl .ws-badge-value i { color: var(--c-violet); }
.ws-badge-br { bottom: 12%; right: 4%; animation-delay: 3.6s; border-top: 1.5px solid rgba(255, 210, 63, 0.45); }
.ws-badge-br .ws-badge-value i { color: var(--c-yellow); }
@keyframes ws-badge-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Bottom capability pills */
.ws-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
}
.ws-foot-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}
.ws-foot-pill i { font-size: 11px; }
.ws-foot-pill:nth-child(1) i { color: var(--brand-green); }
.ws-foot-pill:nth-child(2) i { color: var(--c-cyan); }
.ws-foot-pill:nth-child(3) i { color: var(--c-yellow); }
.ws-foot-pill:nth-child(4) i { color: var(--c-violet); }

/* Whale showcase responsive */
@media (max-width: 820px) {
  .whale-showcase { padding: 56px 0 64px; }
  .ws-stage { aspect-ratio: 1 / 1; max-width: 540px; }
  .ws-ring-1 { width: 260px; height: 260px; }
  .ws-ring-2 { width: 380px; height: 380px; }
  .ws-ring-3 { width: 500px; height: 500px; }
  .ws-sweep  { width: 500px; height: 500px; }
  .ws-orbit-1 { width: 320px; height: 320px; margin: -160px 0 0 -160px; }
  .ws-orbit-2 { width: 440px; height: 440px; margin: -220px 0 0 -220px; }
  .ws-orbit-1 .ws-orbit-dot:nth-child(1) { transform: rotate(0deg)   translate(160px) rotate(0deg); }
  .ws-orbit-1 .ws-orbit-dot:nth-child(2) { transform: rotate(90deg)  translate(160px) rotate(-90deg); }
  .ws-orbit-1 .ws-orbit-dot:nth-child(3) { transform: rotate(180deg) translate(160px) rotate(-180deg); }
  .ws-orbit-1 .ws-orbit-dot:nth-child(4) { transform: rotate(270deg) translate(160px) rotate(-270deg); }
  .ws-orbit-2 .ws-orbit-dot:nth-child(1) { transform: rotate(45deg)  translate(220px) rotate(-45deg); }
  .ws-orbit-2 .ws-orbit-dot:nth-child(2) { transform: rotate(165deg) translate(220px) rotate(-165deg); }
  .ws-orbit-2 .ws-orbit-dot:nth-child(3) { transform: rotate(285deg) translate(220px) rotate(-285deg); }
  .ws-badge { padding: 8px 12px; min-width: 88px; }
  .ws-badge-label { font-size: 9.5px; }
  .ws-badge-value { font-size: 17px; }
  .ws-badge-tl { top: 4%;  left: 0; }
  .ws-badge-tr { top: 6%;  right: 0; }
  .ws-badge-bl { bottom: 6%;  left: 0; }
  .ws-badge-br { bottom: 8%;  right: 0; }
}

@media (max-width: 480px) {
  .whale-showcase { padding: 44px 0 52px; }
  .ws-stage { max-width: 380px; }
  .ws-ring-1 { width: 200px; height: 200px; }
  .ws-ring-2 { width: 280px; height: 280px; }
  .ws-ring-3 { width: 360px; height: 360px; }
  .ws-sweep  { width: 360px; height: 360px; }
  .ws-orbit-1 { width: 240px; height: 240px; margin: -120px 0 0 -120px; }
  .ws-orbit-2 { width: 320px; height: 320px; margin: -160px 0 0 -160px; }
  .ws-orbit-1 .ws-orbit-dot:nth-child(1) { transform: rotate(0deg)   translate(120px) rotate(0deg); }
  .ws-orbit-1 .ws-orbit-dot:nth-child(2) { transform: rotate(90deg)  translate(120px) rotate(-90deg); }
  .ws-orbit-1 .ws-orbit-dot:nth-child(3) { transform: rotate(180deg) translate(120px) rotate(-180deg); }
  .ws-orbit-1 .ws-orbit-dot:nth-child(4) { transform: rotate(270deg) translate(120px) rotate(-270deg); }
  .ws-orbit-2 .ws-orbit-dot:nth-child(1) { transform: rotate(45deg)  translate(160px) rotate(-45deg); }
  .ws-orbit-2 .ws-orbit-dot:nth-child(2) { transform: rotate(165deg) translate(160px) rotate(-165deg); }
  .ws-orbit-2 .ws-orbit-dot:nth-child(3) { transform: rotate(285deg) translate(160px) rotate(-285deg); }
  .ws-orbit-dot { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
}

/* ============================================================
   ITER 9 · BIG SVG INFOGRAPHICS (.bigmap)
   Section-wide custom SVG visualizations: chains radial, 5-layer
   architecture, 6-step workflow, speed comparison.
   ============================================================ */
.bigmap {
  position: relative;
  max-width: 1320px;
  margin: 28px auto 56px;
  padding: 28px 32px 22px;
  border-radius: 24px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(57,255,20, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(20, 26, 22, 0.88), rgba(10, 14, 12, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 30px 70px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(57,255,20, 0.04);
  overflow: hidden;
  isolation: isolate;
}

/* Decorative top hair-line accent */
.bigmap::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(57,255,20, 0.5) 25%,
    rgba(57,255,20, 0.8) 50%,
    rgba(57,255,20, 0.5) 75%,
    transparent 100%);
  opacity: 0.6;
  pointer-events: none;
}

/* Corner glow accents */
.bigmap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(57,255,20, 0.08), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(64, 196, 255, 0.06), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.bigmap svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
}

/* Caption row (used by bigmap-chains) */
.bigmap-caption {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bigmap-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #39FF14;
  background: rgba(57,255,20, 0.08);
  border: 1px solid rgba(57,255,20, 0.28);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 24px rgba(57,255,20, 0.12);
}

.bigmap-badge i {
  font-size: 12px;
  opacity: 0.85;
}

/* Per-variant tiny tweaks (e.g. allow taller speed map) */
.bigmap-speed svg { max-height: 720px; }
.bigmap-arch  svg { max-height: 720px; }
.bigmap-flow  svg { max-height: 320px; }

/* === Decorative animations referenced from inline SVGs === */
@keyframes bigmapRingSpin {
  to { transform: rotate(360deg); transform-origin: center; }
}

/* Globe accent ring in speed comparison map — rotates around globe center (900,260) */
.bms-globe-ring {
  transform-origin: 900px 260px;
  transform-box: fill-box;
  animation: bigmapRingSpin 10s linear infinite;
}

/* Earth surface markers — horizontal scroll inside spherical clip to simulate planetary rotation.
   Map is duplicated (tile1 at x=0, tile2 at x=+220). Translating -220 puts tile2 at tile1's
   original position, then it loops seamlessly. Sped up to 14s for a more energetic feel. */
@keyframes bmsEarthRotate {
  from { transform: translateX(0); }
  to   { transform: translateX(-220px); }
}
.bms-earth-spin {
  animation: bmsEarthRotate 14s linear infinite;
  will-change: transform;
}

/* Edge node pulse — expanding ring announces "live, transmitting" */
@keyframes bmsNodePulse {
  0%   { transform: scale(0.7); opacity: 0.9; }
  70%  { transform: scale(1.6); opacity: 0;   }
  100% { transform: scale(1.6); opacity: 0;   }
}
.bms-node-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: bmsNodePulse 2.2s ease-out infinite;
}

/* Core pulsing ring in chains map */
@keyframes bigmapCorePulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}
.bmc-core-ring {
  transform-origin: 600px 290px;
  animation: bigmapCorePulse 3.4s ease-in-out infinite;
}

/* Architecture layer subtle hover lift */
.bma-layer {
  transition: transform 0.3s ease, filter 0.3s ease;
}
.bma-layer:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* === Responsive: tablet === */
@media (max-width: 1080px) {
  .bigmap {
    margin: 20px auto 44px;
    padding: 22px 20px 18px;
    border-radius: 20px;
  }
  .bigmap-badge { font-size: 12.5px; padding: 7px 14px; }
}

/* === Responsive: mobile — allow horizontal scroll for dense maps === */
@media (max-width: 720px) {
  .bigmap {
    margin: 16px -8px 36px;
    padding: 16px 12px 14px;
    border-radius: 18px;
  }
  .bigmap svg {
    max-height: none;
  }
  /* Speed compare + arch are too detail-heavy — let users scroll horizontally */
  .bigmap-speed,
  .bigmap-arch {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .bigmap-speed svg,
  .bigmap-arch svg {
    min-width: 760px;
  }
  .bigmap-badge {
    font-size: 12px;
    padding: 6px 12px;
    letter-spacing: 0.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bms-globe-ring,
  .bms-earth-spin,
  .bms-node-pulse,
  .bmc-core-ring { animation: none !important; }
}

/* === Reduced-motion / Perf-sensitive devices === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1080px) {
  body.menu-open { overflow: hidden; }
  body.menu-open .mobile-nav { display: block; }
}

/* ============ Iter 9.3 — Wallet ecosystem section ============ */
.chain-pill .chain-symbol-logo {
  background: rgba(255, 255, 255, 0.04) !important;
  padding: 2px;
  width: 32px;
  height: 32px;
}
.chain-pill .chain-symbol-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#wallets .wallet-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  margin-top: 36px;
}
@media (max-width: 1080px) {
  #wallets .wallet-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  #wallets .wallet-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

.wallet-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
  overflow: hidden;
}
.wallet-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57,255,20, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.wallet-card:hover {
  transform: translateY(-3px);
  border-color: rgba(57,255,20, 0.35);
  background: linear-gradient(180deg, rgba(57,255,20, 0.06), rgba(57,255,20, 0.015));
  box-shadow: 0 12px 28px -10px rgba(57,255,20, 0.22);
}
.wallet-card:hover::before { opacity: 1; }

.wallet-card-logo {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px;
}
.wallet-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.wallet-card-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.wallet-card-more-logo {
  background: rgba(57,255,20, 0.08);
  border-color: rgba(57,255,20, 0.3);
  color: var(--brand-green);
  font-size: 22px;
}
.wallet-card-more .wallet-card-name {
  color: var(--brand-green);
}

.wallet-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  margin-top: 36px;
  padding: 18px 24px;
  background: rgba(57,255,20, 0.035);
  border: 1px solid rgba(57,255,20, 0.18);
  border-radius: 14px;
}
.wallet-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.wallet-trust-item i { font-size: 14px; }

/* ============ Iter 9.4 — Reown-inspired Wallet Infrastructure Section ============ */
.sec-wallets-reown {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 600px at 20% 30%, rgba(57,255,20, 0.06), transparent 60%),
    radial-gradient(ellipse 700px 500px at 80% 70%, rgba(55, 130, 220, 0.05), transparent 60%),
    linear-gradient(180deg, transparent, rgba(57,255,20, 0.025) 50%, transparent);
}

/* Ambient blurred orbs (Reown signature lighting) */
.reown-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}
.reown-orb-green {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(57,255,20, 0.5), transparent 70%);
  top: 8%; left: -120px;
  animation: reownOrbFloat 18s ease-in-out infinite;
}
.reown-orb-blue {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(55, 130, 220, 0.4), transparent 70%);
  bottom: 8%; right: -140px;
  animation: reownOrbFloat 22s ease-in-out infinite reverse;
}
@keyframes reownOrbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

/* === Reown partnership banner — premium dark hero card === */
.reown-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
  align-items: center;
  margin: 36px 0 44px;
  padding: 36px 40px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, #1a1d24 0%, #14171c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.6),
    0 8px 24px -8px rgba(57,255,20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.reown-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(57,255,20, 0.08), transparent 40%, transparent 60%, rgba(55, 130, 220, 0.06));
  opacity: 0.6;
  pointer-events: none;
}
.reown-banner::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57,255,20, 0.5), rgba(55, 130, 220, 0.4), transparent);
}
.reown-banner:hover {
  transform: translateY(-3px);
  border-color: rgba(57,255,20, 0.28);
  box-shadow:
    0 32px 80px -20px rgba(0, 0, 0, 0.7),
    0 12px 32px -8px rgba(57,255,20, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.reown-banner-left {
  position: relative; z-index: 1;
}
.reown-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(57,255,20, 0.85);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.reown-eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 12px var(--brand-green);
  animation: reownPulse 2.2s ease-in-out infinite;
}
@keyframes reownPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.25); }
}
.reown-banner-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.reown-banner-brand {
  background: linear-gradient(135deg, #39FF14 0%, #00BFA5 50%, #37D6FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.reown-banner-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
  max-width: 560px;
  margin-bottom: 22px;
}
.reown-banner-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
}
.reown-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reown-stat-num {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1;
}
.reown-stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.45));
  text-transform: uppercase;
}

/* Concentric ring mark — Reown brand motif */
.reown-banner-right {
  position: relative;
  width: 240px; height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reown-mark {
  position: relative;
  width: 200px; height: 200px;
}
.reown-mark-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(57,255,20, 0.35);
  animation: reownRingPulse 4s ease-in-out infinite;
}
.reown-mark-ring-1 { inset: 0; }
.reown-mark-ring-2 { inset: 24px; border-color: rgba(55, 130, 220, 0.32); animation-delay: -1.3s; }
.reown-mark-ring-3 { inset: 48px; border-color: rgba(57,255,20, 0.5); animation-delay: -2.6s; }
@keyframes reownRingPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
.reown-mark-core {
  position: absolute;
  inset: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, #39FF14 0%, #00A050 100%);
  box-shadow:
    0 0 32px rgba(57,255,20, 0.55),
    inset 0 -8px 12px rgba(0, 0, 0, 0.3),
    inset 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
  .reown-banner {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 20px;
  }
  .reown-banner-right { display: none; }
  .reown-banner-title { font-size: 26px; }
  .reown-banner-stats { gap: 18px 24px; }
  .reown-stat-num { font-size: 19px; }
}

/* Upgrade wallet-card to Reown-style elevated dark tile */
.wallet-card {
  background: linear-gradient(180deg, #1a1d24 0%, #14171c 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow:
    0 8px 24px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
}
.wallet-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(57,255,20, 0.4) !important;
  background: linear-gradient(180deg, #1f2329 0%, #16191e 100%) !important;
  box-shadow:
    0 20px 48px -16px rgba(0, 0, 0, 0.65),
    0 6px 20px -6px rgba(57,255,20, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* ============================================================
   Iter 9.5 — Reown-style premium dark elevated cards
   Applied to: .value-card, .roadmap-content, .news-item
   ============================================================ */

/* -------- Core Values cards -------- */
.value-card {
  position: relative;
  background: linear-gradient(180deg, #1a1d24 0%, #14171c 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 22px !important;
  padding: 36px 24px 30px !important;
  overflow: hidden;
  box-shadow:
    0 8px 24px -12px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.value-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(57,255,20, 0.10), transparent 70%);
  filter: blur(60px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(57,255,20, 0.35) !important;
  background: linear-gradient(180deg, #1f2329 0%, #16191e 100%) !important;
  box-shadow:
    0 24px 56px -18px rgba(0, 0, 0, 0.7),
    0 8px 24px -8px rgba(57,255,20, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.value-card:hover::before { opacity: 1; }
.value-card:nth-child(2):hover { border-color: rgba(55, 214, 255, 0.4) !important; box-shadow: 0 24px 56px -18px rgba(0,0,0,0.7), 0 8px 24px -8px rgba(55,214,255,0.22), inset 0 1px 0 rgba(255,255,255,0.07); }
.value-card:nth-child(2)::before { background: radial-gradient(circle, rgba(55, 214, 255, 0.10), transparent 70%); }
.value-card:nth-child(3):hover { border-color: rgba(167, 139, 250, 0.4) !important; box-shadow: 0 24px 56px -18px rgba(0,0,0,0.7), 0 8px 24px -8px rgba(167,139,250,0.22), inset 0 1px 0 rgba(255,255,255,0.07); }
.value-card:nth-child(3)::before { background: radial-gradient(circle, rgba(167, 139, 250, 0.10), transparent 70%); }
.value-card:nth-child(4):hover { border-color: rgba(255, 210, 63, 0.4) !important; box-shadow: 0 24px 56px -18px rgba(0,0,0,0.7), 0 8px 24px -8px rgba(255,210,63,0.22), inset 0 1px 0 rgba(255,255,255,0.07); }
.value-card:nth-child(4)::before { background: radial-gradient(circle, rgba(255, 210, 63, 0.10), transparent 70%); }

.value-card .value-icon {
  width: 64px !important;
  height: 64px !important;
  border-radius: 18px !important;
  font-size: 26px !important;
  margin: 0 auto 22px !important;
  box-shadow:
    0 8px 20px -8px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}
.value-card .card-title {
  font-size: 18px;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.value-card .card-body {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* -------- Roadmap timeline cards -------- */
.roadmap-content {
  position: relative;
  background: linear-gradient(180deg, #1a1d24 0%, #14171c 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 18px !important;
  padding: 24px 22px !important;
  box-shadow:
    0 8px 24px -12px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  overflow: hidden;
}
.roadmap-content::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle at top right, rgba(57,255,20, 0.08), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.roadmap-content:hover {
  transform: translateY(-3px);
  border-color: rgba(57,255,20, 0.32) !important;
  background: linear-gradient(180deg, #1f2329 0%, #16191e 100%) !important;
  box-shadow:
    0 22px 50px -16px rgba(0, 0, 0, 0.7),
    0 6px 20px -8px rgba(57,255,20, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.roadmap-content:hover::before { opacity: 1; }
.roadmap-content h4 {
  font-size: 16px !important;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 1;
}
.roadmap-content ul {
  position: relative;
  z-index: 1;
}

/* Enhanced roadmap dot — concentric pulsing ring */
.roadmap-dot::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(57,255,20, 0.35);
  animation: roadmap-pulse 2.4s ease-out infinite;
}
@keyframes roadmap-pulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.0); opacity: 0; }
}

/* -------- News list cards -------- */
.news-item {
  position: relative;
  background: linear-gradient(180deg, #1a1d24 0%, #14171c 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 18px !important;
  padding: 24px 26px !important;
  box-shadow:
    0 8px 24px -12px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
  overflow: hidden;
}
.news-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand-green), var(--c-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.news-item:hover {
  transform: translateX(4px) translateY(-2px) !important;
  border-color: rgba(55, 214, 255, 0.32) !important;
  background: linear-gradient(180deg, #1f2329 0%, #16191e 100%) !important;
  box-shadow:
    0 22px 50px -16px rgba(0, 0, 0, 0.7),
    0 6px 20px -8px rgba(55, 214, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.news-item:hover::before { opacity: 1; }
.news-item .news-date {
  color: var(--c-cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.news-item .news-content h4 {
  font-size: 15.5px;
  letter-spacing: 0.2px;
}

/* ======================================================================
 * MEDIA POSTERS — Iter 10.12
 * ====================================================================== */

/* Category filter tabs */
.poster-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 28px auto 36px;
  flex-wrap: wrap;
}
.poster-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  font-family: var(--font-sans);
}
.poster-tab:hover {
  background: rgba(57, 255, 20, 0.06);
  border-color: rgba(57, 255, 20, 0.3);
  color: var(--text-primary);
}
.poster-tab.is-active {
  background: rgba(57, 255, 20, 0.12);
  border-color: rgba(57, 255, 20, 0.55);
  color: var(--brand-green);
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.18), 0 6px 18px -8px rgba(57, 255, 20, 0.4);
}
.poster-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
}
.poster-tab.is-active .poster-tab-count {
  background: rgba(57, 255, 20, 0.2);
  color: var(--brand-green);
}

/* Masonry-friendly grid */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.poster-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.poster-card.is-hidden {
  display: none;
}
.poster-card:hover {
  transform: translateY(-3px);
  border-color: rgba(57, 255, 20, 0.45);
  box-shadow: 0 16px 36px -16px rgba(57, 255, 20, 0.35);
}

.poster-thumb {
  position: relative;
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
}
.poster-ratio-1-1 .poster-thumb { aspect-ratio: 1 / 1; }
.poster-ratio-4-5 .poster-thumb { aspect-ratio: 4 / 5; }
.poster-ratio-4-3 .poster-thumb { aspect-ratio: 4 / 3; }
.poster-ratio-16-9 .poster-thumb { aspect-ratio: 16 / 9; }
.poster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}
.poster-card:hover .poster-thumb img {
  transform: scale(1.04);
  filter: brightness(1.05) saturate(1.08);
}

/* Category tag */
.poster-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  font-family: var(--font-mono);
  letter-spacing: 0.4px;
  z-index: 2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.poster-tag-brand {
  background: rgba(57, 255, 20, 0.16);
  border: 1px solid rgba(57, 255, 20, 0.5);
  color: var(--brand-green);
}
.poster-tag-event {
  background: rgba(55, 214, 255, 0.16);
  border: 1px solid rgba(55, 214, 255, 0.5);
  color: #5BE0FF;
}

/* Hover overlay actions */
.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}
.poster-card:hover .poster-overlay { opacity: 1; }
.poster-zoom-btn, .poster-download-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(57, 255, 20, 0.55);
  border-radius: 10px;
  color: var(--brand-green);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}
.poster-zoom-btn:hover, .poster-download-btn:hover {
  background: rgba(57, 255, 20, 0.18);
  transform: scale(1.08);
}

/* Card meta */
.poster-meta {
  padding: 12px 14px 14px;
}
.poster-title-zh {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.poster-title-en {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  font-family: var(--font-sans);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.poster-ratio-label {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  letter-spacing: 0.3px;
}

/* Lightbox */
.poster-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.poster-lightbox.is-open {
  display: flex;
  opacity: 1;
}
.poster-lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: posterFadeIn 0.3s ease-out;
}
@keyframes posterFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.poster-lightbox img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(57, 255, 20, 0.18);
  object-fit: contain;
}
.poster-lightbox-info {
  text-align: center;
  color: var(--text-primary);
}
.poster-lightbox-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.poster-lightbox-title-en {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.poster-lightbox-close,
.poster-lightbox-prev,
.poster-lightbox-next {
  position: absolute;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}
.poster-lightbox-close { top: 24px; right: 24px; }
.poster-lightbox-prev  { left: 24px;  top: 50%; transform: translateY(-50%); }
.poster-lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.poster-lightbox-close:hover,
.poster-lightbox-prev:hover,
.poster-lightbox-next:hover {
  background: rgba(57, 255, 20, 0.18);
  border-color: rgba(57, 255, 20, 0.5);
  color: var(--brand-green);
}
.poster-lightbox-prev:hover { transform: translateY(-50%) scale(1.06); }
.poster-lightbox-next:hover { transform: translateY(-50%) scale(1.06); }

/* Mobile */
@media (max-width: 720px) {
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .poster-meta { padding: 10px 11px 12px; }
  .poster-title-zh { font-size: 12.5px; }
  .poster-title-en { font-size: 10.5px; }
  .poster-tab { padding: 7px 13px; font-size: 12px; }
  .poster-overlay { opacity: 1; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6) 100%); }
  .poster-zoom-btn, .poster-download-btn { width: 32px; height: 32px; font-size: 12px; }
  .poster-lightbox { padding: 20px; }
  .poster-lightbox-close { top: 16px; right: 16px; width: 38px; height: 38px; }
  .poster-lightbox-prev { left: 8px; width: 38px; height: 38px; }
  .poster-lightbox-next { right: 8px; width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .poster-card, .poster-thumb img, .poster-lightbox-content { transition: none !important; animation: none !important; }
}

/* ============================================================
   ITER 10.14 — Day Mode + i18n + Entity + Dynamic Visuals
   ============================================================ */

/* ===== Day mode (data-theme="light") override ===== */
html[data-theme="light"] {
  --brand-green:        #2563EB;  /* blue replaces neon */
  --brand-green-bright: #3B82F6;
  --brand-green-dim:    #1E40AF;
  --brand-green-soft:   rgba(37, 99, 235, 0.10);
  --brand-green-glow:   rgba(37, 99, 235, 0.30);
  --border-green:       rgba(37, 99, 235, 0.30);

  --bg-base:    #F5F8FC;
  --bg-elev-1:  #FFFFFF;
  --bg-elev-2:  #F0F4FA;
  --bg-elev-3:  #E6EDF7;

  --glass-bg:           linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.80) 100%);
  --glass-bg-hover:     linear-gradient(135deg, rgba(255,255,255,1)    0%, rgba(255,255,255,0.92) 100%);
  --glass-border:       rgba(30, 64, 175, 0.15);
  --glass-border-hover: rgba(30, 64, 175, 0.28);
  --glass-inset-top:    inset 0 1px 0 rgba(255,255,255,0.8);
  --glass-inset-bottom: inset 0 -1px 0 rgba(30,64,175,0.06);
  --glass-shadow:       0 10px 30px -12px rgba(30,64,175,0.18), 0 4px 12px -6px rgba(30,64,175,0.10);
  --glass-shadow-hover: 0 18px 44px -12px rgba(30,64,175,0.25), 0 8px 20px -6px rgba(30,64,175,0.15);

  --text-primary:   #1A2027;
  --text-secondary: #3D4858;
  --text-tertiary:  #6B7585;
  --text-muted:     #94A0B0;

  --border-subtle:  rgba(30, 64, 175, 0.08);
  --border-default: rgba(30, 64, 175, 0.14);
  --border-strong:  rgba(30, 64, 175, 0.22);
  --border-card:    rgba(30, 64, 175, 0.10);

  --shadow-glow: 0 0 36px -10px rgba(37, 99, 235, 0.25);
  --shadow-card: var(--glass-shadow);

  color-scheme: light;
}
html[data-theme="light"] body {
  background:
    radial-gradient(circle at 18% 22%, rgba(37,99,235,0.06) 0%, transparent 45%),
    radial-gradient(circle at 82% 18%, rgba(167,139,250,0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(55,214,255,0.05) 0%, transparent 45%),
    var(--bg-base);
}
html[data-theme="light"] .site-header {
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(30,64,175,0.10);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
html[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 6px 24px -10px rgba(30,64,175,0.18);
}
html[data-theme="light"] .primary-nav ul a { color: #3D4858; }
html[data-theme="light"] .primary-nav ul a:hover,
html[data-theme="light"] .primary-nav ul a.is-active { color: var(--brand-green); }
html[data-theme="light"] .btn-primary { color: #FFFFFF !important; }
html[data-theme="light"] ::selection { background: var(--brand-green); color: #FFFFFF; }
html[data-theme="light"] .hero-badge { background: rgba(37,99,235,0.10); border-color: rgba(37,99,235,0.25); color: var(--brand-green); }
html[data-theme="light"] .footer-warning { background: rgba(255, 159, 69, 0.10); border-color: rgba(255, 159, 69, 0.30); }
html[data-theme="light"] .news-tag,
html[data-theme="light"] .section-eyebrow { background-color: var(--brand-green-soft); color: var(--brand-green); border-color: rgba(37,99,235,0.20); }
html[data-theme="light"] .hero-bg { opacity: 0.5; filter: brightness(1.4); }
html[data-theme="light"] .aurora-blob { opacity: 0.55; }
html[data-theme="light"] .wl-splash { background: #0b1426; }  /* keep splash dark for impact even in light mode */

/* ===== Language switcher ===== */
.lang-switcher { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 10px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { background: var(--bg-card-hover); border-color: var(--border-strong); color: var(--brand-green); }
.lang-flag { font-size: 15px; line-height: 1; }
.lang-short { letter-spacing: 0.4px; font-family: var(--font-mono); font-size: 11px; }

/* ===== CSS Flags (SVG data-URI, render reliably across all OS/fonts) ===== */
.flag {
  display: inline-block;
  width: 18px;
  height: 13px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18), 0 1px 2px rgba(0,0,0,0.18);
  vertical-align: middle;
}
.lang-item .flag { width: 22px; height: 16px; }

/* 🇨🇳 China — red ground + 5 yellow stars (simplified canton arrangement) */
.flag-zh-cn {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><rect width='30' height='20' fill='%23DE2910'/><g fill='%23FFDE00'><polygon points='6,3.2 6.95,5.7 9.6,5.85 7.5,7.55 8.2,10.1 6,8.6 3.8,10.1 4.5,7.55 2.4,5.85 5.05,5.7'/><polygon points='11.5,1.8 11.85,2.7 12.8,2.75 12.05,3.35 12.3,4.3 11.5,3.75 10.7,4.3 10.95,3.35 10.2,2.75 11.15,2.7'/><polygon points='13.5,3.9 13.85,4.8 14.8,4.85 14.05,5.45 14.3,6.4 13.5,5.85 12.7,6.4 12.95,5.45 12.2,4.85 13.15,4.8'/><polygon points='13.5,6.6 13.85,7.5 14.8,7.55 14.05,8.15 14.3,9.1 13.5,8.55 12.7,9.1 12.95,8.15 12.2,7.55 13.15,7.5'/><polygon points='11.5,8.6 11.85,9.5 12.8,9.55 12.05,10.15 12.3,11.1 11.5,10.55 10.7,11.1 10.95,10.15 10.2,9.55 11.15,9.5'/></g></svg>");
}

/* 🇭🇰 Hong Kong — red ground + white 5-petal bauhinia (simplified) */
.flag-zh-hk {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><rect width='30' height='20' fill='%23DE2910'/><g transform='translate(15 10)'><g fill='%23FFFFFF'><ellipse cx='0' cy='-4.5' rx='1.6' ry='2.6'/><ellipse cx='4.28' cy='-1.39' rx='1.6' ry='2.6' transform='rotate(72)'/><ellipse cx='2.65' cy='3.64' rx='1.6' ry='2.6' transform='rotate(144)'/><ellipse cx='-2.65' cy='3.64' rx='1.6' ry='2.6' transform='rotate(216)'/><ellipse cx='-4.28' cy='-1.39' rx='1.6' ry='2.6' transform='rotate(288)'/></g><g fill='%23DE2910'><circle cx='0' cy='-3.2' r='0.55'/><circle cx='3.04' cy='-0.99' r='0.55'/><circle cx='1.88' cy='2.59' r='0.55'/><circle cx='-1.88' cy='2.59' r='0.55'/><circle cx='-3.04' cy='-0.99' r='0.55'/></g></g></svg>");
}

/* 🇬🇧 United Kingdom — Union Jack */
.flag-en {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'><clipPath id='t'><rect width='60' height='30'/></clipPath><path d='M0 0v30h60V0z' fill='%23012169'/><path d='M0 0L60 30M60 0L0 30' stroke='%23FFF' stroke-width='6'/><path d='M0 0L60 30M60 0L0 30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/><path d='M30 0v30M0 15h60' stroke='%23FFF' stroke-width='10'/><path d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/></svg>");
}

/* 🇯🇵 Japan — white ground + red disc */
.flag-ja {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><rect width='30' height='20' fill='%23FFFFFF'/><circle cx='15' cy='10' r='6' fill='%23BC002D'/></svg>");
}

/* 🇰🇷 South Korea — white ground + taegeuk + 4 trigrams (simplified) */
.flag-ko {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><rect width='30' height='20' fill='%23FFFFFF'/><g transform='translate(15 10)'><path d='M -5 0 A 5 5 0 0 1 5 0 A 2.5 2.5 0 0 1 0 0 A 2.5 2.5 0 0 0 -5 0 Z' fill='%23CD2E3A'/><path d='M 5 0 A 5 5 0 0 1 -5 0 A 2.5 2.5 0 0 1 0 0 A 2.5 2.5 0 0 0 5 0 Z' fill='%230047A0'/></g><g fill='%23000000'><rect x='3.6' y='4.4' width='3.5' height='0.7'/><rect x='3.6' y='5.5' width='3.5' height='0.7'/><rect x='3.6' y='6.6' width='3.5' height='0.7'/><rect x='22.9' y='4.4' width='3.5' height='0.7'/><rect x='22.9' y='5.5' width='1.4' height='0.7'/><rect x='25' y='5.5' width='1.4' height='0.7'/><rect x='22.9' y='6.6' width='3.5' height='0.7'/><rect x='3.6' y='13.0' width='3.5' height='0.7'/><rect x='3.6' y='14.1' width='1.4' height='0.7'/><rect x='5.7' y='14.1' width='1.4' height='0.7'/><rect x='3.6' y='15.2' width='1.4' height='0.7'/><rect x='5.7' y='15.2' width='1.4' height='0.7'/><rect x='22.9' y='13.0' width='1.4' height='0.7'/><rect x='25' y='13.0' width='1.4' height='0.7'/><rect x='22.9' y='14.1' width='1.4' height='0.7'/><rect x='25' y='14.1' width='1.4' height='0.7'/><rect x='22.9' y='15.2' width='1.4' height='0.7'/><rect x='25' y='15.2' width='1.4' height='0.7'/></g></svg>");
}

/* 🇻🇳 Vietnam — red ground + yellow star */
.flag-vi {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><rect width='30' height='20' fill='%23DA251D'/><polygon points='15,5 16.76,9.91 21.85,9.91 17.69,12.86 19.27,17.78 15,14.83 10.73,17.78 12.31,12.86 8.15,9.91 13.24,9.91' fill='%23FFFF00'/></svg>");
}

/* 🇹🇭 Thailand — 5-stripe (red/white/blue/white/red) */
.flag-th {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><rect width='30' height='20' fill='%23ED1C24'/><rect y='3.33' width='30' height='13.34' fill='%23FFFFFF'/><rect y='6.67' width='30' height='6.66' fill='%232D2A4A'/></svg>");
}

/* 🇮🇩 Indonesia — red on top, white on bottom */
.flag-id {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><rect width='30' height='10' fill='%23FF0000'/><rect y='10' width='30' height='10' fill='%23FFFFFF'/></svg>");
}
.lang-caret { font-size: 9px; opacity: 0.6; transition: transform 0.2s ease; }
.lang-switcher.is-open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 180px;
  margin: 0; padding: 6px;
  list-style: none;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 100;
}
.lang-switcher.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.lang-item.is-active { color: var(--brand-green); background: var(--brand-green-soft); }
.lang-item .lang-flag { font-size: 16px; }
.lang-item .lang-label { flex: 1; }
.lang-item .lang-check { font-size: 11px; color: var(--brand-green); }

/* ===== Theme toggle button ===== */
.theme-toggle {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  padding: 0;
}
.theme-toggle:hover { background: var(--bg-card-hover); border-color: var(--border-strong); color: var(--brand-green); }
.theme-toggle .theme-icon-moon,
.theme-toggle .theme-icon-sun {
  position: absolute;
  font-size: 14px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.theme-toggle .theme-icon-sun  { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-toggle .theme-icon-moon { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="light"] .theme-toggle .theme-icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }
html[data-theme="light"] .theme-toggle .theme-icon-sun  { opacity: 1; transform: rotate(0) scale(1); color: #F59E0B; }

@media (max-width: 900px) {
  .header-cta-dev { display: none; }
  .lang-btn { padding: 0 8px; }
  .lang-short { display: none; }
}

/* ===== Footer entity row ===== */
.footer-entity {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  margin: 8px 0 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-wrap: wrap;
}
.footer-entity i {
  color: var(--brand-green);
  font-size: 16px;
  flex-shrink: 0;
}
.footer-entity strong { color: var(--text-primary); }
.footer-entity a { color: var(--brand-green); }
.footer-entity a:hover { text-decoration: underline; }
@media (max-width: 720px) { .footer-entity { font-size: 11px; } }

/* ===== About / Legal entity cards ===== */
.entity-card {
  margin-top: 18px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.entity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}
.entity-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}
html[data-theme="light"] .entity-row { background: rgba(37,99,235,0.03); }
.entity-label {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.4px;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.entity-value {
  font-size: 14px;
  color: var(--text-primary);
}
.entity-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.entity-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(55, 214, 255, 0.06);
  border: 1px solid rgba(55, 214, 255, 0.18);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.entity-note i { color: var(--c-cyan); margin-right: 6px; }
@media (max-width: 720px) {
  .entity-grid { grid-template-columns: 1fr; }
  .entity-card { padding: 22px; }
}

/* ============================================================
   Dynamic Visual #1 — Hero flow strip (workflow ribbon)
   ============================================================ */
.hero-flow-strip {
  position: relative;
  margin-top: 40px;
  padding: 22px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-flow-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(57,255,20,0.05) 50%, transparent 100%);
  animation: hf-shimmer 6s linear infinite;
  pointer-events: none;
}
html[data-theme="light"] .hero-flow-strip::before {
  background: linear-gradient(90deg, transparent 0%, rgba(37,99,235,0.08) 50%, transparent 100%);
}
@keyframes hf-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.hero-flow-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-flow-step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  position: relative;
  animation: hf-step-fade 0.6s ease both;
}
html[data-theme="light"] .hero-flow-step { background: rgba(37,99,235,0.04); }
.hero-flow-step:nth-child(1) { animation-delay: 0.1s; }
.hero-flow-step:nth-child(2) { animation-delay: 0.5s; }
.hero-flow-step:nth-child(3) { animation-delay: 0.9s; }
.hero-flow-step:nth-child(4) { animation-delay: 1.3s; }
.hero-flow-step:nth-child(5) { animation-delay: 1.7s; }
@keyframes hf-step-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-flow-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--brand-green-soft);
  color: var(--brand-green);
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 0 16px -4px var(--brand-green-glow);
  animation: hf-icon-pulse 2.5s ease-in-out infinite;
}
@keyframes hf-icon-pulse {
  0%, 100% { box-shadow: 0 0 12px -4px var(--brand-green-glow); }
  50%      { box-shadow: 0 0 24px -2px var(--brand-green-glow); }
}
.hero-flow-text {
  display: flex; flex-direction: column;
  font-size: 12.5px;
  line-height: 1.35;
}
.hero-flow-text strong { color: var(--text-primary); font-weight: 600; }
.hero-flow-text span { color: var(--text-tertiary); font-size: 11px; font-family: var(--font-mono); }
.hero-flow-arrow {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-green) 60%, transparent);
  pointer-events: none;
  z-index: 2;
}
.hero-flow-step:last-child .hero-flow-arrow { display: none; }
.hero-flow-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-top: 1.5px solid var(--brand-green);
  border-right: 1.5px solid var(--brand-green);
  rotate: 45deg;
}
@media (max-width: 980px) {
  .hero-flow-track { grid-template-columns: 1fr 1fr; }
  .hero-flow-step:nth-child(5) { grid-column: 1 / -1; }
  .hero-flow-arrow { display: none; }
}
@media (max-width: 580px) {
  .hero-flow-track { grid-template-columns: 1fr; }
  .hero-flow-step:nth-child(5) { grid-column: auto; }
}

/* ============================================================
   Dynamic Visual #2 — Partner / chain infinite scroll wall
   ============================================================ */
.partner-marquee {
  position: relative;
  margin: 30px 0;
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.partner-marquee::before,
.partner-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.partner-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-base), transparent); }
.partner-marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg-base), transparent); }
.partner-marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: partner-scroll 36s linear infinite;
}
.partner-marquee:hover .partner-marquee-track { animation-play-state: paused; }
@keyframes partner-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.partner-marquee-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  flex-shrink: 0;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
html[data-theme="light"] .partner-marquee-item { background: rgba(37,99,235,0.04); }
.partner-marquee-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.partner-marquee-item img {
  width: 22px; height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.partner-marquee-item span {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .partner-marquee-track { animation: none; }
}

/* ============================================================
   Dynamic Visual #3 — Security risk radar
   ============================================================ */
.risk-radar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.risk-radar-svg {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  height: auto;
}
.rr-grid-circle { fill: none; stroke: var(--border-subtle); stroke-width: 1; }
.rr-axis-line   { stroke: var(--border-default); stroke-width: 1; stroke-dasharray: 2 3; }
.rr-axis-label  { font: 11px var(--font-mono); fill: var(--text-tertiary); }
.rr-shape {
  fill: var(--brand-green-soft);
  stroke: var(--brand-green);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px var(--brand-green-glow));
  transform-origin: center;
  animation: rr-pulse 3.5s ease-in-out infinite;
}
@keyframes rr-pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.85; }
  50%      { transform: scale(1.02); opacity: 1; }
}
.rr-dot {
  fill: var(--brand-green);
  filter: drop-shadow(0 0 6px var(--brand-green-glow));
}
.rr-sweep {
  fill: url(#rrSweepGrad);
  transform-origin: center;
  animation: rr-sweep 4s linear infinite;
}
@keyframes rr-sweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.rr-ping {
  fill: none;
  stroke: var(--brand-green);
  stroke-width: 1.5;
  transform-origin: center;
  animation: rr-ping 2.4s ease-out infinite;
  opacity: 0;
}
@keyframes rr-ping {
  0%   { transform: scale(0.2); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rr-shape, .rr-sweep, .rr-ping { animation: none; }
}


/* ============================================================
   Iter 10.16 — Real On-Chain Pool section (product page)
   ============================================================ */
.real-pool-section {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(57,255,20,0.06), transparent 60%),
    linear-gradient(180deg, transparent, rgba(57,255,20,0.03), transparent);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* ----- Status tag row ----- */
.real-pool-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.pool-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-muted);
}
.pool-tag i { font-size: 0.72rem; }
.pool-tag-live {
  color: var(--brand-green);
  background: var(--brand-green-soft);
  border-color: rgba(57,255,20, 0.40);
  box-shadow: 0 0 18px rgba(57,255,20, 0.18);
}
.pool-tag-live i { animation: poolLivePulse 1.6s ease-in-out infinite; }
@keyframes poolLivePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.4; transform: scale(0.85); }
}
.pool-tag-warn {
  color: var(--c-orange);
  background: var(--c-orange-soft);
  border-color: rgba(255, 159, 69, 0.35);
}
.pool-tag-key {
  color: var(--c-cyan);
  background: var(--c-cyan-soft);
  border-color: rgba(55, 214, 255, 0.35);
}
.pool-tag-test {
  color: var(--c-violet);
  background: var(--c-violet-soft);
  border-color: rgba(167, 139, 250, 0.35);
}

/* ----- Hero CTAs ----- */
.real-pool-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

/* ============================================================
   Workflow stack (5 numbered steps)
   ============================================================ */
.pool-flow-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.pool-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: flex-start;
  padding: 22px 26px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.pool-flow-step:hover {
  border-color: var(--border-green);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(57,255,20, 0.08);
}
/* Connector line between steps */
.pool-flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 62px;
  bottom: -19px;
  width: 2px;
  height: 19px;
  background: linear-gradient(180deg, rgba(57,255,20, 0.45), transparent);
}
.pool-flow-num {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--brand-green);
  background: var(--brand-green-soft);
  border: 1px solid rgba(57,255,20, 0.35);
  border-radius: 14px;
  letter-spacing: 0.02em;
}
.pool-flow-body { min-width: 0; }
.pool-flow-t {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 4px 0 6px;
  color: var(--text-primary, #fff);
}
.pool-flow-d {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   On-chain execution mock panel
   ============================================================ */
.exec-panel-mock {
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}
.exec-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(90deg, rgba(57,255,20, 0.06), transparent);
}
.exec-panel-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--brand-green-soft);
  color: var(--brand-green);
  border: 1px solid rgba(57,255,20, 0.30);
}
.exec-panel-title {
  flex: 1;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}
.exec-panel-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--brand-green-soft);
  border: 1px solid rgba(57,255,20, 0.40);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-green);
}
.exec-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 8px var(--brand-green-glow);
  animation: poolLivePulse 1.4s ease-in-out infinite;
}
.exec-panel-body {
  display: flex;
  flex-direction: column;
}
.exec-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-top: 1px solid var(--border-subtle);
}
.exec-row:first-child { border-top: none; }
.exec-row-num {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-default);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--brand-green);
  font-size: 0.95rem;
}
.exec-row-content { min-width: 0; }
.exec-row-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin-bottom: 3px;
}
.exec-row-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.exec-row-tx {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--brand-green);
  background: var(--brand-green-soft);
  border: 1px solid rgba(57,255,20, 0.25);
  white-space: nowrap;
}
.exec-row-tx i { font-size: 0.68rem; opacity: 0.7; }

/* ============================================================
   Safety notice card
   ============================================================ */
.pool-safety-card {
  max-width: 880px;
  margin: 56px auto 0;
  padding: 24px 28px;
  border: 1px solid rgba(255, 159, 69, 0.30);
  background: linear-gradient(180deg, rgba(255, 159, 69, 0.05), rgba(255, 159, 69, 0.02));
  border-radius: 16px;
}
.pool-safety-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.pool-safety-head > i {
  font-size: 1.4rem;
  color: var(--c-orange);
  margin-top: 2px;
  flex-shrink: 0;
}
.pool-safety-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-orange);
  margin-bottom: 4px;
}
.pool-safety-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
}
.pool-safety-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.pool-safety-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.pool-safety-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 6px rgba(255, 159, 69, 0.5);
}
.pool-safety-cta {
  margin-top: 22px;
  display: flex;
  justify-content: flex-start;
}

/* ============================================================
   Day mode adjustments
   ============================================================ */
[data-theme="light"] .pool-flow-step,
[data-theme="light"] .exec-panel-mock {
  background: rgba(255,255,255,0.65);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .pool-flow-t,
[data-theme="light"] .exec-row-title,
[data-theme="light"] .pool-safety-title {
  color: #0a0a0a;
}
[data-theme="light"] .exec-row-num {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.10);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .real-pool-section { padding: 72px 0 56px; }
  .pool-flow-step {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 20px;
  }
  .pool-flow-step:not(:last-child)::after { display: none; }
  .pool-flow-num { width: 48px; height: 48px; font-size: 1.3rem; }
  .exec-row {
    grid-template-columns: 32px 1fr;
    gap: 12px;
    padding: 16px;
  }
  .exec-row-tx {
    grid-column: 1 / -1;
    justify-self: flex-start;
    margin-left: 44px;
  }
  .pool-safety-list { grid-template-columns: 1fr; }
  .pool-safety-card { padding: 20px; }
  .real-pool-actions { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   Iter 10.17 — Multi-Chain Launch + Pool matrix (R153)
   ============================================================ */
.multichain-section {
  position: relative;
  padding: 96px 0 72px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(55, 214, 255, 0.05), transparent 60%);
  border-top: 1px solid var(--border-subtle);
}
.multichain-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

/* ----- Chain × DEX matrix table ----- */
.chain-matrix-wrap {
  margin: 48px auto 0;
  max-width: 980px;
  overflow-x: auto;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}
.chain-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.chain-matrix thead th {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  background: linear-gradient(90deg, rgba(55, 214, 255, 0.06), transparent);
  border-bottom: 1px solid var(--border-subtle);
}
.chain-matrix tbody tr {
  transition: background 0.2s ease;
}
.chain-matrix tbody tr:hover {
  background: rgba(57,255,20, 0.04);
}
.chain-matrix tbody td {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.chain-row-test {
  background: rgba(167, 139, 250, 0.04);
}
.chain-cell-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text-primary, #fff);
  white-space: nowrap;
}
.chain-cell-name img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  padding: 3px;
  flex-shrink: 0;
}
.chain-cell-id code {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-default);
  color: var(--brand-green);
}
.chain-cell-router .dex-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  white-space: nowrap;
}
/* DEX badge color variants */
.dex-badge-pancake   { color: #d68b1f; background: rgba(214, 139, 31, 0.10); border-color: rgba(214, 139, 31, 0.30); }
.dex-badge-uniswap   { color: #ff5cb8; background: rgba(255, 92, 184, 0.10); border-color: rgba(255, 92, 184, 0.30); }
.dex-badge-baseswap  { color: #5b8fff; background: rgba(91, 143, 255, 0.10); border-color: rgba(91, 143, 255, 0.30); }
.dex-badge-quickswap { color: #a78bfa; background: rgba(167, 139, 250, 0.10); border-color: rgba(167, 139, 250, 0.30); }
.dex-badge-sushi     { color: #ff9f45; background: rgba(255, 159, 69, 0.10);  border-color: rgba(255, 159, 69, 0.30); }
.dex-badge-traderjoe { color: #ff5c5c; background: rgba(255, 92, 92, 0.10);   border-color: rgba(255, 92, 92, 0.30); }

/* ----- Dual CTA + footnote ----- */
.multichain-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 56px;
}
.multichain-note {
  margin-top: 18px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.7;
  font-style: italic;
}

/* ----- Day mode adjustments ----- */
[data-theme="light"] .chain-matrix-wrap {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .chain-cell-name {
  color: #0a0a0a;
}
[data-theme="light"] .chain-cell-id code {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.10);
}
[data-theme="light"] .chain-cell-name img {
  background: rgba(0,0,0,0.04);
}

/* ----- Responsive ----- */
@media (max-width: 720px) {
  .multichain-section { padding: 72px 0 56px; }
  .chain-matrix { font-size: 0.84rem; }
  .chain-matrix thead th,
  .chain-matrix tbody td {
    padding: 12px 14px;
  }
  .chain-cell-name img { width: 22px; height: 22px; }
  .multichain-cta { flex-direction: column; align-items: stretch; }
}

/* ===== Iter 10.19 — AI Quant Agent module (compliance-friendly capability display) ===== */
.ai-quant-section {
  position: relative;
  padding: 96px 0 80px;
  border-top: 1px solid var(--border-soft);
  background:
    radial-gradient(ellipse 60% 50% at 30% 0%, rgba(0,255,153,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 70% 100%, rgba(60,140,255,0.05) 0%, transparent 70%);
}
.ai-quant-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 56px;
}
.ai-quant-head .eyebrow {
  margin-bottom: 14px;
}
.ai-quant-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.ai-quant-head h2 .accent { color: var(--brand-green); }
.ai-quant-head p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

/* 6 capability cards */
.ai-quant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
@media (max-width: 980px) { .ai-quant-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ai-quant-grid { grid-template-columns: 1fr; } }

.ai-cap-card {
  position: relative;
  padding: 24px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ai-cap-card:hover {
  border-color: var(--brand-green);
  transform: translateY(-2px);
}
.ai-cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,255,153,0.12), rgba(60,140,255,0.10));
  border: 1px solid rgba(0,255,153,0.22);
  color: var(--brand-green);
  font-size: 18px;
  margin-bottom: 14px;
}
.ai-cap-t {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.ai-cap-b {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* Subscription tier strip */
.ai-tier-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 32px;
}
.ai-tier-head h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 8px 0 12px;
  font-weight: 700;
}
.ai-tier-head p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}
.ai-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}
@media (max-width: 980px) { .ai-tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ai-tier-grid { grid-template-columns: 1fr; } }

.ai-tier-card {
  position: relative;
  padding: 22px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ai-tier-card.is-featured {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 1px rgba(0,255,153,0.18), 0 8px 32px rgba(0,255,153,0.08);
}
.ai-tier-card:hover { transform: translateY(-2px); }
.ai-tier-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0,255,153,0.10);
  color: var(--brand-green);
  border: 1px solid rgba(0,255,153,0.25);
  font-family: var(--font-mono);
  font-weight: 500;
}
.ai-tier-name {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.ai-tier-desc {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}
.ai-tier-arrow {
  font-size: 0.82rem;
  color: var(--brand-green);
  margin-top: 8px;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-weight: 500;
}
.ai-tier-arrow:hover { text-decoration: underline; }

/* Compliance / CTA strip */
.ai-quant-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0 0 36px;
}
.ai-disclaimer {
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px dashed rgba(255,180,60,0.32);
  background: rgba(255,180,60,0.04);
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.ai-disclaimer-title {
  display: inline-block;
  font-weight: 600;
  color: rgba(255,200,90,0.95);
  margin-right: 8px;
}
.ai-disclaimer-title i { margin-right: 6px; }

/* Day-mode adjustments */
[data-theme="light"] .ai-cap-card,
[data-theme="light"] .ai-tier-card {
  background: rgba(255,255,255,0.78);
}
[data-theme="light"] .ai-disclaimer {
  background: rgba(255,180,60,0.10);
}

/* Demo data marker — small inline tag */
.demo-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  margin-left: 6px;
  background: rgba(255,180,60,0.14);
  color: rgba(255,200,90,0.95);
  border: 1px solid rgba(255,180,60,0.35);
  border-radius: 4px;
  vertical-align: middle;
}
[data-theme="light"] .demo-tag {
  background: rgba(190,130,0,0.12);
  color: rgba(170,110,0,1);
  border-color: rgba(190,130,0,0.32);
}
