:root {
  --ink: #030910;
  --panel: #09131f;
  --panel-2: #0c1827;
  --line: #203a57;
  --muted: #7f93b2;
  --white: #eff6ff;
  --cyan: #38dcff;
  --cyan-2: #1ba9d1;
  --gold: #ffb31a;
  --green: #41ffa9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #171000; background: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

main {
  min-height: 100vh;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0, rgba(255,255,255,.012) 1px, transparent 1px, transparent 4px),
    radial-gradient(circle at 50% 0%, rgba(255, 179, 26, .11), transparent 36%),
    #030910;
}

.site-header {
  height: 86px;
  padding: 0 clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 179, 26, .25);
  background: rgba(5, 24, 35, .9);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 15px; font-size: 14px; font-weight: 700; letter-spacing: .32em; white-space: nowrap; }
.brand strong { color: var(--gold); font-weight: 700; }
.brand-logo { display: block; width: 82px; height: auto; filter: drop-shadow(0 0 8px rgba(56,220,255,.24)); }
.brand-mark { display: inline-flex; align-items: center; color: var(--gold); filter: drop-shadow(0 0 8px rgba(255,179,26,.35)); }
.brand-mark i { width: 26px; height: 10px; border-top: 2px solid currentColor; display: block; transform: skewY(18deg); }
.brand-mark i:last-child { transform: skewY(-18deg); }
.brand-mark b { color: var(--gold); font-size: 21px; margin: 0 -2px; }
nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 45px); color: #8ca1bb; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
nav a { transition: color .2s; }
nav a:hover, nav a:focus-visible, nav .nav-active { color: var(--gold); }
.pilot-button { border: 1px solid rgba(255,179,26,.5); border-radius: 4px; color: var(--gold); background: rgba(255,179,26,.08); padding: 12px 15px; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); margin-right: 7px; }

.hero {
  min-height: 520px;
  padding: 95px 22px 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid rgba(255,179,26,.24);
  background:
    linear-gradient(180deg, rgba(8, 35, 49, .96) 0%, rgba(5, 24, 36, .9) 58%, rgba(3, 11, 19, .98) 100%);
}
.hero::before {
  content: "";
  width: 560px;
  height: 330px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 179, 26, .11), transparent 62%),
    radial-gradient(ellipse at 50% 55%, rgba(42, 166, 202, .11), transparent 72%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(rgba(55, 197, 230, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(55, 197, 230, .2) 1px, transparent 1px);
  background-size: 65px 65px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, transparent);
  transform: perspective(500px) rotateX(63deg) scale(1.6) translateY(24%);
}
.eyebrow { color: var(--gold); font: 800 11px/1 monospace; letter-spacing: .34em; display: flex; align-items: center; gap: 17px; position: relative; }
.eyebrow span { height: 1px; width: 48px; background: var(--gold); box-shadow: 0 0 8px rgba(255,179,26,.4); }
.hero h1 {
  margin: 27px 0 21px;
  color: #f4f8ff;
  font: 900 clamp(52px, 6.6vw, 96px)/.87 Arial, sans-serif;
  letter-spacing: -.065em;
  position: relative;
  text-shadow: 0 6px 35px rgba(0,0,0,.8);
}
.hero h1 em { color: var(--gold); font-style: normal; -webkit-text-stroke: 0; text-shadow: 0 0 22px rgba(255,179,26,.25); }
.hero > p { max-width: 660px; color: #9caec2; font-size: 17px; line-height: 1.7; position: relative; }
.system-status { display: flex; gap: 32px; margin-top: 33px; color: #667b95; font: 700 10px/1 monospace; letter-spacing: .16em; position: relative; }

.mission-section { max-width: 1240px; margin: auto; padding: 84px 30px 105px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.kicker { color: var(--gold); font: 800 10px/1 monospace; letter-spacing: .28em; margin: 0 0 12px; }
h2 { font-size: clamp(30px, 4vw, 50px); letter-spacing: -.045em; margin: 0; }
.search-box { display: flex; width: min(100%, 320px); border: 1px solid #263d59; background: #08121f; align-items: center; border-radius: 4px; transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--gold); box-shadow: 0 0 18px rgba(255,179,26,.14); }
.search-box > span:first-child { color: var(--gold); font-size: 26px; padding-left: 15px; }
.search-box input { border: 0; outline: 0; color: var(--white); background: transparent; width: 100%; padding: 14px 15px; font: 700 11px monospace; letter-spacing: .08em; }
.search-box input::placeholder { color: #5d718d; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 38px 0 28px; }
.filters button { border: 1px solid #213650; color: #7186a2; background: #08111d; border-radius: 3px; padding: 11px 16px; font: 800 10px monospace; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.filters button:hover, .filters button:focus-visible { color: var(--white); border-color: #41698c; }
.filters button.active { color: #1b1100; background: var(--gold); border-color: var(--gold); box-shadow: 0 0 19px rgba(255,179,26,.3); }
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mission-card {
  min-height: 390px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(145deg, rgba(14,29,46,.96), rgba(6,14,25,.98));
  border: 1px solid #1c324d;
  border-radius: 7px;
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 18px 50px rgba(0,0,0,.18);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.mission-card::after { content: ""; position: absolute; inset: auto 18% -2px; height: 2px; opacity: 0; background: var(--gold); box-shadow: 0 0 16px 4px var(--gold); transition: opacity .25s; }
.mission-card:hover { transform: translateY(-5px); border-color: #9a6f23; box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 24px rgba(255,179,26,.08); }
.mission-card:hover::after { opacity: .8; }
.mission-card.featured { border-color: #9a6f23; box-shadow: inset 0 0 35px rgba(255,179,26,.035), 0 0 28px rgba(255,179,26,.09); }
.card-topline, .card-meta { display: flex; justify-content: space-between; color: #607590; font: 700 9px monospace; letter-spacing: .12em; }
.card-topline .live { color: var(--gold); text-shadow: 0 0 9px rgba(255,179,26,.4); }
.mission-icon { width: 66px; height: 66px; border: 1px solid; display: grid; place-items: center; margin: 32px 0 24px; border-radius: 6px; font: 900 19px monospace; }
.mission-icon.cyan { color: var(--cyan); background: rgba(56,220,255,.08); box-shadow: inset 0 0 20px rgba(56,220,255,.06), 0 0 18px rgba(56,220,255,.08); }
.mission-icon.blue { color: #63a9ff; background: rgba(77,139,255,.08); }
.mission-icon.violet { color: #b890ff; background: rgba(170,118,255,.08); }
.mission-icon.green { color: var(--green); background: rgba(65,255,169,.07); }
.mission-icon.amber { color: var(--gold); background: rgba(255,179,26,.08); }
.mission-icon.red { color: #ff7474; background: rgba(255,90,90,.08); }
.mission-category { margin: 0 0 7px; color: #607897; font: 800 9px monospace; letter-spacing: .18em; text-transform: uppercase; }
.mission-card h3 { margin: 0; font-size: 23px; letter-spacing: -.03em; }
.mission-description { color: #8193aa; line-height: 1.55; font-size: 14px; margin: 12px 0 22px; flex: 1; }
.card-meta { border-top: 1px solid #172b43; padding-top: 16px; margin-bottom: 17px; }
.launch-button { min-height: 45px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--gold); background: rgba(255,179,26,.1); color: var(--gold); border-radius: 4px; font: 900 10px monospace; letter-spacing: .12em; transition: background .2s, color .2s, box-shadow .2s; }
.launch-button:hover, .launch-button:focus-visible { color: #1b1100; background: var(--gold); box-shadow: 0 0 24px rgba(255,179,26,.38); outline: none; }
.launch-button.disabled { border-color: #26364a; color: #506279; background: #0a1420; cursor: not-allowed; }
.launch-button.disabled:hover { box-shadow: none; background: #0a1420; color: #506279; }
.empty-state { padding: 70px; text-align: center; color: var(--muted); font: 800 12px monospace; letter-spacing: .15em; border: 1px dashed #263b55; }

.briefing { max-width: 1180px; margin: 0 auto 110px; padding: 60px; display: grid; grid-template-columns: .9fr 1.4fr; gap: 70px; border: 1px solid #1d3854; background: linear-gradient(135deg, #0b1724, #07101a); box-shadow: 0 0 40px rgba(30,177,213,.05); }
.briefing ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); }
.briefing li { display: flex; gap: 15px; padding: 10px 22px; border-left: 1px solid #20364f; }
.briefing li > span { color: var(--gold); font: 800 10px monospace; }
.briefing strong { font: 900 11px monospace; letter-spacing: .15em; }
.briefing li p { color: #7f92aa; font-size: 13px; line-height: 1.5; }
footer { min-height: 120px; padding: 30px clamp(22px,5vw,76px); border-top: 1px solid #172a40; display: flex; justify-content: space-between; align-items: center; color: #52667f; font: 700 9px monospace; letter-spacing: .14em; }
footer .brand { color: var(--white); font-family: Arial, sans-serif; font-size: 11px; }

.trainer-shell { min-height: 100vh; }
.trainer-back { display: inline-flex; align-items: center; gap: 10px; }
.trainer-page { max-width: 900px; margin: 0 auto; padding: 65px 24px 100px; }
.trainer-title { text-align: center; color: var(--cyan); font: 900 clamp(23px,4vw,38px) monospace; letter-spacing: .14em; text-shadow: 0 0 18px rgba(56,220,255,.28); }
.trainer-subtitle { text-align: center; color: #768ba5; margin-bottom: 34px; }
.trainer-panel { padding: clamp(22px,5vw,48px); border: 1px solid #294562; background: #060d17; border-radius: 12px; box-shadow: inset 0 0 50px rgba(29,126,161,.035), 0 0 45px rgba(0,0,0,.5); }
.scoreboard { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 42px; border: 1px solid #203956; border-radius: 6px; }
.scoreboard div { padding: 18px; text-align: center; border-right: 1px solid #203956; }
.scoreboard div:last-child { border: 0; }
.scoreboard span { display: block; color: #7187a6; font: 800 10px monospace; letter-spacing: .15em; }
.scoreboard strong { display: block; color: var(--cyan); font: 900 28px monospace; margin-top: 8px; }
.clearance { color: var(--green); text-align: center; border: 1px solid #203956; background: #081321; border-radius: 5px; padding: 15px; font: 700 clamp(14px,3vw,20px) monospace; }
.question { text-align: center; color: #7f93b2; font-weight: 700; margin-top: 44px; }
.heading-display { text-align: center; color: var(--gold); font: 900 clamp(62px,12vw,105px)/1 monospace; text-shadow: 0 0 20px rgba(255,179,26,.23); margin: 15px; }
.heading-display small { color: #7187a6; font-size: 25px; text-shadow: none; }
.answer-grid { max-width: 590px; margin: 22px auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.answer-grid button { min-height: 74px; border: 1px solid #29425f; border-radius: 6px; color: #eaf2ff; background: #0c1727; font: 900 22px monospace; cursor: pointer; transition: border-color .15s, color .15s, box-shadow .15s, transform .15s; }
.answer-grid button:hover, .answer-grid button:focus-visible { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 15px rgba(56,220,255,.17); transform: translateY(-2px); outline: 0; }
.answer-grid button.wide { grid-column: span 3; color: var(--cyan); }
.feedback { min-height: 29px; text-align: center; margin: 20px 0 0; font: 800 15px monospace; color: var(--green); }

@media (max-width: 900px) {
  nav > a { display: none; }
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .briefing { grid-template-columns: 1fr; margin-inline: 24px; }
}
@media (max-width: 640px) {
  .site-header { height: 72px; padding: 0 17px; }
  .brand { font-size: 10px; gap: 9px; letter-spacing: .2em; }
  .brand-logo { width: 58px; }
  .brand-mark i { width: 16px; }
  .pilot-button { padding: 9px; font-size: 9px; }
  .hero { min-height: 480px; padding-top: 75px; }
  .system-status { gap: 12px; flex-wrap: wrap; justify-content: center; line-height: 1.7; }
  .mission-section { padding: 65px 18px; }
  .section-heading { display: block; }
  .search-box { margin-top: 25px; width: 100%; }
  .mission-grid { grid-template-columns: 1fr; }
  .briefing { padding: 35px 25px; }
  .briefing ol { grid-template-columns: 1fr; }
  .briefing li { border-left: 0; border-top: 1px solid #20364f; padding: 19px 0; }
  footer { flex-direction: column; gap: 22px; text-align: center; }
  .trainer-page { padding-top: 40px; }
  .scoreboard div { padding: 13px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
