/* ==========================================================================
   Signal Void — Landing Page
   Design system mirrors the in-game AppTheme.swift
   ========================================================================== */

:root {
  --bg-primary: #171717;
  --bg-secondary: #1F1F1F;
  --surface: #222222;
  --surface-elevated: #2B2B2B;
  --accent: #FF6A3D;
  --accent-glow: #FF9550;
  --sage: #C7D7C6;
  --sage-light: #D9E7D8;
  --text-primary: #F0EDE8;
  --text-secondary: #8A8A8A;
  --success: #4DB87A;
  --danger: #E84040;
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-bright: rgba(255, 255, 255, 0.15);

  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;

  --max-width: 1160px;
  --radius-sm: 3px;
  --radius-md: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }
picture { display: contents; }

a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--accent); }

/* ----- Background grid, mirroring the in-game BackgroundGrid ----- */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255,106,61,0.07) 0%, rgba(255,106,61,0.015) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

main, header, footer { position: relative; z-index: 1; }

/* ----- Technical labels, mirroring TechLabel component ----- */
.tech-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--sage);
  opacity: 0.85;
}

.tech-label--dim { color: var(--text-secondary); opacity: 1; }

.tech-divider {
  height: 1px;
  background: rgba(199, 215, 198, 0.14);
  width: 100%;
  margin: 0;
}

/* ========================================================================== */
/* HEADER / NAV                                                                */
/* ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(23, 23, 23, 0.72);
  border-bottom: 1px solid var(--stroke);
  z-index: 50;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.brand__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--accent); }
  50% { opacity: 0.55; box-shadow: 0 0 4px var(--accent); }
}

.nav-primary {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.nav-primary a { color: var(--text-secondary); }
.nav-primary a:hover { color: var(--text-primary); }

.lang-switch {
  display: flex;
  gap: 0;
  border: 1px solid var(--stroke-bright);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-switch a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  padding: 6px 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.lang-switch a.is-active {
  color: var(--text-primary);
  background: var(--surface-elevated);
}
.lang-switch a:hover { color: var(--accent); }

/* ========================================================================== */
/* HERO                                                                        */
/* ========================================================================== */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px 80px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.hero__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__title .accent {
  color: var(--accent);
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lede {
  font-size: 18px;
  color: var(--text-primary);
  max-width: 520px;
  margin-bottom: 12px;
  line-height: 1.55;
}

.hero__lede--secondary {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent;
}

.btn--primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  color: #1a0c04;
  box-shadow: 0 0 24px rgba(255,106,61,0.25);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(255,106,61,0.45);
  color: #1a0c04;
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--stroke-bright);
}
.btn--ghost:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta > span::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--sage);
  opacity: 0.5;
}

/* Pipe / circuit showcase */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1.08;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(ellipse at top, rgba(255,106,61,0.08), transparent 60%),
    var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 22px;
  overflow: hidden;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero__visual-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

/* CSS-only circuit grid */
.circuit {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  aspect-ratio: 1 / 1;
  z-index: 1;
}
.tile {
  aspect-ratio: 1/1;
  background: var(--surface);
  border: 0.5px solid var(--stroke-bright);
  border-radius: var(--radius-sm);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile::before, .tile::after {
  content: "";
  position: absolute;
  background: var(--sage);
  opacity: 0.35;
}
.tile.h::before { left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%); border-radius: 2px; }
.tile.v::before { top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); border-radius: 2px; }
.tile.el::before { top: 50%; left: 50%; width: 50%; height: 3px; transform: translateY(-50%); border-radius: 2px; }
.tile.el::after  { top: 50%; left: 50%; width: 3px; height: 50%; transform: translateX(0); border-radius: 2px; }

.tile.live::before, .tile.live::after {
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 10px var(--accent);
}

.tile.source {
  background: radial-gradient(circle, rgba(255,106,61,0.35), var(--surface));
  border-color: var(--accent);
}
.tile.source::before, .tile.source::after {
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 12px var(--accent);
}
.tile.source .node {
  width: 22%; height: 22%;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
  position: absolute;
  animation: pulse 1.8s ease-in-out infinite;
}

.tile.target {
  border-color: var(--sage-light);
}
.tile.target .node {
  width: 22%; height: 22%;
  border-radius: 50%;
  background: var(--sage-light);
  box-shadow: 0 0 14px var(--sage-light);
  position: absolute;
}
.tile.target.lit .node { background: var(--success); box-shadow: 0 0 18px var(--success); }

/* ========================================================================== */
/* SECTION                                                                     */
/* ========================================================================== */
section { position: relative; z-index: 1; }

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px;
}

.section-head {
  max-width: 700px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 12px;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--stroke);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feature {
  background: var(--bg-secondary);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .2s ease;
}
.feature:hover { background: var(--surface); }

.feature__icon {
  width: 40px; height: 40px;
  border: 1px solid var(--sage);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-family: var(--font-mono);
  font-weight: 700;
}

.feature h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Mission cards (sci-fi/story blocks) */
.missions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.mission-card {
  background: var(--bg-secondary);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
}
.mission-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.mission-card h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.mission-card p {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.55;
}
.mission-card__quote {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 14px;
  font-style: italic;
  border-top: 1px solid var(--stroke);
  padding-top: 12px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  background: var(--bg-secondary);
  counter-increment: step;
  position: relative;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.step h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* FAQ */
.faq {
  display: grid;
  gap: 1px;
  background: var(--stroke);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  overflow: hidden;
}
details {
  background: var(--bg-secondary);
  padding: 20px 24px;
  cursor: pointer;
}
details summary {
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 20px;
  transition: transform .2s ease;
}
details[open] summary::after { content: "−"; }
details p {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* CTA band */
.cta-band {
  position: relative;
  max-width: var(--max-width);
  margin: 40px auto 80px;
  padding: 64px 40px;
  border: 1px solid var(--stroke-bright);
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse at top right, rgba(255,106,61,0.08), transparent 60%),
    var(--bg-secondary);
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.cta-band p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 30px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 40px 24px 60px;
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
}
.site-footer__links { display: flex; gap: 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; }

/* ========================================================================== */
/* LEGAL PAGES (privacy, terms)                                                */
/* ========================================================================== */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 24px 140px;
}

/* Header */
.legal__head {
  margin-bottom: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--stroke);
}
.legal__head .tech-label {
  display: block;
  margin-bottom: 24px;
}
.legal__head h1 {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
}
.legal__updated {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.legal__updated::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

/* Body — vertical stack with generous breathing room */
.legal__body {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.legal__section {
  position: relative;
  padding-left: 28px;
}
.legal__section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 4px;
  width: 1px;
  background: var(--stroke-bright);
}
.legal__section h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  position: relative;
}
.legal__section h2::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}
.legal__section p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 18px;
}
.legal__section p:last-child { margin-bottom: 0; }
.legal__section ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal__section li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  padding-left: 24px;
  position: relative;
}
.legal__section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.legal__section strong { color: var(--text-primary); font-weight: 600; }
.legal__section a { color: var(--accent); }
.legal__section a:hover { color: var(--accent-glow); }

@media (max-width: 600px) {
  .legal { padding: 70px 18px 100px; }
  .legal__head { margin-bottom: 56px; padding-bottom: 36px; }
  .legal__body { gap: 44px; }
  .legal__section { padding-left: 22px; }
  .legal__section h2::before { left: -23px; width: 11px; }
  .legal__section p, .legal__section li { font-size: 15px; }
}

/* ========================================================================== */
/* IMAGE-DRIVEN COMPONENTS                                                     */
/* ========================================================================== */

/* Hero image frame (astronaut porthole) */
.hero__image-frame {
  position: relative;
  border: 1px solid var(--stroke-bright);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-secondary);
  box-shadow:
    0 0 0 1px rgba(255, 106, 61, 0.08),
    0 30px 80px -30px rgba(255, 106, 61, 0.25),
    inset 0 0 120px rgba(0, 0, 0, 0.5);
}
.hero__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 65%, rgba(23, 23, 23, 0.55) 100%),
    radial-gradient(ellipse at top, rgba(255, 106, 61, 0.15), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.hero__image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02) 0 2px,
    transparent 2px 4px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}
.hero__image-frame__hud {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--sage);
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(0,0,0,0.6);
}
.hero__image-frame__hud span:first-child { color: var(--accent); }
.hero__image-frame__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent);
  z-index: 3;
}
.hero__image-frame__corner.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.hero__image-frame__corner.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.hero__image-frame__corner.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.hero__image-frame__corner.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* Brand logo bitmap */
.brand__logo {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(255, 106, 61, 0.35);
}

/* Showcase strip — below hero */
.showcase-strip {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--stroke);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.showcase-strip-wrap {
  max-width: var(--max-width);
  margin: 0 auto 40px;
  padding: 0 24px;
}
.showcase-strip-wrap .showcase-strip { padding: 0; margin: 0; }
.showcase-cell {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-secondary);
  overflow: hidden;
}
.showcase-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s ease;
  opacity: 0.9;
}
.showcase-cell:hover img { transform: scale(1.05); opacity: 1; }
.showcase-cell__label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--text-primary);
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}
.showcase-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

/* Gameplay split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split__media {
  position: relative;
  border: 1px solid var(--stroke-bright);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-secondary);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(23,23,23,0.55) 100%);
  pointer-events: none;
}
.split__media-hud {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--sage);
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.split__text h3 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.split__text p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.split__tech {
  display: inline-block;
  margin-bottom: 14px;
}

/* Planet mission cards */
.planets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.planet-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg-secondary);
  cursor: default;
  transition: transform .3s ease, border-color .3s ease;
}
.planet-card:hover { transform: translateY(-4px); border-color: var(--stroke-bright); }
.planet-card__img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.planet-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.planet-card:hover .planet-card__img img { transform: scale(1.08); }
.planet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(23, 23, 23, 0.25) 0%,
    rgba(23, 23, 23, 0.55) 55%,
    rgba(23, 23, 23, 0.95) 100%
  );
}
.planet-card__content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
}
.planet-card__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.planet-card h4 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.planet-card p {
  color: var(--sage);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
}
.planet-card__quote {
  color: var(--text-secondary);
  font-size: 12px;
  font-style: italic;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 10px;
}
.planet-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--accent);
  text-transform: uppercase;
  background: rgba(23, 23, 23, 0.72);
  border: 1px solid rgba(255, 106, 61, 0.5);
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

/* Gallery section */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 140px;
  gap: 8px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg-secondary);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.gallery__caption {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sage);
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
/* Gallery layout: 7 items, asymmetric */
.gallery__item:nth-child(1) { grid-column: span 6; grid-row: span 2; }
.gallery__item:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.gallery__item:nth-child(3) { grid-column: span 3; grid-row: span 1; }
.gallery__item:nth-child(4) { grid-column: span 3; grid-row: span 2; }
.gallery__item:nth-child(5) { grid-column: span 3; grid-row: span 2; }
.gallery__item:nth-child(6) { grid-column: span 4; grid-row: span 1; }
.gallery__item:nth-child(7) { grid-column: span 4; grid-row: span 1; }
.gallery__item:nth-child(8) { grid-column: span 4; grid-row: span 1; }

/* CTA band with hero-like background image */
.cta-band--image {
  padding: 90px 40px;
  overflow: hidden;
  position: relative;
  max-width: var(--max-width);
  margin: 40px auto 80px;
  border: 1px solid var(--stroke-bright);
  border-radius: var(--radius-md);
  text-align: center;
}
.cta-band--image .cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-band--image .cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.cta-band--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(23,23,23,0.55) 0%, rgba(23,23,23,0.8) 100%),
    radial-gradient(ellipse at center, rgba(255,106,61,0.18), transparent 60%);
}
.cta-band--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.cta-band--image > * { position: relative; z-index: 2; }

/* ========================================================================== */
/* CONTACT / SUPPORT FORM                                                       */
/* ========================================================================== */
.contact-form {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 36px 36px 32px;
  max-width: 780px;
  display: grid;
  gap: 20px;
  overflow: hidden;
}
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.6;
}
.contact-form > * { position: relative; z-index: 1; }

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-primary);
  border: 1px solid var(--stroke-bright);
  color: var(--text-primary);
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.3px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.15);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-secondary); opacity: 0.65; }

/* Honeypot — visible to bots, hidden from humans */
.contact-form .hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-form__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.contact-form__actions .btn[disabled] { opacity: 0.6; cursor: progress; }

.form-status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  min-height: 16px;
}
.form-status--pending { color: var(--text-secondary); }
.form-status--ok  { color: var(--success); }
.form-status--err { color: var(--danger); text-transform: none; letter-spacing: 0.3px; font-family: var(--font-sans); font-size: 13px; }
.form-status a { color: inherit; text-decoration: underline; }

.support-contact-line {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}
.support-contact-line a { color: var(--sage); }
.support-contact-line a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 60px 20px 40px; gap: 40px; }
  .hero__visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .section { padding: 70px 20px; }
  .nav-primary { display: none; }
  .site-header__inner { padding: 12px 20px; gap: 12px; }
  .cta-band { padding: 48px 24px; margin: 20px 20px 60px; }
  .hero__title { font-size: clamp(38px, 9vw, 56px); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse { direction: ltr; }
  .showcase-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; }
  .gallery__item:nth-child(n) { grid-column: span 3; grid-row: span 1; }
  .gallery__item:nth-child(1) { grid-column: span 6; grid-row: span 2; }
  .cta-band--image { padding: 60px 24px; margin: 20px 20px 60px; }
  .contact-form { padding: 26px 22px 24px; }
  .contact-form__row { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
