/* Binary Helix / Sector Prime site. Matches the game: near-black ground, cold
   teal UI, warm amber accents, monospace for anything that reads as an
   instrument. No framework; one file. */
:root {
  --bg: #04070c;
  --bg-2: #070c12;
  --panel: rgba(7, 12, 18, 0.82);
  --line: #1d2b2a;
  --text: #dfe9e4;
  --dim: #8fa8a0;
  --teal: #7fbfa8;
  --teal-bright: #9ff0d0;
  --amber: #f0b060;
  --mono: 'Cascadia Mono', Consolas, 'DejaVu Sans Mono', ui-monospace, monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--mono); letter-spacing: 0.06em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); letter-spacing: 0.22em; padding-left: 0.22em; font-weight: 700;
     text-shadow: 0 0 28px rgba(140, 255, 200, 0.35), 0 0 2px #fff; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--teal-bright); text-transform: uppercase; letter-spacing: 0.18em; }
h3 { font-size: 1.05rem; color: var(--text); letter-spacing: 0.1em; }
p { margin: 0 0 1em; }
.kicker { font-family: var(--mono); color: var(--teal); letter-spacing: 0.42em; text-transform: uppercase; font-size: 0.78rem; }
.dim { color: var(--dim); }
.small { font-size: 0.92rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(4, 7, 12, 0.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.brand { font-family: var(--mono); letter-spacing: 0.24em; font-weight: 700; color: var(--text); font-size: 0.95rem; }
.brand span { color: var(--teal); font-weight: 400; letter-spacing: 0.1em; }
nav a { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-left: 18px; }
nav a:hover { color: var(--teal-bright); text-decoration: none; }
@media (max-width: 720px) { nav a:not(.keep) { display: none; } }

/* hero */
.hero { position: relative; min-height: 78vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
/* Absolute: this stylesheet is served from the site root, so a relative URL
   here would resolve against / rather than against the page that uses it. */
.hero .bg { position: absolute; inset: 0; background: url(/sectorprime/img/hero.jpg) center 40% / cover no-repeat; opacity: 0.55; filter: saturate(0.9); }
.hero .shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(4,7,12,0) 0%, rgba(4,7,12,0.55) 55%, var(--bg) 100%); }
.hero .wrap { position: relative; padding: 80px 20px 60px; }
.hero p.lead { max-width: 56ch; margin: 18px auto 28px; font-size: 1.1rem; color: #cfe0d8; }
.cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
       padding: 13px 22px; border: 1px solid var(--teal); border-radius: 4px; color: var(--teal-bright); background: rgba(127,191,168,0.08); margin: 6px; }
.cta.primary { background: var(--teal); color: #04120d; font-weight: 700; }
.cta:hover { text-decoration: none; filter: brightness(1.12); }
.cta small { text-transform: none; letter-spacing: 0; opacity: 0.8; font-family: var(--sans); }

/* sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section.tight { padding: 40px 0; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; }
.card h3 { margin-top: 0; }
.shot { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.shot img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.shot figcaption { font-family: var(--mono); font-size: 0.78rem; color: var(--dim); padding: 10px 12px; letter-spacing: 0.04em; }
figure { margin: 0; }
video { border: 1px solid var(--line); border-radius: 8px; background: #000; }
.disclosure { border-left: 3px solid var(--amber); padding: 14px 18px; background: rgba(240,176,96,0.06); border-radius: 0 6px 6px 0; }
.disclosure .kicker { color: var(--amber); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
code, pre { font-family: var(--mono); font-size: 0.9em; }
pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; overflow-x: auto; }
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { padding: 6px 0 6px 18px; position: relative; }
ul.clean li::before { content: '›'; position: absolute; left: 0; color: var(--teal); }
footer { padding: 40px 0 60px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber);
       border: 1px solid rgba(240,176,96,0.5); padding: 3px 8px; border-radius: 3px; margin-right: 6px; }
