/* Wing Commander RTX: black space, a hologram ship drawn live behind the page (js/space.js), huge
   uppercase type and a blue accent, after EnduroSat's Space Service page (Fernando, 2026-10-25). */
:root {
  --bg: #000;
  --panel: #07090d;
  --card: #0c0f15;
  --border: #1b2230;
  --text: #f2f4f8;
  --muted: #9aa3b5;
  --blue: #3d8bff;
  --blue-hi: #6aa8ff;
  --on-blue: #00142f;
  --max: 1280px;
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-hi); text-underline-offset: 3px; }
a:hover { color: #9cc4ff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
code { font: 500 0.86em ui-monospace, "Cascadia Mono", monospace; background: #111725; border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: var(--on-blue); padding: 10px 14px; z-index: 60; }
.skip:focus { left: 8px; }

/* The hologram scene, fixed behind everything; a still for browsers without WebGL. */
#space { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
.no-webgl #space { background: #000 url(/img/hero.jpg) center / cover no-repeat; }
main, .foot { position: relative; z-index: 1; }

/* Header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0)); }
.nav { max-width: var(--max); margin: 0 auto; padding: 18px clamp(20px, 5vw, 64px); display: flex; align-items: center; gap: 32px; }
.brand { font: 700 15px var(--head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--blue); }
.links { display: flex; gap: 28px; list-style: none; margin: 0 auto; padding: 0; }
.links a { color: var(--muted); text-decoration: none; font: 500 14px var(--body); padding: 12px 0; }
.links a:hover { color: var(--text); }
@media (max-width: 860px) { .links { display: none; } .nav { justify-content: space-between; } }
@media (max-width: 560px) { .nav > .btn-line { display: none; } }

/* Buttons */
.btn, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  font: 600 15px var(--head); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border-radius: 2px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn { background: var(--blue); color: var(--on-blue); border: 1px solid var(--blue); }
.btn:hover { background: var(--blue-hi); border-color: var(--blue-hi); color: var(--on-blue); }
.btn-line { background: rgba(0, 0, 0, 0.35); color: var(--text); border: 1px solid #3a4457; min-height: 44px; }
.btn-line:hover { border-color: var(--blue); color: var(--text); }

/* The corner button, as EnduroSat's "Design your mission" */
.fab { position: fixed; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 36px); z-index: 30; display: flex; align-items: center; gap: 14px;
  color: var(--muted); text-decoration: none; font: 600 13px var(--head); letter-spacing: 0.14em; text-transform: uppercase; transition: opacity 0.3s ease; }
.fab i { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #3a4457; background: rgba(10, 14, 22, 0.7); color: var(--text); transition: background 0.2s ease, border-color 0.2s ease; }
.fab:hover { color: var(--text); }
.fab:hover i { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.fab.away { opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .fab span { display: none; } }

/* Type */
.kicker { font: 600 13px var(--head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin: 0 0 18px; }
h1 { font: 800 clamp(52px, 9.5vw, 132px)/0.9 var(--head); text-transform: uppercase; letter-spacing: -0.02em; margin: 0 0 28px; }
.blue { color: var(--blue); }
.big { font: 700 clamp(32px, 5vw, 64px)/1.02 var(--head); letter-spacing: -0.015em; margin: 0 0 28px; max-width: 18ch; }
h3 { font: 700 22px/1.25 var(--head); margin: 0 0 10px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: #c9d0dc; max-width: 34em; margin: 0 0 32px; }
.note { color: var(--muted); margin: -12px 0 28px; }
.num { font: 600 14px var(--head); letter-spacing: 0.16em; color: var(--blue); margin: 0 0 12px; }

/* Hero and the statement over the scene */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero .wrap, .statement .wrap { width: 100%; }
.hero h1, .hero .lede { max-width: 11ch; }
.hero .lede { max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.statement { min-height: 100vh; display: flex; align-items: center; padding: 80px 0; }
.statement .big { max-width: 20ch; }
@media (max-width: 760px) {
  .hero { align-items: flex-end; }
  .hero::before, .statement::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 70%); z-index: -1; }
  .hero, .statement { position: relative; }
}

/* The ships: a sticky panel over one scroll stop per ship */
.ships { position: relative; }
.ships-stick { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.ships-stick a, .steps-bar button { pointer-events: auto; }
.ship-stop { height: 85vh; }
.ship-text { min-height: 210px; }
.ship-name { font: 800 clamp(44px, 6.4vw, 92px)/0.92 var(--head); text-transform: uppercase; letter-spacing: -0.02em; margin: 0 0 14px; }
.ship-class { font: 600 14px var(--head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.ship-line { font-size: 19px; color: #c9d0dc; max-width: 26em; margin: 0; }
.ship-credit { font-size: 13px; color: #7d879a; margin: 40px 0 0; }
.steps-bar { position: absolute; left: 0; right: 0; bottom: clamp(84px, 11vh, 120px); max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.steps-bar button { background: none; border: 0; padding: 14px 0 0; text-align: left; color: #6d778a; font: 600 11px var(--head); letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; position: relative; min-height: 44px; }
.steps-bar button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #1d2433; }
.steps-bar button[aria-selected="true"] { color: var(--text); }
.steps-bar button[aria-selected="true"]::before { background: var(--blue); }
.steps-bar button:hover { color: var(--text); }
@media (max-width: 760px) { .steps-bar button { font-size: 0; } .ship-stop { height: 70vh; } .ships-stick { justify-content: flex-end; padding-bottom: 150px; } }

/* Solid sections after the scene */
.solid { background: var(--bg); padding: clamp(80px, 12vh, 140px) 0 0; }
.features { border-top: 1px solid var(--border); }
.rows { display: grid; gap: clamp(48px, 7vw, 96px); margin-top: 24px; }
.row { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.row:nth-child(even) > div { order: 2; }
.row p { color: var(--muted); margin: 0; }
.row img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--border); }
@media (max-width: 900px) { .row { grid-template-columns: 1fr; } .row:nth-child(even) > div { order: 0; } }

.trailer { border-top: 1px solid var(--border); }
.trailer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--border); margin-bottom: 20px; }
.trailer .note { margin: 0; }
.all-h { margin-top: clamp(80px, 12vh, 140px); }
.all { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 40px 48px; }
.all > div { border-top: 1px solid #2a3344; padding-top: 24px; }
.all ul { list-style: none; margin: 0; padding: 0; }
.all li { position: relative; padding: 0 0 12px 18px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.all li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border: 1px solid var(--blue); transform: rotate(45deg); }
.all .later { margin-top: 24px; color: var(--muted); }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.shot { margin: 0; background: var(--card); border: 1px solid var(--border); overflow: hidden; }
.shot a { display: block; overflow: hidden; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.35s ease; }
.shot a:hover img { transform: scale(1.03); }
.shot figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 400px) { .shots { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.steps li { border-top: 1px solid #2a3344; padding: 24px 0 0; }
.steps li p:last-child { color: var(--muted); margin: 0; }
.reqs { border: 1px solid var(--border); background: var(--panel); padding: 28px; }
.reqs ul { margin: 0; padding-left: 20px; color: var(--muted); }
.reqs li { margin: 4px 0; }

.dl-box { border: 1px solid #23324d; background: linear-gradient(180deg, #08101e, #05070c); padding: clamp(24px, 4vw, 48px); max-width: 760px; }
.dl-box .btn { min-height: 60px; font-size: 16px; width: 100%; }
.dl-note { color: var(--muted); margin: 0 0 24px; }
.dl-meta { font: 400 13px/1.7 ui-monospace, "Cascadia Mono", monospace; color: var(--muted); margin: 20px 0 0; word-break: break-all; }
.dl-meta strong { color: var(--text); font-weight: 500; }

.faq { display: grid; gap: 0; max-width: 900px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 22px 0; font: 600 19px var(--head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font: 500 24px var(--head); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 0 22px; color: var(--muted); max-width: 46em; }

.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; }
.credits p { margin: 0; color: var(--muted); font-size: 16px; }

.foot { background: var(--bg); padding: 96px 0 120px; color: #7d879a; font-size: 14px; }
.foot p { margin: 0; max-width: 900px; border-top: 1px solid var(--border); padding-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn-line, .shot img, .fab, .fab i { transition: none; }
}
