/* Nova's Dominion — site pages (landing, legal, support, press, 404).
   The game itself has its own style.css; this sheet only styles the pages
   around it, in the game's palette. */
:root {
  --bg: #06060f; --bg2: #0b0b1a; --card: rgba(14,16,40,0.72); --rule: rgba(68,136,255,0.16);
  --ink: #e2e8f5; --muted: #8f9ab5; --blue: #4488ff; --blue2: #88ccff; --red: #ff3b5c; --green: #66ddaa; --gold: #ffcc00; --violet: #a66bff;
  --w: 1120px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--blue2); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue2); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); background: rgba(6,6,15,0.72); border-bottom: 1px solid var(--rule); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--blue2); text-decoration: none; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; font-size: 13px; }
.brand img { width: 26px; height: 26px; }
.nav ul { display: flex; gap: 4px 22px; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: 14px; align-items: center; }
.nav ul a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav ul a:hover { color: var(--ink); }
.nav ul a.play { color: #06060f; background: var(--green); padding: 8px 16px; border-radius: 6px; font-weight: 700; letter-spacing: 1px; }
.nav ul a.play:hover { background: #8ff0c4; color: #06060f; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 8px; border: 1px solid rgba(136,204,255,0.35); background: rgba(68,136,255,0.14); color: var(--blue2); text-decoration: none; font-weight: 600; letter-spacing: 1px; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: rgba(68,136,255,0.26); border-color: rgba(136,204,255,0.6); }
.btn.primary { background: var(--green); border-color: var(--green); color: #06060f; font-size: 17px; min-height: 56px; padding: 0 34px; box-shadow: 0 0 30px rgba(102,221,170,0.25); }
.btn.primary:hover { background: #8ff0c4; }
.btn small { font-weight: 400; opacity: .75; letter-spacing: 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,6,15,0.98) 0%, rgba(6,6,15,0.75) 32%, rgba(6,6,15,0.15) 65%, rgba(6,6,15,0.35) 100%); pointer-events: none; }
.hero .wrap { position: relative; width: 100%; padding-bottom: 64px; padding-top: 120px; }
.hero .kicker { color: var(--blue2); letter-spacing: 4px; text-transform: uppercase; font-size: 12px; margin: 0 0 12px; opacity: .9; }
.hero h1 { font-size: clamp(44px, 8vw, 96px); line-height: .95; letter-spacing: 6px; margin: 0 0 18px; color: #fff; font-weight: 300; text-shadow: 0 0 40px rgba(68,136,255,0.55), 0 2px 12px rgba(0,0,0,0.7); }
.hero .hook { font-size: clamp(17px, 2.2vw, 22px); color: #c7d2ea; max-width: 58ch; margin: 0 0 30px; text-shadow: 0 1px 8px rgba(0,0,0,0.8); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

/* ---------- proof strip ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.strip div { text-align: center; }
.strip b { display: block; font-size: 28px; font-weight: 300; color: var(--blue2); line-height: 1.1; }
.strip span { color: var(--muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }

/* ---------- feature bands ---------- */
.band { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding: 72px 0; border-bottom: 1px solid var(--rule); }
.band.flip .art { order: 2; }
.band .art { border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(68,136,255,0.12); background: var(--bg2); }
.band .art img { display: block; width: 100%; height: auto; }
.band .kicker { color: var(--blue2); letter-spacing: 4px; text-transform: uppercase; font-size: 12px; margin: 0 0 10px; }
.band.red .kicker { color: #ff8a9d; }
.band.violet .kicker { color: #c9a6ff; }
.band h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 300; letter-spacing: 1px; margin: 0 0 14px; line-height: 1.15; color: #fff; }
.band p { color: #b9c3da; margin: 0 0 12px; font-size: 16.5px; }
.band ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.band li { color: var(--muted); font-size: 15px; padding-left: 22px; position: relative; }
.band li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.band.red li::before { background: var(--red); box-shadow: 0 0 10px var(--red); }
.band.violet li::before { background: var(--violet); box-shadow: 0 0 10px var(--violet); }

/* ---------- pillars ---------- */
.section { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.section > .wrap > h2, .section-title { font-size: clamp(26px, 3vw, 34px); font-weight: 300; letter-spacing: 3px; text-transform: uppercase; color: #fff; margin: 0 0 8px; text-align: center; }
.section .lead { color: var(--muted); text-align: center; max-width: 64ch; margin: 0 auto 36px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pillar { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 22px 20px 18px; }
.pillar .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(68,136,255,0.14); color: var(--blue2); font-size: 20px; }
.pillar b { display: block; color: #fff; margin-bottom: 6px; letter-spacing: .5px; font-size: 16px; }
.pillar p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }
.gallery a { display: block; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--bg2); position: relative; }
.gallery img { display: block; width: 100%; height: auto; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font-size: 12.5px; color: #d8e0f0; background: linear-gradient(to top, rgba(6,6,15,0.9), transparent); }
.lightbox { position: fixed; inset: 0; background: rgba(3,3,10,0.94); display: none; align-items: center; justify-content: center; z-index: 60; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 100px rgba(0,0,0,0.8); }

/* ---------- get-it ---------- */
.getit { text-align: center; padding: 80px 0; background: radial-gradient(ellipse at center, rgba(68,136,255,0.10), transparent 60%); }
.getit h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 300; letter-spacing: 2px; margin: 0 0 12px; color: #fff; }
.getit p { color: var(--muted); max-width: 60ch; margin: 0 auto 28px; }
.getit .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.getit .fine { font-size: 13px; margin-top: 18px; }

/* ---------- prose pages ---------- */
.page { padding-top: 48px; padding-bottom: 20px; }
.prose { max-width: 72ch; }
.prose h1 { font-size: 38px; font-weight: 300; letter-spacing: 3px; color: #fff; margin: 0 0 4px; }
.prose .eff { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.prose h2 { font-size: 19px; letter-spacing: .5px; margin: 32px 0 8px; color: var(--blue2); font-weight: 600; }
.prose h3 { font-size: 16px; margin: 20px 0 6px; color: #fff; }
.prose p { margin: 0 0 12px; }
.prose li { margin: 4px 0; }
.prose code { background: var(--bg2); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 6px; font-size: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; white-space: nowrap; width: 1%; }
.copy { display: block; margin-top: 6px; }
pre.copy { white-space: pre-wrap; background: var(--bg2); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.shots figure { margin: 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--bg2); }
.shots img { display: block; width: 100%; height: auto; }
.shots figcaption { padding: 8px 12px; color: var(--muted); font-size: 13px; }

/* ---------- footer ---------- */
footer { padding: 34px 0 44px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--ink); }
footer .legal { margin-top: 16px; line-height: 1.7; }

@media (max-width: 820px) {
  .band { grid-template-columns: 1fr; gap: 26px; padding: 52px 0; }
  .band.flip .art { order: 0; }
  .hero { min-height: 70vh; }
  .hero .wrap { padding-top: 80px; padding-bottom: 44px; }
}
@media (max-width: 800px) {
  /* Compact nav: brand icon, two text links and the Play button. Section
     anchors and Press stay reachable from the page body and footer. (The
     full row needs ~780px; below that the Play button used to wrap.) */
  .nav ul { gap: 4px 14px; font-size: 13px; }
  .nav ul li:has(a[href^="#"]), .nav ul li:has(a[href^="/#"]), .nav ul li:has(a[href="/press"]) { display: none; }
  .brand span { display: none; }
  .hero h1 { letter-spacing: 3px; }
}
@media (max-width: 400px) {
  .nav ul li:has(a[href="/download"]) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- motion & polish ---------- */
.hero .stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; opacity: .9; }
@keyframes heroDrift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.2%, -1.5%, 0); } }
.hero .bg { will-change: transform; animation: heroDrift 40s ease-in-out infinite alternate; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.band.reveal .art { transition: transform .9s ease; }
.gallery a.reveal { transition-delay: .05s; }
.pillar:hover { border-color: rgba(136,204,255,0.35); }
.gallery a:focus-visible { outline: 2px solid var(--blue2); outline-offset: 3px; }
.lb-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(6,6,15,0.6); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(68,136,255,0.35); }
.strip b { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .hero .bg { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .hero .stars { display: none; }
}

/* ---------- prose pages: on-this-page rail ---------- */
.with-toc { display: grid; grid-template-columns: minmax(0, 72ch) 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 84px; font-size: 14px; border-left: 1px solid var(--rule); padding-left: 18px; max-width: 260px; }
.toc-title { color: var(--muted); letter-spacing: 2px; text-transform: uppercase; font-size: 11px; margin-bottom: 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { color: var(--muted); text-decoration: none; display: block; line-height: 1.35; }
.toc a:hover, .toc a.cur { color: var(--blue2); }
.prose h2 { scroll-margin-top: 80px; }
@media (max-width: 980px) { .with-toc { grid-template-columns: 1fr; } .toc { display: none; } }
/* anchored sections land below the sticky header */
.band, .section, .getit { scroll-margin-top: 72px; }
/* prose pages on phones: tables and code must not widen the page */
@media (max-width: 980px) {
  .with-toc { grid-template-columns: minmax(0, 1fr); }
  .prose th { white-space: normal; width: auto; }
  .prose table { display: block; overflow-x: auto; }
  .prose { max-width: 100%; }
}
.prose pre, .prose code { overflow-wrap: anywhere; }
