/* =========================================================================
   atlas_ — site styles
   ========================================================================= */

:root {
  /* tokens — defaults set by [data-theme] selectors below */
  --bg:        #0b0d0c;
  --bg-soft:   #131614;
  --bg-card:   #181b19;
  --text:      #ebe6db;
  --muted:     rgba(235, 230, 219, .56);
  --faint:     rgba(235, 230, 219, .28);
  --line:      rgba(235, 230, 219, .12);
  --hairline:  rgba(235, 230, 219, .06);
  --accent:    #d4a574;
  --accent-2:  #c2876b;
  --aurora-blend: screen;
  --noise-opacity: 0.18;

  --max:       1440px;
  --pad:       clamp(20px, 4vw, 64px);

  --f-display: "Space Grotesk", "Noto Sans SC", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-body:    "Space Grotesk", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", "Noto Sans SC", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ── DARK (default) ── */
html[data-theme="dark"] {
  --bg:        #0b0d0c;
  --bg-soft:   #131614;
  --bg-card:   #181b19;
  --text:      #ebe6db;
  --muted:     rgba(235, 230, 219, .56);
  --faint:     rgba(235, 230, 219, .28);
  --line:      rgba(235, 230, 219, .12);
  --hairline:  rgba(235, 230, 219, .06);
  --aurora-blend: screen;
  --noise-opacity: 0.18;
  --grid-color: rgba(235,230,219,.045);
  --nav-fade-from: rgba(11,13,12,.85);
}

/* ── LIGHT ── */
html[data-theme="light"] {
  --bg:        #f4efe6;
  --bg-soft:   #ece5d4;
  --bg-card:   #e6dec9;
  --text:      #1c1812;
  --muted:     rgba(28, 24, 18, .58);
  --faint:     rgba(28, 24, 18, .32);
  --line:      rgba(28, 24, 18, .14);
  --hairline:  rgba(28, 24, 18, .07);
  --accent:    #b8814f;
  --accent-2:  #a05a3b;
  --aurora-blend: multiply;
  --noise-opacity: 0.08;
  --grid-color: rgba(28,24,18,.06);
  --nav-fade-from: rgba(244,239,230,.85);
}

/* ── RAMS (Braun / Dieter Rams 工业克制) ── */
html[data-theme="rams"] {
  --bg:        #fbfaf6;
  --bg-soft:   #f3f1ea;
  --bg-card:   #ffffff;
  --text:      #161616;
  --muted:     rgba(22, 22, 22, .56);
  --faint:     rgba(22, 22, 22, .30);
  --line:      rgba(22, 22, 22, .12);
  --hairline:  rgba(22, 22, 22, .06);
  --accent:    #e2522a;
  --accent-2:  #161616;
  --aurora-blend: multiply;
  --noise-opacity: 0;
  --grid-color: rgba(22,22,22,.04);
  --nav-fade-from: rgba(251,250,246,.92);
}
/* RAMS overrides — 克制掉浮夸 */
html[data-theme="rams"] .aurora { display: none; }
html[data-theme="rams"] .hero-noise { display: none; }
html[data-theme="rams"] .hero-rays { display: none; }
html[data-theme="rams"] .particles { display: none; }
html[data-theme="rams"] .hero-grid {
  /* keep grid, no breathing — industrial precision */
  animation: none;
  mask-image: none;
  -webkit-mask-image: none;
  opacity: .6;
}
html[data-theme="rams"] .hero-bg {
  background: var(--bg);
}
html[data-theme="rams"] .grad,
html[data-theme="rams"] .grad-accent {
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
}
html[data-theme="rams"] .h-display .u,
html[data-theme="rams"] .footer-brand .u,
html[data-theme="rams"] .nav-brand .u,
html[data-theme="rams"] .headline-2 .u {
  color: var(--accent);
}
html[data-theme="rams"] .coin {
  background: radial-gradient(circle at 30% 30%, #4a4a4a 0%, #2a2a2a 50%, #0f0f0f 100%);
  box-shadow:
    inset -10px -15px 30px rgba(0,0,0,.5),
    inset 10px 10px 20px rgba(255,255,255,.05),
    0 30px 60px rgba(0,0,0,.2);
}
html[data-theme="rams"] .coin-mark { color: var(--accent); }
html[data-theme="rams"] .product-visual {
  background: var(--bg-card);
}
html[data-theme="rams"] .why-card:hover { background: var(--bg-soft); }
html[data-theme="rams"] .uc-row:hover { background: var(--bg-soft); }
html[data-theme="rams"] .assets {
  background: var(--bg);
}
html[data-theme="rams"] .ws-tree { background: var(--bg-card); }
html[data-theme="rams"] .ws-preview-stage {
  background: var(--bg-card);
}
html[data-theme="rams"] .skeleton {
  background: linear-gradient(100deg, var(--bg-soft) 0%, var(--bg-soft) 40%, var(--bg-card) 50%, var(--bg-soft) 60%, var(--bg-soft) 100%);
  background-size: 200% 100%;
}

/* =========================================================================
   ACCENT PALETTES — 全站主题色（与 theme 正交）
   ========================================================================= */
html[data-accent="amber"]    { --accent: #d4a574; --accent-2: #c2876b; }
html[data-accent="orange"]   { --accent: #e2522a; --accent-2: #a93a1a; }
html[data-accent="mint"]     { --accent: #7dd3c0; --accent-2: #4a9b8a; }
html[data-accent="cobalt"]   { --accent: #6878d4; --accent-2: #4854a0; }
html[data-accent="rose"]     { --accent: #d49b9b; --accent-2: #b06b6b; }
html[data-accent="matcha"]   { --accent: #a8b56c; --accent-2: #7a8842; }
html[data-accent="violet"]   { --accent: #8a7ee0; --accent-2: #5648a0; }
html[data-accent="ink"]      { --accent: #2a2a2a; --accent-2: #555555; }

/* light theme rebalances some accents to keep contrast */
html[data-theme="light"][data-accent="mint"]   { --accent: #4a9b8a; --accent-2: #2d6e60; }
html[data-theme="light"][data-accent="cobalt"] { --accent: #4854a0; --accent-2: #2f3674; }
html[data-theme="light"][data-accent="violet"] { --accent: #5648a0; --accent-2: #36296e; }
html[data-theme="light"][data-accent="rose"]   { --accent: #a05a5a; --accent-2: #6e3838; }
html[data-theme="light"][data-accent="matcha"] { --accent: #6f7a3a; --accent-2: #4d551f; }
html[data-theme="light"][data-accent="ink"]    { --accent: #1c1812; --accent-2: #555555; }

/* rams locks accent to signal orange regardless of palette picker */
html[data-theme="rams"] { --accent: #e2522a; --accent-2: #161616; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); transition: background .4s, color .4s; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
::selection { background: var(--accent); color: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* lang-conditional adjustments */
html[data-lang="zh"] .h-display,
html[data-lang="zh"] .h-1,
html[data-lang="zh"] .h-2,
html[data-lang="zh"] .h-3 {
  letter-spacing: -0.01em;
  text-transform: none;
}
html[data-lang="zh"] .rotator-track,
html[data-lang="zh"] .why-title,
html[data-lang="zh"] .uc-title,
html[data-lang="zh"] .footer-brand,
html[data-lang="zh"] .nav-brand { text-transform: none; }

html[data-lang="zh"] .lang-en { display: none; }
html[data-lang="en"] .lang-zh { display: none; }
html[data-theme="rams"] .ico-sun,
html[data-theme="rams"] .ico-moon { display: none; }
html[data-theme="rams"] .ico-rams { display: block; }
html[data-theme="dark"] .ico-rams,
html[data-theme="light"] .ico-rams { display: none; }

/* ─── Type scale ─── */
.h-display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.92;
  text-transform: lowercase;
  font-size: clamp(48px, 9vw, 144px);
}
.h-display .u { color: var(--accent); }

/* Gradient text — avenia-style warm sunrise on display headlines */
.grad {
  background: linear-gradient(135deg,
    var(--text) 0%,
    var(--text) 35%,
    var(--accent) 65%,
    var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .grad {
  background: linear-gradient(135deg,
    var(--text) 0%,
    var(--accent-2) 55%,
    var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.grad-accent {
  background: linear-gradient(135deg, #f4d5a8 0%, var(--accent) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.h-1 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-transform: lowercase;
  font-size: clamp(36px, 5.5vw, 88px);
}
.h-2 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-transform: lowercase;
  font-size: clamp(28px, 3.6vw, 56px);
}
.h-3 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-transform: lowercase;
  font-size: clamp(20px, 1.8vw, 28px);
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono { font-family: var(--f-mono); }

/* ─── Layout ─── */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(64px, 10vw, 160px) 0; }
.divider { height: 1px; background: var(--line); width: 100%; }

/* ─── Reveal on scroll ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,0,1), transform .9s cubic-bezier(.2,.7,0,1); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-mono); font-size: 12px;
  background: linear-gradient(to bottom, var(--nav-fade-from), transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .4s;
}
.nav-brand {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.nav-brand .u { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
html[data-lang="en"] .nav-links a { text-transform: lowercase; }

.nav-cta {
  border: 1px solid currentColor;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: all .2s;
  color: var(--text);
}
.nav-cta:hover { background: var(--text); color: var(--bg); }
html[data-lang="en"] .nav-cta { text-transform: lowercase; }

.nav-right { display: flex; gap: 12px; align-items: center; }
.icon-btn, .lang-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: all .2s;
  font-family: var(--f-mono);
  font-size: 11px;
}
.icon-btn:hover, .lang-toggle:hover { color: var(--text); border-color: var(--text); transform: rotate(-10deg); }
.lang-toggle:hover { transform: scale(1.05); }
.lang-toggle .dot { display: none; }

@media (max-width: 880px) { .nav-links { display: none; } }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--pad) 80px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: var(--bg);
  overflow: hidden;
}

/* Aurora orbs */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: var(--aurora-blend);
  pointer-events: none;
  will-change: transform;
}
.aurora-1 {
  width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px;
  top: -20%; right: -20%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity: .55;
  animation: drift-a 28s ease-in-out infinite;
}
.aurora-2 {
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  bottom: -25%; left: -15%;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 60%);
  opacity: .45;
  animation: drift-b 36s ease-in-out infinite;
  animation-delay: -8s;
}
.aurora-3 {
  width: 36vw; height: 36vw; max-width: 600px; max-height: 600px;
  top: 35%; left: 38%;
  background: radial-gradient(circle, #8a5f3d 0%, transparent 65%);
  opacity: .4;
  animation: drift-c 42s ease-in-out infinite;
  animation-delay: -14s;
}
html[data-theme="light"] .aurora-1 { opacity: .35; }
html[data-theme="light"] .aurora-2 { opacity: .28; }
html[data-theme="light"] .aurora-3 { opacity: .22; }

@keyframes drift-a {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-8vw, 6vh) scale(1.15); }
  66% { transform: translate(6vw, -4vh) scale(0.9); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0,0) scale(1); }
  40% { transform: translate(10vw, -8vh) scale(1.1); }
  75% { transform: translate(-4vw, 4vh) scale(.85); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0,0) scale(1) rotate(0); }
  50% { transform: translate(-12vw, 10vh) scale(1.3) rotate(20deg); }
}

/* Grid layer */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, #000 25%, transparent 80%);
  animation: grid-breathe 12s ease-in-out infinite;
}
@keyframes grid-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: .85; }
}

/* Noise overlay */
.hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.92  0 0 0 0 0.90  0 0 0 0 0.86  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: var(--noise-opacity);
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Light rays (subtle godrays from top) */
.hero-rays {
  position: absolute; top: 0; left: 0; width: 100%; height: 60%;
  color: var(--accent);
  opacity: .35;
  mix-blend-mode: var(--aurora-blend);
  pointer-events: none;
}
.rays-group { transform-origin: 50% 100%; animation: ray-sweep 22s ease-in-out infinite; }
@keyframes ray-sweep {
  0%, 100% { transform: rotate(-6deg); opacity: .25; }
  50% { transform: rotate(8deg); opacity: .55; }
}
html[data-theme="light"] .hero-rays { opacity: .18; }

/* Particles */
.particles {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: float-up linear infinite;
}
html[data-theme="light"] .particle { background: var(--accent-2); box-shadow: 0 0 4px var(--accent-2); }
@keyframes float-up {
  from { transform: translateY(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to   { transform: translateY(-120vh); opacity: 0; }
}

/* ── hero contents ── */
.hero-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px;
  margin-bottom: auto;
}
.hero-tag {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.16em;
}
.hero-tag .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212,165,116,.7); }
  70% { box-shadow: 0 0 0 12px rgba(212,165,116,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,165,116,0); }
}
.hero-watch {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .2s;
}
.hero-watch:hover { color: var(--text); border-color: var(--text); }

.hero-body { display: flex; flex-direction: column; gap: 28px; }
.hero-body .h-display {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 0;
}
.hero-body .headline-gap { display: inline-block; width: 0.4em; }
.hero-sub {
  max-width: 520px;
  font-size: clamp(15px, 1.25vw, 18px);
  color: var(--text);
  line-height: 1.5;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border: 1px solid var(--text);
  border-radius: 999px;
  width: max-content;
  transition: all .2s;
  color: var(--text);
}
.hero-cta:hover { background: var(--text); color: var(--bg); }
.hero-cta .arrow { transition: transform .2s; }
.hero-cta:hover .arrow { transform: translateX(4px); }

/* stats row */
.stats {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  display: flex; align-items: baseline; gap: 6px;
  font-variant-numeric: tabular-nums;
}
.stat-num .pre { font-size: 0.4em; color: var(--muted); font-family: var(--f-mono); letter-spacing: 0; }
.stat-num .post { font-size: 0.5em; color: var(--accent); }
.stat-lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
  margin-top: 10px;
  max-width: 200px;
  line-height: 1.5;
}
@media (max-width: 720px) { /* stats handled below */ }

.hero-scroll-hint {
  position: absolute; bottom: 16px; right: var(--pad);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll-hint .line {
  display: inline-block; width: 32px; height: 1px;
  background: linear-gradient(to right, var(--muted), transparent);
  animation: hint-line 2.4s ease-in-out infinite;
}
@keyframes hint-line { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(6px); opacity: .4; } }

/* =========================================================================
   MOBILE — portrait optimization
   ========================================================================= */
@media (max-width: 880px) {
  .nav { padding: 14px var(--pad); }
  .nav-brand { font-size: 16px; }
  .nav-right { gap: 8px; }
  .icon-btn, .lang-toggle { width: 30px; height: 30px; }
  .nav-cta { padding: 6px 12px; font-size: 10.5px; }
}

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

  /* ── Hero: stop being 100vh, let content drive ── */
  .hero {
    min-height: auto;
    padding: 96px var(--pad) 56px;
    gap: 28px;
  }

  /* status pill + watch pill — stack vertically, smaller */
  .hero-top {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 24px;
  }
  .hero-tag { font-size: 10px; letter-spacing: 0.14em; }
  .hero-watch { font-size: 10px; padding: 6px 12px; letter-spacing: 0.14em; }

  /* Headline: stack onto two lines */
  .hero-body { gap: 18px; }
  .hero-body .h-display {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-size: clamp(56px, 17vw, 88px);
    line-height: 0.95;
  }
  .hero-body .headline-gap { display: none; }
  .hero-body .headline-2 { display: inline; }
  .hero-body .h-display .u { font-size: 0.95em; }

  .hero-sub { font-size: 15px; max-width: 32ch; }
  .hero-cta { padding: 11px 18px; font-size: 12px; }

  /* Stats — horizontal rows instead of grid */
  .stats {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 36px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline);
  }
  .stat:last-child { border-bottom: 0; }
  .stat-num {
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.03em;
    order: 2;
    justify-self: end;
    gap: 3px;
  }
  .stat-num .pre { font-size: 0.32em; }
  .stat-num .post { font-size: 0.45em; }
  .stat-lbl {
    margin-top: 0;
    font-size: 10.5px;
    line-height: 1.4;
    letter-spacing: 0.12em;
    max-width: none;
    order: 1;
    color: var(--muted);
  }

  .hero-scroll-hint { display: none; }

  /* Aurora orbs — smaller, less spread */
  .aurora-1 { width: 90vw; height: 90vw; }
  .aurora-2 { width: 80vw; height: 80vw; }
  .aurora-3 { width: 60vw; height: 60vw; }

  /* ── Section spacing tighter ── */
  .section { padding: 64px 0; }
  .tagline { padding: 72px var(--pad); }
  .tagline .h-1 { max-width: none; }

  /* Why grid: 2-col → 1-col already handled; tighten padding */
  .why-card { min-height: 220px; padding: 24px 20px; gap: 12px; }
  .why-title { font-size: 22px; }
  .why-desc { font-size: 13.5px; }

  /* Rotator slower / smaller */
  .rotator { padding: 56px 0; }
  .rotator-track { gap: 48px; font-size: clamp(26px, 7vw, 40px); }
  .rotator-track span { gap: 48px; }

  /* Product 2-col → 1-col, tighter visual */
  .product { gap: 36px; }
  .product-visual {
    aspect-ratio: auto;
    min-height: 320px;
    padding: 28px 16px;
  }
  .code-card,
  .dash { width: 100%; max-width: 420px; }
  .code-card pre { font-size: 11px; padding: 14px 14px; }
  .dash { padding: 16px; }
  .dash-num { font-size: 30px; }

  /* Use cases: stack but cleaner */
  .uc-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
    align-items: start;
  }
  .uc-num { font-size: 10.5px; letter-spacing: 0.14em; color: var(--accent); }
  .uc-title { font-size: 19px; line-height: 1.3; max-width: 26ch; }
  .uc-desc, .uc-arr { grid-column: 1; padding-left: 0; }
  .uc-desc { font-size: 13.5px; line-height: 1.55; }
  .uc-arr { text-align: left; margin-top: 4px; font-size: 14px; }
  .uc-row:hover { padding-left: 6px; padding-right: 6px; }

  /* Constellation smaller on mobile */
  .constellation { max-width: 320px; }
  .core-mark { font-size: 40px; }
  .orbit-chip { font-size: 9.5px; padding: 4px 10px; }
  .orbit-chip.lg { font-size: 10.5px; padding: 5px 12px; }

  /* Logo strip slow + small */
  .logos { padding: 28px 0 20px; }
  .logos-lbl { font-size: 10px; margin-bottom: 16px; }
  .logos-row { font-size: 17px; gap: 56px; }

  /* Final CTA tighter */
  .final { padding: 80px var(--pad); }
  .final .h-display { font-size: clamp(52px, 14vw, 84px); max-width: none; }
  .final p { font-size: 15px; margin: 20px auto 32px; max-width: 30ch; }

  /* Footer */
  .footer { padding: 40px var(--pad) 48px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 24px; margin-bottom: 24px; }
  .footer-links { align-self: flex-start; gap: 16px 24px; }
  .footer-brand { font-size: 44px; }
  .footer-legal { font-size: 10.5px; line-height: 1.65; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  /* Section labels: shorter line */
  .section-lbl { font-size: 10px; gap: 10px; margin-bottom: 24px; }
  .section-lbl .line { flex: 0 0 32px; }
}

@media (max-width: 420px) {
  .hero-body .h-display { font-size: 56px; }
  .stat-num { font-size: 34px; }
  .h-1 { font-size: 36px; }
  .h-2 { font-size: 28px; }
  .footer-brand { font-size: 38px; }
}

/* Landscape phones — keep hero compact */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 88px; padding-bottom: 48px; }
  .hero-body .h-display { font-size: clamp(40px, 8vw, 64px); }
  .stats { margin-top: 32px; }
}

/* =========================================================================
   LOGO STRIP
   ========================================================================= */
.logos {
  padding: 40px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
}
.logos-lbl {
  text-align: center;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.logos-track {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.logos-row {
  display: flex; gap: 80px;
  white-space: nowrap;
  animation: logo-scroll 40s linear infinite;
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--muted);
}
.logo-item { display: inline-flex; align-items: center; opacity: .65; transition: opacity .2s; }
.logo-item:hover { opacity: 1; color: var(--text); }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================================
   TAGLINE
   ========================================================================= */
.tagline {
  padding: clamp(80px, 12vw, 180px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.tagline .h-1 { max-width: 22ch; }
.tagline-marquee {
  margin-top: clamp(48px, 8vw, 96px);
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* =========================================================================
   WHY GRID
   ========================================================================= */
.why-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: clamp(40px, 6vw, 80px);
  gap: 32px; flex-wrap: wrap;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.why-card {
  background: var(--bg);
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 300px;
  position: relative;
  transition: background .3s;
  overflow: hidden;
}
.why-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  transform: scaleX(0); transition: transform .4s;
}
.why-card:hover { background: var(--bg-soft); }
.why-card:hover::after { transform: scaleX(1); }
.why-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.why-title {
  font-family: var(--f-display);
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: lowercase;
  margin-top: auto;
}
.why-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 30ch;
}
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   ROTATING LIST
   ========================================================================= */
.rotator {
  background: var(--bg-soft);
  padding: clamp(60px, 8vw, 120px) 0;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.rotator-lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-align: center;
  margin-bottom: 28px;
}
html[data-lang="en"] .rotator-lbl { text-transform: uppercase; }
.rotator-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: scroll 50s linear infinite;
  font-family: var(--f-display);
  font-size: clamp(28px, 4.4vw, 64px);
  letter-spacing: -0.02em;
  text-transform: lowercase;
  font-weight: 500;
  line-height: 1;
}
.rotator-track span { display: inline-flex; align-items: center; gap: 64px; }
.rotator-track span::after {
  content: "✦";
  color: var(--accent);
  font-size: 0.5em;
  vertical-align: middle;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================================
   PRODUCT 2-COL
   ========================================================================= */
.product-section { background: var(--bg-soft); }
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.product-text { display: flex; flex-direction: column; gap: 28px; }
.product-text p { color: var(--muted); max-width: 50ch; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; }
.product-link {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--accent);
  display: inline-flex; gap: 8px; align-items: center;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  width: max-content;
  transition: gap .2s;
}
.product-link:hover { gap: 14px; }
html[data-lang="en"] .product-link { text-transform: lowercase; }

.product-visual {
  aspect-ratio: 4/5;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(135deg, var(--bg-card) 0%, var(--bg) 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-visual.flip { order: -1; }
@media (max-width: 880px) {
  .product { grid-template-columns: 1fr; }
  .product-visual.flip { order: 0; }
}

/* code card */
.code-card {
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: min(85%, 440px);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.code-card .code-hd {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 6px; align-items: center;
  color: var(--muted);
  font-size: 11px;
}
.code-card .dot { width: 8px; height: 8px; border-radius: 50%; }
.code-card .dot.r { background: #c84a3c; }
.code-card .dot.y { background: var(--accent); }
.code-card .dot.g { background: #6ba87a; }
.code-card .code-name { margin-left: 8px; letter-spacing: 0.06em; }
.code-card pre {
  padding: 18px 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre;
  overflow-x: auto;
}
.code-card .k  { color: var(--accent-2); }
.code-card .s  { color: var(--accent); }
.code-card .n  { color: var(--text); }
.code-card .c  { color: var(--faint); }
.code-card .v  { color: var(--text); }
.code-card .ok { color: #6ba87a; }

/* dashboard */
.dash {
  width: 90%; max-width: 460px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  display: flex; flex-direction: column; gap: 14px;
}
.dash-hd { display: flex; justify-content: space-between; align-items: center; }
.dash-hd .h { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
html[data-lang="en"] .dash-hd .h { text-transform: uppercase; }
.dash-num { font-family: var(--f-display); font-size: 38px; letter-spacing: -0.025em; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.dash-num .sub { color: var(--accent); font-size: 0.5em; }
.dash-chart {
  height: 100px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.dash-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dash-rows { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-mono); font-size: 11px; }
.dash-row { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--hairline); color: var(--muted); }
.dash-row .v { color: var(--text); font-variant-numeric: tabular-nums; }

/* =========================================================================
   USE CASES
   ========================================================================= */
.usecases h2 { margin-bottom: clamp(40px, 6vw, 80px); }
.uc-list { display: flex; flex-direction: column; }
.uc-row {
  display: grid;
  grid-template-columns: 60px 1.1fr 1.4fr 60px;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  cursor: pointer;
  transition: padding .3s, background .3s;
}
.uc-row:last-child { border-bottom: 1px solid var(--line); }
.uc-row:hover { padding-left: 12px; padding-right: 12px; background: var(--bg-soft); }
.uc-row:hover .uc-arr { transform: translateX(8px); color: var(--accent); }
.uc-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
}
.uc-title {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.uc-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 52ch;
}
.uc-arr {
  font-family: var(--f-mono);
  color: var(--muted);
  text-align: right;
  transition: all .25s;
}
@media (max-width: 720px) {
  /* uc-row handled in mobile block */
}

/* =========================================================================
   ASSETS
   ========================================================================= */
.assets {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 60%),
    var(--bg);
}
.assets-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.assets-text { display: flex; flex-direction: column; gap: 24px; }
.assets-text p { color: var(--muted); font-size: clamp(15px, 1.15vw, 17px); max-width: 50ch; line-height: 1.55; }

.coin {
  aspect-ratio: 1;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #f4d5a8 0%, #d4a574 30%, #8a5f3d 70%, #2a1d12 100%);
  box-shadow:
    inset -20px -30px 60px rgba(0,0,0,.5),
    inset 20px 20px 40px rgba(255,210,160,.3),
    0 60px 100px color-mix(in oklab, var(--accent) 25%, transparent);
  display: flex; align-items: center; justify-content: center;
  animation: float 8s ease-in-out infinite;
}
.coin::before {
  content: ""; position: absolute; inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
}
.coin-mark {
  font-family: var(--f-display);
  font-size: clamp(64px, 10vw, 140px);
  color: #2a1d12;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}
.coin-orbit {
  position: absolute; inset: -10%;
  border-radius: 50%;
  border: 1px dashed var(--line);
  animation: orbit-spin 40s linear infinite;
}
.coin-tick {
  position: absolute; top: 50%; left: 50%;
  font-family: var(--f-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.18em;
  transform: rotate(var(--ang)) translateY(calc(-50% - 50%)) translateY(-2px);
  transform-origin: 0 0;
}
@keyframes orbit-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

/* =========================================================================
   CONSTELLATION (templates section)
   ========================================================================= */
.constellation {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  --con-accent: var(--accent);
  --con-accent-2: var(--accent-2);
  animation: con-float 9s ease-in-out infinite;
  container-type: inline-size;
}
@keyframes con-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* core */
.con-core {
  position: relative;
  width: 28%; height: 28%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, color-mix(in oklab, var(--con-accent) 70%, white) 0%,
                                       var(--con-accent) 35%,
                                       color-mix(in oklab, var(--con-accent-2) 60%, #1a0e08) 75%,
                                       #1a0e08 100%);
  box-shadow:
    inset -8px -10px 24px rgba(0,0,0,.45),
    inset 8px 8px 18px rgba(255,210,160,.25),
    0 0 80px color-mix(in oklab, var(--con-accent) 35%, transparent),
    0 0 120px color-mix(in oklab, var(--con-accent) 20%, transparent);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 3;
}
.core-mark {
  font-family: var(--f-display);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: #1c0d04;
  line-height: 1;
}
.core-u { color: color-mix(in oklab, var(--con-accent-2) 60%, #4a2410); }
.core-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid color-mix(in oklab, var(--con-accent) 70%, transparent);
  animation: core-pulse 3s ease-out infinite;
}
@keyframes core-pulse {
  0%   { transform: scale(1);    opacity: .9; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* rotating orbits */
.con-orbit {
  position: absolute; inset: 0;
  border-radius: 50%;
  z-index: 2;
}
.orbit-1 { animation: orbit-cw  28s linear infinite; }
.orbit-2 { animation: orbit-ccw 42s linear infinite; }
.orbit-3 { animation: orbit-cw  60s linear infinite; }
@keyframes orbit-cw  { to { transform: rotate(360deg); } }
@keyframes orbit-ccw { to { transform: rotate(-360deg); } }

/* chip on orbit — sits at given angle, counter-rotates with orbit so it stays upright */
.orbit-chip {
  position: absolute;
  top: 50%; left: 50%;
  transform-origin: 0 0;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text);
  background: color-mix(in oklab, var(--bg-card) 80%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid color-mix(in oklab, var(--con-accent) 35%, var(--line));
  border-radius: 999px;
  padding: 5px 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25),
              0 0 24px color-mix(in oklab, var(--con-accent) 18%, transparent);
  white-space: nowrap;
}
.orbit-chip.lg {
  font-size: 11.5px;
  padding: 6px 14px;
  background: color-mix(in oklab, var(--con-accent) 16%, var(--bg-card));
  border-color: color-mix(in oklab, var(--con-accent) 50%, transparent);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(0,0,0,.3),
              0 0 32px color-mix(in oklab, var(--con-accent) 30%, transparent);
}

/* radius positioning — use cqi (container inline width %) so radius scales with constellation size, not the chip itself */
.orbit-1 .orbit-chip { transform: rotate(var(--ang)) translateY(-21cqi) translate(-50%, 0) rotate(calc(-1 * var(--ang))); }
.orbit-2 .orbit-chip { transform: rotate(var(--ang)) translateY(-32cqi) translate(-50%, 0) rotate(calc(-1 * var(--ang))); }
/* counter-rotate so chips appear stable as orbit spins */
.orbit-1 { animation-name: orbit-cw;  }
.orbit-2 { animation-name: orbit-ccw; }

/* dots on outer orbit */
.orbit-dot {
  position: absolute; top: 50%; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--con-accent);
  box-shadow: 0 0 12px var(--con-accent),
              0 0 24px color-mix(in oklab, var(--con-accent) 50%, transparent);
  transform-origin: 0 0;
}
.orbit-3 .orbit-dot { transform: rotate(var(--ang)) translateY(-43cqi) translate(-50%, -50%); }
.orbit-3 .orbit-dot:nth-child(2) { animation: dot-twinkle 2.2s ease-in-out infinite; }
.orbit-3 .orbit-dot:nth-child(4) { animation: dot-twinkle 2.8s ease-in-out .8s infinite; }
@keyframes dot-twinkle {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

/* svg rings — dashed circles drawn precisely so they don't blur */
.con-rings {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.con-rings .ring {
  fill: none;
  stroke: color-mix(in oklab, var(--con-accent) 28%, var(--line));
  stroke-width: 0.3;
  stroke-dasharray: 0.5 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.con-rings .ring.r1 { animation: ring-spin  90s linear infinite; transform-origin: center; }
.con-rings .ring.r2 { animation: ring-spin-r 120s linear infinite; transform-origin: center; }
.con-rings .ring.r3 { animation: ring-spin  150s linear infinite; transform-origin: center; }
@keyframes ring-spin   { to { transform: rotate(360deg); } }
@keyframes ring-spin-r { to { transform: rotate(-360deg); } }

/* hover lift */
.constellation:hover .orbit-chip.lg {
  box-shadow: 0 8px 28px rgba(0,0,0,.4),
              0 0 40px color-mix(in oklab, var(--con-accent) 40%, transparent);
  transition: box-shadow .5s;
}

/* light theme — softer glow */
html[data-theme="light"] .orbit-chip,
html[data-theme="light"] .orbit-chip.lg {
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  color: var(--text);
}
html[data-theme="light"] .core-pulse { border-color: color-mix(in oklab, var(--con-accent) 60%, transparent); }

/* rams theme — strip all glow, single accent color, sharp geometry */
html[data-theme="rams"] .constellation { animation: none; }
html[data-theme="rams"] .con-core {
  background: var(--text);
  box-shadow: none;
}
html[data-theme="rams"] .core-mark { color: var(--bg); }
html[data-theme="rams"] .core-u { color: var(--accent); }
html[data-theme="rams"] .core-pulse {
  border: 1px solid var(--text);
  animation: core-pulse-rams 3.5s ease-out infinite;
}
@keyframes core-pulse-rams {
  0%   { transform: scale(1);   opacity: .35; }
  100% { transform: scale(1.6); opacity: 0; }
}
html[data-theme="rams"] .orbit-chip,
html[data-theme="rams"] .orbit-chip.lg {
  background: var(--bg);
  border: 1px solid var(--text);
  color: var(--text);
  box-shadow: none;
  backdrop-filter: none;
}
html[data-theme="rams"] .orbit-chip.lg {
  background: var(--text);
  color: var(--bg);
}
html[data-theme="rams"] .orbit-dot {
  background: var(--accent);
  box-shadow: none;
}
html[data-theme="rams"] .con-rings .ring {
  stroke: var(--text);
  stroke-opacity: .25;
  stroke-dasharray: 1 3;
}
@media (max-width: 880px) { .assets-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   FINAL CTA
   ========================================================================= */
.final {
  position: relative;
  text-align: center;
  padding: clamp(80px, 14vw, 200px) var(--pad);
  overflow: hidden;
  isolation: isolate;
}
.final-bg { z-index: -1; }
.final .h-display { max-width: 14ch; margin: 0 auto; }
.final p { color: var(--muted); margin: 24px auto 40px; max-width: 44ch; font-size: 18px; line-height: 1.5; }
.final .hero-cta { margin: 0 auto; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px var(--pad) 64px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.footer-top {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.footer-brand {
  font-family: var(--f-display);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--text);
  line-height: 1;
}
.footer-brand .u { color: var(--accent); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; align-self: flex-end; }
.footer-links a { color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
html[data-lang="en"] .footer-links a { text-transform: lowercase; }
.footer-legal {
  max-width: 76ch;
  line-height: 1.7;
  color: var(--faint);
  font-size: 10.5px;
}
.footer-bottom {
  margin-top: 32px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: var(--faint);
}

/* =========================================================================
   VIBE CODING — 通用微交互动画
   ========================================================================= */

/* ── 流式输出 typing cursor ── */
.streaming::after {
  content: "▍";
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  animation: caret 1s steps(2) infinite;
  vertical-align: -0.05em;
}
@keyframes caret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ── 思考中三点 thinking dots ── */
.thinking-dots {
  display: inline-flex; align-items: center; gap: 4px;
  height: 1em;
}
.thinking-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: dot-bounce 1.2s ease-in-out infinite;
}
.thinking-dots span:nth-child(2) { animation-delay: .15s; }
.thinking-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dot-bounce {
  0%, 70%, 100% { opacity: .25; transform: translateY(0) scale(.8); }
  35%           { opacity: 1;   transform: translateY(-3px) scale(1); }
}

/* ── 骨架屏 skeleton shimmer ── */
.skeleton {
  background: linear-gradient(
    100deg,
    var(--bg-soft)   0%,
    var(--bg-soft)  40%,
    color-mix(in oklab, var(--text) 8%, var(--bg-soft)) 50%,
    var(--bg-soft)  60%,
    var(--bg-soft) 100%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── 进度填充条 progress bar ── */
.zao-progress {
  height: 4px;
  background: var(--hairline);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.zao-progress .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), #f4d5a8);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.zao-progress .bar::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.35) 50%,
    transparent 100%);
  animation: progress-shimmer 1.4s linear infinite;
}
@keyframes progress-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── indeterminate progress ── */
.zao-progress.indet .bar {
  width: 35%;
  animation: indet-slide 1.6s cubic-bezier(.5,.1,.5,.9) infinite;
}
@keyframes indet-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(290%); }
}

/* ── 勾画对勾 draw check ── */
.draw-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: #1c1812;
  position: relative;
  animation: pop-in .4s cubic-bezier(.34,1.56,.64,1) backwards;
}
.draw-check svg { width: 12px; height: 12px; stroke-dasharray: 18; stroke-dashoffset: 18; animation: draw .4s ease-out .2s forwards; }
@keyframes pop-in { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── kbd ── */
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 10.5px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--muted);
  background: var(--bg-soft);
  letter-spacing: 0.02em;
  vertical-align: 1px;
}

/* ── diff 行 ── */
.diff-line {
  font-family: var(--f-mono); font-size: 12px;
  padding: 2px 12px;
  position: relative;
  line-height: 1.6;
  white-space: pre;
}
.diff-line.add {
  background: color-mix(in oklab, #6ba87a 14%, transparent);
  color: #a5d4b0;
}
.diff-line.add::before  { content: "+"; position: absolute; left: 4px; color: #6ba87a; }
.diff-line.del {
  background: color-mix(in oklab, #d96b5a 14%, transparent);
  color: #e8a59a;
}
.diff-line.del::before  { content: "−"; position: absolute; left: 4px; color: #d96b5a; }
.diff-line.con          { color: var(--muted); }
.diff-line.con::before  { content: " "; position: absolute; left: 4px; }

/* ── slide-in toast ── */
.slide-in-toast {
  animation: slide-up .4s cubic-bezier(.2,.7,0,1) backwards;
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ── 命令栏 ⌘K palette ── */
.cmdk {
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  width: 100%;
  max-width: 560px;
  overflow: hidden;
}
.cmdk-input {
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 13px;
  color: var(--text);
}
.cmdk-input .ico { color: var(--muted); }
.cmdk-input input {
  background: transparent; border: 0; outline: none;
  flex: 1; color: var(--text);
  font-family: var(--f-body); font-size: 14px;
}
.cmdk-input input::placeholder { color: var(--faint); }
.cmdk-list { padding: 8px 0; max-height: 240px; overflow-y: auto; }
.cmdk-group {
  padding: 6px 20px 4px;
  font-family: var(--f-mono); font-size: 10px;
  color: var(--faint); letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cmdk-item {
  padding: 8px 20px;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  font-size: 13.5px;
}
.cmdk-item:hover, .cmdk-item.active {
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}
.cmdk-item .ic { color: var(--muted); }
.cmdk-item .nm { color: var(--text); }
.cmdk-item .ks { display: inline-flex; gap: 3px; }

/* ── drop zone ── */
.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  padding: 36px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted);
  transition: all .2s;
  cursor: pointer;
  text-align: center;
}
.dropzone:hover, .dropzone.over {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  color: var(--text);
}
.dropzone .dz-ic { font-size: 28px; color: var(--accent); }

/* ── tooltip ── */
.tt-wrap { position: relative; display: inline-block; }
.tt-wrap .tt {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 10px;
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--text);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .15s, transform .15s;
  letter-spacing: 0.04em;
  z-index: 100;
}
.tt-wrap:hover .tt { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── hover live preview hint ── */
.hover-live { position: relative; overflow: hidden; }
.hover-live::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--accent) 18%, transparent), transparent 30%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.hover-live:hover::after { opacity: 1; }

/* ── number flip ── */
.num-flip {
  display: inline-flex;
  overflow: hidden;
  height: 1em;
  vertical-align: -0.18em;
}
.num-flip span {
  display: inline-block;
  animation: num-roll 2.2s cubic-bezier(.5,.1,.5,.9) infinite;
}
@keyframes num-roll {
  0%, 30% { transform: translateY(0); }
  35%, 65% { transform: translateY(-1em); }
  70%, 100% { transform: translateY(-2em); }
}

/* ── deploy/stepper rail ── */
.stepper { display: flex; flex-direction: column; gap: 14px; }
.step-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; }
.step-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg);
  position: relative;
  flex-shrink: 0;
}
.step-row.done .step-dot { background: var(--accent); border-color: var(--accent); color: #1c1812; }
.step-row.done .step-dot::before { content: "✓"; font-size: 11px; font-weight: 700; }
.step-row.now .step-dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
.step-row.todo .step-dot { color: var(--faint); }
.step-row.todo .step-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.step-row .step-label { font-family: var(--f-mono); font-size: 12px; color: var(--text); }
.step-row.todo .step-label { color: var(--muted); }
.step-row .step-time { font-family: var(--f-mono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.06em; }

/* ── presence avatars ── */
.presence { display: inline-flex; }
.presence .av {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 2px solid var(--bg);
  margin-left: -8px;
  font-family: var(--f-display); font-size: 11px; font-weight: 600;
  color: #1c1812;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.presence .av:first-child { margin-left: 0; }
.presence .av.b { background: linear-gradient(135deg, #7dd3c0, #4a9b8a); }
.presence .av.c { background: linear-gradient(135deg, #a8b5ff, #6878d4); color: #fff; }
.presence .av.d { background: linear-gradient(135deg, #e85d3c, #a13a25); color: #fff; }
.presence .av.live::after {
  content: "";
  position: absolute;
  right: -1px; bottom: -1px;
  width: 8px; height: 8px;
  background: #6ba87a;
  border: 2px solid var(--bg);
  border-radius: 50%;
}

/* ── empty state ── */

/* =========================================================================
   VIBE CODING — 智能交互（区别于普通 web app）
   ========================================================================= */

/* ── 聊天内的代码块 · 含 apply ── */
.code-msg {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
  margin-top: 8px;
}
.code-msg-h {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--muted); letter-spacing: 0.06em;
}
.code-msg-h .lang {
  padding: 1px 7px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  border-radius: 3px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.code-msg-h .file { color: var(--text); }
.code-msg-h .actions { margin-left: auto; display: inline-flex; gap: 6px; }
.code-msg-h button {
  font-family: var(--f-mono); font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all .15s;
}
.code-msg-h button:hover { color: var(--text); border-color: var(--text); }
.code-msg-h button.apply { background: var(--accent); border-color: var(--accent); color: #1c1812; }
.code-msg-h button.apply:hover { background: transparent; color: var(--accent); }
.code-msg pre {
  padding: 14px 16px;
  font-family: var(--f-mono); font-size: 12px;
  line-height: 1.65;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
}

/* ── @ / mention 自动补全 ── */
.pop {
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
  padding: 6px 0;
  width: 280px;
  font-family: var(--f-mono); font-size: 12px;
  overflow: hidden;
}
.pop-group {
  padding: 6px 14px 4px;
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pop-item {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 14px;
  cursor: pointer;
  color: var(--muted);
  transition: background .12s, color .12s;
}
.pop-item:hover, .pop-item.active {
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--text);
}
.pop-item .ic { color: var(--accent); font-size: 10px; }
.pop-item .nm { color: var(--text); font-family: var(--f-mono); font-size: 12px; }
.pop-item .sec { color: var(--faint); font-size: 10.5px; }

/* ── 元素选择器 / inspect overlay ── */
.inspect-stage {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  padding: 32px;
  min-height: 240px;
}
.inspect-stage .ghost {
  position: absolute;
  border: 1.5px dashed var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border-radius: 3px;
  pointer-events: none;
  transition: all .2s cubic-bezier(.2,.7,0,1);
}
.inspect-stage .ghost-label {
  position: absolute;
  background: var(--accent); color: #1c1812;
  font-family: var(--f-mono); font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px 3px 0 0;
  letter-spacing: 0.06em;
  transform: translateY(-100%);
}

/* ── 生成控制 · pause / stop / regenerate ── */
.gen-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  background: var(--line);
  padding: 1px;
  border-radius: 999px;
}
.gen-ctrl button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all .15s;
  border: 0;
}
.gen-ctrl button:first-child { border-radius: 999px 0 0 999px; }
.gen-ctrl button:last-child  { border-radius: 0 999px 999px 0; }
.gen-ctrl button:only-child  { border-radius: 999px; }
.gen-ctrl button:hover { color: var(--text); }
.gen-ctrl button.danger { color: #d96b5a; }
.gen-ctrl button.danger:hover { background: color-mix(in oklab, #d96b5a 14%, transparent); }
.gen-ctrl .ic { width: 10px; height: 10px; display: inline-flex; }

/* ── token / 配额 meter ── */
.token-meter {
  display: flex; flex-direction: column; gap: 8px;
  max-width: 320px;
}
.token-meter-h {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em;
}
.token-meter-h .lbl { color: var(--text); }
.token-meter-h .num { font-variant-numeric: tabular-nums; }
.token-meter-h .num .used { color: var(--text); }
.token-meter-h .num .sep,
.token-meter-h .num .total { color: var(--faint); }
.token-meter .bar {
  height: 4px;
  background: var(--hairline);
  border-radius: 999px;
  overflow: hidden;
}
.token-meter .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 999px;
}
.token-meter.warn .bar-fill { background: linear-gradient(90deg, var(--accent), #d96b5a); }
.token-meter .hint {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--faint); letter-spacing: 0.06em;
}

/* ── 版本时间线 ── */
.timeline {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
  margin-left: 8px;
  padding-left: 0;
}
.tl-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 14px;
  padding: 8px 0 8px 0;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: background .15s;
}
.tl-row::before {
  content: "";
  position: absolute;
  left: -5px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: 2px solid var(--bg);
}
.tl-row.now::before { background: var(--accent); animation: pulse 2s infinite; }
.tl-row.applied::before { background: var(--accent); }
.tl-row:hover { background: color-mix(in oklab, var(--bg-soft) 70%, transparent); }
.tl-row .tag {
  font-family: var(--f-mono); font-size: 9.5px;
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  width: max-content;
  margin-left: 16px;
}
.tl-row .desc {
  font-size: 13px; color: var(--text); line-height: 1.4;
  margin-left: 14px;
}
.tl-row .meta {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--muted); letter-spacing: 0.04em;
}
.tl-row.now .desc { color: var(--text); font-weight: 500; }
.tl-row.dim .desc { color: var(--muted); }

/* ── device toggle ── */
.device-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}
.device-toggle button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--muted); letter-spacing: 0.06em;
  border-radius: 5px;
  cursor: pointer;
  border: 0;
  transition: all .2s;
}
.device-toggle button:hover { color: var(--text); }
.device-toggle button.active {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--hairline);
}
.device-toggle .ic { font-size: 12px; line-height: 1; }

/* ── 快捷键 grid ── */
.keymap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.keymap-row {
  background: var(--bg);
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.keymap-row .desc {
  font-size: 12.5px;
  color: var(--text);
  flex: 1;
}
.keymap-row .keys {
  display: inline-flex; gap: 3px;
  flex-shrink: 0;
}

/* ── upload row · 多文件进度 ── */
.upload-list { display: flex; flex-direction: column; gap: 8px; }
.upload-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.upload-row .icon {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-family: var(--f-mono); font-size: 11px;
}
.upload-row .info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.upload-row .name {
  font-family: var(--f-mono); font-size: 12px;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.upload-row .meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--muted); letter-spacing: 0.04em;
}
.upload-row .meta .pct { color: var(--accent); }
.upload-row .progress {
  height: 2px;
  background: var(--hairline);
  border-radius: 999px;
  overflow: hidden;
}
.upload-row .progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.upload-row .x {
  color: var(--muted); font-family: var(--f-mono); font-size: 14px;
  cursor: pointer;
}
.upload-row.done .icon { color: #6ba87a; }
.upload-row.done .progress-fill { background: #6ba87a; }

/* ── confirm modal ── */
.confirm-modal {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  max-width: 440px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  display: flex; flex-direction: column; gap: 16px;
}
.confirm-modal .icon-warn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: color-mix(in oklab, #d96b5a 20%, transparent);
  color: #d96b5a;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.confirm-modal h4 {
  font-family: var(--f-display); font-size: 22px;
  font-weight: 500; letter-spacing: -0.01em;
}
.confirm-modal p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.confirm-modal .type-hint {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.confirm-modal .type-hint b { color: #d96b5a; }
.confirm-modal input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 14px;
  font-family: var(--f-mono); font-size: 13px;
  color: var(--text);
  outline: none;
}
.confirm-modal input:focus { border-color: #d96b5a; }
.confirm-modal .actions { display: flex; gap: 8px; justify-content: flex-end; }
.confirm-modal .btn-danger {
  background: #d96b5a;
  color: var(--bg);
  border-color: #d96b5a;
}
.confirm-modal .btn-danger:disabled {
  opacity: .35;
  cursor: not-allowed;
  background: var(--bg-soft);
  color: var(--muted);
  border-color: var(--line);
}

/* ── 连接状态指示 ── */
.conn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em;
}
.conn::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.conn.online { color: #6ba87a; }
.conn.online::before { animation: pulse 2.4s infinite; box-shadow: 0 0 0 0 #6ba87a; }
.conn.sync { color: var(--accent); }
.conn.sync::before { animation: build-spin 1.2s linear infinite; }
.conn.off { color: var(--muted); }

/* ── 引导提示卡 onboarding hint ── */
.hint-card {
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 16%, var(--bg-card)) 0%, var(--bg-card) 100%);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex; gap: 16px;
  position: relative;
  overflow: hidden;
  max-width: 460px;
}
.hint-card .ribbon {
  position: absolute;
  top: 0; right: 0;
  font-family: var(--f-mono); font-size: 9.5px;
  color: var(--accent); letter-spacing: 0.16em;
  padding: 4px 10px;
  border-bottom-left-radius: 6px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}
.hint-card .num {
  font-family: var(--f-display); font-size: 32px;
  font-weight: 500; color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.hint-card .info { display: flex; flex-direction: column; gap: 6px; }
.hint-card h5 {
  font-family: var(--f-display); font-size: 16px;
  font-weight: 500; letter-spacing: -0.005em;
}
.hint-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.hint-card .foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--muted); letter-spacing: 0.04em;
}
.hint-card .foot a { color: var(--accent); }

/* ── 错误恢复 toast 含 ask zao 行动 ── */
.err-toast {
  background: var(--bg-card);
  border: 1px solid color-mix(in oklab, #d96b5a 40%, transparent);
  border-radius: 8px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 12px;
  align-items: start;
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.err-toast .e-ic { color: #d96b5a; font-family: var(--f-mono); font-size: 13px; line-height: 1.4; }
.err-toast .e-body { display: flex; flex-direction: column; gap: 6px; }
.err-toast .e-title { font-family: var(--f-display); font-size: 14px; font-weight: 500; }
.err-toast .e-detail { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.err-toast .e-actions { display: flex; gap: 8px; margin-top: 6px; }
.err-toast .e-actions button {
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
}
.err-toast .e-actions button:hover { border-color: var(--text); }
.err-toast .e-actions button.ask {
  background: var(--accent);
  border-color: var(--accent);
  color: #1c1812;
}
.err-toast .e-actions button.ask:hover { background: transparent; color: var(--accent); }
.err-toast .x {
  color: var(--muted); cursor: pointer;
  font-family: var(--f-mono); font-size: 14px;
  line-height: 1;
}

/* ── 抽屉滑入 drawer ── */
.drawer-demo {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  min-height: 200px;
}
.drawer-demo .main-area {
  flex: 1; padding: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.1em;
}
.drawer-demo .drawer {
  width: 220px;
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  animation: drawer-in .35s cubic-bezier(.2,.7,0,1) backwards;
}
@keyframes drawer-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.drawer-demo .drawer h6 {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.16em;
  text-transform: uppercase;
}
.drawer-demo .drawer .item {
  font-family: var(--f-mono); font-size: 12px;
  color: var(--text);
  padding: 4px 0;
  display: flex; justify-content: space-between;
}
.drawer-demo .drawer .item span:last-child { color: var(--accent); }

.section-lbl {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: clamp(24px, 4vw, 40px);
}
html[data-lang="en"] .section-lbl { text-transform: uppercase; }
.section-lbl .line { flex: 0 0 60px; height: 1px; background: var(--line); }
