/* ================================================================
   RoboErgo Egg · Landing
   Design system "Graphite + Ember"
   Single dark theme, locked. One accent (ember orange #ff6a3c).
   Type: Outfit (display, self-hosted) / system sans (body, SF + PingFang)
         / JetBrains Mono (labels, data, self-hosted).
   Liquid-glass nav = labeled web approximation of Apple materials
   (backdrop-filter + hairline + inner highlight). Not an official
   Apple implementation; falls back to solid fill via media queries.
   ================================================================ */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c0c10;
  --bg2: #101015;
  --panel: #14141a;
  --panel2: #181820;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.16);
  --tx: #f5f5f7;
  --tx2: #a3a3ae;
  --tx3: #73737f;
  --ac: #ff6a3c;
  --ac2: #ff8457;
  --ac-dim: rgba(255, 106, 60, 0.13);
  --ac-line: rgba(255, 106, 60, 0.4);
  --on-ac: #1c0e06;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --disp: "Outfit", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 20px;
  --r-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--tx);
  font-size: 15.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(255, 106, 60, 0.32); color: var(--tx); }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.ic { width: 22px; height: 22px; display: block; }

/* ---------------- Nav ---------------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 64px;
  background: rgba(12, 12, 16, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled {
  background: rgba(12, 12, 16, 0.78);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .brand-name { font-family: var(--disp); font-weight: 600; font-size: 16px; letter-spacing: 0.01em; }
.brand .brand-sub {
  display: block;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em;
  color: var(--tx3); margin-top: 1px; text-transform: uppercase;
}
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--tx2); }
.nav-links a { padding: 4px 0; transition: color .18s; }
.nav-links a:hover { color: var(--tx); }

.lang-toggle {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--tx2);
  border: 1px solid var(--line2); border-radius: 999px;
  padding: 7px 15px;
  transition: color .18s, border-color .18s, transform .18s;
  white-space: nowrap;
}
.lang-toggle:hover { color: var(--tx); border-color: var(--tx3); transform: translateY(-1px); }
.nav .btn-cta { margin-left: 0; }

/* Logo 动效：悬停摇摆 / 点击 boing + 眯眼 */
.egg-logo { cursor: pointer; transform-origin: 50% 88%; transition: transform .2s ease; }
.brand:hover .egg-logo { animation: eggWobble 0.9s ease-in-out; }
@keyframes eggWobble {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-7deg); }
  45% { transform: rotate(6deg); }
  70% { transform: rotate(-3.5deg); }
  86% { transform: rotate(2deg); }
}
.egg-logo .eyes-happy { opacity: 0; transition: opacity .12s; }
.egg-logo.is-boing { animation: eggBoing 0.72s cubic-bezier(.36, .07, .19, .97); }
.egg-logo.is-boing .eyes-idle { opacity: 0; }
.egg-logo.is-boing .eyes-happy { opacity: 1; }
@keyframes eggBoing {
  0% { transform: scale(1, 1); }
  25% { transform: scale(1.14, .8); }
  50% { transform: scale(.9, 1.14); }
  70% { transform: scale(1.07, .93); }
  88% { transform: scale(.98, 1.03); }
  100% { transform: scale(1, 1); }
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; border: none;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  padding: 13px 26px;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:active { transform: scale(0.98); }
.btn-ac {
  background: var(--ac); color: var(--on-ac);
  box-shadow: 0 8px 30px rgba(255, 106, 60, 0.22);
}
.btn-ac:hover { background: var(--ac2); transform: translateY(-1px); box-shadow: 0 12px 36px rgba(255, 106, 60, 0.3); }
.btn-ghost {
  background: transparent; color: var(--tx);
  border: 1px solid var(--line2);
}
.btn-ghost:hover { border-color: var(--tx3); transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 96px 0 64px;
  overflow: hidden;
}
.hero .container { width: 100%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 32px;
  width: 100%;
}
.hero-chip {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tx3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 30px;
}
.hero h1 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero h1 .hl { color: var(--ac); font-weight: 700; }
.hero-sub {
  margin-top: 26px;
  font-size: 17.5px;
  color: var(--tx2);
  max-width: 33em;
}
.hero-sub strong { color: var(--tx); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: heroRise 0.75s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > :nth-child(2) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.22s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.32s; }
  .egg-stage { animation: heroRise 0.9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: 0.25s; }
}

/* 蛋舞台 */
.egg-stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  min-height: 560px;
}
.egg-stage::before {
  content: "";
  position: absolute; inset: -6% -14%;
  background: radial-gradient(closest-side, rgba(255, 106, 60, 0.16), rgba(255, 106, 60, 0.05) 52%, transparent 74%);
  z-index: 0;
  pointer-events: none;
}
.egg-stage::after {
  content: "";
  position: absolute; inset: -6% -14%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 72%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 72%);
  z-index: 0;
  pointer-events: none;
}
#eggCanvas {
  position: relative; z-index: 1;
  width: min(520px, 100%);
  height: 540px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.egg-hint {
  position: relative; z-index: 2;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--tx3);
  margin-top: 2px;
  transition: opacity .4s;
}
.egg-sleep-btn {
  position: relative; z-index: 2;
  margin-top: 16px;
  background: transparent; color: var(--tx2);
  border: 1px solid var(--line2); border-radius: 999px;
  font-size: 13px; font-weight: 500;
  padding: 8px 18px;
  transition: color .18s, border-color .18s;
}
.egg-sleep-btn:hover { color: var(--tx); border-color: var(--tx3); }

/* 台词气泡 */
.egg-bubble {
  position: absolute; z-index: 3;
  top: 4%; left: 50%;
  transform: translate(-50%, 10px);
  max-width: 84%;
  background: var(--panel2);
  border: 1px solid var(--line2);
  color: var(--tx);
  font-size: 14.5px; line-height: 1.6;
  padding: 11px 18px;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.egg-bubble.show { opacity: 1; transform: translate(-50%, 0); }
.egg-bubble::after {
  content: ""; position: absolute;
  left: 50%; bottom: -6px; transform: translateX(-50%) rotate(45deg);
  width: 11px; height: 11px;
  background: var(--panel2);
  border-right: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
}

/* ---------------- Ticker ---------------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 52s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0 44px;
  color: var(--tx3);
}
.ticker-track .hi { color: var(--ac2); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------- Sections ---------------- */

.section { padding: 136px 0; }
.sec-head { max-width: 720px; margin-bottom: 64px; }
.sec-head h2 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.022em;
}
.sec-body { margin-top: 18px; color: var(--tx2); font-size: 16.5px; max-width: 62ch; }

/* ---------------- Memory ---------------- */

.mem-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: start;
}

.chat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 28px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.chat-title {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tx3);
  margin-bottom: 22px;
}
.msg { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-end; }
.msg .avatar {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: #1d1d24; border: 1px solid var(--line2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.msg .bubble {
  max-width: 78%;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 14.5px; line-height: 1.65;
}
.msg.egg .bubble { background: #1d1d24; color: var(--tx); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.user { flex-direction: row-reverse; }
.msg.user .bubble { background: var(--ac); color: var(--on-ac); border-bottom-right-radius: 5px; font-weight: 500; }
.msg.user .avatar {
  background: #221b16; color: var(--ac2);
  font-size: 11px; font-weight: 600; font-family: var(--mono);
}
.day-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tx3);
}
.day-divider::before, .day-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.mem-sample {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tx3);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.mem-item { padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.mem-item:last-of-type { border-bottom: none; }
.mem-item .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mem-item .fact { font-size: 15.5px; font-weight: 600; }
.mem-item .pct { font-family: var(--mono); font-size: 11.5px; color: var(--tx3); letter-spacing: 0.04em; }
.dots { display: flex; gap: 4px; margin-top: 11px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: #232329; }
.dots i.on { background: var(--ac); }
.dots.dim i.on { opacity: 0.55; }
.dots.almost i.on { opacity: 0.28; }
.mem-item .note { margin-top: 9px; font-size: 13px; color: var(--tx3); }

.insight-card {
  margin-top: 26px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 20px 22px;
}
.insight-card .tag {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ac2);
  margin-bottom: 10px;
}
.insight-card p { font-size: 14.5px; color: var(--tx); line-height: 1.7; }
.insight-card .sub { margin-top: 10px; font-size: 12.5px; color: var(--tx3); }
.mem-foot { margin-top: 30px; font-size: 13px; color: var(--tx3); }

/* ---------------- Bento ---------------- */

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cell {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 28px;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.cell:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.cell-tint::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 220px at 85% 0%, rgba(255, 106, 60, 0.12), transparent 70%);
  pointer-events: none;
}
.cell > * { position: relative; }
.cell-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #1b1b22;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: #c9c9d4;
  margin-bottom: 18px;
}
.cell-icon .ic { width: 20px; height: 20px; }
.cell h3 {
  font-family: var(--disp); font-weight: 600; font-size: 17px;
  letter-spacing: -0.01em;
}
.cell p { font-size: 14px; color: var(--tx2); line-height: 1.75; margin-top: 8px; }
.cell .card-code {
  position: absolute; top: 24px; right: 26px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--tx3);
}
.b3 { grid-column: span 3; }
.b4 { grid-column: span 4; }
.b5 { grid-column: span 5; }
.b6 { grid-column: span 6; }
.b7 { grid-column: span 7; }
.b8 { grid-column: span 8; }
.has-visor { padding-right: 220px; }

.visor-demo {
  position: absolute; right: 26px; top: 50%;
  transform: translateY(-50%);
  width: 168px; height: 92px;
  background: #08080b;
  border: 1px solid var(--line2);
  border-radius: 46px;
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 34px rgba(0, 0, 0, 0.5);
}
.visor-demo .eyes { display: flex; gap: 22px; }
.matrix-eye { display: grid; grid-template-columns: repeat(5, 5px); gap: 2px; }
.matrix-eye b { width: 5px; height: 5px; border-radius: 50%; background: #f2f4f8; opacity: 0.95; transition: opacity .1s; }
.matrix-eye.sleep b { opacity: 0; }
.matrix-eye.happy b.toprow { opacity: 0; }
.matrix-eye.happy b.bot2 { opacity: 0; }

.chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--tx2);
  border: 1px solid var(--line2); border-radius: 999px;
  padding: 5px 12px;
  background: rgba(12, 12, 16, 0.5);
}

/* ---------------- Growth ---------------- */

.grow-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
  position: relative;
}
.grow-grid::before {
  content: ""; position: absolute; top: 6px; left: 0; right: 0;
  height: 1px; background: var(--line);
}
.stage { position: relative; padding-top: 32px; }
.stage::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--tx3); background: var(--bg);
}
.stage.lit::before {
  border-color: var(--ac); background: var(--ac);
  box-shadow: 0 0 0 5px var(--ac-dim);
}
.stage .lv { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--tx3); }
.stage.lit .lv { color: var(--ac); }
.stage h3 { font-family: var(--disp); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin-top: 10px; }
.stage p { font-size: 14.5px; color: var(--tx2); margin-top: 8px; max-width: 30em; }

.xp-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 52px; }
.xp {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.03em;
  color: var(--tx2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px;
}
.xp b { color: var(--ac2); font-weight: 500; }

/* ---------------- Roadmap ---------------- */

.miles { position: relative; max-width: 760px; }
.miles::before {
  content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px;
  width: 1px; background: var(--line);
}
.mile { position: relative; padding: 0 0 46px 48px; }
.mile:last-child { padding-bottom: 0; }
.mile .node {
  position: absolute; left: 0; top: 5px;
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--tx3); background: var(--bg);
}
.mile.now .node {
  border-color: var(--ac); background: var(--ac);
  box-shadow: 0 0 0 5px var(--ac-dim);
}
.mile .m-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mile h3 { font-family: var(--disp); font-weight: 600; font-size: 19.5px; letter-spacing: -0.01em; }
.mile .badge {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tx3);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px;
}
.mile.now .badge { color: var(--ac2); border-color: var(--ac-line); background: var(--ac-dim); }
.mile p { margin-top: 9px; font-size: 14.5px; color: var(--tx2); max-width: 44em; }
.mile .m-meta { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--tx3); letter-spacing: 0.04em; }

.vision-quote {
  margin-top: 64px;
  background: linear-gradient(160deg, var(--panel2), #101016);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 44px 46px;
  position: relative;
  overflow: hidden;
}
.vision-quote::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(520px 260px at 88% 100%, rgba(255, 106, 60, 0.1), transparent 70%);
  pointer-events: none;
}
.vision-quote .q {
  position: relative;
  font-family: var(--disp); font-weight: 500;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.42; letter-spacing: -0.01em;
  max-width: 24em;
}
.vision-quote .q em { font-style: normal; color: var(--ac); font-weight: 600; }
.vision-quote .a { position: relative; margin-top: 18px; font-size: 14px; color: var(--tx2); max-width: 46em; }
.vision-quote .a code {
  font-family: var(--mono); font-size: 12.5px;
  background: rgba(12, 12, 16, 0.7); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 6px; color: var(--tx);
}

/* ---------------- Privacy ---------------- */

.priv-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.priv { padding: 4px 36px; border-left: 1px solid var(--line); }
.priv:first-child { padding-left: 0; border-left: none; }
.priv .ic { color: var(--tx2); }
.priv h3 { font-family: var(--disp); font-weight: 600; font-size: 16.5px; margin-top: 16px; }
.priv p { font-size: 14px; color: var(--tx2); margin-top: 7px; }

.priv-callout {
  margin-top: 52px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 22px 26px;
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg2);
}
.priv-callout .ic { flex: none; color: var(--tx3); margin-top: 2px; }
.priv-callout div { font-size: 13.5px; color: var(--tx2); line-height: 1.8; }
.priv-callout b { color: var(--tx); font-weight: 600; }

.priv-link { margin-top: 34px; }
.priv-link a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--tx);
  transition: color .18s;
}
.priv-link a .ic { width: 16px; height: 16px; transition: transform .18s; }
.priv-link a:hover { color: var(--ac2); }
.priv-link a:hover .ic { transform: translateX(3px); }

/* ---------------- Download ---------------- */

.dl-stage {
  position: relative;
  padding: 148px 0 168px;
  text-align: center;
  overflow: hidden;
}
.dl-stage::before {
  content: "";
  position: absolute; left: 50%; top: 0;
  width: 900px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 106, 60, 0.14), rgba(255, 106, 60, 0.04) 55%, transparent 75%);
  pointer-events: none;
}
.dl-stage > * { position: relative; }
.dl-egg-wrap { display: flex; justify-content: center; }
.dl-egg-wrap svg { width: 190px; filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.6)); }
.dl-stage h2 {
  font-family: var(--disp); font-weight: 600;
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.025em;
  margin-top: 26px;
}
.dl-sub { margin: 16px auto 0; color: var(--tx2); font-size: 16.5px; max-width: 30em; }
.dl-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.dl-actions .btn-ghost { color: var(--tx2); }

details.install { margin-top: 30px; display: inline-block; text-align: left; }
details.install summary {
  cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--tx3);
  transition: color .18s;
}
details.install summary:hover { color: var(--tx2); }
details.install summary .ic { width: 13px; height: 13px; transition: transform .2s; }
details.install[open] summary .ic { transform: rotate(180deg); }
details.install .install-body {
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 18px 22px;
  font-size: 13.5px; color: var(--tx2); line-height: 1.9;
  max-width: 460px;
}
details.install .install-body b { color: var(--tx); }
details.install code {
  font-family: var(--mono); font-size: 12px;
  background: rgba(12, 12, 16, 0.8); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 6px; color: var(--tx);
  word-break: break-all;
}
.dl-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px;
  margin-top: 30px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em;
  color: var(--tx3);
}

/* ---------------- Footer ---------------- */

footer { border-top: 1px solid var(--line); padding: 30px 0 34px; }
.foot-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  font-size: 13px; color: var(--tx3);
}
.foot-right { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.foot-right a { transition: color .18s; }
.foot-right a:hover { color: var(--tx); }

/* ---------------- Reveal on scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Capture / QA helpers ---------------- */

.capture, .capture * { scroll-behavior: auto !important; }
.capture .hero { min-height: 640px; }
.capture .reveal { opacity: 1 !important; transform: none !important; }
.capture .hero-copy > *, .capture .egg-stage { animation: none !important; }

/* ---------------- 404 / privacy pages ---------------- */

.mini-page { min-height: 100vh; display: flex; flex-direction: column; padding-top: 64px; }
.dotgrid {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.mini-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 72px 24px; }
.mini-card { text-align: center; max-width: 520px; }
.mini-card h1 { font-family: var(--disp); font-weight: 600; font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.02em; margin: 30px 0 12px; }
.mini-card p { color: var(--tx2); font-size: 15.5px; }
.mini-card .back { margin-top: 32px; }

.privacy-doc { max-width: 740px; margin: 0 auto; padding: 96px 28px 110px; }
.privacy-doc h1 { font-family: var(--disp); font-weight: 600; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; }
.privacy-doc .updated { font-family: var(--mono); font-size: 12.5px; color: var(--tx3); margin: 14px 0 46px; letter-spacing: 0.03em; }
.privacy-doc h2 { font-family: var(--disp); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; margin: 46px 0 14px; }
.privacy-doc p, .privacy-doc li { font-size: 14.5px; color: var(--tx2); line-height: 1.9; }
.privacy-doc ul { padding-left: 22px; margin: 12px 0; }
.privacy-doc li { margin-bottom: 9px; }
.privacy-doc li::marker { color: var(--ac); }
.privacy-doc strong { color: var(--tx); font-weight: 600; }
.privacy-doc code {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--panel); border: 1px solid var(--line);
  padding: 1px 7px; border-radius: 6px; color: var(--tx);
}
.privacy-doc .lang-swap { color: var(--ac2); }
.privacy-doc .lang-swap:hover { color: var(--ac); }

/* ---------------- Responsive ---------------- */

@media (max-width: 1024px) {
  .hero { min-height: 0; padding: 120px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .egg-stage { order: -1; min-height: 480px; }
  #eggCanvas { height: 450px; }
  .egg-bubble { top: 2%; }
  .b3, .b5, .b6, .b7, .b8 { grid-column: span 12; }
  .b4 { grid-column: span 6; }
  .has-visor { padding-right: 28px; }
  .visor-demo { position: static; transform: none; margin-top: 20px; }
  .mem-grid { grid-template-columns: 1fr; gap: 44px; }
  .grow-grid { grid-template-columns: 1fr; gap: 0; }
  .grow-grid::before { display: none; }
  .stage { border-top: 1px solid var(--line); margin-top: 26px; }
  .stage:first-child { margin-top: 0; }
  .priv-cols { grid-template-columns: 1fr; gap: 0; }
  .priv { padding: 26px 0; border-left: none; border-top: 1px solid var(--line); }
  .priv:first-child { border-top: none; padding-top: 0; }
  .section { padding: 96px 0; }
  .sec-head { margin-bottom: 48px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav .btn-cta { display: none; }
  .hero { padding: 104px 0 48px; }
  .hero h1 { font-size: clamp(38px, 10.5vw, 52px); }
  #eggCanvas { height: 380px; }
  .egg-stage { min-height: 420px; }
  .b4 { grid-column: span 12; }
  .ticker-track span { font-size: 13px; padding: 0 28px; }
  .section { padding: 84px 0; }
  .dl-stage { padding: 104px 0 116px; }
  .dl-egg-wrap svg { width: 150px; }
  .vision-quote { padding: 32px 26px; }
  .msg .bubble { max-width: 86%; }
  .container { padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .hero-copy > *, .egg-stage { animation: none !important; }
  .brand:hover .egg-logo, .egg-logo.is-boing { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .cell, .lang-toggle, .priv-link a .ic { transition: none; }
}
