/* UAV Operations Systems — Tactical Precision Identity
   Navy (#0B1D3A) · Red (#C41E3A) · White
   Barlow Condensed + Outfit                           */

/* ───────────────────── Variables ───────────────────── */
:root {
  --navy:        #0B1D3A;
  --navy-mid:    #122B52;
  --navy-light:  #1B3A6B;
  --navy-pale:   #E8ECF2;
  --red:         #C41E3A;
  --red-dark:    #9B1830;
  --red-light:   #E8344F;
  --white:       #FFFFFF;
  --off-white:   #F4F5F7;
  --slate:       #94A3B8;
  --slate-dark:  #64748B;
  --text:        #1E293B;
  --text-light:  #475569;
  --border:      #CBD5E1;

  --font-display:'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:   'Outfit', 'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  --header-h:    80px;
  --max-w:       1240px;
  --ease:        cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

/* ───────────────────── Layout ─────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ───────────────────── Header ─────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 3px solid var(--red);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}
.logo-img {
  height: 56px;
  width: auto;
}

/* Nav */
.nav { display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-dark);
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--navy); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.25s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ───────────────────── Hero ───────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: var(--navy);
  overflow: hidden;
}

/* Grid-line texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
}

/* Diagonal red slash accent */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 45%;
  height: 140%;
  background: linear-gradient(165deg, var(--red) 0%, transparent 50%);
  opacity: 0.08;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 4rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.6rem;
  background: rgba(196, 30, 58, 0.15);
  border: 1px solid rgba(196, 30, 58, 0.3);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 2rem;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--red); }

.hero-sub {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--slate);
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ───────────────────── Sub-page hero ─────────────── */
.hero-sub-page {
  min-height: 50vh;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 4rem;
}
.hero-sub-page h1 {
  margin-bottom: 1rem;
}
.hero-sub-page .hero-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--slate);
  max-width: 600px;
}

/* ───────────────────── Buttons ────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11, 29, 58, 0.35);
}

/* ───────────────────── Sections ───────────────────── */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--white); }
.section-dark p { color: var(--slate); }

.section-alt {
  background: var(--off-white);
}

.section-navy-light {
  background: var(--navy-mid);
  color: var(--white);
}

/* Section label (red uppercase) */
.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--red);
}

/* ───────────────────── Typography ─────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-light);
  max-width: 680px;
}

/* ───────────────────── Grid ───────────────────────── */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ───────────────────── Cards ──────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.card:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 30px rgba(11, 29, 58, 0.1);
  transform: translateY(-3px);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 30, 58, 0.08);
  color: var(--red);
  margin-bottom: 1.5rem;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.card p {
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.75;
}

/* ───────────────────── Crew cards (AI Members) ───── */
.crew-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2rem;
  transition: all 0.3s var(--ease);
  position: relative;
}
.crew-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.crew-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(196, 30, 58, 0.3);
  transform: translateX(4px);
}
.crew-card:hover::before { transform: scaleY(1); }

.crew-card-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 0.25rem;
}
.crew-card h4 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}
.crew-card p {
  font-size: 0.9375rem;
  color: var(--slate);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ───────────────────── Product cards ─────────────── */
.product-card {
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  background: var(--white);
}
.product-card:hover {
  box-shadow: 0 12px 40px rgba(11, 29, 58, 0.12);
  transform: translateY(-4px);
}

.product-card-header {
  padding: 2.5rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.product-card-header::after {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 60%; height: 180%;
  background: linear-gradient(165deg, var(--red) 0%, transparent 45%);
  opacity: 0.1;
}
.product-card-header h3 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.product-card-header .tagline {
  color: var(--slate);
  font-size: 0.9375rem;
  position: relative;
  z-index: 1;
}

.product-card-body {
  padding: 2.5rem;
}
.product-card-body p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.product-card-body ul {
  margin-bottom: 2rem;
}
.product-card-body li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--text);
  line-height: 1.7;
}
.product-card-body li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 2px;
  background: var(--red);
}

.product-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.product-link:hover {
  gap: 0.75rem;
  color: var(--red-dark);
}
.product-link .arrow { transition: transform 0.25s var(--ease); }
.product-link:hover .arrow { transform: translateX(2px); }

/* ───────────────────── Stats bar ─────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 4rem 0;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-value .red { color: var(--red); }
.stat-label {
  font-size: 0.875rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
  font-weight: 500;
}

/* ───────────────────── Big quote / callout ────────── */
.callout {
  position: relative;
  padding: 4rem 0;
}
.callout-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
  max-width: 800px;
}
.callout-text .accent { color: var(--red); }

/* ───────────────────── Divider line ──────────────── */
.divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 2rem 0;
}
.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* ───────────────────── Feature rows ─────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 4rem 0;
}
.feature-row + .feature-row {
  border-top: 1px solid var(--border);
}
.feature-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--navy-pale);
  line-height: 1;
  margin-bottom: 1rem;
}
.feature-row h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.feature-row p {
  font-size: 1.0625rem;
  line-height: 1.85;
}

/* ───────────────────── Footer ─────────────────────── */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--red);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { max-width: 320px; }
.footer-logo {
  display: block;
  margin-bottom: 1.25rem;
}
.footer-logo img {
  height: 56px;
  width: auto;
}
.footer-brand p {
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-nav-group { display: flex; gap: 4rem; }

.footer-nav h5 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1rem;
}
.footer-nav a {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.8125rem;
  color: var(--slate-dark);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  color: var(--slate-dark);
  transition: color 0.2s var(--ease);
}
.footer-legal a:hover { color: var(--white); }
.site-version {
  color: var(--slate-dark);
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ───────────────────── Scroll animations ─────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ───────────────────── Responsive ─────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 0.5rem 2rem 1.5rem;
    gap: 0;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-top: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }
  .nav-link {
    font-size: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; }
  .nav-toggle { display: flex; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 3rem) 0 3rem;
  }
  .hero-sub-page {
    min-height: auto;
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 3rem;
  }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .section { padding: 4rem 0; }

  .footer-nav-group { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .stat-value { font-size: 2.5rem; }
  .container { padding: 0 1.25rem; }
}
