:root {
  --bg: #fafafa; --fg: #171717; --muted: #737373; --line: #e5e5e5; --card: #fff; --soft: #f4f4f5;
  --ink: #0a0a0a; --ink-2: #141414; --ink-3: #1c1c1c; --ink-line: #2a2a2a; --ink-muted: #a3a3a3;
  --accent: #f59e0b; --sky: #7dd3fc; --ok: #4ade80;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, -apple-system, "Inter", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--sans); background: var(--ink); color: var(--fg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
section { padding: 96px 0; }
section.dark { background: var(--ink); color: #fafafa; }
section.light { background: var(--bg); color: var(--fg); }
.dark .eyebrow { color: var(--ink-muted); }
.head { max-width: 640px; margin-bottom: 48px; }
.head h2, .split h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.028em; line-height: 1.12; margin: 12px 0 14px; }
.head p { color: var(--muted); font-size: 17px; }
.dark .head p { color: var(--ink-muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.light { background: #fafafa; color: #0a0a0a; }
.btn.light:hover { background: #fff; }
.btn.outline { border-color: #404040; color: #fafafa; }
.btn.outline:hover { border-color: #fafafa; }

/* nav */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: rgba(10,10,10,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--ink-line); color: #fafafa; }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; }
.brand svg { width: 28px; height: 28px; }
.links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-muted); }
.links a:hover { color: #fff; }

/* hero */
.hero { position: relative; padding: 140px 0 72px; text-align: center; background: var(--ink); color: #fafafa; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#262626 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse 80% 55% at 50% 25%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 25%, #000 25%, transparent 75%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(640px circle at var(--mx, 50%) var(--my, 18%), rgba(245,158,11,.16), transparent 60%); }
.hero .wrap { position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 14px; border: 1px solid var(--ink-line); background: rgba(20,20,20,.8); border-radius: 999px; color: var(--ink-muted); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(74,222,128,.2); }
h1 { font-size: clamp(42px, 8vw, 88px); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; margin: 28px auto 22px; max-width: 12ch; background: linear-gradient(180deg, #fff 30%, #8a8a8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 .grad { background: linear-gradient(90deg, #fbbf24, #f59e0b 50%, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-muted); max-width: 660px; margin: 0 auto 36px; }
.lead b { color: #fafafa; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.acronym { margin: 44px 0 48px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: #737373; }
.acronym b { color: var(--accent); font-weight: 700; }
.hint { margin-top: 18px; font-size: 13px; color: #737373; }
.diamond { color: var(--accent); }

/* demo frame */
.frame { text-align: left; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(245,158,11,.18), 0 30px 60px -30px #000; overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--ink-line); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #404040; }
.frame-title { margin-left: 10px; font-size: 12px; color: #737373; font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.live { margin-left: auto; font-size: 12px; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.live em { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.board-scroll { overflow-x: auto; }
.board { position: relative; min-width: 760px; height: 400px; }
.col { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--ink-line); }
.col:first-child { border-left: 0; }
.col h5 { height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.col h5 .g { color: var(--accent); font-size: 10px; }
.col.gate-col { background: linear-gradient(180deg, rgba(245,158,11,.07), transparent 70%); }
.card { position: absolute; top: 0; left: 0; height: 104px; padding: 10px 11px; background: var(--ink-3); border: 1px solid #333; border-radius: 10px; opacity: 0; transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .5s, border-color .3s, box-shadow .3s; overflow: hidden; }
.card.in { opacity: 1; }
.card .cid { display: flex; justify-content: space-between; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: #737373; }
.card .cid span:first-child { white-space: nowrap; }
.card .tag { color: var(--sky); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card .ctitle { font-size: 13px; font-weight: 600; color: #fafafa; line-height: 1.3; margin: 4px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .cstat { font-size: 11.5px; color: var(--ink-muted); }
.card .cbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #262626; }
.card .cbar b { display: block; height: 100%; width: 0; background: var(--sky); }
.card.gate { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(245,158,11,.4), 0 0 28px rgba(245,158,11,.22); animation: glow 1.8s infinite; }
.card.gate .tag { color: var(--accent); }
.card.gate .cbar b { background: var(--accent); }
.card.done { border-color: #166534; }
.card.done .tag, .card.done .cstat { color: var(--ok); }
@keyframes glow { 0%,100% { box-shadow: 0 0 0 1px rgba(245,158,11,.4), 0 0 16px rgba(245,158,11,.14); } 50% { box-shadow: 0 0 0 1px rgba(245,158,11,.7), 0 0 34px rgba(245,158,11,.32); } }
.card button { font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 5px 12px; border-radius: 6px; border: 0; background: var(--accent); color: #1c1100; }
.card button:hover { background: #fbbf24; }
.frame-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--ink-line); font-family: var(--mono); font-size: 12px; }
.feed { list-style: none; display: grid; gap: 3px; color: #737373; min-width: 0; }
.feed li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed li:first-child { color: #d4d4d4; }
.feed .ok { color: var(--ok); }
.feed .warn { color: var(--accent); }
.tally { display: grid; gap: 3px; color: #737373; text-align: right; white-space: nowrap; }
.tally b { color: #fafafa; margin-left: 6px; }

/* language switch */
nav .right { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 2px; border: 1px solid var(--ink-line); border-radius: 8px; }
.lang button { font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink-muted); background: transparent; border: 0; border-radius: 6px; padding: 5px 9px; cursor: pointer; }
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: #fafafa; color: #0a0a0a; }
.lang button:focus-visible { outline: 2px solid #f59e0b; outline-offset: 1px; }
