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

:root {
  --c-bg:       #0F172A; /* Deep Navy */
  --c-surface:  #1E293B; /* Slightly lighter Navy for panels */
  --c-border:   #334155; /* Slate Blue */
  --c-accent:   #E53935; /* Signal Red */
  --c-accent2:  #F59E0B; /* Amber */
  --c-text:     #F8FAFC; /* Off White */
  --c-muted:    #94A3B8; /* Slate */
  --c-subtle:   #E2E8F0; /* Light Grey */
  --radius:     10px;
  --max:        1120px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--c-accent); }
.nav-links { display: flex; gap: 24px; flex: 1; }
.nav-links a { color: var(--c-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--c-text); text-decoration: none; }
.nav-cta {
  background: var(--c-accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.9; text-decoration: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s, top 0.2s, background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { transform: rotate(45deg); top: 0; }
.nav.is-open .nav-toggle span::after { transform: rotate(-45deg); top: 0; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 57, 53, 0.12);
  border: 1px solid rgba(229, 57, 53, 0.3);
  color: var(--c-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--c-accent); }
.hero p {
  font-size: 16px;
  color: var(--c-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--c-accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s, opacity 0.15s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--c-subtle);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--c-border);
  transition: border-color 0.15s, color 0.15s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--c-subtle); color: var(--c-text); text-decoration: none; }

.hero-visual {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 32px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(232, 93, 47, 0.08), transparent 60%);
}
.map-placeholder {
  flex: 1;
  background: #0d1520;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-dot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.map-dot-1 { background: #2563eb; top: 30%; left: 25%; }
.map-dot-2 { background: #2563eb; top: 55%; left: 50%; }
.map-dot-3 { background: #dc2626; top: 20%; left: 60%; }
.map-dot-4 { background: #d97706; top: 65%; left: 30%; }
.map-line {
  position: absolute;
  height: 2px;
  background: rgba(232, 93, 47, 0.4);
  transform-origin: left center;
}
.hud-row { display: flex; gap: 8px; }
.hud-chip {
  background: #0d1520;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--c-subtle);
  font-weight: 500;
}
.hud-chip.active { border-color: #2563eb; color: #60a5fa; }
.hud-chip.alert  { border-color: #dc2626; color: #f87171; }
.hud-chip.ok     { border-color: #16a34a; color: #4ade80; }

/* ── Features ─────────────────────────────────────────────────────────── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--c-muted);
  max-width: 540px;
  margin-bottom: 56px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: #475569; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(229, 57, 53, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.feature-card p  { font-size: 16px; color: var(--c-muted); line-height: 1.6; }

/* ── Roles ────────────────────────────────────────────────────────────── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.role-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
}
.role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.badge-trainer { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
.badge-trainee { background: rgba(22, 163, 74, 0.15); color: #4ade80; }
.badge-observer { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.role-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.role-card p  { font-size: 16px; color: var(--c-muted); line-height: 1.6; margin-bottom: 16px; }
.role-link { font-size: 14px; font-weight: 600; color: var(--c-accent); }

/* ── CTA ──────────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}
.cta-inner h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.cta-inner p  { font-size: 17px; color: var(--c-subtle); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--c-border);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { font-size: 16px; font-weight: 700; color: var(--c-text); }
.footer-logo span { color: var(--c-accent); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--c-muted); }
.footer-links a:hover { color: var(--c-text); text-decoration: none; }
.footer-copy { font-size: 13px; color: var(--c-muted); }

/* ── Divider ──────────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--c-border);
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .features-grid, .roles-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 600px) {
  .nav-inner { gap: 16px; padding: 0 16px; justify-content: space-between; }
  .nav-toggle { display: block; order: 3; }
  .nav-logo { flex: 1; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--c-bg);
    flex-direction: column;
    padding: 40px 24px;
    gap: 32px;
    z-index: 100;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { font-size: 20px; color: var(--c-text); }

  .hero { padding: 48px 16px 40px; }
  .section { padding: 48px 16px; }
  .cta-inner { padding: 48px 16px; }
  .footer-inner { padding: 32px 16px; justify-content: center; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}
