/* Arcadeology website: one stylesheet, no external fonts or scripts. */
:root {
  --bg: #0d0f1a;
  --bg-2: #141829;
  --panel: #1a1f35;
  --line: #2a3150;
  --grid: #50506e;
  --text: #e6e8f2;
  --muted: #9aa1bd;
  --accent: #ffcc33;
  --accent-2: #3ad6c5;
  --warn: #ff4d5e;
  --radius: 10px;
  --wrap: 1080px;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", "SFMono-Regular", Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
.hero .wrap > *, .two-col > *, .steps > *, .features > *, .shots > *, .license-cards > * { min-width: 0; }
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-2); padding: .1em .35em; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--accent); color: #000; padding: 6px 10px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(13, 15, 26, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 19px var(--mono); letter-spacing: .02em; }
.brand img { width: 28px; height: 28px; image-rendering: pixelated; }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.lang { font: 600 13px var(--mono); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; color: var(--text) !important; }
@media (max-width: 760px) { .nav a:not(.lang) { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::after { /* faint CRT scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 48px; } }
.eyebrow { font: 600 13px var(--mono); color: var(--accent); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font: 800 clamp(34px, 5vw, 52px)/1.1 var(--sans); margin: 0 0 18px; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 8px; text-decoration: none;
  font: 700 15px var(--mono); border: 2px solid var(--accent);
}
.btn-primary { background: var(--accent); color: #111; box-shadow: 4px 4px 0 #b38a00; }
.btn-primary:hover { color: #111; transform: translate(1px, 1px); box-shadow: 3px 3px 0 #b38a00; }
.btn-ghost { color: var(--accent); }
.btn-ghost:hover { background: rgba(255, 204, 51, .08); }
.meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-art { width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)); }

/* Sections */
section { scroll-margin-top: 60px; padding: 80px 0; border-bottom: 1px solid var(--line); }
section:nth-of-type(even) { background: var(--bg-2); }
h2 { font: 800 30px/1.2 var(--sans); margin: 0 0 12px; }
h2 .tag { font: 600 13px var(--mono); color: var(--accent); display: block; letter-spacing: .12em; margin-bottom: 8px; text-transform: uppercase; }
.section-intro { color: var(--muted); max-width: 46em; margin: 0 0 40px; }
h3 { font-size: 18px; margin: 0 0 8px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font: 700 14px var(--mono); color: var(--accent);
  display: block; margin-bottom: 10px;
}
.step p { margin: 0; color: var(--muted); font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 22px; border-left: 3px solid var(--accent-2); background: rgba(255,255,255,.02); border-radius: 0 var(--radius) var(--radius) 0; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 40px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font: 800 30px var(--mono); color: var(--accent); }
.stat span { color: var(--muted); font-size: 15px; }

/* Screenshots: if an image is missing, the frame shows its caption as a placeholder. */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
.shot { margin: 0; }
.shot .frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: repeating-linear-gradient(45deg, var(--panel) 0 12px, var(--bg-2) 12px 24px);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font: 14px var(--mono); text-align: center; padding: 0;
}
.shot .frame img { width: 100%; height: auto; }
.shot .frame.missing { aspect-ratio: 16 / 10; padding: 24px; }
.shot figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; }
.shot.wide { grid-column: 1 / -1; }
.shot.wide .frame.missing { aspect-ratio: 16 / 9; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding-left: 28px; position: relative; margin: 0 0 10px; }
ul.checks li::before { content: "▸"; position: absolute; left: 4px; color: var(--accent); }
ul.crosses li::before { content: "×"; color: var(--warn); font-weight: 700; }

.license-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .license-cards { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card.free { border-top: 4px solid var(--accent-2); }
.card.paid { border-top: 4px solid var(--accent); }
.card p, .card li { color: var(--muted); font-size: 16px; }

.notice { border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px 28px; color: var(--muted); font-size: 16px; }
.notice strong { color: var(--text); }

pre {
  background: #080a12; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px;
  overflow-x: auto; font: 14px/1.6 var(--mono); color: #cfe9e5;
}

/* Footer */
.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
