/* Sea Dwellers website: one design system for every page (rebuilt 29 Nov 2026).
   The game's neon-at-night look: near-black and night-navy surfaces, cyan for the one thing to press,
   magenta and amber as accents, off-white text. Every text colour here passes WCAG AA on the backgrounds it sits on. */

/* ---------- Fonts: the game's own, served with the site (both SIL Open Font Licence) ---------- */
@font-face { font-family: "Bebas Neue"; src: url("fonts/BebasNeue-Regular.ttf?v=20261129") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("fonts/Inter.ttf?v=20261129") format("truetype"); font-weight: 100 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg: #07070d;
  --bg-2: #0c0c19;
  --surface: #121228;
  --surface-2: #1a1937;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  /* text (contrast on --bg: 17:1, 11:1, 7.4:1) */
  --text: #eef1f7;
  --text-2: #c5cbda;
  --muted: #9aa4b8;
  /* neon accents (all at least 6:1 on --bg) */
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.14);
  --magenta: #ff4fd8;
  --amber: #f8a91f;
  --indigo: #6366f1;
  /* faction colours (swatches; text uses the --fc-text variants) */
  --whitetail: #4ade80;
  --breakwater: #f28c38;
  --syndicate: #e2b33c;
  --lifeline: #5ee0a8;
  --runners: #4ba3ff;
  --administration: #c3cce0;

  /* type */
  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-text: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --fs-xl: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --fs-2xl: clamp(3rem, 2rem + 4.5vw, 5.5rem);
  --fs-display: clamp(3.5rem, 2rem + 7vw, 7.5rem);

  /* spacing scale */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;
  --s9: 7rem;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1240px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 10% -10%, rgba(99, 102, 241, 0.20), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 79, 216, 0.08), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 var(--fs-base)/1.7 var(--font-text);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7fe8f7; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 var(--s4); }
h1, h2, h3 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em; line-height: 1.02;
  margin: 0 0 var(--s4); color: var(--text); text-wrap: balance;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); letter-spacing: 0.03em; }
h4 { font-size: var(--fs-md); margin: 0 0 var(--s2); font-weight: 650; }
strong { color: var(--text); font-weight: 650; }
.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 100; padding: var(--s2) var(--s4);
  background: var(--cyan); color: var(--bg); border-radius: 8px; font-weight: 700;
}
.skip:focus { top: var(--s3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding: var(--s8) 0; }
.section-tight { padding: var(--s7) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), rgba(12, 12, 25, 0.4)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: var(--s6); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: var(--s3); color: var(--amber); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.lede { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--text-2); line-height: 1.65; }
.prose { color: var(--text-2); max-width: 68ch; }
.prose p { margin-bottom: var(--s5); }
.prose h2 { margin-top: var(--s7); }
.prose h3 { margin-top: var(--s6); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); color: var(--muted); }
.rule { width: 72px; height: 4px; border: 0; border-radius: 2px; background: linear-gradient(90deg, var(--amber), var(--magenta)); margin: 0 0 var(--s5); }
.center .rule { margin-left: auto; margin-right: auto; }

/* text beside a picture */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.split + .split { margin-top: var(--s8); }
.split.top { align-items: start; }
.split.flip > :first-child { order: 2; }
.split .copy p { color: var(--text-2); }

.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(7, 7, 13, 0.82); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s5); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; }
.brand span { font: 400 1.75rem/1 var(--font-display); letter-spacing: 0.05em; padding-top: 3px; }
.brand:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.nav a {
  color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
  padding: var(--s2) var(--s3); border-radius: 8px; transition: color 0.15s, background-color 0.15s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.nav .btn { margin-left: var(--s3); }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .close { display: none; }
.nav-open .nav-toggle .open { display: none; }
.nav-open .nav-toggle .close { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 46px; padding: 0 var(--s5); border-radius: 12px; border: 1px solid var(--line-strong);
  color: var(--text); background: rgba(255, 255, 255, 0.03); font-weight: 650; font-size: var(--fs-sm);
  text-decoration: none; letter-spacing: 0.01em; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { color: var(--text); background: rgba(99, 102, 241, 0.2); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-1px); }
.btn-primary { background: var(--cyan); border-color: var(--cyan); color: #04121a; box-shadow: 0 0 26px rgba(34, 211, 238, 0.35); }
.btn-primary:hover { background: #5fe1f3; border-color: #5fe1f3; color: #04121a; box-shadow: 0 0 34px rgba(34, 211, 238, 0.5); }
.btn-sm { min-height: 40px; padding: 0 var(--s4); border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 0 var(--s6); font-size: var(--fs-base); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #04121a; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0 var(--s4); }
.center .actions { justify-content: center; }

/* ---------- Front page hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 7, 13, 0.94) 0%, rgba(7, 7, 13, 0.72) 42%, rgba(7, 7, 13, 0.15) 80%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 13, 0) 40%);
}
.hero .container { padding-top: var(--s9); padding-bottom: var(--s8); }
.hero-copy { max-width: 640px; }
.hero-logo { width: min(100%, 520px); margin: 0 0 var(--s5) -8px; }
.hero .lede { color: var(--text); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.badges { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.badges li {
  font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(7, 7, 13, 0.55);
}

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .container { padding-top: clamp(4rem, 10vw, 8rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 7, 13, 0.95) 0%, rgba(7, 7, 13, 0.75) 50%, rgba(7, 7, 13, 0.35) 100%),
              linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 13, 0) 55%);
}
.page-hero.plain::before { background: none; }
.page-hero h1 { max-width: 15ch; }
.page-hero .lede { max-width: 62ch; color: var(--text); }
.crumbs { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }

/* ---------- Pictures ---------- */
.shot { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { padding: var(--s3) var(--s4); font-size: var(--fs-sm); color: var(--muted); border-top: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.gallery .shot { box-shadow: none; display: flex; flex-direction: column; }
.gallery .shot img { flex: 1 1 auto; min-height: 0; object-fit: cover; }
@media (min-width: 861px) { .gallery .shot img { aspect-ratio: auto; height: 100%; } }
.gallery .wide { grid-column: span 2; }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--text-2); }
.card-link { margin-top: auto; padding-top: var(--s3); font-weight: 650; font-size: var(--fs-sm); text-decoration: none; }
.card-link::after { content: " \2192"; }
a.card { color: inherit; text-decoration: none; }
a.card:hover, .card:has(.stretched:hover) { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.stretched::before { content: ""; position: absolute; inset: 0; }

.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s5);
}
.feature h3 { font-size: 1.6rem; margin-bottom: var(--s2); }
.feature p { color: var(--text-2); margin: 0; }
.feature .num { font: 400 2.5rem/1 var(--font-display); color: var(--magenta); display: block; margin-bottom: var(--s2); }

/* ---------- Factions ---------- */
.faction-card { --fc: var(--cyan); border-top: 3px solid var(--fc); }
.faction-card .card-body { gap: var(--s3); }
.faction-head { display: flex; align-items: center; gap: var(--s4); }
.faction-head img { width: 76px; height: 76px; flex-shrink: 0; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)); }
.faction-head h3 { margin: 0; }
.tag { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fc); }
.swatch { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-xs); color: var(--muted); }
.swatch::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--fc); box-shadow: 0 0 12px var(--fc); }
.faction-card .card-link { color: var(--fc); }
.fc-whitetail { --fc: var(--whitetail); }
.fc-breakwater { --fc: var(--breakwater); }
.fc-syndicate { --fc: var(--syndicate); }
.fc-lifeline { --fc: var(--lifeline); }
.fc-runners { --fc: var(--runners); }
.fc-administration { --fc: var(--administration); }

.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s3); }
.strip a {
  display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center;
  padding: var(--s4) var(--s2); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3;
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}
.strip a img { width: 72px; height: 72px; }
.strip a span { color: var(--fc); font-size: var(--fs-xs); font-weight: 500; }
.strip a:hover { border-color: var(--fc); transform: translateY(-2px); background: var(--surface-2); color: var(--text); }

.faction-hero .faction-id { display: flex; align-items: center; gap: var(--s5); }
.faction-hero .faction-id img { width: clamp(96px, 14vw, 150px); height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6)); }
.faction-hero h1 { margin: 0; max-width: none; }
.faction-hero .tag { font-size: var(--fs-sm); margin-top: var(--s2); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin: var(--s6) 0 0; }
.facts div { background: rgba(18, 18, 40, 0.8); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3) var(--s4); }
.facts dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }
.facts dd { margin: var(--s1) 0 0; color: var(--text); font-weight: 600; font-size: var(--fs-sm); line-height: 1.45; }

.ring { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3); counter-reset: ring; }
.ring div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); border-top: 3px solid var(--fc); }
.ring b { display: block; color: var(--text); font-size: var(--fs-sm); }
.ring span { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: var(--s1); }

.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s5); border-left: 3px solid var(--fc, var(--cyan)); }
.aside-box h3 { font-size: 1.6rem; margin-bottom: var(--s2); }
.aside-box p { color: var(--text-2); }
.aside-box p:last-child { margin-bottom: 0; }
.quote { font-size: var(--fs-md); color: var(--text); font-style: italic; border-left: 3px solid var(--fc, var(--magenta)); padding-left: var(--s4); margin: var(--s6) 0; max-width: 60ch; }
.quote cite { display: block; font-style: normal; font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s2); }

.page-nav { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: var(--s5); margin-top: var(--s7); }
.page-nav a { text-decoration: none; font-weight: 600; }

/* ---------- Guide ---------- */
.layout-side { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc h2 { font-size: 1.4rem; margin-bottom: var(--s3); color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px var(--s4); color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--cyan); border-left-color: var(--cyan); }
.guide-section { padding-bottom: var(--s6); margin-bottom: var(--s6); border-bottom: 1px solid var(--line); }
.guide-section:last-child { border-bottom: 0; }
.guide-section .shot { margin: var(--s5) 0 var(--s6); }
.heat { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); margin: var(--s5) 0 var(--s6); }
.heat div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); }
.heat b { display: block; font: 400 1.9rem/1 var(--font-display); color: var(--amber); }
.heat div:nth-child(n+3) b { color: #ff8a5c; }
.heat div:nth-child(n+4) b { color: var(--magenta); }
.heat span { display: block; font-size: var(--fs-xs); color: var(--text-2); line-height: 1.45; margin-top: var(--s1); }

.keys { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: var(--s4) 0 var(--s5); }
.keys th, .keys td { text-align: left; padding: 10px var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
.keys th { color: var(--muted); font-weight: 600; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; }
.keys td:first-child { color: var(--text); }
.keys td { color: var(--text-2); }
kbd {
  display: inline-block; min-width: 1.8em; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-strong);
  border-bottom-width: 2px; background: var(--surface-2); color: var(--text); font: 600 0.8125rem/1.6 var(--font-text); text-align: center;
}

/* ---------- Downloads ---------- */
.dl-card { padding: var(--s6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: var(--s4); }
.dl-card header { display: flex; align-items: center; gap: var(--s4); }
.dl-card header svg { width: 44px; height: 44px; color: var(--cyan); flex-shrink: 0; }
.dl-card h2, .dl-card h3 { margin: 0; font-size: 2.2rem; }
.dl-card .sub { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s2) var(--s4); margin: 0; font-size: var(--fs-sm); }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.meta code, code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.85em; color: var(--text-2); background: rgba(255, 255, 255, 0.05); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.steps { margin: 0; padding-left: 1.4em; color: var(--text-2); font-size: var(--fs-sm); }
.steps li { margin-bottom: var(--s2); padding-left: var(--s1); }
.steps li::marker { color: var(--cyan); font-weight: 700; }
.dl-card .actions { margin: auto 0 0; }

.specs { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: var(--fs-sm); }
.specs th, .specs td { padding: 14px var(--s4); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs thead th { background: var(--surface-2); color: var(--text); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; }
.specs tbody th { color: var(--muted); font-weight: 600; width: 22%; }
.specs td { color: var(--text-2); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }

.spec-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin: 0; }
.spec-summary div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); }
.spec-summary dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }
.spec-summary dd { margin: var(--s1) 0 0; font-weight: 600; color: var(--text); }

/* ---------- Call to action band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(120deg, rgba(49, 46, 129, 0.55), rgba(18, 18, 40, 0.9) 55%, rgba(255, 79, 216, 0.16));
  border: 1px solid var(--line-strong);
}
.cta h2 { max-width: 18ch; }
.cta p { color: var(--text-2); max-width: 60ch; }
.price { font: 400 3rem/1 var(--font-display); color: var(--text); letter-spacing: 0.02em; }
.price small { font: 500 var(--fs-sm)/1.4 var(--font-text); color: var(--muted); margin-left: var(--s2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s3); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s4) var(--s5); font-weight: 650; color: var(--text);
  display: flex; justify-content: space-between; gap: var(--s4); align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.5rem; line-height: 1; transition: transform 0.2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 var(--s5) var(--s4); color: var(--text-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: var(--s7) 0 var(--s6); margin-top: var(--s8); color: var(--muted); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6); }
.footer-grid h2 { font-size: 1.3rem; color: var(--text); margin-bottom: var(--s3); letter-spacing: 0.06em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand .brand { margin-bottom: var(--s3); }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: var(--s6); padding-top: var(--s5); }
.footer-base p { margin: 0; }
.publisher { height: 34px; width: auto; opacity: 0.9; }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: flex; align-items: center; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: var(--s2); }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ring { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: var(--s3) var(--gutter) var(--s5); background: rgba(7, 7, 13, 0.97); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .js.nav-open .nav, .nav-open .nav { display: flex; }
  .js .nav a { padding: var(--s3) var(--s2); font-size: var(--fs-base); border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cyan); padding-left: var(--s4); }
  .js .nav .btn { margin: var(--s4) 0 0; border-bottom: 0; border-radius: 12px; }
  html:not(.js) .site-header { height: auto; position: static; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-top: var(--s3); padding-bottom: var(--s3); }
  html:not(.js) .nav { flex-wrap: wrap; margin-left: 0; }
  .layout-side { grid-template-columns: 1fr; }
  .toc { position: static; }
  .facts, .spec-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .split, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .wide { grid-column: 1 / -1; }
  .heat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heat div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  :root { --header-h: 60px; }
  body { font-size: 1rem; }
  .brand span { font-size: 1.5rem; }
  .brand img { width: 32px; height: 32px; }
  .section { padding: var(--s7) 0; }
  .hero { min-height: 0; }
  .hero .container { padding-top: 7rem; padding-bottom: var(--s7); }
  .hero::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 13, 0.82) 45%, rgba(7, 7, 13, 0.45) 100%); }
  .actions .btn { flex: 1 1 100%; }
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: var(--s2) var(--s4); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-6, .ring { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: 1fr; }
  .facts, .spec-summary { grid-template-columns: 1fr; }
  .faction-hero .faction-id { flex-direction: column; align-items: flex-start; gap: var(--s4); }
  .footer-grid { grid-template-columns: 1fr; }
  .specs tbody th { width: 34%; }
  .specs th, .specs td { padding: 12px var(--s3); }
  .dl-card { padding: var(--s5); }
}
