/* Shared design system tokens — Split Crew */
:root {
  /* Background layers */
  --bg-void: #000000;
  --bg-deep: #03070A;
  --bg-panel: #0A1420;
  --bg-panel-strong: #0F1D2E;

  /* Cyan accent scale */
  --cyan-100: #D7F1FB;
  --cyan-300: #8ED6EE;
  --cyan-500: #3BB4E8;   /* primary accent */
  --cyan-600: #2A8FBE;
  --cyan-700: #1B6585;
  --cyan-900: #0B3548;

  /* Line / border */
  --line-subtle: rgba(59, 180, 232, 0.14);
  --line: rgba(59, 180, 232, 0.28);
  --line-strong: rgba(59, 180, 232, 0.55);

  /* Text */
  --text-hi: #E6F2F7;
  --text: #B9CCD6;
  --text-mu: #6A8090;
  --text-dim: #3E5460;

  /* Crew colors — 3 personer */
  --crew-1: #3BB4E8;   /* cyan (you) */
  --crew-2: #E86B3B;   /* warm orange */
  --crew-3: #B98DE8;   /* violet */

  /* Type */
  --font-display: 'Rajdhani', 'Exo 2', system-ui, sans-serif;
  --font-ui: 'Inter', system-ui, sans-serif;

  /* Radii — intentionally SMALL (sci-fi HUD feel) */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-void); color: var(--text); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }

/* ---------- Hex grid background ---------- */
.hex-bg {
  position: absolute; inset: 0;
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(59, 180, 232, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(59, 180, 232, 0.05), transparent 70%);
  overflow: hidden;
}
.hex-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }

/* ---------- Panels ---------- */
.panel {
  background: rgba(10, 20, 32, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  backdrop-filter: blur(6px);
}
.panel-strong {
  background: rgba(15, 29, 46, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 14px;
  border: 1px solid transparent;
  background: none;
  color: var(--text-hi);
}
.btn-primary {
  border-color: var(--cyan-500);
  color: var(--cyan-100);
  background: linear-gradient(180deg, rgba(59,180,232,0.12), rgba(59,180,232,0.04));
  box-shadow: inset 0 0 0 1px rgba(59,180,232,0.15), 0 0 24px rgba(59,180,232,0.15);
}
.btn-primary:hover {
  background: linear-gradient(180deg, rgba(59,180,232,0.22), rgba(59,180,232,0.08));
  box-shadow: inset 0 0 0 1px rgba(59,180,232,0.3), 0 0 32px rgba(59,180,232,0.35);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--line-strong);
  color: var(--text-hi);
}

/* ---------- Type utilities ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: var(--text-hi);
}
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan-500);
}
.mono {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
}

/* ---------- Corner brackets (HUD-style decoration) ---------- */
.bracket {
  position: relative;
}
.bracket::before, .bracket::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--cyan-500);
}
.bracket::before {
  top: -1px; left: -1px;
  border-right: none;
  border-bottom: none;
}
.bracket::after {
  bottom: -1px; right: -1px;
  border-left: none;
  border-top: none;
}

/* ---------- Scanning line animation ---------- */
@keyframes scan {
  0% { transform: translateY(-100%); opacity: 0; }
  10%, 90% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
.scanline {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-500), transparent);
  pointer-events: none;
  animation: scan 6s linear infinite;
  opacity: 0.4;
}

/* ---------- Glow pulse ---------- */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,180,232,0.5), 0 0 20px rgba(59,180,232,0.3); }
  50% { box-shadow: 0 0 0 4px rgba(59,180,232,0), 0 0 32px rgba(59,180,232,0.55); }
}
.pulse { animation: glowPulse 2.4s ease-in-out infinite; }
