/* ==========================================================================
   Forge & Flight Labs - Design System
   Dark cinematic aesthetic for defense UAS manufacturer
   ========================================================================== */

/* CSS Variables - Design Tokens */
:root {
  /* Colors */
  --navy-dark: #0A1628;
  --navy-mid: #1E3A5F;
  --blue-electric: #3B82F6;
  --blue-bright: #60A5FA;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: clamp(60px, 10vw, 120px);
  --container-max: 1400px;
  --content-max: 800px;
  
  /* Transitions */
  --transition-base: 0.3s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-200);
  background-color: var(--navy-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

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

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
  margin-bottom: 1.25rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

a {
  color: var(--blue-electric);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--blue-bright);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-200);
  transition: color var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-electric);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-cta {
  background: var(--blue-electric);
  color: var(--white);
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  transition: all var(--transition-base);
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Dropdown Navigation Styles */
.nav-item {
  position: relative;
}

.nav-dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.75rem;
  margin-left: 0.25rem;
  transition: transform var(--transition-base);
}

.nav-dropdown:hover .dropdown-arrow {
  transform: translateY(2px);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 1rem;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 0.75rem;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--gray-200);
  transition: all var(--transition-base);
  border-left: 3px solid transparent;
}

.dropdown-item strong {
  display: block;
  color: var(--white);
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

.dropdown-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-300);
}

.dropdown-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: var(--blue-electric);
}

.dropdown-item:hover strong {
  color: var(--blue-bright);
}

.dropdown-divider {
  height: 1px;
  background: rgba(59, 130, 246, 0.15);
  margin: 0.5rem 0;
}

.dropdown-item-view-all {
  color: var(--blue-electric);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
}

.dropdown-item-view-all:hover {
  color: var(--blue-bright);
  background: rgba(59, 130, 246, 0.1);
}


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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-base);
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-electric);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero-title {
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--gray-300);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.stats-description {
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--blue-electric);
  color: var(--white);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--blue-electric);
}

.btn-secondary:hover {
  background: var(--blue-electric);
  transform: translateY(-2px);
}

/* Button size variants */
.btn-sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* Secondary button on light backgrounds */
.section:not(.section-alt) .btn-secondary,
.comparison-table .btn-secondary,
.guide-card .btn-secondary {
  color: #1e40af;
  border: 2px solid #1e40af;
  background: white;
  font-weight: 600;
}

.section:not(.section-alt) .btn-secondary:hover,
.comparison-table .btn-secondary:hover,
.guide-card .btn-secondary:hover {
  background: #1e40af;
  color: white;
  border-color: #1e40af;
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  padding: 3rem 2rem;
  background: rgba(30, 58, 95, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

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

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--blue-electric);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section {
  padding: var(--section-padding) 2rem;
  position: relative;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-electric);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--gray-300);
  max-width: 700px;
  margin: 0 auto;
}

/* Section descriptions on light backgrounds */
.section:not(.section-alt):not(.hero):not(.hero-simple) .section-description {
  color: #475569;
}

/* Alternating section backgrounds */
.section-alt {
  background: var(--navy-mid);
}

/* ==========================================================================
   Product Grid
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.product-card {
  background: rgba(30, 58, 95, 0.4);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue-electric);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(10, 22, 40, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card-content {
  padding: 2rem;
}

.product-card-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.product-card-description {
  color: var(--gray-300);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.product-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.spec-item {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.spec-value {
  color: var(--blue-electric);
  font-weight: 600;
}

.product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue-electric);
  font-weight: 600;
  transition: all var(--transition-base);
}

.product-card-cta:hover {
  gap: 0.75rem;
}

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

.site-footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--blue-electric);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.footer-location {
  color: var(--gray-400);
  font-size: 0.9375rem;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-300);
  font-size: 0.9375rem;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--blue-electric);
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  color: var(--gray-300);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  text-align: center;
}

.footer-copyright {
  color: var(--gray-400);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer-itar {
  color: var(--gray-500);
  font-size: 0.75rem;
}

.footer-credentials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--gray-300);
}

.footer-credential strong {
  color: var(--blue-400);
  font-family: 'Courier New', monospace;
  font-weight: 700;
}

.footer-separator {
  color: var(--gray-500);
}

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 76px);
    background: var(--navy-dark);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: left var(--transition-base);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
  }
  
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 40px;
  }
  
  .nav-container {
    padding: 1rem 1.5rem;
  }
  
  .section {
    padding: var(--section-padding) 1.5rem;
  }
}
