:root {
  --primary: #0b0f14;
  --secondary: #121820;
  --accent: #00ffc8;
  --alert: #ff3b3b;
  --text-main: #f5f7fa;
  --text-muted: #7f8a99;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --panel-radius: 14px;
  --shadow-soft: 0 26px 70px rgba(0, 0, 0, 0.7);
  --transition-fast: 180ms ease-out;
  --transition-slow: 420ms ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: radial-gradient(circle at 10% 0%, #151c26 0, #05070b 46%, #020308 100%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", "Segoe UI", sans-serif;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Cinematic layered background */

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-gradient {
  background:
    radial-gradient(circle at 0% 0%, #192330 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #0b1017 0, transparent 55%),
    linear-gradient(135deg, #05070b, #0b0f14 40%, #05070b 100%);
  opacity: 1;
}

.bg-grid {
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    );
  background-size: 64px 64px;
  opacity: 0.4;
  transform: translate3d(0, 0, 0);
  animation: grid-shift 80s linear infinite;
}

.bg-particles {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.18) 1px, transparent 0);
  background-size: 120px 120px;
  opacity: 0.22;
  mix-blend-mode: screen;
  animation: particles-drift 80s linear infinite;
}

.bg-radar {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0.18;
  mix-blend-mode: screen;
}

.bg-radar-inner {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 200, 0.3);
  box-shadow: 0 0 40px rgba(0, 255, 200, 0.24);
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 255, 200, 0.1), transparent 65%),
    radial-gradient(circle at 50% 50%, transparent 54%, rgba(4, 20, 17, 0.9) 56%, transparent 58%);
  transform: perspective(900px) rotateX(18deg);
}

.bg-radar-sweep {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: conic-gradient(
    rgba(0, 255, 200, 0.45),
    rgba(0, 255, 200, 0.0) 40%
  );
  transform-origin: 50% 50%;
  animation: radar-rotate 9s linear infinite;
  filter: blur(1px);
}

.bg-radar-grid {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 255, 200, 0.28);
  box-shadow: inset 0 0 30px rgba(1, 5, 4, 0.9);
}

.bg-radar-grid:nth-child(2) {
  inset: 28%;
  opacity: 0.8;
}

.bg-radar-grid:nth-child(3) {
  inset: 40%;
  opacity: 0.6;
}

.scanline-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.07;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.16) 1px,
    transparent 1px
  );
  background-size: 100% 2px;
  mix-blend-mode: soft-light;
  z-index: 1;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: -100px;
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 2;
}

main {
  position: relative;
  z-index: 3;
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 18px 72px;
}

/* Boot screen (on page load) */

.boot-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, #04070c, #020307 55%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 350ms ease-out;
}

.boot-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-terminal {
  width: min(640px, 94vw);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 200, 0.4);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.98);
  background:
    radial-gradient(circle at 0 0, rgba(0, 255, 200, 0.16), transparent 65%),
    #020308;
  padding: 14px 14px 12px;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: #d6fff3;
}

.boot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
  color: rgba(189, 255, 241, 0.85);
}

.boot-dots {
  display: flex;
  gap: 5px;
}

.boot-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #00ffc8, #032019);
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.95);
}

.boot-body {
  border-radius: 8px;
  background: radial-gradient(circle at 0 0, rgba(0, 255, 200, 0.16), transparent 65%),
    #020307;
  border: 1px solid rgba(0, 255, 200, 0.35);
  padding: 10px 12px 12px;
  font-size: 12px;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
  min-height: 128px;
}

.boot-line {
  white-space: nowrap;
  overflow: hidden;
  border-right: 0.12em solid transparent;
  width: 0;
  opacity: 0;
}

.boot-line[data-state="typing"] {
  opacity: 1;
  border-right-color: #d6fff3;
  animation:
    typing 0.9s steps(40, end) forwards,
    cursor-blink 1s steps(2, start) infinite;
}

.boot-line[data-state="shown"] {
  opacity: 1;
  width: 100%;
  border-right-color: transparent;
  animation: none;
}

.boot-line.final-line[data-state="typing"] {
  animation:
    typing 1.2s steps(40, end) forwards,
    cursor-blink 1s steps(2, start) infinite;
}

/* Header / navigation */

header.primary-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 4px;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(11, 15, 20, 0.94),
    rgba(8, 11, 16, 0.78),
    transparent
  );
  position: sticky;
  top: 0;
  z-index: 8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.nav-logo-frame {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 200, 0.6);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.9),
    0 0 26px rgba(0, 255, 200, 0.45);
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 255, 200, 0.5), transparent 55%),
    #050a0f;
  padding: 3px;
  overflow: hidden;
  position: relative;
  transform-origin: center;
  animation: logo-pulse 5s ease-in-out infinite;
  transition: transform 400ms ease-out, box-shadow 400ms ease-out;
}

.nav-logo-frame::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.nav-logo-frame:hover {
  transform: translateY(-2px) rotateX(4deg) rotateY(-6deg);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 1),
    0 0 38px rgba(0, 255, 200, 0.75);
}

.nav-text-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-primary-title {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-main);
}

.nav-secondary-title {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-tertiary-title {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 0 0, rgba(0, 255, 200, 0.18), transparent 55%),
    rgba(4, 7, 14, 0.92);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #00ffc8, #05251c);
  box-shadow: 0 0 12px rgba(0, 255, 200, 0.9);
  animation: ping 1.6s infinite ease-out;
}

.nav-link {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-main);
  text-decoration: none;
  background: radial-gradient(circle at 0 0, rgba(0, 255, 200, 0.18), transparent 55%),
    rgba(5, 8, 17, 0.96);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 200, 0.8);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  background: radial-gradient(circle at 0 0, rgba(0, 255, 200, 0.32), transparent 55%),
    rgba(4, 9, 16, 0.98);
}

/* Hero / command interface */

section.hero {
  min-height: min(100vh, 960px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  padding: 36px 4px 64px;
  align-items: center;
  position: relative;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-title-block {
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(0, 255, 200, 0.15), transparent 55%),
    rgba(11, 15, 21, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}

.hero-title-block::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero-title-main {
  font-size: 14px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.hero-title {
  font-size: clamp(30px, 5.6vw, 46px);
  line-height: 1.02;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

.hero-title-accent {
  color: var(--accent);
}

.hero-subline {
  padding-top: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-body {
  max-width: 520px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 10px;
}

.hero-body strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
}

.hero-cta-primary,
.hero-cta-secondary {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 10, 18, 0.9);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.85);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.hero-cta-primary {
  background: radial-gradient(circle at 0 0, rgba(0, 255, 200, 0.3), transparent 60%),
    linear-gradient(135deg, #111822, #070b11);
  border-color: rgba(0, 255, 200, 0.9);
}

.hero-cta-primary span.pip {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #00ffc8, #02100c);
  box-shadow: 0 0 16px rgba(0, 255, 200, 1);
}

.hero-cta-secondary {
  background: radial-gradient(circle at 0 0, rgba(120, 133, 155, 0.3), transparent 55%),
    rgba(10, 13, 19, 0.98);
  color: var(--text-muted);
}

.hero-cta-primary:hover,
.hero-cta-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
}

.hero-cta-primary:hover {
  background: radial-gradient(circle at 0 0, rgba(0, 255, 200, 0.45), transparent 65%),
    linear-gradient(135deg, #091720, #040811);
}

.hero-cta-primary .cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 4px;
  background: var(--accent);
  animation: cursor-blink 1s steps(2, start) infinite;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-muted);
}

.meta-pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
  background: radial-gradient(circle at 0 0, rgba(0, 255, 200, 0.18), transparent 55%),
    rgba(6, 8, 14, 0.98);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.meta-value {
  color: var(--accent);
  font-weight: 500;
}

.hero-right {
  position: relative;
  display: flex;
  align-items: stretch;
}

.hero-console {
  position: relative;
  width: 100%;
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(0, 255, 200, 0.2), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(0, 255, 200, 0.12), transparent 55%),
    #05070b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  padding: 14px 14px 12px;
  transform-origin: 50% 20%;
  transform: perspective(1200px) rotateX(10deg) rotateY(-12deg);
  transition: transform 800ms cubic-bezier(0.21, 0.9, 0.32, 1.2),
    box-shadow 800ms cubic-bezier(0.21, 0.9, 0.32, 1.2);
}

.hero-console:hover {
  transform: perspective(1200px) rotateX(6deg) rotateY(-6deg) translateY(-4px);
  box-shadow: 0 42px 120px rgba(0, 0, 0, 1);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: var(--text-muted);
}

.console-title {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 10px;
}

.console-lights {
  display: flex;
  align-items: center;
  gap: 5px;
}

.console-light {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #ff3b3b, #2a0c0c);
  box-shadow: 0 0 10px rgba(255, 59, 59, 0.85);
}

.console-light.green {
  background: radial-gradient(circle at 30% 0%, #00ffc8, #062110);
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.85);
}

.console-light.amber {
  background: radial-gradient(circle at 30% 0%, #ffd76b, #261b05);
  box-shadow: 0 0 10px rgba(255, 215, 107, 0.85);
}

.console-body {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Tactical operations panel (replaces map) */

.ops-panel {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 0 0, rgba(0, 255, 200, 0.14), transparent 55%),
    rgba(5, 8, 16, 0.98);
  padding: 8px 9px;
  font-size: 11px;
}

.ops-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ops-title {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ops-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

.ops-table tr {
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.ops-table tr:hover {
  background: rgba(0, 255, 200, 0.06);
  transform: translateY(-1px);
}

.ops-table td {
  padding: 4px 4px;
  font-size: 11px;
}

.ops-name {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-main);
}

.ops-status {
  text-align: right;
  color: var(--text-muted);
}

.ops-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
}

.status-light {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #00ffc8, #04140f);
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.9);
}

.status-light.alert {
  background: radial-gradient(circle at 30% 0%, #ff3b3b, #2a0c0c);
  box-shadow: 0 0 10px rgba(255, 59, 59, 0.9);
}

.status-light.idle {
  background: radial-gradient(circle at 30% 0%, #ffd76b, #261b05);
  box-shadow: 0 0 10px rgba(255, 215, 107, 0.9);
}

.ops-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(11, 16, 26, 0.9);
  overflow: hidden;
  margin-top: 4px;
}

.ops-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #7dffe0);
  width: 70%;
  box-shadow: 0 0 12px rgba(0, 255, 200, 0.7);
  transition: width 800ms ease-out;
}

/* Join Discord button */

.ops-discord-btn {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 0 0, rgba(0, 255, 200, 0.3), transparent 60%),
    linear-gradient(135deg, #111822, #070b11);
  color: var(--text-main);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.85);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.ops-discord-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
  border-color: rgba(0, 255, 200, 0.85);
  background: radial-gradient(circle at 0 0, rgba(0, 255, 200, 0.45), transparent 65%),
    linear-gradient(135deg, #091720, #040811);
}

/* Live combat feed */

.feed-panel {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 0 0, rgba(0, 255, 200, 0.12), transparent 55%),
    rgba(5, 8, 16, 0.98);
  padding: 8px 9px;
  font-size: 11px;
  max-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feed-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.feed-title {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.feed-scroll {
  overflow: hidden;
  position: relative;
  flex: 1;
}

.feed-list {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 4px;
}

.feed-item {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.feed-time {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Sections */

section {
  padding: 48px 4px 18px;
}

section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.section-kicker {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.32), transparent);
}

.section-title {
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 540px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  grid-column: span 6;
  border-radius: var(--panel-radius);
  background:
    radial-gradient(circle at 0 0, rgba(0, 255, 200, 0.14), transparent 55%),
    rgba(7, 10, 18, 0.98);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 14px 14px 13px;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
}

.panel-label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(11, 17, 25, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.panel-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.panel-body strong {
  color: var(--text-main);
  font-weight: 600;
}

.panel-list {
  margin-top: 10px;
  list-style: none;
  font-size: 12px;
  color: var(--text-muted);
}

.panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 0;
}

.panel-bullet {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, var(--accent), #02110d);
  margin-top: 5px;
  flex-shrink: 0;
}

/* Unit cards */

.unit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.unit-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(7, 11, 18, 0.98), rgba(10, 14, 22, 0.98)),
    radial-gradient(circle at 0 0, rgba(0, 255, 200, 0.18), transparent 55%);
  box-shadow: var(--shadow-soft);
  padding: 12px 12px 10px;
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.unit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.08) 0,
    transparent 22%,
    transparent 78%,
    rgba(255, 255, 255, 0.08) 100%
  );
  opacity: 0;
  mix-blend-mode: soft-light;
  transform: translateX(-40%);
  transition: opacity 300ms ease-out, transform 500ms ease-out;
}

.unit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95);
  border-color: rgba(0, 255, 200, 0.7);
}

.unit-card:hover::after {
  opacity: 0.5;
  transform: translateX(0);
}

.unit-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.unit-body {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* War timeline */

.timeline {
  position: relative;
  padding-left: 18px;
  margin-top: 6px;
  border-left: 1px dashed rgba(255, 255, 255, 0.16);
}

.timeline-item {
  position: relative;
  padding: 10px 0 6px 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  position: absolute;
  left: -18px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #00ffc8, #02110c);
  box-shadow: 0 0 14px rgba(0, 255, 200, 0.9);
}

.timeline-title {
  font-size: 12px;
  color: var(--text-main);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.timeline-step {
  font-size: 12px;
  color: var(--text-muted);
}

/* Stats panel */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(9, 12, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-size: 10px;
}

.stat-value {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-size: 13px;
  transform: translateY(2px);
}

/* Reveal motion / smooth transitions */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */

footer {
  padding: 32px 4px 0;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

footer .footer-meta {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

footer a:hover {
  color: var(--accent);
}

/* Responsive */

@media (max-width: 900px) {
  section.hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 26px;
  }

  .hero-console {
    transform: none;
  }

  .hero-console:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 840px) {
  .unit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding-inline: 14px;
  }

  header.primary-nav {
    padding-inline: 8px;
  }

  .nav-secondary-title {
    display: none;
  }

  .panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    justify-content: center;
    width: 100%;
  }

  .unit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Animations */

@keyframes ping {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  60% {
    transform: scale(1.1);
    opacity: 0.5;
  }
  100% {
    transform: scale(0.9);
    opacity: 1;
  }
}

@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes grid-shift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-64px, -64px, 0);
  }
}

@keyframes particles-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-120px, -80px, 0);
  }
}

@keyframes radar-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes logo-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.9),
      0 0 22px rgba(0, 255, 200, 0.38);
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 1),
      0 0 32px rgba(0, 255, 200, 0.7);
    transform: translateY(-1px) rotateX(3deg) rotateY(-4deg);
  }
}
