/* Strì public site: Arcade Galaxy. Plain CSS. Colours are the Arcade Galaxy theme tokens;
   painted artwork has its own shading. Pixel face for headings only, system fonts for reading. */
@font-face {
  font-family: "Press Start 2P";
  src: url("/fonts/press-start-2p.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ag-bg: #040110;
  --ag-surface: #0a0520;
  --ag-raised: #120a2e;
  --ag-ink: #fff8ff;       /* 18:1 on --ag-surface */
  --ag-muted: #decdf2;     /* 12.8:1 */
  --ag-cyan: #30c2f6;      /* 9.3:1, primary action */
  --ag-pink: #f0507a;      /* 5.4:1, secondary punch */
  --ag-yellow: #e6d959;    /* 13:1, third accent */
  --ag-violet: #7a56c8;
  --ag-line: #3a2a6a;
  --ag-on-cyan: #021a22;
  --ag-radius: .9rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pixel: "Press Start 2P", ui-monospace, "Courier New", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; background: var(--ag-bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; color: var(--ag-ink);
  background: var(--ag-bg) url("/assets/arcade/starfield.webp") center top / 645px auto repeat;
  font: 1rem/1.6 var(--font); overflow-wrap: break-word; overflow-x: clip;
}
h1, h2 { font-family: var(--pixel); font-weight: 400; line-height: 1.35; letter-spacing: 0; margin: 0 0 .8em; overflow-wrap: anywhere; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
a { color: var(--ag-cyan); text-underline-offset: .2em; -webkit-tap-highlight-color: rgba(48, 194, 246, .22); }
a:focus-visible { outline: 3px solid var(--ag-yellow); outline-offset: 5px; }
a:not(.button):focus-visible { border-radius: .25rem; }
#main:focus { outline: none; }
::selection { background: var(--ag-cyan); color: var(--ag-bg); }

.container { width: min(70rem, calc(100% - min(2.5rem, 12.5vw))); margin-inline: auto; }

.skip { position: absolute; left: 1.25rem; top: 0; max-width: calc(100% - 2.5rem); transform: translateY(-150%); z-index: 20; background: var(--ag-cyan); color: var(--ag-on-cyan); padding: .7rem 1rem; font-weight: 800; border-radius: .5rem; }
.skip:focus { top: .75rem; transform: none; }
.skip:focus-visible { box-shadow: 0 0 0 11px var(--ag-bg); }

/* Header: a cabinet top edge with the grid floor running along its base */
.site-header {
  position: relative; padding: 1.2rem 0 1.6rem;
  background: linear-gradient(180deg, var(--ag-bg), #12062e);
  border-bottom: 2px solid var(--ag-violet);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 25px; pointer-events: none; opacity: .7;
  background: url("/assets/arcade/grid-floor.webp") center bottom / auto 25px repeat-x;
}
.site-header .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark-link { display: block; flex: none; }
.wordmark { display: block; width: clamp(8.5rem, 18vw, 15rem); height: auto; aspect-ratio: 2022 / 778; object-fit: contain; }
.site-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.3rem; }
.site-nav a { display: inline-block; padding: .55rem 0; color: var(--ag-ink); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--ag-cyan); text-decoration: underline; text-decoration-thickness: 2px; }

/* Hero (also used by the 404 page). Ringed planet on the right; the copy sits on open space. */
.hero {
  position: relative; isolation: isolate;
  background: var(--ag-bg) url("/assets/arcade/hero-planet.webp") right center / auto 100% no-repeat;
  padding: clamp(3rem, 6.5vw, 7rem) 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ag-bg) 40%, rgba(4, 1, 16, .6) 62%, transparent 85%),
    linear-gradient(180deg, var(--ag-bg), transparent 3rem),
    linear-gradient(0deg, var(--ag-bg), transparent clamp(2rem, 6vw, 5rem));
}
.hero-copy { max-width: 40rem; }
.hero h1 { font-size: clamp(1.45rem, 3.1vw, 2.75rem); margin-bottom: 1.6rem; color: var(--ag-ink); }
.hero p { font-size: 1.15rem; color: var(--ag-muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.6rem; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .85rem 1.4rem;
  background: var(--ag-cyan); color: var(--ag-on-cyan); border: 2px solid #8fe0fb; border-radius: .4rem;
  box-shadow: 0 0 0 2px var(--ag-bg), 0 0 18px rgba(48, 194, 246, .45);
  text-decoration: none; font-weight: 800; font-size: 1rem; transition: transform .18s;
}
.button:active { transform: none; filter: brightness(.92); }
.quiet-link { display: inline-block; padding: .75rem 0; color: var(--ag-ink); font-weight: 600; font-size: 1rem; }
@media (hover: hover) {
  .button:hover { transform: translateY(-2px); }
  .quiet-link:hover, .contact-link:hover { color: var(--ag-cyan); }
}

/* Sections and panels: solid neon-framed cabinets, one accent each, like the app's cards */
.section { position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-editorial { padding-bottom: 0; }
#building { scroll-margin-top: calc(-1 * clamp(3.5rem, 7vw, 6rem)); }
.editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; position: relative; z-index: 1; }
.panel {
  --accent: var(--ag-cyan);
  position: relative; padding: min(clamp(1.5rem, 4vw, 3rem), 7.5vw);
  border: 2px solid var(--accent); border-radius: var(--ag-radius); background: var(--ag-surface);
  box-shadow: 0 0 14px -2px var(--accent), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.panel::after { /* status lamp, top right */
  content: ""; position: absolute; top: 1.1rem; right: 1.1rem; width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
#boxing, #contact { --accent: var(--ag-pink); }
#coming { --accent: var(--ag-yellow); }
.panel h2 { font-size: clamp(1.15rem, 1.9vw, 1.6rem); color: var(--accent); }
.panel p { color: var(--ag-muted); }
.panel.policy h1 { font-size: clamp(1.2rem, 4vw, 1.9rem); }
.panel.policy h2 { font-size: clamp(.95rem, 1.5vw, 1.15rem); margin-top: 2.25rem; color: var(--ag-cyan); }
.panel.policy::after { content: none; }
.policy ul { margin: 0 0 1rem; padding-left: 1.25rem; color: var(--ag-muted); }
.policy li { margin-bottom: .4rem; }
.eyebrow { margin: 0 0 .9rem; color: var(--ag-yellow); text-transform: uppercase; letter-spacing: .13em; font-size: .8rem; font-weight: 800; }
.panel .eyebrow { color: var(--ag-yellow); }
.panel .eyebrow-pink { color: var(--ag-pink); }
.panel .founder { color: var(--ag-ink); font-weight: 600; }

/* Decorative rocket in the footer corner. It sits in the footer's own empty space, never under copy. */
.decorative-rocket {
  position: absolute; z-index: 2; right: clamp(.75rem, 3vw, 2.5rem); bottom: 1.25rem;
  width: clamp(110px, 14vw, 180px); height: auto; aspect-ratio: 228 / 98;
  pointer-events: none; user-select: none;
}

.product-panel { --accent: var(--ag-pink); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: center; }
.product-panel p:last-child { margin-bottom: 0; }
.product-art { display: block; width: 100%; max-width: 19rem; height: auto; aspect-ratio: 399 / 640; margin-inline: auto; image-rendering: pixelated; }
.product-title { margin-bottom: 1rem; }
.product-title img { display: block; width: min(100%, 20rem); height: auto; aspect-ratio: 428 / 120; }
/* Shown exactly as written ("Lock In"): no text-transform. */
.panel .product-tag { margin: 0 0 1.2rem; color: var(--ag-pink); font-family: var(--pixel); font-size: clamp(1rem, 1.6vw, 1.35rem); line-height: 1.3; }

.section-contact { isolation: isolate; }
.contact-link { display: inline-block; padding: .4rem 0; font-size: clamp(1.1rem, 4vw, 1.8rem); font-weight: 800; overflow-wrap: anywhere; }

.site-footer {
  position: relative; padding: 2rem 0 3rem; color: var(--ag-muted);
  background: linear-gradient(0deg, #12062e, var(--ag-bg)); border-top: 2px solid var(--ag-violet);
}
.site-footer p { margin: 0; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; }
.footer-link { display: inline-block; padding: .7rem 0; color: var(--ag-muted); }
.footer-link:hover { color: var(--ag-cyan); }

/* 404: reuses the hero, centred vertically */
.notfound { min-height: 100vh; min-height: 100dvh; display: grid; align-content: center; }
.notfound .wordmark-link { width: fit-content; margin-bottom: clamp(2rem, 8vw, 4rem); }
.notfound h1 { font-size: clamp(1.4rem, 4vw, 2.4rem); }

@media (min-width: 701px) {
  .hero-copy { max-width: min(40rem, 58vw); }
  .hero-actions { max-width: min(100%, 48vw); }
  .hero h1 { text-wrap: balance; }
  .contact-link { font-size: clamp(1.1rem, 2.6vw, 1.8rem); }
}
@media (min-width: 701px) and (max-height: 520px) {
  .hero { padding-block: 2rem; }
  .hero h1 { font-size: clamp(1.2rem, 2.6vw, 1.8rem); margin-bottom: 1rem; }
  .hero-actions { margin-top: 1rem; }
}
@media (max-width: 700px) {
  .site-header .container { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .site-nav { gap: 0 1.2rem; font-size: .95rem; }
  .hero { background: var(--ag-bg) url("/assets/arcade/hero-mobile.webp") center top / cover no-repeat; padding-block: 4.5rem; }
  .hero::before {
    background:
      linear-gradient(0deg, var(--ag-bg), transparent 2.5rem),
      rgba(4, 1, 16, .72);
  }
  .hero h1 { font-size: min(1.45rem, 7.6vw); }
  .panel h2 { font-size: min(1.15rem, 6.2vw); padding-right: 1.2rem; }
  .editorial-grid, .product-panel { grid-template-columns: minmax(0, 1fr); }
  .product-panel { gap: 1.8rem; }
  .product-art { max-width: 12rem; }
  .site-footer { padding-bottom: 5.5rem; }
}
@media (max-width: 499px) {
  .site-nav { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); justify-content: start; gap: 0 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .button { border: 2px solid ButtonText; }
  .hero, body { background-image: none; }
  .panel::after, .site-header::after { display: none; }
}
@media print {
  html, body { background: #fff !important; color: #000 !important; }
  .site-header, .hero, .site-footer, .panel { background: none !important; box-shadow: none !important; }
  .panel, .product-panel { border-color: #000; }
  *, *::before, *::after { color: #000 !important; }
  a { color: #000 !important; text-decoration: underline; }
  .hero::before, .panel::after, .site-header::after, .decorative-rocket, .site-nav, .skip, .button { display: none !important; }
  .panel, .product-panel, .hero-copy { break-inside: avoid; }
}
