/* Postplant site — shared styles. No build step. */

:root {
  --ink: #0a0b0e;
  --ink-2: #111318;
  --ink-3: #181b22;
  --line: rgba(237, 232, 223, 0.09);
  --line-2: rgba(237, 232, 223, 0.18);
  --bone: #ede8df;
  --mute: #8f8c86;
  --mute-2: #5f5d59;
  --lime: #d7ff3a;
  --lime-dim: rgba(215, 255, 58, 0.14);
  --ember: #ff5b3a;
  --ember-dim: rgba(255, 91, 58, 0.14);
  --cyan: #5ce1e6;
  --cyan-dim: rgba(92, 225, 230, 0.14);

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Satoshi", "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.mute { color: var(--mute); }
.lime { color: var(--lime); }
.ember { color: var(--ember); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.06;
  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.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(215, 255, 58, 0.6); border-radius: 50%;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out), background 0.35s, border-color 0.35s;
  mix-blend-mode: difference;
}
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(215, 255, 58, 0.9); border-color: transparent; }
.cursor-dot { position: fixed; left: 0; top: 0; z-index: 91; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--lime); pointer-events: none; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: transform 0.5s var(--ease-out), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 11, 14, 0.72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 800; font-size: 1.55rem; letter-spacing: 0.02em; text-transform: uppercase; }
.brand svg { width: 34px; height: 34px; color: var(--lime); transition: transform 0.6s var(--ease-out); }
.brand:hover svg { transform: rotate(90deg); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--mute); font-size: 0.95rem; transition: color 0.25s, background 0.25s; }
.nav-links a:hover { color: var(--bone); background: rgba(237, 232, 223, 0.06); }
@media (max-width: 860px) { .nav-links .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--lime); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 1rem; letter-spacing: 0.01em; overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--bone); transform: translateY(101%); transition: transform 0.55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 18px 50px -12px rgba(215, 255, 58, 0.45); }
.btn svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease-out); }
.btn:hover svg { transform: translateY(2px); }
.btn.ghost { --bg: transparent; --fg: var(--bone); border: 1px solid var(--line-2); }
.btn.ghost::before { background: rgba(237, 232, 223, 0.08); }
.btn.ghost:hover { box-shadow: none; }
.btn.small { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(0.94); }

.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.split .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 45ms + var(--d, 0s)); }
.split.in .w > span { transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 56px; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to bottom, transparent, var(--ink)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(10, 11, 14, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(215, 255, 58, 0.7); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(215, 255, 58, 0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(215, 255, 58, 0); } }
.hero h1 {
  margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3.4rem, 12.5vw, 12.5rem); line-height: 0.84; letter-spacing: -0.01em;
}
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.hero h1 .accent { color: var(--lime); }
.hero-bottom { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: end; margin-top: 40px; }
.hero-bottom p { max-width: 520px; margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: #cfcac1; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--mute); }
.hero-meta span::before { content: "◆"; color: var(--lime); margin-right: 8px; font-size: 0.6em; vertical-align: 2px; }
@media (max-width: 860px) { .hero-bottom { grid-template-columns: 1fr; } .hero-cta { justify-content: flex-start; } }

.timer { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.timer.low { color: var(--ember); }

.scroll-hint { position: absolute; right: var(--gutter); bottom: 40px; z-index: 3; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; color: var(--mute); }
.scroll-hint i { display: block; width: 1px; height: 60px; background: linear-gradient(var(--lime), transparent); animation: drip 2s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 860px) { .scroll-hint { display: none; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 3.2rem); text-transform: uppercase; white-space: nowrap; }
.marquee-track span em { font-style: normal; color: transparent; -webkit-text-stroke: 1px var(--mute); }
.marquee-track svg { width: 0.7em; height: 0.7em; color: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(96px, 14vw, 180px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--lime); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.h2 { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: 0.88; letter-spacing: -0.005em; }
.h2 .outline { color: transparent; -webkit-text-stroke: 1.2px var(--bone); }
.lead { max-width: 560px; font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: #c9c4bb; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }

.keys { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.key { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); font-size: 0.92rem; color: var(--mute); }
kbd { font-family: var(--f-mono); font-size: 0.75rem; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--bone); background: var(--ink-3); }

/* ---------- Overlay mock ---------- */
.stage {
  position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 70% 20%, rgba(92, 225, 230, 0.16), transparent 55%),
    radial-gradient(90% 80% at 10% 100%, rgba(255, 91, 58, 0.18), transparent 60%),
    linear-gradient(160deg, #1a1d24, #0c0d11);
}
.stage::before { /* fake game scene: perspective grid */
  content: ""; position: absolute; inset: 35% -40% -20%; transform: perspective(500px) rotateX(62deg);
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 48px 48px; animation: floor 6s linear infinite; opacity: 0.55;
  mask-image: linear-gradient(to top, #000 20%, transparent 90%); -webkit-mask-image: linear-gradient(to top, #000 20%, transparent 90%);
}
@keyframes floor { to { background-position: 0 48px; } }
.stage .crosshair { position: absolute; left: 50%; top: 55%; width: 18px; height: 18px; transform: translate(-50%, -50%); }
.stage .crosshair::before, .stage .crosshair::after { content: ""; position: absolute; background: var(--cyan); }
.stage .crosshair::before { left: 8px; top: 0; width: 2px; height: 18px; }
.stage .crosshair::after { top: 8px; left: 0; height: 2px; width: 18px; }
.ov {
  position: absolute; top: 7%; right: 5%; width: min(300px, 54%);
  padding: 14px 16px 16px; border-radius: 14px; border: 1px solid rgba(237, 232, 223, 0.16);
  background: rgba(10, 11, 14, 0.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  animation: ovfloat 7s var(--ease-in-out) infinite;
}
@keyframes ovfloat { 50% { transform: translateY(-6px); } }
.ov-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--mute); }
.ov-tabs { display: flex; gap: 4px; }
.ov-tabs i { width: 18px; height: 3px; border-radius: 2px; background: var(--line-2); transition: background 0.4s, width 0.4s; }
.ov-tabs i.on { background: var(--lime); width: 28px; }
.ov-panel { display: none; }
.ov-panel.on { display: block; animation: panelIn 0.7s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.ov-big { font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1; text-transform: uppercase; }
.ov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.ov-grid b { display: block; font-family: var(--f-mono); font-size: 1.05rem; font-weight: 600; }
.ov-grid small { font-size: 0.68rem; color: var(--mute); text-transform: uppercase; letter-spacing: 0.06em; }
.spark { margin-top: 10px; height: 36px; width: 100%; }
.spark path { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.ov-panel.on .spark path { animation: draw 1.6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tilt { margin-top: 10px; padding: 6px 10px; border-radius: 8px; background: var(--ember-dim); color: var(--ember); font-size: 0.78rem; }

/* ---------- Advisor demo ---------- */
.advisor { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: 56px; }
@media (max-width: 960px) { .advisor { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--ink-2), var(--ink)); padding: clamp(18px, 2.4vw, 28px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.9rem; color: var(--mute); transition: all 0.3s var(--ease-out); }
.chip:hover { color: var(--bone); border-color: var(--bone); }
.chip[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 22px 0; }
.slot {
  position: relative; aspect-ratio: 3 / 4; border-radius: 12px; border: 1px dashed var(--line-2);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 8px 4px; text-align: center;
  font-size: 0.8rem; color: var(--mute-2); overflow: hidden; transition: border-color 0.3s;
}
.slot.me { border-color: var(--lime); border-style: solid; color: var(--lime); }
.slot.filled { border-style: solid; color: var(--bone); background: var(--ink-3); animation: pop 0.6s var(--ease-out); }
.slot .glyph { position: absolute; top: 18%; font-family: var(--f-display); font-weight: 900; font-size: 2.2rem; line-height: 1; opacity: 0.85; }
.slot .role { font-family: var(--f-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); }
.slot button.x { position: absolute; top: 4px; right: 6px; font-size: 0.85rem; color: var(--mute); }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } }
.roles { display: grid; gap: 14px; }
.role-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: start; }
@media (max-width: 560px) { .role-row { grid-template-columns: 1fr; } }
.role-row .mono { padding-top: 7px; }
.agent { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); font-size: 0.85rem; background: var(--ink); transition: all 0.25s var(--ease-out); }
.agent:hover:not(:disabled) { border-color: var(--bone); transform: translateY(-2px); }
.agent:disabled { opacity: 0.28; cursor: not-allowed; }
.agent-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sugg { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sugg li { position: relative; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink); overflow: hidden; animation: slideIn 0.7s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }
.sugg li:first-child { border-color: rgba(215, 255, 58, 0.45); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }
.sugg .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sugg .name { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.sugg .why { margin-top: 6px; color: var(--mute); font-size: 0.9rem; }
.bar { height: 4px; margin-top: 12px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--lime), #a6ff00); border-radius: inherit; transform-origin: left; animation: grow 1s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + 0.15s); }
@keyframes grow { from { transform: scaleX(0); } }
.badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-family: var(--f-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--line-2); color: var(--mute); }
.badge.hi { color: var(--lime); border-color: rgba(215, 255, 58, 0.4); }
.badge.lo { color: var(--ember); border-color: rgba(255, 91, 58, 0.4); }
.comp { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.comp-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.comp-row span { padding: 5px 10px; border-radius: 8px; background: var(--ink-3); font-size: 0.85rem; }
.comp-row span.new { background: var(--lime-dim); color: var(--lime); }
.disclaimer { margin-top: 14px; font-size: 0.8rem; color: var(--mute-2); }

/* ---------- Heatmap ---------- */
.heat-wrap { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); aspect-ratio: 1 / 1; }
.heat-wrap canvas { width: 100%; height: 100%; }
.heat-ui { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; }
.heat-legend { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 14px; font-size: 0.78rem; color: var(--mute); }
.heat-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 26px 22px; background: var(--ink); }
.stat b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1; }
.stat span { color: var(--mute); font-size: 0.9rem; }

/* ---------- Horizontal pinned scroll ---------- */
.hscroll { position: relative; }
.hscroll-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hscroll-head { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.hscroll-progress { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.hscroll-progress i { display: block; height: 100%; width: 100%; background: var(--lime); transform: scaleX(var(--p, 0)); transform-origin: left; }
.htrack { display: flex; gap: 20px; padding: 0 var(--gutter); will-change: transform; }
.hcard {
  flex: 0 0 clamp(280px, 30vw, 420px); min-height: 380px; padding: 28px; border-radius: 22px;
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-2), var(--ink));
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
  transition: border-color 0.4s, transform 0.6s var(--ease-out);
}
.hcard:hover { border-color: var(--line-2); transform: translateY(-6px); }
.hcard .num { font-family: var(--f-mono); color: var(--mute-2); }
.hcard h3 { margin: 0 0 10px; font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; text-transform: uppercase; line-height: 0.95; }
.hcard p { margin: 0; color: var(--mute); }
.hcard .art { height: 120px; margin: 18px 0; }
.hcard::after { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, var(--glow, var(--lime-dim)), transparent 70%); transition: transform 0.8s var(--ease-out); }
.hcard:hover::after { transform: scale(1.4); }
@media (max-width: 760px) {
  .hscroll { height: auto !important; }
  .hscroll-sticky { position: relative; height: auto; padding: 96px 0; }
  .htrack { flex-direction: column; transform: none !important; }
  .hcard { flex-basis: auto; min-height: 0; }
}

/* ---------- Quota gauge ---------- */
.gauge { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin: 0 auto; overflow: hidden; }
.gauge svg { width: 100%; height: 100%; transform: rotate(135deg); }
.gauge .track { fill: none; stroke: var(--line); stroke-width: 10; stroke-linecap: round; }
.gauge .fill { fill: none; stroke: var(--lime); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 2s var(--ease-out); }
.gauge .cap { fill: none; stroke: var(--ember); stroke-width: 10; stroke-linecap: round; opacity: 0.6; }
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gauge-center b { font-family: var(--f-display); font-weight: 900; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 0.9; }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: #cfcac1; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 6px; background: var(--lime-dim); border: 1px solid rgba(215, 255, 58, 0.4); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5' fill='none' stroke='%23d7ff3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-size: 14px; background-position: center; background-repeat: no-repeat; }

/* ---------- Live (experimental) ---------- */
.live { border: 1px solid rgba(255, 91, 58, 0.3); border-radius: 26px; padding: clamp(24px, 4vw, 56px); background: radial-gradient(80% 120% at 100% 0%, var(--ember-dim), transparent 60%), var(--ink-2); }
.toggle { position: relative; width: 64px; height: 36px; border-radius: 999px; background: var(--ink-3); border: 1px solid var(--line-2); transition: background 0.4s; flex: none; }
.toggle i { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--mute); transition: transform 0.5s var(--ease-out), background 0.4s; }
.toggle[aria-checked="true"] { background: var(--ember); border-color: var(--ember); }
.toggle[aria-checked="true"] i { transform: translateX(28px); background: var(--ink); }
.toggle-row { display: flex; align-items: center; gap: 16px; margin: 26px 0 8px; }
.warn { margin-top: 18px; padding: 18px 20px; border-left: 3px solid var(--ember); border-radius: 0 12px 12px 0; background: rgba(255, 91, 58, 0.07); color: #e8d6d1; font-size: 0.95rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.7s var(--ease-out), opacity 0.5s, padding 0.5s; padding-block: 0; }
.warn.show { max-height: 400px; opacity: 1; padding-block: 18px; }
.scoreboard { display: grid; gap: 6px; }
.sb-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line); font-size: 0.9rem; filter: blur(5px); opacity: 0.35; transition: filter 0.6s var(--ease-out), opacity 0.6s; transition-delay: calc(var(--i) * 60ms); }
.live.on .sb-row { filter: none; opacity: 1; }
.sb-row .rk { font-family: var(--f-mono); font-size: 0.78rem; }

/* ---------- Code ---------- */
.code { font-family: var(--f-mono); font-size: 0.9rem; border-radius: var(--radius); border: 1px solid var(--line); background: #07080a; overflow: hidden; }
.code-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.code-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.code pre { margin: 0; padding: 20px; white-space: pre-wrap; word-break: break-word; min-height: 190px; color: #cfcac1; }
.code .c { color: var(--mute-2); }
.code .p { color: var(--lime); }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: var(--lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; cursor: pointer; font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 22px; height: 22px; flex: none; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--lime); transition: transform 0.5s var(--ease-out); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0); }
.faq .ans { padding: 0 0 26px; color: var(--mute); max-width: 760px; }
.faq details[open] .ans { animation: panelIn 0.6s var(--ease-out); }

/* ---------- Final CTA ---------- */
.final { text-align: center; padding: clamp(110px, 16vw, 220px) 0; overflow: hidden; }
.final .h2 { font-size: clamp(3.4rem, 13vw, 12rem); }
.final .btn { margin-top: 44px; padding: 22px 36px; font-size: 1.1rem; }
.final-glow { position: absolute; left: 50%; top: 50%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(215, 255, 58, 0.16), transparent 60%); filter: blur(20px); pointer-events: none; animation: breathe 6s var(--ease-in-out) infinite; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.7; } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--mute); font-size: 0.9rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; color: var(--bone); font-weight: 600; font-size: 0.95rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a:hover { color: var(--lime); }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--mute-2); max-width: 880px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* ---------- Brand switcher (temporary) ---------- */

/* ---------- Download page ---------- */
.dl-hero { position: relative; padding: 150px 0 60px; overflow: hidden; }
.dl-hero h1 { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(3.2rem, 10vw, 9rem); line-height: 0.86; }
.dl-hero h1 .outline { color: transparent; -webkit-text-stroke: 1.4px var(--bone); }
.dl-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.grid-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent 75%); animation: gridmove 20s linear infinite; }
@keyframes gridmove { to { background-position: 64px 64px; } }
.orb { position: absolute; z-index: -1; width: 520px; height: 520px; right: -120px; top: 40px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(215, 255, 58, 0.35), rgba(92, 225, 230, 0.12) 45%, transparent 70%); filter: blur(30px); animation: orb 12s var(--ease-in-out) infinite; }
@keyframes orb { 33% { transform: translate(-80px, 60px) scale(1.1); } 66% { transform: translate(40px, 120px) scale(0.9); } }
.channel { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ink-2); position: relative; }
.channel button { position: relative; z-index: 1; padding: 9px 18px; border-radius: 999px; color: var(--mute); font-size: 0.9rem; transition: color 0.3s; }
.channel button[aria-pressed="true"] { color: var(--ink); }
.channel .pillbg { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--lime); transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out); }
.dl-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; margin-top: 36px; }
@media (max-width: 980px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card { position: relative; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-2), var(--ink)); overflow: hidden; transform-style: preserve-3d; transition: border-color 0.4s, box-shadow 0.4s; display: flex; flex-direction: column; min-height: 340px; }
.dl-card.primary { border-color: rgba(215, 255, 58, 0.45); background: radial-gradient(120% 80% at 0% 0%, rgba(215, 255, 58, 0.12), transparent 55%), linear-gradient(180deg, var(--ink-2), var(--ink)); }
.dl-card:hover { border-color: var(--line-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.dl-card .shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(237, 232, 223, 0.08), transparent 40%); opacity: 0; transition: opacity 0.3s; }
.dl-card:hover .shine { opacity: 1; }
.dl-card h3 { margin: 18px 0 8px; font-family: var(--f-display); font-weight: 800; font-size: 2.1rem; text-transform: uppercase; line-height: 0.95; }
.dl-card p { margin: 0; color: var(--mute); font-size: 0.95rem; }
.dl-card .spacer { flex: 1; min-height: 20px; }
.dl-card .file { margin-top: 18px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--mute); }
.dl-card .btn { margin-top: 18px; justify-content: center; }
.dl-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ink-3); border: 1px solid var(--line); color: var(--lime); }
.dl-ico svg { width: 24px; height: 24px; }
.tag { position: absolute; top: 22px; right: 22px; }
.notice { margin-top: 18px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink-2); color: var(--mute); font-size: 0.9rem; display: none; }
.notice.show { display: block; animation: panelIn 0.6s var(--ease-out); }
.steps { counter-reset: s; display: grid; gap: 0; margin-top: 40px; position: relative; }
.steps::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.steps .line-fill { position: absolute; left: 23px; top: 10px; width: 1px; height: var(--h, 0); background: var(--lime); transition: height 0.2s linear; }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 18px 0; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 0.8rem; color: var(--mute); position: relative; z-index: 1; transition: all 0.5s var(--ease-out); }
.step.in::before { border-color: var(--lime); color: var(--ink); background: var(--lime); }
.step h4 { margin: 10px 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--mute); }
.req { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.req div { padding: 22px; background: var(--ink); }
.req b { display: block; margin-bottom: 4px; }
.req span { color: var(--mute); font-size: 0.9rem; }
@media (max-width: 860px) { .req { grid-template-columns: 1fr 1fr; } }
.verify { margin-top: 18px; }
.copy { float: right; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 0.7rem; color: var(--mute); }
.copy:hover { color: var(--lime); border-color: var(--lime); }
.changelog { color: var(--mute); font-size: 0.95rem; max-height: 320px; overflow: auto; }
.changelog h1, .changelog h2, .changelog h3 { color: var(--bone); font-size: 1rem; margin: 14px 0 6px; }
.changelog ul { padding-left: 18px; margin: 6px 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal], .split .w > span { opacity: 1 !important; transform: none !important; }
  .grain { display: none; }
}
