/* ── Design tokens ─────────────────────────────────────── */
:root {
  --bg:         #07090f;
  --surface:    #0d1220;
  --surface2:   #141c2e;
  --border:     #1a2538;
  --border-hi:  #253550;
  --ink:        #d8e4f0;
  --ink2:       #5e7a96;
  --accent:     #2af5a8;
  --yt:         #c0392b;
  --twitch:     #7c3aed;
  --gh:         #7aa2c8;
  --radius:     5px;
  --max:        1080px;
  --mono:       'Space Mono', 'Consolas', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  background-image: radial-gradient(ellipse 100% 30% at 50% 0%, rgba(42,245,168,.06) 0%, transparent 70%);
  color: var(--ink);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(7,9,15,.92);
  backdrop-filter: blur(16px);
  z-index: 10;
}
.wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .03em;
  color: var(--accent);
}
.site-header nav { display: flex; gap: 1.75rem; }
.site-header nav a {
  color: var(--ink2);
  font-family: var(--mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.site-header nav a:hover { color: var(--ink); text-decoration: none; }

/* ── Shared section layout ────────────────────────────── */
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 2rem;
}
section + section {
  border-top: 1px solid var(--border);
}
section h2 {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: 1rem;
}
section h2::before {
  content: '// ';
  font-family: var(--mono);
  font-size: .78em;
  color: var(--accent);
  opacity: .65;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .5rem 1.15rem;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: opacity .15s, box-shadow .15s;
}
.btn:hover { opacity: .85; text-decoration: none; }
.btn.primary {
  background: var(--accent);
  color: #07090f;
  box-shadow: 0 0 14px rgba(42,245,168,.22);
}
.btn.primary:hover { box-shadow: 0 0 22px rgba(42,245,168,.4); }
.btn.outline {
  border: 1px solid var(--border-hi);
  color: var(--ink2);
}
.btn.outline:hover { border-color: var(--accent); color: var(--ink); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 2rem 1.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  font-size: .68rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  opacity: .8;
  margin-bottom: .5rem;
}
.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: .6rem;
  background: linear-gradient(135deg, #d8e4f0 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lede {
  font-size: clamp(.82rem, 1.6vw, .9rem);
  color: var(--ink2);
  max-width: 52ch;
  margin-bottom: 1.1rem;
  line-height: 1.7;
}
.actions { display: flex; gap: .55rem; flex-wrap: wrap; }

/* Decorative orbit diagram */
.hero-map-preview {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}
.planet {
  position: absolute;
  inset: 50%;
  transform: translate(-50%,-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a5ab8, #09204a);
  box-shadow: 0 0 18px rgba(26,90,184,.6), 0 0 36px rgba(42,245,168,.08);
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(42,245,168,.18);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotateX(65deg);
}
.r1 { width: 80px; height: 80px; border-color: rgba(42,245,168,.28); }
.r2 { width: 116px; height: 116px; border-color: rgba(42,245,168,.14); }
.r3 { width: 154px; height: 154px; border-color: rgba(42,245,168,.07); }
.vessel {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.v1 { top: 28%; left: 72%; }
.v2 { top: 12%; left: 42%; background: #f0c040; box-shadow: 0 0 8px #f0c040; }
.v3 { top: 62%; left: 14%; background: #e05080; box-shadow: 0 0 8px #e05080; }

/* ── Crew ─────────────────────────────────────────────── */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: .85rem;
  margin-top: 1rem;
}
.crew-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  gap: .9rem;
  transition: background .15s;
}
.crew-card:hover { background: var(--surface2); }
.crew-avatar {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.crew-avatar.ar  { background: linear-gradient(135deg, #0a1e45, #1a5aaa); }
.crew-avatar.gdb { background: linear-gradient(135deg, #0a200a, #1a601a); }
.crew-info h3 { font-size: .95rem; font-weight: 700; margin-bottom: .1rem; }
.crew-role {
  font-size: .67rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  opacity: .85;
  margin-bottom: .45rem;
}
.crew-info p { font-size: .84rem; color: var(--ink2); margin-bottom: .6rem; line-height: 1.55; }
.crew-links { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.crew-link-btn {
  display: inline-block;
  padding: .22rem .65rem;
  border-radius: 3px;
  font-size: .72rem;
  font-family: var(--mono);
  font-weight: 700;
  transition: opacity .15s;
  text-decoration: none;
}
.crew-link-btn:hover { opacity: .8; text-decoration: none; }
.crew-link-btn.yt { background: var(--yt); color: #fff; }
.crew-links a:not(.crew-link-btn) {
  font-size: .72rem;
  font-family: var(--mono);
  color: var(--ink2);
  border: 1px solid var(--border);
  padding: .2rem .6rem;
  border-radius: 3px;
}
.crew-links a:not(.crew-link-btn):hover { border-color: var(--border-hi); color: var(--ink); text-decoration: none; }

/* ── Channels grid ────────────────────────────────────── */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .65rem;
  margin-top: 1rem;
}
.channel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem .9rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  transition: border-color .15s, background .15s;
}
.channel-card:hover {
  border-color: var(--border-hi);
  background: var(--surface2);
  text-decoration: none;
}
.ch-icon {
  font-size: 1rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 4px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ch-icon.twitch { background: rgba(124,58,237,.2); }
.ch-icon.yt     { background: rgba(192,57,43,.2); }
.ch-icon.gh     { background: rgba(122,162,200,.1); }
.channel-card strong { display: block; font-size: .85rem; font-weight: 600; }
.channel-card span   { font-size: .75rem; color: var(--ink2); }

/* ── Live / Twitch embed ─────────────────────────────── */
.twitch-embed {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  border-left: 2px solid var(--twitch);
  aspect-ratio: 16 / 9;
}
.twitch-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ── Latest videos ────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .85rem;
  margin-top: 1rem;
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  transition: border-color .15s, box-shadow .15s;
}
.video-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 4px 24px rgba(42,245,168,.07);
  text-decoration: none;
}
.video-thumb { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface2); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-info { padding: .55rem .8rem; }
.video-info strong { display: block; font-size: .86rem; line-height: 1.35; margin-bottom: .2rem; color: var(--ink); }
.video-info span { font-size: .72rem; color: var(--ink2); font-family: var(--mono); }
.loading-msg { color: var(--ink2); font-size: .82rem; font-family: var(--mono); }

/* ── Footer ───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1rem 2rem;
  font-size: .72rem;
  font-family: var(--mono);
  letter-spacing: .04em;
  color: var(--ink2);
  opacity: .55;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-map-preview { display: none; }
  .crew-card { flex-direction: column; }
}
