/* ═══════════════════════════════════════════════════════════════════════════
   DRONE DETECT — Landing Page Styles
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg:       #0a0e1a;
  --bg2:      #0f1424;
  --surface:  #151b2e;
  --surface2: #1c2440;
  --border:   #232d4a;
  --text:     #e4e6f0;
  --text2:    #8b90a8;
  --accent:   #6366f1;
  --accent2:  #818cf8;
  --glow:     rgba(99, 102, 241, 0.35);
  --red:      #ef4444;
  --radius:   12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid;
  place-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent2) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: blur(12px);
  z-index: 99;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--text2);
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 0;
  font-weight: 500;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--text); }

.mobile-menu .nav-cta {
  text-align: center;
  margin-top: 8px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 26, 0.6) 0%,
    rgba(10, 14, 26, 0.4) 40%,
    rgba(10, 14, 26, 0.7) 70%,
    rgba(10, 14, 26, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 720px;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
}

.hero-title-line.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text2);
  border-bottom: 2px solid var(--text2);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.3; }
  50%      { transform: rotate(45deg) translateY(8px); opacity: 0.7; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px var(--glow);
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent2);
}

.btn-lg {
  padding: 18px 44px;
  font-size: 1.05rem;
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.section {
  padding: 120px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Stats Row ──────────────────────────────────────────────────────────── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.stat-icon svg {
  width: 100%;
  height: 100%;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.5;
}

/* ── Radar Animation ────────────────────────────────────────────────────── */

.radar-container {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.radar {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--surface) 0%, var(--bg) 100%);
}

.radar-ring {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.radar-ring:nth-child(1) { inset: 10%; }
.radar-ring:nth-child(2) { inset: 25%; }
.radar-ring:nth-child(3) { inset: 40%; }

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 330deg,
    rgba(99, 102, 241, 0.25) 355deg,
    rgba(99, 102, 241, 0.5) 360deg
  );
  animation: radarSpin 3s linear infinite;
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.radar-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red);
  animation: radarBlink 2s ease-in-out infinite;
}

.radar-dot:nth-child(5) { animation-delay: 0.7s; }
.radar-dot:nth-child(6) { animation-delay: 1.4s; }

@keyframes radarBlink {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%      { opacity: 1; transform: scale(1.2); }
}

.radar-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--glow);
}

/* ── Pipeline (How It Works) ────────────────────────────────────────────── */

.pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 64px;
}

.pipeline-step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 0 20px;
}

.step-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  color: var(--accent2);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.pipeline-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pipeline-step p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.6;
}

.pipeline-connector {
  width: 60px;
  flex-shrink: 0;
  color: var(--border);
  padding-top: 90px;
}

.pipeline-connector svg {
  width: 100%;
  height: auto;
}

/* ── Network Visual ─────────────────────────────────────────────────────── */

.network-visual {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.network-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Product Card ───────────────────────────────────────────────────────── */

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--accent);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature p {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.5;
}

.product-cta {
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.product-note {
  display: block;
  font-size: 0.78rem;
  color: var(--text2);
  margin-top: 12px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text2);
}

.footer-admin {
  font-size: 0.7rem;
  color: var(--border);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-admin:hover {
  color: var(--text2);
}

/* ── Reveal Animations ──────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pipeline {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .pipeline-connector {
    transform: rotate(90deg);
    padding-top: 0;
    width: 40px;
  }

  .product-features {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-card {
    padding: 28px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section { padding: 80px 0; }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: -1px;
  }

  .radar {
    width: 200px;
    height: 200px;
  }
}
