/* ═══════════════════════════════════════════
   HOLO — NEXXO C2 Design System
   ═══════════════════════════════════════════ */

/* === TOKENS === */
:root {
  --bg: #FFFFFF; --bg1: #F5F5F0; --bg2: #ECEAE3; --bg3: #E2DFD6;
  --t0: #1A1A1A; --t1: #4A4A47; --t2: #8A8A82;
  --b0: rgba(0,0,0,.08); --b1: rgba(0,0,0,.12); --b2: rgba(0,0,0,.22);
  --acc: #9A7B2F;
  --green: #16803C; --amber: #C27A06; --red: #D32F2F; --cyan: #0878A4;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(.16,1,.3,1);
  --header: 64px;
  /* Dark palette for tactical elements */
  --dark-bg: #000; --dark-bg1: #0a0a0a; --dark-bg2: #111;
  --dark-t0: #fff; --dark-t1: #a0a0a0; --dark-t2: #555;
  --dark-b0: rgba(255,255,255,.06); --dark-b1: rgba(255,255,255,.12); --dark-b2: rgba(255,255,255,.28);
  --dark-acc: #C8A84B; --dark-green: #22c55e; --dark-amber: #f59e0b; --dark-red: #ef4444; --dark-cyan: #06b6d4;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--t0); font-family: var(--sans);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  padding-top: var(--header); overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
.ct { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
@media(max-width:768px) { .ct { padding: 0 24px; } }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--t2); }

/* === REVEAL === */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.iv { opacity: 1; transform: translateY(0); }
.rd1{transition-delay:.1s}.rd2{transition-delay:.2s}.rd3{transition-delay:.3s}.rd4{transition-delay:.4s}
@media(prefers-reduced-motion:reduce){.rv{opacity:1;transform:none;transition:none}}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header); display: flex; align-items: center;
  justify-content: space-between; padding: 0 40px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--b0);
  transition: background .3s, border-color .3s;
}
.header.scrolled { background: rgba(255,255,255,.97); border-color: var(--b1); box-shadow: 0 1px 12px rgba(0,0,0,.06); }
.header-l { display: flex; align-items: center; gap: 32px; }
.header-logo { font-size: 18px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.header-status { display: flex; align-items: center; gap: 6px; }
.header-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%!important; animation: pulse 2s ease infinite; }
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}

.header-nav { display: flex; align-items: center; gap: 0; }
.header-nav a {
  font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--t2); padding: 22px 16px; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s; position: relative;
}
.header-nav a:hover, .header-nav a.active { color: var(--t0); border-bottom-color: var(--acc); }
.header-nav a.active { color: var(--t0); }

.header-r { display: flex; align-items: center; gap: 16px; }
.header-cta {
  display: inline-flex; align-items: center; height: 36px; padding: 0 20px;
  background: var(--t0); color: var(--bg); font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  transition: opacity .2s;
}
.header-cta:hover { opacity: .75; }

/* Mobile menu */
.hb {
  background: 0; border: 0; cursor: pointer; display: none;
  flex-direction: column; gap: 5px; padding: 8px;
}
.hb span { display: block; width: 22px; height: 2px; background: var(--t0); transition: transform .25s, opacity .25s; }
.hb.open span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.hb.open span:nth-child(2){opacity:0}
.hb.open span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

.mobile-menu {
  position: fixed; inset: var(--header) 0 0 0; z-index: 190;
  background: rgba(255,255,255,.97); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 48px; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-size: clamp(20px, 4vw, 36px); font-weight: 700; letter-spacing: -.01em;
  color: var(--t1); padding: 10px 0; border-bottom: 1px solid var(--b0);
  transition: color .2s; display: flex; align-items: center; gap: 16px;
}
.mobile-menu a:hover { color: var(--t0); }
.mm-i { font-family: var(--mono); font-size: 10px; color: var(--t2); letter-spacing: .12em; flex-shrink: 0; }

@media(max-width:960px) {
  .header-nav { display: none; }
  .hb { display: flex; }
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero { position: relative; height: 100svh; min-height: 680px; display: flex; align-items: flex-end; overflow: hidden; margin-top: calc(var(--header) * -1); padding-top: var(--header); background: #000; color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; filter: brightness(.38) contrast(1.15); transform: scale(1.04); transition: transform 8s ease-out; }
.hero-bg.ld { transform: scale(1); }
.hero-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.4) 45%, rgba(0,0,0,.1)); }
.hero-ol { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.35), transparent 60%); }
.hero-sl { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px); pointer-events: none; }
.hero-ct { position: relative; z-index: 2; padding-bottom: 80px; width: 100%; }
.hero-ey { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero-eyl { width: 32px; height: 1px; background: var(--dark-acc); }
.hero h1 { font-size: clamp(44px,7.5vw,88px); font-weight: 700; line-height: 1; letter-spacing: -.03em; max-width: 820px; margin-bottom: 24px; color: #fff; }
.hero-sub { font-size: clamp(16px,2vw,19px); color: var(--dark-t1); max-width: 480px; line-height: 1.55; margin-bottom: 40px; }
.hero-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .bp { background: #fff; color: #000; }
.hero .bg { color: #fff; border-color: rgba(255,255,255,.28); }
.hero .bg:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.45); }
.hero .mono { color: var(--dark-t2); }
.hero-data { position: absolute; top: calc(var(--header) + 32px); right: 48px; z-index: 2; display: flex; flex-direction: column; gap: 6px; text-align: right; }
.hero-data div { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.35); letter-spacing: .08em; }
.hero-data span { color: rgba(255,255,255,.6); }
.hero-scroll { position: absolute; right: 48px; bottom: 80px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll-l { width: 1px; height: 48px; background: linear-gradient(to bottom, transparent, var(--b2)); animation: sd 1.8s ease-in-out infinite; }
@keyframes sd{0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform:scaleY(1);transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}

/* Sub-hero (for subpages) — kept dark for tactical display aesthetic */
.sub-hero { padding: 96px 0 64px; border-bottom: 1px solid var(--b0); position: relative; overflow: hidden; background: #000; color: #fff; }
.sub-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.25) contrast(1.1); }
.sub-hero .ct { position: relative; z-index: 1; }
.sub-hero .breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.sub-hero .breadcrumb a { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-t2); transition: color .2s; }
.sub-hero .breadcrumb a:hover { color: #fff; }
.sub-hero .breadcrumb span { font-family: var(--mono); font-size: 10px; color: var(--dark-t2); }
.sub-hero h1 { font-size: clamp(36px,6vw,64px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 20px; color: #fff; }
.sub-hero .sub-desc { font-size: 17px; color: var(--dark-t1); max-width: 520px; line-height: 1.6; }

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.bp { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 28px; background: var(--t0); color: var(--bg); font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; transition: opacity .2s; }
.bp:hover { opacity: .8; }
.bg { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 28px; background: 0; color: var(--t0); font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--b2); transition: background .2s, border-color .2s; }
.bg:hover { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.35); }

/* ═══════════════════════════════════════════
   TICKER
   ═══════════════════════════════════════════ */
.tk { border-top: 1px solid var(--b0); border-bottom: 1px solid var(--b0); overflow: hidden; padding: 14px 0; white-space: nowrap; }
.tk-in { display: inline-flex; animation: tk 32s linear infinite; }
.tk-it { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--t2); text-transform: uppercase; padding: 0 48px; }
.tk-it span { color: var(--acc); margin-right: 8px; }
@keyframes tk{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.sec { padding: 120px 0; border-top: 1px solid var(--b0); }
.si { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--t2); text-transform: uppercase; margin-bottom: 20px; }
.sh { font-size: clamp(32px,4.5vw,52px); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; max-width: 640px; margin-bottom: 20px; }
.ss { font-size: 17px; color: var(--t1); max-width: 460px; line-height: 1.6; }

/* ═══════════════════════════════════════════
   STATUS PILLS
   ═══════════════════════════════════════════ */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid; }
.pill-active { color: var(--green); border-color: rgba(22,128,60,.3); background: rgba(22,128,60,.08); }
.pill-pilot { color: var(--amber); border-color: rgba(194,122,6,.3); background: rgba(194,122,6,.08); }
.pill-dev { color: var(--cyan); border-color: rgba(8,120,164,.3); background: rgba(8,120,164,.08); }
.pill-road { color: var(--t2); border-color: var(--b1); background: rgba(0,0,0,.03); }
.pill-dot { width: 5px; height: 5px; border-radius: 50%!important; background: currentColor; }

/* ═══════════════════════════════════════════
   ECOSYSTEM GRID
   ═══════════════════════════════════════════ */
.eco { padding: 128px 0; border-top: 1px solid var(--b0); position: relative; overflow: hidden; }
.eco-bg { position: absolute; inset: 0; background: url(assets/network-abstract.png) center/cover; opacity: .04; }
.eco-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; margin-top: 64px; border: 1px solid var(--b0); }
@media(max-width:900px) { .eco-grid { grid-template-columns: 1fr; } }
.eco-card { padding: 40px 32px; border-right: 1px solid var(--b0); border-bottom: 1px solid var(--b0); transition: background .3s; position: relative; cursor: pointer; display: block; color: var(--t0); }
.eco-card:hover { background: var(--bg1); }
.eco-card:nth-child(3n) { border-right: none; }
@media(max-width:900px) { .eco-card { border-right: none; } }
.eco-num { font-family: var(--mono); font-size: 10px; color: var(--t2); letter-spacing: .12em; display: block; margin-bottom: 16px; }
.eco-icon { width: 40px; height: 40px; margin-bottom: 20px; opacity: .7; }
.eco-h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eco-desc { font-size: 13px; color: var(--t1); line-height: 1.65; margin-top: 12px; }
.eco-arr { font-family: var(--mono); font-size: 10px; color: var(--t2); margin-top: 20px; letter-spacing: .1em; transition: color .2s; }
.eco-card:hover .eco-arr { color: var(--acc); }
.eco-acc { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--acc); transition: width .4s var(--ease); }
.eco-card:hover .eco-acc { width: 100%; }

/* ═══════════════════════════════════════════
   PRODUCT SECTIONS (alternating layout)
   ═══════════════════════════════════════════ */
.prod { padding: 0; border-top: 1px solid var(--b0); }
.prod-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 560px; }
@media(max-width:900px) { .prod-inner { grid-template-columns: 1fr; } }
.prod-img { position: relative; overflow: hidden; border: 1px solid var(--b0); }
.prod-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) contrast(1.1); transition: transform .6s var(--ease), filter .4s; }
.prod-img:hover img { transform: scale(1.03); filter: brightness(.82) contrast(1.1); }
.prod-lbl { position: absolute; bottom: 16px; left: 16px; font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,.7); letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.2); padding: 4px 8px; background: rgba(0,0,0,.65); }
.prod-ct { padding: 56px 48px; border: 1px solid var(--b0); display: flex; flex-direction: column; justify-content: center; }
@media(max-width:900px) { .prod-ct { padding: 40px 24px; } }
.prod-ct .si { margin-bottom: 12px; }
.prod-ct h3 { font-size: clamp(28px,3.5vw,40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 16px; }
.prod-ct .ss { margin-bottom: 24px; }
.prod-list { list-style: none; margin-top: 8px; }
.prod-list li { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--b0); font-size: 13px; color: var(--t1); line-height: 1.6; }
.prod-list li:last-child { border-bottom: none; }
.prod-list-n { font-family: var(--mono); font-size: 10px; color: var(--t2); flex-shrink: 0; margin-top: 2px; }
.prod.rev .prod-inner { direction: rtl; }
.prod.rev .prod-inner > * { direction: ltr; }

/* ═══════════════════════════════════════════
   FEATURES GRID (for subpages)
   ═══════════════════════════════════════════ */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--b0); }
@media(max-width:768px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card { padding: 40px; border-right: 1px solid var(--b0); border-bottom: 1px solid var(--b0); transition: background .3s; }
.feat-card:nth-child(2n) { border-right: none; }
@media(max-width:768px) { .feat-card { border-right: none; } }
.feat-card:hover { background: var(--bg1); }
.feat-h { font-size: 16px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.feat-h::before { content: ''; width: 3px; height: 3px; background: var(--acc); border-radius: 50%!important; flex-shrink: 0; }
.feat-b { font-size: 14px; color: var(--t1); line-height: 1.7; }

/* ═══════════════════════════════════════════
   SPECS TABLE (for subpages)
   ═══════════════════════════════════════════ */
.specs { margin-top: 64px; }
.specs-row { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--b0); }
@media(max-width:600px) { .specs-row { grid-template-columns: 1fr; } }
.specs-key { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--t2); padding: 16px 0; }
.specs-val { font-size: 14px; color: var(--t1); padding: 16px 0; line-height: 1.6; }

/* ═══════════════════════════════════════════
   FORCES
   ═══════════════════════════════════════════ */
.forces-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; margin-top: 64px; border: 1px solid var(--b0); }
@media(max-width:768px) { .forces-grid { grid-template-columns: 1fr; } }
.force-card { padding: 48px 32px; border-right: 1px solid var(--b0); transition: background .3s; position: relative; }
.force-card:last-child { border-right: none; }
@media(max-width:768px) { .force-card { border-right: none; border-bottom: 1px solid var(--b0); } .force-card:last-child { border-bottom: none; } }
.force-card:hover { background: var(--bg1); }
.force-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--b1); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--t1); margin-bottom: 24px; }
.force-badge-dot { width: 6px; height: 6px; border-radius: 50%!important; }
.force-h4 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.force-desc { font-size: 13px; color: var(--t1); line-height: 1.65; }
.force-cap { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--b0); display: flex; flex-direction: column; gap: 8px; }
.force-cap span { font-size: 12px; color: var(--t2); display: flex; align-items: center; gap: 8px; }
.force-cap span::before { content: ''; width: 4px; height: 1px; background: var(--acc); flex-shrink: 0; }

/* ═══════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════ */
.stats { padding: 96px 0; border-top: 1px solid var(--b0); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
@media(max-width:768px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
.st-it { padding: 48px 32px; border-right: 1px solid var(--b0); }
.st-it:last-child { border-right: none; }
@media(max-width:768px) { .st-it { border-bottom: 1px solid var(--b0); } .st-it:nth-child(2) { border-right: none; } .st-it:nth-child(3) { border-right: 1px solid var(--b0); } }
.st-n { font-size: clamp(36px,5vw,56px); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.st-n sup { font-size: .45em; color: var(--acc); vertical-align: super; }
.st-l { font-size: 12px; color: var(--t2); line-height: 1.5; text-transform: uppercase; letter-spacing: .06em; }

/* ═══════════════════════════════════════════
   STATEMENT
   ═══════════════════════════════════════════ */
.stmt { padding: 128px 0; border-top: 1px solid var(--b0); border-bottom: 1px solid var(--b0); background: var(--bg1); }
.stmt p { font-size: clamp(22px,3.5vw,44px); font-weight: 400; line-height: 1.25; letter-spacing: -.02em; color: var(--t1); max-width: 900px; }
.stmt strong { color: var(--t0); font-weight: 700; }

/* ═══════════════════════════════════════════
   SOVEREIGNTY
   ═══════════════════════════════════════════ */
.sov { padding: 128px 0; border-top: 1px solid var(--b0); position: relative; overflow: hidden; }
.sov-bg { position: absolute; inset: 0; background: url(assets/network-abstract.png) center/cover; opacity: .05; }
.sov-ct { position: relative; z-index: 1; }
.sov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 64px; border: 1px solid var(--b0); }
@media(max-width:768px) { .sov-grid { grid-template-columns: 1fr; } }
.sov-it { padding: 40px; border-right: 1px solid var(--b0); border-bottom: 1px solid var(--b0); }
.sov-it:nth-child(even) { border-right: none; }
@media(max-width:768px) { .sov-it { border-right: none; } }
.sov-h { font-size: 16px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.sov-h::before { content: ''; width: 3px; height: 3px; background: var(--acc); border-radius: 50%!important; flex-shrink: 0; }
.sov-b { font-size: 14px; color: var(--t1); line-height: 1.7; }

/* ═══════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════ */
.cta-s { padding: 128px 0; border-top: 1px solid var(--b0); text-align: center; background: var(--bg1); }
.cta-s h2 { font-size: clamp(36px,6vw,72px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 24px; }
.cta-s p { font-size: 17px; color: var(--t1); max-width: 420px; margin: 0 auto 40px; line-height: 1.6; }
.cta-acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════
   FOOTER — Kept dark for visual closure
   ═══════════════════════════════════════════ */
footer { border-top: 1px solid var(--b0); padding: 64px 0 40px; background: #0a0a0a; color: #fff; }
.ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
@media(max-width:768px) { .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.ft-brand p { font-size: 13px; color: var(--dark-t2); line-height: 1.65; margin-top: 16px; }
.ft-logo { font-size: 18px; font-weight: 700; letter-spacing: .15em; color: #fff; }
.ft-ct { font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--dark-t2); margin-bottom: 20px; }
.ft-links { list-style: none; }
.ft-links li { margin-bottom: 10px; }
.ft-links a { font-size: 13px; color: var(--dark-t1); transition: color .2s; }
.ft-links a:hover { color: #fff; }
.ft-bot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--dark-b0); margin-top: 48px; padding-top: 24px; flex-wrap: wrap; gap: 12px; }
.ft-bot p { font-family: var(--mono); font-size: 10px; color: var(--dark-t2); letter-spacing: .08em; }

/* ═══════════════════════════════════════════
   FULL-BLEED IMAGE SECTION (subpages)
   ═══════════════════════════════════════════ */
.full-img { position: relative; border-top: 1px solid var(--b0); overflow: hidden; }
.full-img img { width: 100%; max-height: 560px; object-fit: cover; filter: brightness(.65) contrast(1.1); }
.full-img-lbl { position: absolute; bottom: 20px; left: 20px; font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,.7); letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.2); padding: 4px 8px; background: rgba(0,0,0,.65); }

/* ═══════════════════════════════════════════
   NEXT MODULE NAV (subpages)
   ═══════════════════════════════════════════ */
.next-mod { padding: 80px 0; border-top: 1px solid var(--b0); display: flex; align-items: center; justify-content: space-between; }
@media(max-width:600px) { .next-mod { flex-direction: column; gap: 24px; text-align: center; } }
.next-mod .mono { margin-bottom: 8px; }
.next-mod h3 { font-size: clamp(24px,3vw,36px); font-weight: 700; letter-spacing: -.02em; transition: color .2s; }
.next-mod:hover h3 { color: var(--acc); }
.next-arr { font-size: 36px; font-weight: 300; color: var(--t2); transition: color .2s, transform .3s; }
.next-mod:hover .next-arr { color: var(--t0); transform: translateX(8px); }

/* ═══════════════════════════════════════════
   ANIMATED CANVAS OVERLAYS
   ═══════════════════════════════════════════ */

/* Hero cinematic canvas — full background */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* Suppress the now-empty hero-bg image div */
.hero-bg { background-image: none !important; }


/* Eco section hexagon canvas */
#eco-hex-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

/* Data stream canvas (stats section) */
#stats-stream-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* Sovereignty section particle canvas */
#sov-particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* Neural network canvas for ai.html sub-hero */
#ai-neural-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════
   DATABASE CYLINDER DECORATIVE ELEMENTS
   ═══════════════════════════════════════════ */
.db-cylinder {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.db-cylinder-body {
  width: 48px;
  height: 64px;
  background: linear-gradient(to right, rgba(200,168,75,0.06), rgba(200,168,75,0.12), rgba(200,168,75,0.06));
  border-left: 1px solid rgba(200,168,75,0.2);
  border-right: 1px solid rgba(200,168,75,0.2);
  position: relative;
  animation: db-pulse 3s ease-in-out infinite;
}

.db-cylinder-top,
.db-cylinder-bottom {
  width: 48px;
  height: 12px;
  background: transparent;
  border: 1px solid rgba(200,168,75,0.25);
  border-radius: 50% !important;
  position: relative;
}

.db-cylinder-top {
  animation: db-glow 3s ease-in-out infinite;
}

.db-cylinder-body::before,
.db-cylinder-body::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(200,168,75,0.12);
}

.db-cylinder-body::before { top: 25%; }
.db-cylinder-body::after  { top: 65%; }

@keyframes db-pulse {
  0%, 100% { opacity: 0.5; box-shadow: none; }
  50% { opacity: 1; box-shadow: 0 0 20px rgba(200,168,75,0.08), inset 0 0 12px rgba(200,168,75,0.04); }
}

@keyframes db-glow {
  0%, 100% { border-color: rgba(200,168,75,0.15); box-shadow: none; }
  50% { border-color: rgba(200,168,75,0.45); box-shadow: 0 0 12px rgba(200,168,75,0.2); }
}

/* Staggered cylinder decoration group */
.db-cluster {
  position: absolute;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  z-index: 0;
}

.db-cluster .db-cylinder:nth-child(2) .db-cylinder-body { height: 48px; animation-delay: .6s; }
.db-cluster .db-cylinder:nth-child(2) .db-cylinder-top  { animation-delay: .6s; }
.db-cluster .db-cylinder:nth-child(3) .db-cylinder-body { height: 80px; animation-delay: 1.2s; }
.db-cluster .db-cylinder:nth-child(3) .db-cylinder-top  { animation-delay: 1.2s; }
.db-cluster .db-cylinder:nth-child(4) .db-cylinder-body { height: 36px; animation-delay: 1.8s; }
.db-cluster .db-cylinder:nth-child(4) .db-cylinder-top  { animation-delay: 1.8s; }

/* ═══════════════════════════════════════════
   STATS SECTION — positioned for canvas
   ═══════════════════════════════════════════ */
.stats { position: relative; overflow: hidden; }

/* ═══════════════════════════════════════════
   AI.HTML — SUB-HERO NEURAL OVERLAY CONTAINER
   ═══════════════════════════════════════════ */
.sub-hero { isolation: isolate; }

/* Pills inside dark contexts (sub-hero, hero) use bright colors */
.sub-hero .pill-active { color: var(--dark-green); border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.06); }
.sub-hero .pill-pilot { color: var(--dark-amber); border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.06); }
.sub-hero .pill-dev { color: var(--dark-cyan); border-color: rgba(6,182,212,.3); background: rgba(6,182,212,.06); }
.sub-hero .pill-road { color: var(--dark-t2); border-color: var(--dark-b1); background: rgba(255,255,255,.02); }

/* Ticker - dark background strip */
.tk { background: #0a0a0a; color: #fff; }
.tk .tk-it { color: var(--dark-t2); }
.tk .tk-it span { color: var(--dark-acc); }

/* Hero scroll indicator - dark context */
.hero-scroll-l { background: linear-gradient(to bottom, transparent, var(--dark-b2)); }

/* ═══════════════════════════════════════════
   REDUCED MOTION — disable all animations
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  #hero-canvas,
  #eco-hex-canvas,
  #stats-stream-canvas,
  #sov-particle-canvas,
  #ai-neural-canvas,
  #radar-hero-canvas { display: none; }

  .db-cylinder-body,
  .db-cylinder-top { animation: none; }
}

/* ═══════════════════════════════════════════
   ACTIVOS DEL TEATRO — Task 1
   ═══════════════════════════════════════════ */
.activos-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  margin-top: 64px;
  border: 1px solid var(--b0);
}
.activos-col {
  padding: 48px 32px;
  border-right: 1px solid var(--b0);
}
.activos-col:last-child { border-right: none; }
.blueprint-svg {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 24px;
  display: block;
}
.activos-col-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--b0);
}
.activos-force-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--b1);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t1);
  margin-bottom: 12px;
}
.activos-force-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%!important;
}
.activos-force-h { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.activos-caps { list-style: none; margin-top: 16px; }
.activos-caps li {
  font-size: 12px;
  color: var(--t2);
  padding: 8px 0;
  border-bottom: 1px solid var(--b0);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.activos-caps li:last-child { border-bottom: none; }
.activos-caps li::before {
  content: '';
  width: 4px;
  height: 1px;
  background: var(--acc);
  flex-shrink: 0;
  margin-top: 8px;
}
.blueprint-divider {
  border: none;
  border-top: 1px solid var(--b0);
  margin: 32px 0;
}

/* ── 3D Blueprint Rotating Models ─────────── */
.model3d-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 24px 0 20px;
  overflow: hidden;
  background: #010d18;
  border: 1px solid rgba(200,168,75,0.18);
}
.model3d-wrap--navy  { border-color: rgba(6,182,212,0.18); }
.model3d-wrap--fac   { border-color: rgba(200,168,75,0.18); }
.model3d-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
/* Corner bracket decorations */
.model3d-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.c-tl { top: 7px; left: 7px;  border-top: 1px solid rgba(200,168,75,.55); border-left:  1px solid rgba(200,168,75,.55); }
.c-tr { top: 7px; right: 7px; border-top: 1px solid rgba(200,168,75,.55); border-right: 1px solid rgba(200,168,75,.55); }
.c-bl { bottom: 7px; left: 7px;  border-bottom: 1px solid rgba(200,168,75,.55); border-left:  1px solid rgba(200,168,75,.55); }
.c-br { bottom: 7px; right: 7px; border-bottom: 1px solid rgba(200,168,75,.55); border-right: 1px solid rgba(200,168,75,.55); }
.model3d-wrap--navy .model3d-corner { border-color: rgba(6,182,212,.55) !important; }
/* Label overlay */
.model3d-tag {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px;
  letter-spacing: .1em;
  color: rgba(200,168,75,.6);
  pointer-events: none;
}
.model3d-wrap--navy .model3d-tag { color: rgba(6,182,212,.6); }
/* Live badge */
.model3d-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px;
  letter-spacing: .08em;
  color: rgba(34,197,94,.75);
  pointer-events: none;
}
.model3d-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(34,197,94);
  animation: m3d-pulse 2.2s ease-in-out infinite;
}
@keyframes m3d-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .3; transform: scale(.8); }
}

/* ── Tactical map strip ───────────────────── */
.tac-map-strip {
  position: relative;
  margin-top: 64px;
  border: 1px solid rgba(200,168,75,.15);
  overflow: hidden;
  background: #02040a;
  color: #fff;
}
.tac-map-strip .map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(200,168,75,.1);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tac-map-strip .map-header-title { color: var(--dark-acc); }
.tac-map-strip .map-header-right { color: var(--dark-t2); font-size: 9px; }
.tac-map-strip .map-body { position: relative; width: 100%; }
.tac-map-strip .map-body svg { display: block; width: 100%; height: auto; }
.tac-map-strip .map-statusbar {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dark-t2);
  padding: 10px 20px;
  border-top: 1px solid rgba(200,168,75,.1);
  letter-spacing: .1em;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ── Blip pulse animations ─────────────────── */
@keyframes blip-pulse {
  0%   { r: 4;  opacity: .9; }
  50%  { r: 12; opacity: .2; }
  100% { r: 4;  opacity: 0;  }
}
@keyframes blip-ring {
  0%   { r: 8;  opacity: .6; }
  100% { r: 24; opacity: 0;  }
}

/* ═══════════════════════════════════════════
   RADAR.HTML — Tactical Map Display (Task 2b)
   ═══════════════════════════════════════════ */
/* Tactical map display — preserved dark for CRT-style military display */
.tac-map-display {
  position: relative;
  width: 100%;
  margin-top: 64px;
  border: 1px solid rgba(6,182,212,.15);
  background: #03050a;
  overflow: hidden;
  color: #fff;
}
.tac-map-display .tac-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(6,182,212,.1);
  font-family: var(--mono);
  font-size: 10px;
}
.tac-top-bar-title { color: var(--dark-cyan); letter-spacing: .15em; }
.tac-top-bar-pills { display: flex; gap: 16px; align-items: center; }
.tac-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 8px;
  border: 1px solid;
}
.tac-pill-live   { color: var(--dark-green);  border-color: rgba(34,197,94,.3);  background: rgba(34,197,94,.06);  }
.tac-pill-assets { color: var(--dark-cyan);   border-color: rgba(6,182,212,.3);  background: rgba(6,182,212,.06);  }
.tac-pill-cop    { color: var(--dark-acc);    border-color: rgba(200,168,75,.3); background: rgba(200,168,75,.06); }
.tac-pill-dot    { width: 5px; height: 5px; border-radius: 50%!important; background: currentColor; animation: pulse 2s ease infinite; }
.tac-top-bar-clock { font-family: var(--mono); font-size: 10px; color: var(--dark-acc); min-width: 90px; text-align: right; }
.tac-map-body { display: grid; grid-template-columns: 1fr 260px; border-top: none; }
@media(max-width:900px) { .tac-map-body { grid-template-columns: 1fr; } }
.tac-map-svg-wrap { position: relative; background: #02040a; border-right: 1px solid rgba(6,182,212,.1); overflow: hidden; }
.tac-map-svg-wrap svg { display: block; width: 100%; height: auto; }
.arch-flow { width: 100%; border: 1px solid rgba(6,182,212,.08); border-radius: 2px; overflow: hidden; }
.arch-flow svg { display: block; width: 100%; height: auto; }
.tac-map-img { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.tac-map-overlay { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 12px; }
.tac-map-ol-label { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: rgba(6,182,212,.55); }
.tac-map-ol-class { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: rgba(200,168,75,.55); }
.tac-telemetry {
  background: #02040a;
  padding: 0;
  overflow-y: auto;
  max-height: 480px;
  color: #fff;
}
.tac-tele-header {
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dark-t2);
  padding: 10px 14px; border-bottom: 1px solid rgba(6,182,212,.1);
}
.tac-tele-unit {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .2s;
}
.tac-tele-unit:hover { background: rgba(6,182,212,.04); }
.tac-tele-name { font-size: 12px; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.tac-tele-type { font-family: var(--mono); font-size: 9px; color: var(--dark-t2); letter-spacing: .1em; margin-bottom: 8px; }
.tac-tele-bars { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.tac-bar-row { display: flex; align-items: center; gap: 6px; }
.tac-bar-lbl { font-family: var(--mono); font-size: 8px; color: var(--dark-t2); width: 28px; flex-shrink: 0; }
.tac-bar-track { flex: 1; height: 3px; background: rgba(255,255,255,.06); position: relative; }
.tac-bar-fill  { height: 100%; transition: width .4s; }
.tac-tele-coord { font-family: var(--mono); font-size: 8px; color: var(--dark-t2); letter-spacing: .08em; }
.tac-tele-status-dot, .tac-status-dot { width: 6px; height: 6px; border-radius: 50%!important; display: inline-block; }
.tac-status-op  { background: var(--dark-green); animation: pulse 2s ease infinite; }
.tac-status-alr { background: var(--dark-amber); animation: pulse 1.2s ease infinite; }
.tac-bottom-bar {
  display: flex; align-items: center;
  padding: 8px 16px; gap: 12px;
  border-top: 1px solid rgba(6,182,212,.1);
  font-family: var(--mono); font-size: 9px; color: var(--dark-t2);
  letter-spacing: .1em; overflow: hidden;
  background: rgba(6,182,212,.03);
}
.tac-ticker-wrap { overflow: hidden; flex: 1; white-space: nowrap; }
.tac-ticker-in { display: inline-block; animation: tk 28s linear infinite; }

/* Pulsing hot unit animation */
@keyframes hot-unit-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

/* ═══════════════════════════════════════════
   RADAR.HTML — Units Tracked Grid (Task 2c)
   ═══════════════════════════════════════════ */
.units-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  margin-top: 64px;
  border: 1px solid var(--b0);
}
.unit-card {
  padding: 40px 32px;
  border-right: 1px solid var(--b0);
  border-bottom: 1px solid var(--b0);
  transition: background .3s;
}
.unit-card:nth-child(3n) { border-right: none; }
.unit-card:hover { background: var(--bg2); }
.unit-count {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--acc);
  margin-bottom: 4px;
}
.unit-card-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.unit-card-metric { font-family: var(--mono); font-size: 10px; color: var(--cyan); letter-spacing: .1em; margin-top: 8px; }

/* Radar hero canvas */
#radar-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ── Responsive overrides ─────────────────── */
@media (max-width: 900px) {
  .activos-grid { grid-template-columns: 1fr; }
  .activos-col { border-right: none; border-bottom: 1px solid var(--b0); }
  .activos-col:last-child { border-bottom: none; }
  .units-grid { grid-template-columns: 1fr; }
  .unit-card { border-right: none; }
  .tac-map-display { max-height: none; }
  .showcase-grid { grid-template-columns: 1fr; }
}

/* Showcase grid */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.showcase-grid > div {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.showcase-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.showcase-grid > div:hover img {
  transform: scale(1.03);
}
