/* ============================================
   Drone Defence — style.css
   Dark defense-tech aesthetic
   ============================================ */

:root {
  --bg: #0a0c10;
  --bg-surface: #12151c;
  --bg-card: #171b24;
  --border: #1e2433;
  --border-light: #2a3040;
  --text: #e2e8f0;
  --text-secondary: #8892a4;
  --text-muted: #5a6478;
  --accent: #f1c232;
  --accent-hover: #d9ad2b;
  --accent-glow: rgba(241, 194, 50, 0.15);
  --accent-subtle: rgba(241, 194, 50, 0.08);
  --red: #ef4444;
  --green: #22c55e;
  --gold: #d4a843;
  --font: 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Navigation
   ============================================ */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

#nav.scrolled {
  background: rgba(10, 12, 16, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  height: 32px;
  width: auto;
  filter: invert(1);
}

.brand-text {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.5rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  border-radius: 4px;
}

/* ============================================
   Hero
   ============================================ */

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
}

.hero-beam {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 2px;
  height: 60%;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.4;
  transform: translateX(-50%) rotate(15deg);
  animation: beam-pulse 4s ease-in-out infinite;
}

.hero-beam::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  filter: blur(8px);
  opacity: 0.6;
}

.hero-beam-2 {
  position: absolute;
  top: 15%;
  left: 45%;
  width: 2px;
  height: 55%;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.2;
  transform: translateX(-50%) rotate(-20deg);
  animation: beam-pulse-2 5s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.5;
  animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes beam-pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.5; }
}

@keyframes beam-pulse-2 {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.3; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px var(--accent-glow);
}

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

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

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

.hero-stat-value {
  display: block;
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
}

.hero-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.hero-stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--bg-surface);
}

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ============================================
   Threat Section
   ============================================ */

.threat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.threat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  transition: border-color 0.3s;
}

.threat-card:hover {
  border-color: var(--border-light);
}

.threat-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.threat-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.threat-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.threat-quote {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 2rem;
  border-radius: 0 6px 6px 0;
}

.threat-quote blockquote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.threat-quote cite {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ============================================
   Capabilities Section
   ============================================ */

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.capability {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  transition: all 0.3s;
}

.capability:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-subtle);
}

.capability-icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.capability h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.capability p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Comparison Table */
.comparison {
  margin-top: 2rem;
}

.comparison-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table .highlight {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-subtle);
}

.comparison-table th.highlight {
  color: var(--accent);
  background: var(--accent-subtle);
}

.comparison-table .yes { color: var(--green); }
.comparison-table .no { color: var(--red); opacity: 0.7; }

/* ============================================
   Technology Section
   ============================================ */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.tech-item {
  padding: 1.5rem 0;
  border-top: 2px solid var(--border);
}

.tech-number {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.tech-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tech-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.prototype-showcase {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.prototype-image {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  max-height: 360px;
}

.prototype-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prototype-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.prototype-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.tech-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.spec {
  flex: 1;
  min-width: 140px;
  padding: 1rem;
  text-align: center;
}

.spec-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.spec-value {
  display: block;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
}

/* ============================================
   Market Section
   ============================================ */

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.market-stat {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}

.market-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.market-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   Team Section
   ============================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  transition: border-color 0.3s;
}

.team-member:hover {
  border-color: var(--border-light);
}

.member-photo {
  width: 100%;
  height: 200px;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--border);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-member h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.member-role {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  font-family: var(--mono);
  margin-bottom: 0.75rem;
}

.team-member p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.member-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.member-link {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.2s;
}

.member-link:hover {
  color: var(--accent);
}

/* ============================================
   Contact Section
   ============================================ */

.contact-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s;
}

.contact-method:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-method i {
  color: var(--accent);
}

.contact-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.flag-dk {
  display: inline-block;
  width: 24px;
  height: 16px;
  background: #c8102e;
  position: relative;
  border-radius: 2px;
}

.flag-dk::before {
  content: '';
  position: absolute;
  background: white;
  top: 0;
  left: 6px;
  width: 3px;
  height: 100%;
}

.flag-dk::after {
  content: '';
  position: absolute;
  background: white;
  left: 0;
  top: 6.5px;
  width: 100%;
  height: 3px;
}

/* ============================================
   Footer
   ============================================ */

footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.footer-col p i {
  color: var(--accent);
  margin-right: 0.4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.footer-about-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-social a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-flag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================
   Animations
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for grid items */
.threat-card:nth-child(2) { transition-delay: 0.1s; }
.threat-card:nth-child(3) { transition-delay: 0.2s; }
.threat-card:nth-child(4) { transition-delay: 0.3s; }
.capability:nth-child(2) { transition-delay: 0.1s; }
.capability:nth-child(3) { transition-delay: 0.2s; }
.capability:nth-child(4) { transition-delay: 0.3s; }
.tech-item:nth-child(2) { transition-delay: 0.1s; }
.tech-item:nth-child(3) { transition-delay: 0.2s; }
.tech-item:nth-child(4) { transition-delay: 0.3s; }
.team-member:nth-child(2) { transition-delay: 0.1s; }
.team-member:nth-child(3) { transition-delay: 0.2s; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .hero-stats {
    gap: 1rem;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-subtitle br {
    display: none;
  }

  .comparison-table {
    font-size: 0.75rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .tech-specs {
    gap: 0;
  }

  .spec {
    min-width: 45%;
  }
}
