@font-face {
  font-family: 'PixelCaps';
  src: url('assets/fonts/PressStart2P.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg: #0b0e13;
  --bg-soft: #10141b;
  --panel: #151b23;
  --panel-2: #1c232d;
  --line: #2b3541;
  --line-soft: #212933;
  --text: #e7eaee;
  --dim: #9aa5b1;
  --faint: #6b7784;
  --accent: #4f8fbf;
  --warm: #d8a44a;
  --ok: #4f9d6a;
  --pix: 'PixelCaps', ui-monospace, monospace;
  --mono: ui-monospace, 'DejaVu Sans Mono', 'Liberation Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h2, h3 { scroll-margin-top: 80px; }
section { scroll-margin-top: 74px; }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code {
  font-family: var(--mono);
  background: #0d1116;
  border: 1px solid var(--line-soft);
  padding: 1px 5px;
  font-size: 13px;
}
strong { color: #f0f3f6; }

/* ---------- top ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 22px;
  background: rgba(11, 14, 19, 0.92);
  border-bottom: 2px solid #000;
  box-shadow: inset 0 -1px 0 var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 9px; }
#brandMark {
  width: 26px; height: 26px;
  image-rendering: pixelated;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  background: #0e1319;
}
.brand-name {
  font-family: var(--pix);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #eef2f5;
}
.topnav { display: flex; gap: 20px; font-size: 13px; color: var(--dim); }
.topnav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.topnav a:hover { color: #fff; border-bottom-color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pix);
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 12px 18px;
  background: var(--panel-2);
  color: #e4e9ee;
  border: 2px solid #000;
  box-shadow: inset 1px 1px 0 #4a5666, inset -1px -1px 0 #111a22, 3px 3px 0 #000;
  text-transform: uppercase;
  transition: transform 80ms linear, background 120ms linear;
}
.btn:hover { background: #26303c; }
.btn:active {
  box-shadow: inset 1px 1px 0 #111a22, inset -1px -1px 0 #4a5666;
  transform: translate(2px, 2px);
}
.btn.primary {
  background: #2f5f86;
  box-shadow: inset 1px 1px 0 #5a8fb8, inset -1px -1px 0 #16344a, 3px 3px 0 #000;
}
.btn.primary:hover { background: #386f9b; }
.btn.wide { width: 100%; padding: 15px 18px; font-size: 10px; }
.btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 3px;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  gap: 40px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 22px 40px;
}
.eyebrow {
  font-family: var(--pix);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--pix);
  font-size: clamp(20px, 3.4vw, 38px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #f4f6f8;
}
.lede {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.7;
}
.cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.fineprint { margin-top: 18px; font-size: 12px; color: var(--faint); }

.hero-stage {
  position: relative;
  background: #090c11;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 6px;
}
#building { width: 100%; height: auto; image-rendering: pixelated; }
.stage-caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--pix);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--dim);
  background: rgba(9, 12, 17, 0.9);
  border: 1px solid var(--line);
  padding: 5px 8px;
}

/* ---------- pipeline strip ---------- */

.strip {
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  background: var(--bg-soft);
  overflow: hidden;
  padding: 0;
}
.pipeline {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  width: max-content;
  animation: slide 44s linear infinite;
}
.pipeline li {
  font-family: var(--pix);
  font-size: 8px;
  letter-spacing: 0.09em;
  color: var(--faint);
  padding: 13px 22px;
  border-right: 1px solid var(--line-soft);
  white-space: nowrap;
}
.pipeline li:nth-child(3) { color: var(--warm); }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

main > section { padding: 84px 22px; }
.strip { padding: 0; }
.how, .makes, .download, .notes, .numbers { max-width: 1160px; margin: 0 auto; }
h2 {
  font-family: var(--pix);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #f2f5f8;
}
.section-lede {
  margin: 16px 0 40px;
  max-width: 64ch;
  color: var(--dim);
}

/* ---------- how ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 2px solid var(--line);
  padding: 22px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}
.card.in { opacity: 1; transform: none; }
.card:hover { border-color: #3d4b5a; }
.card.quiet { background: var(--bg-soft); }
.card-num {
  font-family: var(--pix);
  font-size: 9px;
  color: var(--accent);
  margin-bottom: 12px;
}
.card h3 { font-size: 16px; color: #eef2f6; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--dim); line-height: 1.65; }

/* ---------- makes ---------- */

.makes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.make {
  background: var(--panel);
  border: 2px solid var(--line);
  padding: 0 0 20px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}
.make.in { opacity: 1; transform: none; }
.make.quiet { background: var(--bg-soft); }
.make h3 { font-size: 15px; color: #eef2f6; padding: 18px 20px 0; }
.make p { font-size: 14px; color: var(--dim); padding: 8px 20px 0; line-height: 1.6; }
.make .ext {
  font-family: var(--pix);
  font-size: 7px;
  color: var(--faint);
  letter-spacing: 0.08em;
  margin-top: auto;
  padding-top: 14px;
}

.make-visual {
  height: 160px;
  background: #0a0d12;
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* mini web app */
.mini-app { width: 74%; padding: 12px; background: #f4f2ec; border: 2px solid #000; }
.mini-row { display: flex; gap: 5px; margin-bottom: 10px; }
.mini-row span { height: 6px; background: #c9c3b4; flex: 1; }
.mini-row span:first-child { flex: 2; background: #2f6f5e; }
.mini-bar { height: 15px; background: #e6e2d8; border: 1px solid #cfc9ba; margin-bottom: 6px; position: relative; }
.mini-bar i {
  position: absolute; inset: 4px auto 4px 5px; width: 42%;
  background: #b9b3a4; display: block;
}
.mini-bar.short i { width: 26%; }

/* pixel art mini */
#miniImage { image-rendering: pixelated; width: 100%; height: 100%; object-fit: cover; }

/* wave */
.wave { display: flex; align-items: center; gap: 3px; height: 92px; width: 84%; }
.wave i {
  flex: 1;
  background: var(--accent);
  display: block;
  height: 12%;
  transform-origin: center;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { height: 12%; opacity: 0.5; }
  50% { height: var(--h, 60%); opacity: 1; }
}

/* reel */
.reel {
  width: 118px;
  height: 148px;
  background: #0d1117;
  border: 2px solid #000;
  position: relative;
  overflow: hidden;
}
.reel-bg {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 20%, #1d2b3c 0%, #0c1017 70%);
}
.reel-type {
  position: absolute;
  left: 8px; right: 8px; top: 34px;
  font-family: var(--pix);
  font-size: 7px;
  line-height: 1.8;
  color: #f3efe4;
}
.reel-type em { font-style: normal; color: var(--warm); }
.reel-bar {
  position: absolute; left: 8px; right: 8px; bottom: 12px; height: 3px;
  background: rgba(255,255,255,0.14);
}
.reel-bar::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 40%;
  background: var(--warm);
  animation: fill 5s linear infinite;
}
@keyframes fill { from { width: 4%; } to { width: 100%; } }
.reel-mark {
  position: absolute; right: 10px; top: 10px;
  width: 16px; height: 16px;
  background: var(--warm);
  animation: spin 9s linear infinite;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* motion design */
.motion-reel {
  background: #080a0d;
  box-shadow: inset 0 -30px 40px rgba(224, 101, 63, 0.12);
}
.motion-device {
  position: absolute;
  left: 13px; right: 13px; top: 42px;
  padding: 4px;
  border: 2px solid #2a313a;
  background: #0b1016;
  box-shadow: 0 10px 18px rgba(0,0,0,0.55);
}
.motion-screen {
  border: 1px solid #2e3947;
  background: linear-gradient(180deg, #131b24 0%, #0b0f14 100%);
  padding: 9px 7px 11px;
  font-family: var(--pix);
  font-size: 7px;
  line-height: 1.5;
  color: #f3efe4;
}
.motion-screen em {
  display: block;
  font-style: normal;
  color: var(--warm);
}
.motion-reel .reel-mark {
  right: 9px; top: 9px;
  width: 13px; height: 13px;
  opacity: 0.9;
}

/* doc */
.mini-doc { width: 70%; background: #f4f2ec; padding: 14px; border: 2px solid #000; }
.doc-line { height: 5px; background: #c4bdae; margin-bottom: 6px; }
.doc-line.strong { height: 7px; background: #5b5344; }
.doc-line.w40 { width: 40%; }
.doc-line.w55 { width: 55%; }
.doc-line.w65 { width: 65%; }
.doc-line.w70 { width: 70%; }
.doc-line.w80 { width: 80%; }
.doc-line.w90 { width: 90%; }
.doc-gap { height: 8px; }

/* folder */
.folder { width: 66%; }
.folder-tab {
  width: 44%; height: 9px;
  background: #2f5f86;
  border: 2px solid #000;
  border-bottom: 0;
  margin-left: 4px;
}
.folder-body {
  border: 2px solid #000;
  background: var(--panel-2);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.folder-body span {
  font-family: var(--pix);
  font-size: 6px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* ---------- numbers ---------- */

.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 2px solid var(--line-soft);
  border-bottom: 2px solid var(--line-soft);
}
.num-big {
  font-family: var(--pix);
  font-size: 26px;
  color: #f0f3f6;
  font-variant-numeric: tabular-nums;
}
.num-label { font-size: 12px; color: var(--faint); margin-top: 8px; }

/* ---------- download ---------- */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.dl-card {
  background: var(--panel);
  border: 2px solid var(--line);
  padding: 22px;
}
.dl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dl-head h3 { font-family: var(--pix); font-size: 11px; color: #f0f3f6; }
.dl-meta { font-size: 12px; color: var(--faint); }
.dl-size { font-size: 12px; color: var(--faint); margin-top: 12px; }
.dl-note { font-size: 13px; color: var(--dim); margin-top: 12px; line-height: 1.65; }

.after-download {
  margin-top: 28px;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  padding: 24px;
}
.after-download h3 { font-family: var(--pix); font-size: 10px; color: #f0f3f6; margin-bottom: 14px; }
.after-download ol { margin: 0; padding-left: 20px; color: var(--dim); font-size: 14px; }
.after-download li { margin-bottom: 7px; }

/* ---------- notes ---------- */

.notes { border-top: 2px solid var(--line-soft); }
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 30px;
}
.notes-grid h3 { font-size: 15px; color: #eef2f6; margin-bottom: 8px; }
.notes-grid p { font-size: 14px; color: var(--dim); line-height: 1.65; }

/* ---------- footer ---------- */

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 22px;
  border-top: 2px solid #000;
  background: var(--bg-soft);
  font-size: 12px;
  color: var(--faint);
}
.foot-left { display: flex; align-items: baseline; gap: 12px; }
.foot-sub { font-size: 12px; color: var(--faint); }
.foot-right a:hover { color: var(--text); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-stage { order: -1; }
  section { padding: 56px 18px; }
  .topnav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .card, .make { opacity: 1; transform: none; }
}
