/* ═══════════════════════════════════════════════════════════
   TORNEX · Premium Drone Show · 2026
   Clean single-pass CSS — no overrides, no patches.
   navy #020711 · blue #00D4FF · gold #FFD700
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --c-bg:       #020711;
  --c-bg2:      #060f1e;
  --c-blue:     #00D4FF;
  --c-blue-dim: rgba(0,212,255,.1);
  --c-gold:     #FFD700;
  --c-white:    #ffffff;
  --c-muted:    rgba(255,255,255,.52);
  --c-border:   rgba(0,212,255,.14);
  --c-glass:    rgba(255,255,255,.028);
  --c-hover:    rgba(0,212,255,.06);
  --glow-blue:  0 0 40px rgba(0,212,255,.28);
  --glow-gold:  0 0 40px rgba(255,215,0,.22);
  --f-ar:       'Cairo', sans-serif;
  --f-en:       'Space Grotesk', sans-serif;
  --r:          .75rem;
  --r2:         1.25rem;
  --shell:      1200px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--c-bg);
  color: var(--c-white);
  font-family: var(--f-ar);
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
li {
  position: relative;
  padding-right: 1.2em;
  color: var(--c-muted);
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: .35rem;
}
li::before {
  content: '◈';
  position: absolute;
  right: 0;
  top: .38em;
  color: var(--c-blue);
  font-size: .58em;
}
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ══════════════════════ NAV ══════════════════════ */
.nav {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 100;
  padding: 0 2rem;
  transition: background .35s, backdrop-filter .35s, box-shadow .35s;
}
.nav.scrolled {
  background: rgba(2,7,17,.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--c-border);
}
.nav-inner {
  max-width: var(--shell);
  margin: 0 auto;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--f-en);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: .08em;
}
.t-accent { color: var(--c-blue); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: .875rem;
  color: var(--c-muted);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -.2rem; right: 0; left: 0;
  height: 1px;
  background: var(--c-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s;
}
.nav-links a:hover { color: var(--c-white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-white);
  border-radius: 2px;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(2,7,17,.97);
  border-top: 1px solid var(--c-border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--c-border);
  font-size: 1rem;
  color: var(--c-muted);
}
.mobile-nav a:hover { color: var(--c-white); }

/* ══════════════════════ HERO ══════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2,7,17,.65) 0%,
    rgba(2,7,17,.2) 35%,
    rgba(2,7,17,.55) 70%,
    rgba(2,7,17,1) 100%
  );
}
.hero-particles {
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 880px;
  padding: 6rem 2rem 4rem;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  font-size: .78rem;
  color: var(--c-blue);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.eyebrow-line {
  flex: 1;
  max-width: 70px;
  height: 1px;
  background: var(--c-blue);
  opacity: .4;
}
.hero-h1 {
  font-size: clamp(3rem, 8.5vw, 6.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 40px rgba(0,0,0,.6);
}
.h1-line { display: block; }
.h1-glow {
  background: linear-gradient(100deg, var(--c-blue) 0%, var(--c-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0,212,255,.4));
}
.hero-sub {
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,.72);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.9;
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.btn-primary {
  background: var(--c-blue);
  color: var(--c-bg);
  padding: .875rem 2.25rem;
  border-radius: var(--r);
  font-weight: 700;
  font-size: .95rem;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.btn-primary:hover {
  background: #1ee0ff;
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}
.btn-ghost {
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.85);
  padding: .875rem 2.25rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: .95rem;
  backdrop-filter: blur(8px);
  transition: border-color .25s, color .25s, transform .25s;
}
.btn-ghost:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
  transform: translateY(-2px);
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hstat { text-align: center; }
.hstat strong {
  display: block;
  font-family: var(--f-en);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--c-blue);
  line-height: 1.1;
}
.hstat span { font-size: .75rem; color: var(--c-muted); }
.hstat-div { width: 1px; height: 2.5rem; background: rgba(255,255,255,.12); }
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-blue);
  animation: scrollPulse 2s infinite;
  margin: 0 auto;
}

/* ══════════════════════ MARQUEE ══════════════════════ */
.marquee-strip {
  overflow: hidden;
  background: var(--c-blue-dim);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: .875rem 0;
}
.marquee-inner {
  display: flex;
  gap: 2rem;
  width: max-content;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}
.marquee-inner span { font-size: .875rem; color: var(--c-muted); }
.mx { color: var(--c-blue); }

/* ══════════════════════ SECTIONS ══════════════════════ */
.section { padding: 6rem 0; }
.section-alt { background: var(--c-bg2); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.kicker {
  font-family: var(--f-en);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: .75rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: .85rem;
}
.section-head p { font-size: 1rem; color: var(--c-muted); line-height: 1.8; }

/* ── Architecture ── */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.arch-card {
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r2);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  transition: border-color .3s, transform .3s, box-shadow .3s, background .3s;
}
.arch-card:hover {
  border-color: rgba(0,212,255,.45);
  transform: translateY(-3px);
  box-shadow: var(--glow-blue);
  background: var(--c-hover);
}
.arch-icon { font-size: 2.25rem; display: block; margin-bottom: 1rem; }
.arch-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
.arch-card p { font-size: .88rem; color: var(--c-muted); line-height: 1.75; margin-bottom: 1.25rem; }
.arch-tag {
  font-family: var(--f-en);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-blue);
  opacity: .65;
}

/* ── Team ── */
.team-tier { margin-bottom: 2.25rem; }
.tier-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: .85rem;
  padding-right: .6rem;
  border-right: 2px solid var(--c-blue);
}
.role-grid {
  display: grid;
  gap: 1rem;
}
.role-grid-4 { grid-template-columns: repeat(4, 1fr); }
.role-card {
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color .25s, background .25s;
}
.role-card:hover { border-color: rgba(0,212,255,.38); background: var(--c-hover); }
.role-primary { border-color: rgba(0,212,255,.28); background: rgba(0,212,255,.04); }
.role-safety { border-color: rgba(255,80,80,.22); }
.role-badge {
  display: inline-block;
  font-family: var(--f-en);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--c-blue);
  color: var(--c-bg);
  padding: .12rem .5rem;
  border-radius: .25rem;
  margin-bottom: .6rem;
}
.role-badge-red  { background: #e54545; }
.role-badge-blue { background: var(--c-blue); color: var(--c-bg); }
.role-badge-sm {
  background: transparent;
  color: var(--c-blue);
  border: 1px solid var(--c-border);
}
.role-sm { padding: .9rem .75rem; }
.role-tech { border-color: rgba(0,212,255,.2); }
.role-card h4 { font-size: .9rem; font-weight: 700; margin-bottom: .25rem; }
.role-en { font-family: var(--f-en); font-size: .62rem; color: var(--c-muted); margin-bottom: .45rem; }
.role-count { font-family: var(--f-en); font-size: .85rem; font-weight: 700; color: var(--c-gold); }

.team-total {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r2);
  background: var(--c-glass);
  max-width: 320px;
  margin: 1.75rem auto 0;
}
.tt-num {
  font-family: var(--f-en);
  font-size: 3.25rem;
  font-weight: 900;
  color: var(--c-blue);
  line-height: 1;
  margin-bottom: .35rem;
}
.tt-lbl { font-size: .875rem; color: var(--c-muted); }

/* ── Scale ── */
.scale-panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 2rem;
}
.scale-panel {
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r2);
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.scale-panel:hover {
  border-color: rgba(0,212,255,.4);
  transform: translateY(-4px);
  box-shadow: var(--glow-blue);
}
.scale-featured { border-color: rgba(255,215,0,.32); }
.scale-featured:hover { border-color: var(--c-gold); box-shadow: var(--glow-gold); }
.swarm-cv { display: block; width: 100%; height: auto; }
.sp-body { padding: 1.25rem 1.35rem 1.5rem; text-align: center; }
.sp-num {
  font-family: var(--f-en);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--c-blue);
  line-height: 1;
  margin-bottom: .15rem;
}
.sp-gold { color: var(--c-gold); }
.sp-unit {
  font-family: var(--f-en);
  font-size: .7rem;
  color: var(--c-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.sp-desc { font-size: .83rem; color: var(--c-muted); line-height: 1.7; margin-bottom: 1rem; }
.sp-tag {
  font-family: var(--f-en);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-blue);
}
.sp-tag-gold { color: var(--c-gold); }

/* ── Equipment ── */
.eq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.eq-card {
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color .25s, transform .25s, background .25s;
}
.eq-card:hover {
  border-color: rgba(0,212,255,.38);
  transform: translateY(-3px);
  background: var(--c-hover);
}
.eq-icon { font-size: 2rem; display: block; margin-bottom: .75rem; }
.eq-card h4 { font-size: .9rem; font-weight: 700; margin-bottom: .45rem; }
.eq-card p { font-size: .8rem; color: var(--c-muted); line-height: 1.65; }

/* ── Budget ── */
.budget-list {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.bud-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .45rem;
}
.bud-lbl { font-size: .9rem; font-weight: 600; }
.bud-val {
  font-family: var(--f-en);
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-muted);
  white-space: nowrap;
}
.bud-track {
  height: 5px;
  background: rgba(255,255,255,.07);
  border-radius: 3px;
  overflow: hidden;
}
.bud-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-blue), var(--c-gold));
  border-radius: 3px;
  transition: width 1.4s cubic-bezier(.22,1,.36,1);
}
.bud-bar.animated { width: calc(var(--pct) * 1%); }
.budget-total {
  text-align: center;
  border: 1px solid rgba(255,215,0,.28);
  border-radius: var(--r2);
  padding: 2.25rem;
  background: rgba(255,215,0,.03);
  max-width: 520px;
  margin: 0 auto;
}
.bt-lbl {
  font-size: .75rem;
  color: var(--c-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.bt-num {
  font-family: var(--f-en);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--c-gold);
  line-height: 1.2;
  margin-bottom: .25rem;
  direction: ltr;
  unicode-bidi: embed;
}
.bt-curr { font-family: var(--f-en); font-size: .75rem; color: var(--c-muted); letter-spacing: .15em; }

/* ── Timeline ── */
.timeline {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tl-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;
}
.tl-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl-num {
  font-family: var(--f-en);
  font-size: 1.35rem;
  font-weight: 900;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tl-num-blue {
  color: var(--c-blue);
  border-color: var(--c-blue);
  background: rgba(0,212,255,.06);
}
.tl-num-gold {
  color: var(--c-gold);
  border-color: var(--c-gold);
  background: rgba(255,215,0,.06);
}
.tl-line {
  flex: 1;
  width: 2px;
  background: var(--c-border);
  margin: .4rem 0;
  min-height: 2.5rem;
}
.tl-line-last { display: none; }
.tl-card {
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r2);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}
.tl-card-gold { border-color: rgba(255,215,0,.28); background: rgba(255,215,0,.03); }
.tl-period { font-size: .75rem; color: var(--c-muted); letter-spacing: .06em; margin-bottom: .5rem; }
.tl-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .85rem; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 3.5rem 2rem;
  text-align: center;
}
.footer-inner { max-width: 520px; margin: 0 auto; }
.footer-logo {
  font-family: var(--f-en);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}
.footer-by { font-size: .875rem; color: var(--c-muted); margin-bottom: .35rem; }
.footer-by a { color: var(--c-blue); transition: color .2s; }
.footer-by a:hover { color: var(--c-white); }
.footer-cr { font-size: .72rem; color: rgba(255,255,255,.22); }

/* ══════════════════════ REVEAL ANIMATIONS ══════════════════════
   Content is ALWAYS visible. Scroll-reveal = bonus animation only.
   When JS fires IntersectionObserver, .in class adds fade-slide-up.
   No visibility gating — broken/slow JS never hides content.
   ══════════════════════════════════════════════════════════════ */
.reveal.in {
  animation: revealUp .7s cubic-bezier(.22,1,.36,1) var(--delay, 0s) both;
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Keyframes ── */
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: .2; transform: translateY(10px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════ RESPONSIVE ══════════════════════ */
@media (max-width: 1100px) {
  .arch-grid { grid-template-columns: repeat(2, 1fr); }
  .eq-grid { grid-template-columns: repeat(3, 1fr); }
  .scale-panels { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .role-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-h1 { font-size: clamp(2.6rem, 11vw, 3.5rem); }
  .hstat-div { display: none; }
  .hero-stats { gap: 1.5rem; }
  .arch-grid { grid-template-columns: 1fr; }
  .eq-grid { grid-template-columns: repeat(2, 1fr); }
  .scale-panels { grid-template-columns: 1fr 1fr; }
  .tl-item { grid-template-columns: 50px 1fr; gap: 1rem; }
  .tl-num { width: 40px; height: 40px; font-size: 1rem; }
  .role-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .hero-cta-row { flex-direction: column; }
  .scale-panels { grid-template-columns: 1fr; }
  .eq-grid { grid-template-columns: 1fr 1fr; }
}
