/* Hyperconsole v2 — dark-first, oversized type, hairline grids */
:root {
  --bg: #1c1c1e;
  --bg-2: #232326;
  --card: #29292c;
  --card-2: #313135;
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.16);
  --ink: #f5f5f7;
  --ink-2: #b6b6bb;
  --muted: #86868b;
  --wm-2: #a1a1a6;
  --btn-bg: #f5f5f7;
  --btn-ink: #111113;
  --shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  --blue: #3B82F6; --pink: #EC4C7C; --orange: #F7883A;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --card: #ffffff;
  --card-2: #f2f2f4;
  --line: rgba(0,0,0,.08);
  --line-2: rgba(0,0,0,.16);
  --ink: #111113;
  --ink-2: #48484d;
  --muted: #86868b;
  --wm-2: #6e6e73;
  --btn-bg: #111113;
  --btn-ink: #ffffff;
  --shadow: 0 30px 80px -40px rgba(0,0,0,.35);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .25s, color .25s; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Type ---------- */
.mega, .h1, .h2, .h3 { font-family: var(--display); font-weight: 600; }
.mega { font-size: clamp(40px, 10.5vw, 132px); line-height: .94; letter-spacing: -0.045em; }
.h1 { font-size: clamp(48px, 8vw, 104px); line-height: .96; letter-spacing: -0.04em; }
.h2 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1; letter-spacing: -0.035em; }
.h3 { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.2; letter-spacing: -0.015em; }
.lede { font-size: clamp(18px, 1.8vw, 22px); color: var(--ink-2); max-width: 640px; line-height: 1.45; }
.kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.prose p { color: var(--ink-2); font-size: 18px; max-width: 680px; margin-top: 18px; }
.prose h2 { margin-top: 64px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 10px; font-weight: 500; font-size: 15.5px; border: 1px solid transparent; transition: transform .15s, opacity .15s, background .2s; white-space: nowrap; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--btn-bg); color: var(--btn-ink); }
.btn-ghost { border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.stripes { display: grid; gap: 2px; width: 16px; }
.stripes i { display: block; height: 3px; border-radius: 2px; }
.stripes i:nth-child(1) { background: var(--blue); }
.stripes i:nth-child(2) { background: var(--pink); width: 80%; }
.stripes i:nth-child(3) { background: var(--orange); width: 60%; }
.cta-row { display: flex; align-items: center; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.cta-note { font-size: 14px; line-height: 1.4; }
.cta-note b { font-weight: 500; }
.cta-note span { color: var(--muted); }
.cta-sub { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: center; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-inner { display: flex; align-items: center; height: 72px; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.brand svg { width: 26px; height: 26px; }
.brand em { font-style: normal; color: var(--muted); font-weight: 500; }
/* Two-tone wordmark: "Hyper" bright, "console" grey — Inter Tight, tight tracking */
.brand .wm { font-family: var(--display); font-size: 22px; letter-spacing: -0.04em; line-height: 1; }
.brand .wm b { font-weight: 650; color: var(--ink); }
.brand .wm em { font-style: normal; font-weight: 550; color: var(--wm-2); }
.nav-links { margin-left: auto; display: flex; gap: 28px; font-size: 15px; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.icon-btn { background: none; border: 0; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
.menu-btn { display: none; }
.mobile-menu { display: none; border-bottom: 1px solid var(--line); padding: 8px 24px 18px; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: block; }

/* ---------- Page hero ---------- */
.page-hero { padding: 96px 0 80px; }
.page-hero .lede { margin-top: 28px; }

/* ---------- Home hero ---------- */
.hero { padding: 36px 0 72px; overflow: hidden; }
.hero .lede { margin-top: 30px; }
.crew-row { display: flex; gap: 34px; flex-wrap: wrap; margin: 0 0 40px; }
.crew-row a { display: grid; justify-items: start; gap: 10px; font-size: 13px; color: var(--muted); }
.crew-row a:hover { color: var(--ink); }
.crew-row .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.crew-row .dot svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Home hero title: a step down from .mega so "Build your dream game" fits on one line on desktop */
.hero-title { font-size: clamp(36px, 7vw, 92px); }

/* Hero media: animated pixel-art GIF beside the description and CTA */
.hero .wrap { position: relative; }
.hero .wrap > * { position: relative; z-index: 1; }
.hero-media { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #2a1a2e; }
.hero-media img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
@media (min-width: 1001px) {
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 48px; }
  .hero h1, .hero .sg-grid { grid-column: 1 / -1; }
  .hero .lede, .hero .cta-row { grid-column: 1; }
  .hero-media { grid-column: 2; grid-row: 2 / span 2; align-self: center; margin-top: 30px; }
}
/* Narrow screens: no room beside the text, so the GIF drops into the flow between the
   description and the "Start building" button */
@media (max-width: 1000px) {
  .hero .wrap { display: flex; flex-direction: column; }
  .hero .tool-row { order: 1; }
  .hero h1 { order: 2; }
  .hero .lede { order: 3; }
  .hero-media { order: 4; width: min(560px, 100%); margin: 40px auto 8px; }
  .hero .cta-row { order: 5; }
  .hero .sg-grid { order: 6; }
}

/* Hero counter: "Autorepeat 1x → 1000x" (animated in site.js). Fixed width so the line never jumps. */
.grad { background: linear-gradient(90deg, var(--blue), var(--pink) 55%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.counter { display: inline-block; min-width: 2.85em; font-variant-numeric: tabular-nums; background: linear-gradient(90deg, var(--blue), var(--pink) 55%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Row of supported agents above the hero title */
.tool-row { display: flex; gap: 40px; flex-wrap: wrap; margin: 0 0 44px; }
.tool-row span { display: grid; justify-items: center; text-align: center; gap: 12px; font-size: 14px; color: var(--muted); }
.tool-row svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero game showcase grid ---------- */
.sg-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; text-align: left; }
.sg-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.sg-card:hover { transform: translateY(-3px); border-color: hsl(var(--sg-hue) 70% 60% / .55); }
.sg-card__media { position: relative; aspect-ratio: 16 / 10; background: hsl(var(--sg-hue) 45% 22%); overflow: hidden; }
.sg-card__cover { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.sg-card:hover .sg-card__cover { transform: scale(1.04); }
.sg-card__rank { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--blue), var(--pink)); }
.sg-card__play { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #0a0a0a; background: rgba(255,255,255,.92); cursor: pointer; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.sg-card:hover .sg-card__play, .sg-card__play:focus-visible { opacity: 1; transform: none; }
.sg-card__body { padding: 10px 12px 12px; }
.sg-card__title { font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-card__meta { margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-card__stats { margin-top: 8px; display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.sg-card__stat { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 700px) {
  .sg-grid { margin-top: 44px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sg-card__play { opacity: 1; transform: none; }
}

/* ---------- App window mockup ---------- */
.window { margin-top: 72px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-size: 13px; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.win-bar span { margin-left: 12px; color: var(--muted); font-size: 12.5px; }
.win-body { display: grid; grid-template-columns: 220px 300px 1fr; min-height: 440px; }
.win-side { border-right: 1px solid var(--line); padding: 14px 10px; }
.win-side .proj { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; color: var(--ink-2); }
.win-side .proj.on { background: var(--card); color: var(--ink); }
.win-side .sq { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; }
.win-side .sub { padding: 6px 8px 6px 34px; color: var(--muted); display: flex; justify-content: space-between; }
.win-side .h { font-size: 10.5px; letter-spacing: .12em; color: var(--muted); padding: 14px 8px 6px; text-transform: uppercase; }
.win-list { border-right: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.thread { padding: 10px 12px; border-radius: 9px; border: 1px solid transparent; }
.thread.on { background: var(--card); border-color: var(--line); }
.thread b { display: inline-block; font-weight: 600; font-size: 11.5px; padding: 1px 7px; border-radius: 5px; margin-bottom: 5px; }
.thread p { color: var(--ink-2); font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thread small { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.win-chat { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 12px; line-height: 1.5; color: var(--ink-2); }
.msg.me { align-self: flex-end; background: var(--card-2); color: var(--ink); }
.msg.ai { background: transparent; padding-left: 0; }
.msg.ai b { color: var(--ink); font-weight: 600; }
.step { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.step .tg { font-size: 10px; font-weight: 700; color: #fff; padding: 2px 6px; border-radius: 4px; min-width: 52px; text-align: center; }
.composer { margin-top: auto; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.composer .agent { font-size: 11.5px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; color: var(--ink-2); }

/* ---------- Section scaffolding ---------- */
.section { padding: 120px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head .lede { margin-top: 24px; }
.intro { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.intro .badge { width: 104px; height: 104px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 10px; }
.intro .badge svg { width: 56px; height: 56px; }

/* Feature grid: 2 cols with hairlines, each cell has a mini UI on top */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.fcell { padding: 44px 40px 52px 0; border-bottom: 1px solid var(--line); }
.fcell:nth-child(even) { padding: 44px 0 52px 40px; border-left: 1px solid var(--line); }
.fcell .mini { min-height: 92px; display: flex; align-items: flex-end; margin-bottom: 26px; }
.fcell h3 { margin-bottom: 10px; }
.fcell p { color: var(--ink-2); max-width: 470px; }
.fgrid-title { padding: 72px 0 40px; }
.fgrid-title .lede { margin-top: 16px; }

/* Mini UI bits */
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 8px 12px; font-size: 13px; }
.chip .k { color: var(--muted); font-size: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; padding: 3px; background: var(--card); font-size: 12.5px; }
.seg span { padding: 5px 11px; border-radius: 6px; color: var(--muted); }
.seg span.on { background: var(--card-2); color: var(--ink); font-weight: 600; }
.mini-col { display: grid; gap: 8px; }
.mini-note { font-size: 12px; color: var(--muted); }
.bar { height: 6px; background: var(--card-2); border-radius: 9px; overflow: hidden; width: 160px; }
.bar i { display: block; height: 100%; border-radius: 9px; }
.row { display: flex; align-items: center; gap: 10px; }
.clock { font-family: var(--mono); font-size: 30px; letter-spacing: .04em; color: var(--muted); }
.tick { color: var(--blue); font-weight: 700; }
.flag { color: var(--orange); font-weight: 700; }
.lock { font-family: var(--mono); letter-spacing: .12em; }
.mini-browser { width: 230px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.mini-browser .url { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--line); }
.mini-browser .pg { padding: 10px; display: grid; gap: 6px; }
.mini-browser .pg b { font-size: 12.5px; }
.mini-browser .pg i { height: 6px; background: var(--card-2); border-radius: 4px; }
.notif { width: 230px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 11px 13px; font-size: 12.5px; }
.notif .t { color: var(--orange); font-weight: 600; font-size: 11.5px; }
.notif .b { font-weight: 600; margin-top: 3px; }
.notif .a { display: flex; gap: 6px; margin-top: 8px; }
.notif .a span { flex: 1; text-align: center; border-radius: 7px; padding: 4px; font-size: 11.5px; background: var(--card-2); }
.notif .a span:first-child { background: var(--blue); color: #fff; }
.timeline { display: grid; gap: 5px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.timeline span::before { content: "●"; color: var(--pink); margin-right: 8px; font-size: 9px; }

/* ---------- Loop library (job board) ---------- */
.tabs { display: inline-flex; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 32px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 14.5px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.tabs button.on { background: var(--card); color: var(--ink); }
.tabs button small { font-size: 11px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.job { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.job::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--c, var(--blue)); }
.job .top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--muted); }
.job q { font-family: var(--display); font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; quotes: "“" "”"; }
.job dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 12.5px; }
.job dt { color: var(--muted); }
.job .out { color: var(--ink-2); font-size: 14px; border-top: 1px dashed var(--line-2); padding-top: 12px; margin-top: auto; }
.job[hidden] { display: none; }

/* ---------- Pricing ---------- */
.plan-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.plan .seg { margin-bottom: 26px; cursor: pointer; }
.plan .seg span { cursor: pointer; }
.price { font-family: var(--display); font-size: 64px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.price small { font-family: var(--sans); font-size: 16px; color: var(--muted); letter-spacing: 0; font-weight: 400; margin-left: 6px; }
.plan .sub { color: var(--muted); margin-top: 8px; }
.checks { list-style: none; margin: 28px 0; display: grid; }
.checks li { padding: 11px 0 11px 28px; border-top: 1px solid var(--line); position: relative; color: var(--ink-2); }
.checks li::before { content: "✓"; position: absolute; left: 2px; color: var(--blue); font-weight: 700; }
.plan .btn { width: 100%; justify-content: center; }
.fine { font-size: 13px; color: var(--muted); margin-top: 16px; }
.ctable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ctable th, .ctable td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.ctable th { font-weight: 600; }
.ctable td:not(:first-child), .ctable th:not(:first-child) { text-align: right; white-space: nowrap; }
.ctable .grp td { padding-top: 34px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ctable .yes { color: var(--blue); font-weight: 600; }
.ctable .no { color: var(--muted); }
.zero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.zero div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.zero b { display: block; font-family: var(--display); font-size: 48px; letter-spacing: -0.04em; margin-top: 16px; }
.zero p { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--ink-2); margin-top: 12px; max-width: 760px; }

/* ---------- Crew ---------- */
.idcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.idcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.idcard:hover { transform: translateY(-3px); border-color: var(--line-2); }
.idcard .band { background: var(--c); color: var(--on, #fff); padding: 14px 20px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.idcard .body { padding: 22px 20px 20px; display: grid; gap: 18px; flex: 1; }
.idcard .who { display: flex; gap: 14px; align-items: center; }
.avatar { width: 54px; height: 54px; border-radius: 14px; background: var(--c); display: grid; place-items: center; flex: none; }
.avatar svg { width: 26px; height: 26px; stroke: var(--on, #fff); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.idcard .face { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--card-2); box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--line-2); }
/* Crew cards are uniform grey (no per-role colour) */
.idcard .band { background: var(--card-2); color: var(--ink-2); }
.idcard .who b { font-family: var(--display); font-size: 26px; letter-spacing: -0.03em; font-weight: 600; display: block; line-height: 1.1; }
.idcard .who span { color: var(--muted); font-size: 14px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd small { display: block; color: var(--muted); font-size: 12.5px; }
.idcard .open { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; font-weight: 500; display: flex; justify-content: space-between; }
.idcard.big { max-width: 560px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.cols3 h3 { margin-bottom: 8px; }
.cols3 p { color: var(--ink-2); font-size: 15.5px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.split div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.split .kicker { margin-bottom: 10px; display: block; }

/* ---------- Manual ---------- */
.search { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; max-width: 640px; margin-top: 36px; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 17px; }
.search kbd { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 7px; color: var(--muted); }
.manual-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; margin-top: 64px; }
.toplist { list-style: none; counter-reset: n; }
.toplist li { border-top: 1px solid var(--line); }
.toplist a, .toplist .nolink { display: grid; grid-template-columns: 44px 1fr; padding: 14px 0; gap: 6px; }
.toplist .n { font-family: var(--mono); color: var(--muted); font-size: 13px; padding-top: 3px; }
.toplist b { font-weight: 600; }
.toplist small { display: block; color: var(--muted); font-size: 13px; }
.facts { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 16px; align-content: start; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 14.5px; }
.facts dt { color: var(--muted); }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps4 a { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 10px; transition: border-color .2s; }
.steps4 a:hover { border-color: var(--line-2); }
.steps4 .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px; }
.steps4 small { color: var(--muted); }
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.topic { border-top: 1px solid var(--line); padding: 22px 0 28px; }
.topic header { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.topic h3 { margin-bottom: 10px; }
.topic ul { list-style: none; display: grid; gap: 6px; color: var(--ink-2); font-size: 15px; }
.topic ul a:hover { color: var(--ink); text-decoration: underline; }
.topic .all { margin-top: 10px; font-size: 14px; color: var(--muted); }
.topic[hidden], .topic li[hidden] { display: none; }
.no-results { color: var(--muted); padding: 20px 0; display: none; }
.guide { display: grid; grid-template-columns: 220px 1fr; gap: 64px; padding: 64px 0 120px; }
.guide nav { position: sticky; top: 100px; align-self: start; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.guide nav a:hover { color: var(--ink); }
.guide article h1 { margin-bottom: 16px; }
.guide article h2 { font-family: var(--display); font-size: 28px; letter-spacing: -0.02em; margin: 48px 0 12px; }
.guide article p, .guide article li { color: var(--ink-2); font-size: 17px; max-width: 680px; }
.guide article ol { padding-left: 22px; display: grid; gap: 10px; margin-top: 12px; }
.callout { border-left: 3px solid var(--orange); background: var(--card); padding: 14px 18px; border-radius: 0 10px 10px 0; margin-top: 24px; max-width: 680px; color: var(--ink-2); }
.code { font-family: var(--mono); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 680px; font-size: 14px; overflow-x: auto; }
.code button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; }
.code button:hover { color: var(--ink); }

/* ---------- Download ---------- */
.os { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.os div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; gap: 14px; }
.os svg { width: 36px; height: 36px; fill: var(--ink); }
.os h3 { font-family: var(--display); font-size: 28px; letter-spacing: -0.03em; }
.os p { color: var(--muted); font-size: 14px; }

/* ---------- Remote / phone ---------- */
.phone-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: center; }
.phone { width: 300px; height: 600px; border-radius: 48px; border: 10px solid var(--card-2); background: var(--bg-2); padding: 46px 16px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); position: relative; justify-self: center; }
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: var(--card-2); border-radius: 20px; }
.phone .h { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.03em; padding: 0 4px 6px; }
.phone .notif { width: auto; }

/* ---------- Manifesto / about ---------- */
.theses { list-style: none; counter-reset: t; }
.theses li { counter-increment: t; display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.theses li::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); color: var(--muted); font-size: 14px; padding-top: 12px; }
.theses h2 { font-family: var(--display); font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; }
.theses p { color: var(--ink-2); font-size: 18px; margin-top: 14px; max-width: 680px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats div { border-top: 2px solid var(--c); padding-top: 16px; }
.stats b { font-family: var(--display); font-size: 44px; letter-spacing: -0.04em; display: block; line-height: 1; }
.stats span { color: var(--muted); font-size: 14px; }

/* ---------- Press ---------- */
.assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.asset { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.asset .pv { height: 180px; display: grid; place-items: center; }
.asset .pv.dark { background: #111113; color: #f5f5f7; }
.asset .pv.light { background: #fff; color: #111113; }
.asset .pv.color { background: var(--orange); color: #111113; }
.asset .pv svg { width: 64px; height: 64px; }
.asset .meta { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.asset .meta a { color: var(--muted); }
.asset .meta a:hover { color: var(--ink); }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.swatches div { border-radius: 14px; height: 120px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; font-family: var(--mono); font-size: 12px; color: #fff; }

.boiler { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; max-width: 760px; color: var(--ink-2); font-size: 17px; }

/* ---------- Posters ---------- */
.posters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.poster { aspect-ratio: 3 / 4; border-radius: 10px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(20px, 2.2vw, 28px); line-height: 1; box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); }
.poster small { font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.poster.y { color: #111; }

/* ---------- Closing band ---------- */
section.band { background: var(--bg-2); color: var(--ink); padding: 120px 0 110px; overflow: hidden; border-top: 1px solid var(--line); position: relative; }
section.band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue) 0 33.3%, var(--pink) 33.3% 66.6%, var(--orange) 66.6%); }
.band .h1 { max-width: 900px; }


.band-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.band svg.big-mark { width: 220px; height: 220px; }

/* ---------- "Coming soon" popup ---------- */
.modal { margin: auto; width: min(420px, calc(100% - 32px)); background: var(--card); color: var(--ink); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.modal p { color: var(--ink-2); margin: 10px 0 24px; }
.modal[open] { animation: modalIn .18s ease-out; }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 40px; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.foot h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.foot ul a:hover { color: var(--ink); }
.foot p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 280px; }
.foot-bottom { display: flex; justify-content: space-between; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); gap: 16px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .win-body { grid-template-columns: 200px 1fr; }
  .win-list { display: none; }
  .plan-wrap, .manual-top, .phone-wrap { grid-template-columns: 1fr; }
  .topics, .cols3 { grid-template-columns: 1fr 1fr; }
  .steps4, .stats { grid-template-columns: 1fr 1fr; }
  .posters { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: repeat(3, 1fr); }
  .foot > div:first-child { grid-column: 1 / -1; }
  .band-inner { grid-template-columns: 1fr; }
  .band svg.big-mark { display: none; }
  .guide { grid-template-columns: 1fr; gap: 24px; }
  .guide nav { position: static; display: flex; flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .nav-inner { height: 64px; gap: 12px; }
  .nav .btn-sm.dl { display: none; }
  .page-hero { padding: 64px 0 56px; }
  .section { padding: 80px 0; }
  .fgrid { grid-template-columns: 1fr; }
  .fcell, .fcell:nth-child(even) { padding: 36px 0 40px; border-left: 0; }
  .win-body { grid-template-columns: 1fr; min-height: 380px; }
  .win-side { display: none; }
  .topics, .cols3, .zero, .os, .assets, .split { grid-template-columns: 1fr; }
  .steps4, .stats { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .idcards { grid-template-columns: 1fr; }
  .theses li { grid-template-columns: 1fr; gap: 8px; }
  .theses li::before { padding-top: 0; }
  .ctable { font-size: 13.5px; }
  .ctable th, .ctable td { padding: 12px 6px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .crew-row, .tool-row { gap: 22px 26px; }
  .mega .nowrap { white-space: normal; }
  .phone { width: 270px; height: 540px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Tablet and phone: header ---------- */
@media (max-width: 1000px) {
  /* nav links are hidden here, so push the theme toggle + menu button to the right edge */
  .nav .theme-toggle { margin-left: auto; }
}

/* ---------- Phone layout: centred, bigger hero ---------- */
@media (max-width: 700px) {
  main, .footer { text-align: center; }

  /* Hero */
  .hero { padding-top: 24px; }
  .hero-title { font-size: clamp(46px, 14.5vw, 64px); line-height: .98; }
  .hero .lede, .page-hero .lede, .section-head .lede, .prose p, .lede { margin-left: auto; margin-right: auto; }
  .tool-row { justify-content: center; gap: 18px 22px; margin-bottom: 32px; }
  .tool-row span { justify-items: center; gap: 8px; font-size: 12px; }
  .tool-row svg { width: 22px; height: 22px; }

  /* Buttons and their notes */
  .cta-row { justify-content: center; flex-direction: column; gap: 16px; }
  .cta-note { text-align: center; }

  /* Section heads, intro badge, feature grid */
  .section-head, .fgrid-title { margin-left: auto; margin-right: auto; }
  .intro { justify-content: center; }
  .fcell .mini { justify-content: center; }
  .fcell p { margin-left: auto; margin-right: auto; }
  .tabs { justify-content: center; }

  /* Cards: centred headers, readable details */
  .job .top { justify-content: space-between; }
  .job dl { justify-content: center; text-align: left; }
  .idcard .who { flex-direction: column; text-align: center; }
  .specs { text-align: left; }
  .idcard .open { justify-content: center; gap: 8px; }

  /* Pricing card, compare table, FAQ stay left-aligned inside for readability */
  .plan .seg { margin-left: auto; margin-right: auto; }
  .plan .checks, .ctable, .faq, .facts, .toplist, .topic ul { text-align: left; }
  .split div, .zero div, .os div, .steps4 a { text-align: center; justify-items: center; }
  .stats div { text-align: center; }
  .theses li { text-align: center; }
  .search { margin-left: auto; margin-right: auto; }
  .code { margin-left: auto; margin-right: auto; }
  .callout { text-align: left; margin-left: auto; margin-right: auto; }

  /* Closing band */
  .band-inner { justify-items: center; }
  .band .h1 { margin-left: auto; margin-right: auto; }

  /* Footer */
  .foot { grid-template-columns: 1fr 1fr; justify-items: center; }
  .foot .brand { justify-content: center; }
  .foot p { margin-left: auto; margin-right: auto; }
  .foot-bottom { flex-direction: column; align-items: center; gap: 6px; }
}

/* ---------- Mobile menu: full-screen overlay under the header (doesn't push content) ---------- */
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
.mobile-menu.open {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
  position: absolute; top: 100%; left: 0; right: 0; height: 100vh; height: 100dvh;
  padding: 40px 24px 120px; background: var(--bg); border-bottom: 0; overflow-y: auto; z-index: 60;
  animation: menuIn .18s ease-out;
}
.mobile-menu.open a { border-bottom: 0; padding: 14px 0; font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; text-align: center; width: 100%; }
.mobile-menu.open a:last-child { margin-top: 20px; font-family: var(--sans); font-size: 16px; font-weight: 500; background: var(--btn-bg); color: var(--btn-ink); border-radius: 10px; padding: 14px 0; max-width: 320px; }
body.menu-open { overflow: hidden; }
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }