/* ═══════════════════════════════════════════════════════════
   IASER — Main CSS
   Night-ops military tech aesthetic
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg:         #040d12;
  --bg-card:    #0a1520;
  --bg-card-2:  #0d1e2e;
  --cyan:       #00e5ff;
  --cyan-dim:   rgba(0, 229, 255, 0.15);
  --orange:     #ff6b00;
  --orange-dim: rgba(255, 107, 0, 0.15);
  --red:        #ff3333;
  --red-dim:    rgba(255, 51, 51, 0.15);
  --green:      #39ff14;
  --green-dim:  rgba(57, 255, 20, 0.12);
  --purple:     #bf5fff;
  --purple-dim: rgba(191, 95, 255, 0.12);
  --yellow:     #ffd700;
  --yellow-dim: rgba(255, 215, 0, 0.12);
  --text:       #c8d8e8;
  --text-dim:   #5a7a8a;
  --border:     rgba(0, 229, 255, 0.12);
  --border-glow:rgba(0, 229, 255, 0.35);
  --font-title: 'Orbitron', monospace;
  --font-body:  'Rajdhani', sans-serif;
  --font-code:  'Share Tech Mono', monospace;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

ul { list-style: none; }

code, pre {
  font-family: var(--font-code);
  font-size: .9rem;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #040d12; }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Section base ───────────────────────────────────────── */
.section {
  padding: 7rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-code);
  font-size: .75rem;
  letter-spacing: .18em;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: .3rem .9rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  position: relative;
}
.section-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan-dim);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Reveal animations ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease, transform .7s ease;
}

/* ════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(4, 13, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.navbar.scrolled {
  background: rgba(4, 13, 18, 0.97);
  border-bottom-color: var(--border-glow);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-title);
}
.nav-logo-bracket { color: var(--cyan); font-size: 1.3rem; opacity: .7; }
.nav-logo-text { font-size: 1.3rem; font-weight: 900; color: #fff; letter-spacing: .1em; }
.nav-logo-sub {
  font-family: var(--font-code);
  font-size: .6rem;
  color: var(--text-dim);
  letter-spacing: .15em;
  margin-left: .4rem;
  align-self: flex-end;
  margin-bottom: .15rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-link {
  font-family: var(--font-code);
  font-size: .85rem;
  letter-spacing: .1em;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav-link:hover, .nav-link.active { color: var(--cyan); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-status {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-code);
  font-size: .75rem;
  color: var(--green);
}

.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--cyan);
  transition: .3s;
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(4,13,18,.97); padding: 1.5rem 2.5rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-status { display: none; }
}

/* ════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,30,60,.6) 0%, var(--bg) 70%);
}

.radar-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .35;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-scanline {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: scanline 4s ease-in-out infinite;
  opacity: .5;
  pointer-events: none;
}

@keyframes scanline {
  0% { top: 0; }
  100% { top: 100%; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-code);
  font-size: .75rem;
  letter-spacing: .2em;
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,.3);
  padding: .4rem 1.2rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  background: rgba(0,229,255,.06);
  animation: fadeInDown .8s ease .2s both;
}

.badge-ping {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 1.5s infinite;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: .06em;
  color: #fff;
  text-shadow: 0 0 40px rgba(0,229,255,.4), 0 0 80px rgba(0,229,255,.15);
  line-height: 1;
  margin-bottom: 1rem;
  animation: fadeInUp .9s ease .3s both;
}

.hero-subtitle {
  font-family: var(--font-code);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--cyan);
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInUp .9s ease .5s both;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp .9s ease .6s both;
  line-height: 1.8;
}

.hero-description strong { color: var(--cyan); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp .9s ease .7s both;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,229,255,.5);
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--font-code);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp .9s ease .85s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 2rem;
  font-family: var(--font-code);
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: all .25s;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-icon { font-size: .8rem; }

.btn-primary {
  background: var(--cyan);
  color: #040d12;
  font-weight: 700;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  transform: translateX(-100%);
  transition: transform .3s;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover { box-shadow: 0 0 30px rgba(0,229,255,.5); color: #040d12; }

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
}
.btn-outline:hover {
  background: var(--cyan-dim);
  box-shadow: 0 0 20px rgba(0,229,255,.3);
  color: var(--cyan);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-code);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--text-dim);
  animation: fadeIn 1s ease 1.2s both;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--cyan), transparent);
  position: relative;
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* GSAP entry animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ════════════════════════════════════════════════════════
   ARCHITECTURE
   ════════════════════════════════════════════════════════ */
.architecture-section {
  background: linear-gradient(180deg, var(--bg) 0%, #060f18 50%, var(--bg) 100%);
}

/* IPC Diagram */
.ipc-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 5rem;
  flex-wrap: wrap;
}

.ipc-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  min-width: 220px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ipc-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.ipc-dcs::before { background: linear-gradient(90deg, transparent, var(--orange), transparent); }
.ipc-iaser::before { background: linear-gradient(90deg, transparent, var(--cyan), transparent); }

.ipc-label {
  display: block;
  font-family: var(--font-code);
  font-size: .8rem;
  letter-spacing: .15em;
  margin-bottom: 1rem;
}
.ipc-dcs .ipc-label { color: var(--orange); }
.ipc-iaser .ipc-label { color: var(--cyan); }

.ipc-inner { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

.ipc-chip {
  font-family: var(--font-code);
  font-size: .75rem;
  padding: .25rem .7rem;
  border-radius: 2px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-dim);
  white-space: nowrap;
}

.ipc-arrows {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  align-items: center;
}

.ipc-arrow-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.ipc-arrow-row.reverse { flex-direction: row-reverse; }

.arrow-label {
  font-family: var(--font-code);
  font-size: .72rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.arrow-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  position: relative;
}
.reverse .arrow-line {
  background: linear-gradient(270deg, var(--orange), transparent);
}
.arrow-line.animated-arrow::after {
  content: '▶';
  position: absolute;
  right: -5px;
  top: -7px;
  font-size: .7rem;
  color: var(--cyan);
  animation: arrowPulse 1.5s infinite;
}
.reverse .arrow-line.animated-arrow::after {
  right: auto;
  left: -5px;
  content: '◀';
  color: var(--orange);
}
@keyframes arrowPulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

/* Layer Cards */
.layers-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.layer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.layer-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 30px rgba(0,229,255,.08);
}

.layer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.layer-strategic::before  { background: radial-gradient(circle at 50% 0%, rgba(0,229,255,.06) 0%, transparent 70%); }
.layer-operational::before { background: radial-gradient(circle at 50% 0%, rgba(255,107,0,.06) 0%, transparent 70%); }
.layer-tactical::before   { background: radial-gradient(circle at 50% 0%, rgba(255,51,51,.06) 0%, transparent 70%); }
.layer-card:hover::before { opacity: 1; }

.layer-strategic  { border-top: 2px solid var(--cyan); }
.layer-operational { border-top: 2px solid var(--orange); }
.layer-tactical   { border-top: 2px solid var(--red); }

.layer-freq-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-code);
  font-size: .72rem;
  padding: .2rem .6rem;
  border-radius: 2px;
}
.layer-strategic  .layer-freq-badge { background: var(--cyan-dim); color: var(--cyan); border: 1px solid var(--cyan); }
.layer-operational .layer-freq-badge { background: var(--orange-dim); color: var(--orange); border: 1px solid var(--orange); }
.layer-tactical   .layer-freq-badge { background: var(--red-dim); color: var(--red); border: 1px solid var(--red); }

.layer-icon-wrap {
  margin-bottom: 1.2rem;
}
.layer-icon {
  width: 44px; height: 44px;
}
.layer-strategic  .layer-icon { color: var(--cyan); }
.layer-operational .layer-icon { color: var(--orange); }
.layer-tactical   .layer-icon { color: var(--red); }

.layer-number {
  font-family: var(--font-code);
  font-size: .75rem;
  color: var(--text-dim);
  letter-spacing: .1em;
  margin-bottom: .3rem;
}

.layer-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .7rem;
}

.layer-desc {
  font-size: .95rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.layer-components {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.layer-components li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: #9ab;
}
.layer-components code {
  background: rgba(255,255,255,.06);
  padding: .1rem .4rem;
  border-radius: 2px;
  font-size: .82rem;
  color: #cde;
}

.comp-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.layer-strategic  .comp-dot { background: var(--cyan); }
.layer-operational .comp-dot { background: var(--orange); }
.layer-tactical   .comp-dot { background: var(--red); }

/* Thread table */
.thread-table-wrap { max-width: 800px; margin: 0 auto; }

.thread-table-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--cyan);
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: .05em;
}

.thread-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.thread-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  padding: .8rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  align-items: center;
}
.thread-row:last-child { border-bottom: none; }
.thread-row.header {
  background: rgba(0,229,255,.05);
  font-family: var(--font-code);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--cyan);
  text-transform: uppercase;
}
.thread-row code {
  background: rgba(255,255,255,.06);
  padding: .1rem .4rem;
  border-radius: 2px;
  font-size: .82rem;
  color: #cde;
}
.thread-row span:nth-child(2) { color: var(--text-dim); font-size: .9rem; }

.rate {
  font-family: var(--font-code);
  font-size: .78rem;
  padding: .2rem .6rem;
  border-radius: 2px;
  white-space: nowrap;
}
.rate.cyan   { background: var(--cyan-dim); color: var(--cyan); }
.rate.red    { background: var(--red-dim); color: var(--red); }
.rate.orange { background: var(--orange-dim); color: var(--orange); }
.rate.green  { background: var(--green-dim); color: var(--green); }
.rate.grey   { background: rgba(255,255,255,.05); color: var(--text-dim); }

/* ════════════════════════════════════════════════════════
   MODULES
   ════════════════════════════════════════════════════════ */
.modules-section {
  background: var(--bg);
  overflow: hidden;
}

.modules-swiper-container {
  position: relative;
  padding: 0 4rem 4rem;
}

.modules-swiper {
  padding: 2rem 0 3rem !important;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  height: auto !important;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.module-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(0,229,255,.3);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.module-card-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .15;
  pointer-events: none;
  transition: opacity .3s;
  background: var(--cyan);
}
.module-card:hover .module-card-glow { opacity: .28; }
.red-glow    { background: var(--red) !important; }
.green-glow  { background: var(--green) !important; }
.orange-glow { background: var(--orange) !important; }
.purple-glow { background: var(--purple) !important; }
.yellow-glow { background: var(--yellow) !important; }

.module-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.module-card-icon {
  width: 60px; height: 60px;
  flex-shrink: 0;
}

.module-card-tag {
  font-family: var(--font-code);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 2px;
  margin-bottom: .4rem;
  display: inline-block;
}
.blue-tag   { background: var(--cyan-dim); color: var(--cyan); border: 1px solid var(--cyan); }
.red-tag    { background: var(--red-dim); color: var(--red); border: 1px solid var(--red); }
.green-tag  { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.orange-tag { background: var(--orange-dim); color: var(--orange); border: 1px solid var(--orange); }
.purple-tag { background: var(--purple-dim); color: var(--purple); border: 1px solid var(--purple); }
.yellow-tag { background: var(--yellow-dim); color: var(--yellow); border: 1px solid var(--yellow); }

.module-card-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
}

.module-card-desc {
  font-size: .92rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.module-card-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.5rem;
}
.module-card-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--text);
}
.li-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.li-dot.cyan   { background: var(--cyan); }
.li-dot.red    { background: var(--red); }
.li-dot.green  { background: var(--green); }
.li-dot.orange { background: var(--orange); }
.li-dot.purple { background: var(--purple); }
.li-dot.yellow { background: var(--yellow); }

.module-card-footer {
  display: flex;
  gap: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.module-stat {
  font-family: var(--font-code);
  font-size: .78rem;
  color: var(--text-dim);
}
.module-stat strong { color: var(--cyan); }

/* Swiper custom */
.swiper-button-prev, .swiper-button-next {
  color: var(--cyan) !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 42px !important; height: 42px !important;
  transition: background .2s, border-color .2s;
}
.swiper-button-prev:hover, .swiper-button-next:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
}
.swiper-button-prev::after, .swiper-button-next::after { font-size: 1rem !important; }

.swiper-pagination-bullet {
  background: var(--text-dim) !important;
  opacity: .5 !important;
}
.swiper-pagination-bullet-active {
  background: var(--cyan) !important;
  opacity: 1 !important;
}

/* ════════════════════════════════════════════════════════
   CAMPAIGN STATES
   ════════════════════════════════════════════════════════ */
.campaign-section {
  background: linear-gradient(180deg, var(--bg) 0%, #060f18 100%);
}

.campaign-states-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.campaign-state {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  min-width: 120px;
  max-width: 150px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  cursor: default;
}
.campaign-state:hover {
  transform: translateY(-6px) scale(1.05);
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(0,229,255,.15);
}

.state-number {
  font-family: var(--font-code);
  font-size: .7rem;
  color: var(--text-dim);
  margin-bottom: .3rem;
}

.state-icon {
  font-size: 1.8rem;
  margin-bottom: .5rem;
  display: block;
}

.state-name {
  font-family: var(--font-code);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: .4rem;
}

.state-desc {
  font-size: .78rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.campaign-arrow {
  font-size: 1.2rem;
  color: var(--border-glow);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════
   WW2 SECTION
   ════════════════════════════════════════════════════════ */
.ww2-section {
  background: linear-gradient(180deg, #060f18 0%, #0a1008 50%, #060d06 100%);
  position: relative;
}

.ww2-grain-overlay {
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.ww2-tag { color: #b8960c; border-color: #b8960c; }
.ww2-tag::before { background: rgba(184, 150, 12, .1); }

.ww2-title {
  background: linear-gradient(135deg, #d4a017, #f0c040, #c8820a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* WW2 Tabs */
.ww2-tabs {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.ww2-tab {
  font-family: var(--font-code);
  font-size: .85rem;
  letter-spacing: .08em;
  padding: .6rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(184,150,12,.3);
  color: #a08020;
  border-radius: 3px;
  cursor: pointer;
  transition: all .25s;
}
.ww2-tab:hover, .ww2-tab.active {
  background: rgba(184,150,12,.12);
  border-color: #d4a017;
  color: #f0c040;
  box-shadow: 0 0 15px rgba(212,160,23,.2);
}

.ww2-tab-content { display: none; }
.ww2-tab-content.active { display: block; }

/* WW2 Aircraft Grid */
.ww2-aircraft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.ww2-aircraft-card {
  background: rgba(10,15,5,.7);
  border: 1px solid rgba(184,150,12,.2);
  border-radius: 8px;
  padding: 1.8rem;
  text-align: center;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.ww2-aircraft-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,160,23,.5);
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 20px rgba(212,160,23,.1);
}

.ww2-aircraft-silhouette {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.ww2-aircraft-silhouette svg { width: 100%; height: 100%; }

.ww2-aircraft-name {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: #f0c040;
  margin-bottom: .3rem;
}

.ww2-aircraft-role {
  font-family: var(--font-code);
  font-size: .75rem;
  letter-spacing: .1em;
  color: #8a7020;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.ww2-aircraft-specs {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.ww2-aircraft-specs span {
  font-size: .82rem;
  color: #7a8a6a;
  font-family: var(--font-code);
}

/* WW2 Campaigns Grid */
.ww2-campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ww2-campaign-card {
  background: rgba(10,15,5,.8);
  border: 1px solid rgba(184,150,12,.2);
  border-radius: 8px;
  padding: 2rem;
  transition: transform .3s, border-color .3s;
}
.ww2-campaign-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,160,23,.5);
}

.campaign-year {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(212,160,23,.2);
  line-height: 1;
  margin-bottom: .5rem;
}

.campaign-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: #f0c040;
  margin-bottom: .3rem;
}

.campaign-theater {
  font-family: var(--font-code);
  font-size: .75rem;
  color: #8a7020;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}

.campaign-desc {
  font-size: .88rem;
  color: #7a8a6a;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.campaign-badge {
  display: inline-block;
  font-family: var(--font-code);
  font-size: .72rem;
  padding: .25rem .7rem;
  background: rgba(184,150,12,.1);
  border: 1px solid rgba(184,150,12,.3);
  border-radius: 2px;
  color: #b8960c;
}

/* Comparison table */
.ww2-comparison {
  margin-top: 3rem;
}
.comparison-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: #f0c040;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: .05em;
}

.comparison-table {
  background: rgba(10,15,5,.8);
  border: 1px solid rgba(184,150,12,.2);
  border-radius: 6px;
  overflow: hidden;
}

.comp-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding: .8rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  align-items: center;
}
.comp-row:last-child { border-bottom: none; }
.comp-row.header {
  background: rgba(184,150,12,.07);
  font-family: var(--font-code);
  font-size: .75rem;
  letter-spacing: .1em;
  color: #b8960c;
  text-transform: uppercase;
}

.comp-row span:first-child { color: var(--text-dim); font-size: .9rem; }
.comp-modern { color: var(--cyan); font-size: .85rem; font-family: var(--font-code); }
.comp-ww2 { color: #b8960c; font-size: .85rem; font-family: var(--font-code); }

/* ════════════════════════════════════════════════════════
   API SECTION
   ════════════════════════════════════════════════════════ */
.api-section {
  background: linear-gradient(180deg, #060d06 0%, var(--bg) 100%);
}

.api-tabs {
  display: flex;
  gap: .3rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.api-tab {
  font-family: var(--font-code);
  font-size: .85rem;
  letter-spacing: .08em;
  padding: .7rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: color .2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.api-tab:hover { color: var(--cyan); }
.api-tab.active { color: var(--cyan); border-bottom-color: var(--cyan); }

.api-tab-content { display: none; }
.api-tab-content.active { display: block; }

.code-terminal {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.term-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.term-dot.red-dot    { background: #ff5f57; }
.term-dot.yellow-dot { background: #febc2e; }
.term-dot.green-dot  { background: #28c840; }

.term-filename {
  font-family: var(--font-code);
  font-size: .8rem;
  color: #8b949e;
  margin-left: .5rem;
}

.terminal-code {
  margin: 0 !important;
  padding: 1.5rem !important;
  background: transparent !important;
  font-size: .88rem !important;
  line-height: 1.7 !important;
  overflow-x: auto;
}

.terminal-code code { background: none !important; }

/* API conventions */
.api-conventions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.convention-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform .2s, border-color .2s;
}
.convention-item:hover {
  transform: translateX(4px);
  border-color: var(--border-glow);
}

.conv-icon { font-size: 1.5rem; flex-shrink: 0; }

.convention-item strong {
  display: block;
  font-family: var(--font-title);
  font-size: .9rem;
  color: var(--cyan);
  margin-bottom: .3rem;
}
.convention-item p { font-size: .9rem; color: var(--text-dim); }
.convention-item code {
  background: rgba(255,255,255,.06);
  padding: .1rem .4rem;
  border-radius: 2px;
  color: #cde;
}

/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */
.site-footer {
  background: #020a0f;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-ascii {
  font-family: var(--font-code);
  font-size: .55rem;
  color: var(--cyan);
  line-height: 1.3;
  opacity: .7;
  margin-bottom: .8rem;
  white-space: pre;
}

.footer-tagline {
  font-family: var(--font-code);
  font-size: .85rem;
  color: var(--text-dim);
  margin-bottom: .3rem;
}

.footer-version {
  font-family: var(--font-code);
  font-size: .75rem;
  color: #2a4050;
}

.footer-links-group h5 {
  font-family: var(--font-title);
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-links-group a {
  font-size: .88rem;
  color: var(--text-dim);
  transition: color .2s;
}
.footer-links-group a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: .82rem; color: #2a4050; }
.footer-bottom strong { color: var(--text-dim); }
.footer-status {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-code);
  font-size: .75rem;
  color: var(--green) !important;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .layers-timeline { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .thread-row { grid-template-columns: 1fr 1fr; }
  .thread-row span:last-child { grid-column: 1 / -1; }
  .comp-row { grid-template-columns: 1fr; }
  .comp-row.header { display: none; }
  .ipc-diagram { flex-direction: column; }
  .ipc-arrows { flex-direction: row; }
  .campaign-states-container { gap: .3rem; }
  .campaign-state { min-width: 100px; padding: 1rem .8rem; }
  .modules-swiper-container { padding: 0 1rem 4rem; }
}

/* ── Mouse glow spotlight on cards ─────────────────────── */
.module-card::after,
.layer-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    300px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 229, 255, 0.04),
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.module-card:hover::after,
.layer-card:hover::after { opacity: 1; }

/* ── FEATURES STRIP ─────────────────────────────────────── */
.features-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  overflow: hidden;
}
.features-track {
  display: flex;
  gap: 3rem;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.features-track:hover { animation-play-state: paused; }
.feature-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  white-space: nowrap;
  font-family: var(--font-code);
  font-size: .82rem;
  color: var(--text-dim);
}
.feature-item span.fi-icon {
  color: var(--cyan);
  font-size: 1rem;
}
.feature-sep {
  color: rgba(0,229,255,.2);
  font-size: 1.2rem;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════════════════
   PAGE LOADER
   ════════════════════════════════════════════════════════ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-radar {
  opacity: .8;
}

.loader-text {
  text-align: center;
}

.loader-label {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: .15em;
  text-shadow: 0 0 30px rgba(0,229,255,.5);
}

.loader-sub {
  display: block;
  font-family: var(--font-code);
  font-size: .75rem;
  letter-spacing: .2em;
  color: var(--cyan);
  margin-top: .3rem;
}

.loader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(0,229,255,.1);
  border-radius: 1px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transition: width .1s linear;
}

/* ── Prism.js overrides ─────────────────────────────────── */
pre[class*="language-"] {
  background: transparent !important;
  margin: 0 !important;
}
code[class*="language-"] {
  font-family: var(--font-code) !important;
  font-size: .88rem !important;
}



