/* CapyPS5 website. Plain CSS, no build step. Colours follow the app (Capy.* in Theme.kt). */
:root {
  --bg: #07090e;
  --surface: #11141c;
  --surface-2: #1a1f2b;
  --line: rgba(255, 255, 255, .08);
  --text: #f1f3f7;
  --text-2: #9aa3b5;
  --muted: #5e6778;
  --blue: #3d8bff;
  --capy: #c97b4a;
  --good: #4ade80;
  --warn: #facc15;
  --bad: #f87171;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Top bar: the same row as the launcher's (logo, name, tabs). */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 34px; }
.brand b { color: var(--blue); font-weight: 800; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--text-2); }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.lang { font-family: var(--mono); font-size: 13px; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }

/* Hero */
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.tag { font-family: var(--mono); font-size: 13px; color: var(--text-2); letter-spacing: .02em; }
.tag .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-right: 8px; vertical-align: 1px; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin: 14px 0 18px; font-weight: 800; }
h1 em { font-style: normal; color: var(--capy); }
.lead { color: var(--text-2); font-size: 19px; max-width: 34ch; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 8px; font-weight: 650; text-decoration: none; border: 1px solid var(--line); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #2f7bf0; }
.btn:not(.primary):hover { background: var(--surface); }
.btn small { font-family: var(--mono); font-weight: 400; opacity: .8; font-size: 12px; }
.fineprint { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Screenshots keep the emulator's own FPS counter: they are unedited captures. */
.shot { margin: 0; }
.shot img { border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.shot figcaption b { color: var(--text-2); font-weight: 600; }

section { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.025em; line-height: 1.1; margin: 0 0 10px; }
.sub { color: var(--text-2); margin: 0 0 32px; max-width: 62ch; }

/* Gallery */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* Compatibility ledger */
.ledger { width: 100%; border-collapse: collapse; font-size: 16px; }
.ledger th { text-align: left; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 12px 12px 0; }
.ledger td { padding: 13px 12px 13px 0; border-top: 1px solid var(--line); vertical-align: top; }
.ledger td:first-child { font-weight: 600; }
.ledger td:last-child { color: var(--text-2); }
.fps { font-family: var(--mono); white-space: nowrap; }
.state { font: 600 12px/1 var(--mono); padding: 5px 8px; border-radius: 5px; white-space: nowrap; display: inline-block; }
.state.ok { color: var(--good); background: rgba(74, 222, 128, .1); }
.state.slow { color: var(--warn); background: rgba(250, 204, 21, .1); }
.state.no { color: var(--bad); background: rgba(248, 113, 113, .1); }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* Requirements as a spec sheet */
.spec { display: grid; grid-template-columns: 200px 1fr; margin: 0; border-top: 1px solid var(--line); }
.spec dt, .spec dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 500 13px/1.7 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* How it works: a pipeline, left to right */
.pipe { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pipe li { background: var(--bg); padding: 22px 20px; }
.pipe code { display: block; font: 600 13px/1.4 var(--mono); color: var(--blue); margin-bottom: 10px; }
.pipe p { margin: 0; color: var(--text-2); font-size: 15px; }

/* FAQ without JavaScript */
details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; font: 400 22px/1 var(--mono); color: var(--muted); top: 16px; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; color: var(--text-2); max-width: 70ch; }

/* Community */
.community { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.links { display: grid; gap: 10px; }
.links a { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.links a:hover { background: var(--surface); }
.links span { color: var(--muted); font: 13px var(--mono); }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
footer p { margin: 0 0 8px; max-width: 70ch; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--text-2); }

@media (max-width: 900px) {
  .hero, .community { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 40px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top nav a:not(.lang) { display: none; }
  .spec { grid-template-columns: 1fr; }
  .spec dt { border-bottom: 0; padding-bottom: 0; }
  .pipe { grid-template-columns: 1fr; }
  .ledger td:last-child { display: none; }
  section { padding: 52px 0; }
}
