/* Horizon Aerial Intelligence - Main Stylesheet */

:root {
  /* Colors */
  --color-bg: #0b0d10;
  --color-card: rgba(20, 25, 32, 0.65);
  --color-card-border: rgba(207, 167, 81, 0.15);
  --color-gold: #cfa751;
  --color-gold-hover: #e5be69;
  --color-blue: #00e5ff;
  --color-blue-hover: #33ebff;
  --color-text: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-text-dark: #1f2937;
  
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  
  /* Fonts */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  
  /* Effects */
  --glass-blur: blur(16px);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Base resets & theme */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #151b22 0%, var(--color-bg) 60%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.75em;
}

p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-center { text-align: center; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-danger { color: var(--color-danger) !important; }

/* Container layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background-color: var(--color-gold);
  color: #0b0d10;
}

.btn-primary:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(207, 167, 81, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Badges & Pills */
.badge {
  display: inline-block;
  padding: 0.35em 0.85em;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 50px;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.badge-gold {
  background-color: rgba(207, 167, 81, 0.15);
  color: var(--color-gold);
  border: 1px solid rgba(207, 167, 81, 0.3);
}

.badge-blue {
  background-color: rgba(0, 229, 255, 0.15);
  color: var(--color-blue);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
}

.code-badge {
  font-family: monospace;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: var(--color-blue);
}

/* Glassmorphism Cards */
.card {
  background: var(--color-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.glass-card {
  background: rgba(20, 25, 32, 0.45);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Main Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 13, 16, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.logo-svg {
  width: 44px;
  height: 44px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.brand-sub {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-gold);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover {
  color: #fff;
}

.nav-link.active {
  color: var(--color-gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  transition: var(--transition);
}

/* Main content setup */
.main-content {
  flex-grow: 1;
  padding-top: 80px; /* Offset for fixed header */
}

/* App Sections Switcher */
.app-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.app-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================== HERO BANNER ================== */
.hero-banner {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(207, 167, 81, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-banner .hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 10;
}

.hero-text-wrapper h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

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

/* Animated HUD Display in Hero */
.hero-graphic-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hud-display {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(11, 13, 16, 0.4);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.05);
}

.hud-circle-outer {
  position: absolute;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  border: 1px stroke rgba(207, 167, 81, 0.2);
  border-style: dashed;
  animation: spinClockwise 25s linear infinite;
}

.hud-circle-inner {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 255, 0.1);
  border-left-color: var(--color-blue);
  border-right-color: var(--color-blue);
  animation: spinCounterClockwise 15s linear infinite;
}

.hud-scanner {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 229, 255, 0.15) 0deg, transparent 90deg, transparent 360deg);
  animation: rotateScan 4s linear infinite;
}

.hud-drone-center {
  position: relative;
  z-index: 5;
  width: min(290px, 82%);
  transform: perspective(720px) rotateX(var(--dty, 0deg)) rotateY(var(--dtx, 0deg));
  transition: transform 0.25s ease-out;
  transform-style: preserve-3d;
}

.hud-drone-rig {
  position: relative;
  width: 100%;
  animation: droneHover 6s ease-in-out infinite;
  will-change: transform;
}

.hud-drone-img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 14px 20px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 24px rgba(0, 229, 255, 0.18));
}

/* Live hovering-drone video (transparent WebM) sits in the HUD; the
   poster (drone.png) is the static fallback for browsers without alpha WebM. */
.hud-drone-video {
  background: transparent;
  object-fit: contain;
}

/* Cyan rotor downwash glowing beneath the airframe */
.hud-drone-downwash {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 72%;
  height: 42px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.32) 0%, transparent 70%);
  filter: blur(7px);
  z-index: -1;
  animation: downwashPulse 6s ease-in-out infinite;
}

/* Scan-line sweep clipped to the drone silhouette (uses the PNG as a mask) */
.hud-drone-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask: url('assets/drone.png') center / contain no-repeat;
          mask: url('assets/drone.png') center / contain no-repeat;
  background: linear-gradient(115deg,
    transparent 32%,
    rgba(0, 229, 255, 0.55) 47%,
    rgba(150, 246, 255, 0.9) 50%,
    rgba(0, 229, 255, 0.55) 53%,
    transparent 68%);
  background-size: 250% 100%;
  mix-blend-mode: screen;
  opacity: 0.75;
  animation: droneScanSweep 5s ease-in-out infinite;
}

@keyframes droneHover {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50%      { transform: translateY(-12px) rotate(0.6deg); }
}

@keyframes downwashPulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scaleX(1); }
  50%      { opacity: 0.9;  transform: translateX(-50%) scaleX(1.12); }
}

@keyframes droneScanSweep {
  0%        { background-position: 150% 0; }
  55%, 100% { background-position: -55% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hud-drone-rig,
  .hud-drone-downwash,
  .hud-drone-scan { animation: none; }
  .hud-drone-scan { opacity: 0; }
}

.hud-stats {
  position: absolute;
  bottom: -40px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
}

.hud-stat-item {
  background: rgba(20, 25, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow);
}

.hud-stat-item .label {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.hud-stat-item .val {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
}

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

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

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

@keyframes hoverFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Trust Bar */
.trust-bar {
  background: rgba(20, 25, 32, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: 1.5rem 0;
}

.trust-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
}

.icon-gold {
  color: var(--color-gold);
}

/* ================== SERVICES ================== */
.services-section {
  padding: 5rem 0;
}

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

.section-header .subtitle {
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-top: 0.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--color-card-border);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold);
  background: rgba(20, 25, 32, 0.9);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius);
  background: rgba(207, 167, 81, 0.1);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.bullet-list {
  list-style: none;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.bullet-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--color-blue);
  font-size: 1.1rem;
  line-height: 1;
}

.price-hint {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-blue);
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

/* Norfolk Market Segment */
.norfolk-market {
  padding: 2rem 0 6rem;
}

.row-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.col-half {
  display: flex;
  flex-direction: column;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.stat-box .number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-gold);
}

.stat-box .stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* GIS Map Box Mockup */
.gis-box {
  background: #10141b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gis-header {
  background: #19202a;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gis-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.red { background-color: var(--color-danger); }
.dot.yellow { background-color: var(--color-warning); }
.dot.green { background-color: var(--color-success); }

.gis-title {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-left: 0.5rem;
}

.gis-body {
  padding: 1rem;
}

.gis-map-mesh {
  height: 200px;
  background-color: #0d1015;
  background-image: radial-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.elevation-contour {
  position: absolute;
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.erosion-zone {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(239, 68, 68, 0.2);
  border: 1px dashed var(--color-danger);
  color: var(--color-danger);
  padding: 0.25rem 0.5rem;
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: bold;
}

.laser-pointer {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--color-blue);
  border-radius: 50%;
  top: 40%;
  left: 60%;
  box-shadow: 0 0 10px var(--color-blue);
  animation: scanPoint 6s infinite alternate ease-in-out;
}

@keyframes scanPoint {
  0% { top: 20%; left: 20%; }
  50% { top: 70%; left: 80%; }
  100% { top: 40%; left: 60%; }
}

.gis-legend {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
  font-family: monospace;
  font-size: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-indicator {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.color-indicator.green { background-color: var(--color-success); }
.color-indicator.red { background-color: var(--color-danger); }

/* ================== QUOTE & BOOKING ================== */
.quote-booking-section {
  padding: 4rem 0 6rem;
}

.quote-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.quote-card-calculator h3,
.quote-card-result h3 {
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Forms styling */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 8px rgba(207, 167, 81, 0.2);
}

.quantity-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.unit-label {
  position: absolute;
  right: 1rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

/* Slider Controls */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin-top: 1rem;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-gold);
  cursor: pointer;
  transition: var(--transition);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(207, 167, 81, 0.6);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--color-gold);
  width: 16px;
  height: 16px;
}

/* Quote Results Layout */
.quote-card-result {
  background: rgba(207, 167, 81, 0.03);
  border-color: rgba(207, 167, 81, 0.25);
}

.price-display-wrapper {
  text-align: center;
  padding: 1rem 0;
}

.price-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gold);
}

.price-value-container {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin: 0.5rem 0;
}

.price-value-container .currency {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: #fff;
  margin-right: 0.2rem;
}

.price-value-container .price {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.price-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1.5rem 0;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.hidden {
  display: none !important;
}

.alert {
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-top: 1rem;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ================== CLIENT PORTAL ================== */
.portal-container {
  padding: 3rem 1.5rem 6rem;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.portal-user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portal-user-profile .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #0b0d10;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-account-type {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.portal-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Status light indicators */
.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.indicator.pulse-green {
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  animation: pulseLight 2s infinite;
}

.indicator.pulse-amber {
  background-color: var(--color-warning);
  box-shadow: 0 0 8px var(--color-warning);
  animation: pulseLight 2s infinite;
}

@keyframes pulseLight {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Portal Workspace Grid */
.portal-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

.portal-sidebar h3,
.portal-main-view h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.project-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.project-item.active {
  background: rgba(207, 167, 81, 0.05);
  border-color: var(--color-gold);
}

.project-item-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.project-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.project-item-meta .date {
  color: var(--color-text-muted);
}

.status-pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.status-completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.status-processing {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
}

/* Selected Project Detail view */
.portal-main-view {
  min-height: 500px;
}

.portal-project-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.portal-project-title-bar .meta {
  font-size: 0.85rem;
  margin-top: -0.25rem;
}

.portal-actions {
  display: flex;
  gap: 0.75rem;
}

/* NDVI Slider Widget */
.slider-wrapper {
  margin: 2rem 0;
}

.image-slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  user-select: none;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ndvi-image {
  background-color: #10151c; /* Fallback */
}

.rgb-image {
  background-color: #1a222e; /* Fallback */
  border-right: 2px solid var(--color-blue);
}

.overlay-label {
  position: absolute;
  top: 1rem;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ndvi-label {
  right: 1rem;
  background: rgba(16, 185, 129, 0.7);
  color: #fff;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.rgb-label {
  left: 1rem;
  background: rgba(11, 13, 16, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: var(--color-blue);
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 10px var(--color-blue);
}

.handle-line {
  position: absolute;
  height: 100%;
  width: 2px;
  background: #fff;
  left: 1px;
}

.slider-handle::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: var(--color-blue);
  border: 2px solid #fff;
  border-radius: 50%;
  color: #0b0d10;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slider-instruction {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Agronomy readout metrics grid */
.agronomy-readout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.readout-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.25rem;
}

.readout-box .label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.readout-box .value {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  display: block;
}

.readout-box .trend {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.project-narrative h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* ================== PILOT OPERATIONS ================== */
.pilot-container {
  padding: 3rem 1.5rem 6rem;
}

.pilot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.pilot-callsign {
  font-size: 0.85rem;
  color: var(--color-gold);
}

.fleet-status-bar {
  display: flex;
  gap: 1.5rem;
}

.status-light-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
}

.pilot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.card-desc {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* Checklist Styling */
.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.check-item {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.check-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.check-item input[type="checkbox"] {
  accent-color: var(--color-blue);
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.check-text strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
}

.check-text .desc {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

/* Auth Output */
.rams-auth-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--color-success);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  animation: fadeIn 0.4s ease-out forwards;
}

.auth-box-header {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.auth-code-container {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  padding: 0.75rem;
  display: inline-flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.auth-code-container .auth-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.auth-code-container .auth-code {
  font-family: monospace;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-blue);
}

.auth-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Flight logs table & quick logging */
.pilot-logs-fleet-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.logs-table-wrapper {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8rem;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table th {
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.logs-form-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.form-control-sm {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
}

.col-third {
  width: 33.33%;
}

.pilot-form-row {
  margin-top: 1rem;
}

/* Fleet items */
.fleet-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fleet-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fleet-info {
  display: flex;
  flex-direction: column;
}

.fleet-info strong {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: #fff;
}

.fleet-info span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ================== BRANDING HUB ================== */
.brand-container {
  padding: 3rem 1.5rem 6rem;
}

.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.style-row {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.25rem;
}

.style-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.style-row h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--color-gold);
}

.color-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.swatch {
  height: 80px;
  border-radius: 6px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.swatch .hex {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: bold;
}

.swatch-label {
  font-size: 0.6rem;
  color: var(--color-text-muted);
}

.typography-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.font-item {
  display: flex;
  flex-direction: column;
}

.font-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.font-preview {
  font-size: 1.2rem;
  color: #fff;
  margin: 0.1rem 0;
}

.font-use {
  font-size: 0.7rem;
  color: var(--color-blue);
}

.voice-desc {
  font-style: italic;
  font-size: 0.9rem;
}

/* Business Card Mockup - 3D flipping card */
.business-card-container {
  width: 100%;
  max-width: 400px;
  height: 230px;
  perspective: 1000px;
  margin: 2rem auto;
}

.b-card {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  overflow: hidden;
}

.b-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.b-card-front {
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.92) 0%, rgba(6, 8, 11, 0.96) 100%), url('assets/coastal-sunset.jpg');
  background-size: cover;
  background-position: center;
  transform: rotateY(0deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.b-card-back {
  background: linear-gradient(135deg, #090c0f 0%, #151b22 100%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Front Side Card Inner */
.b-card-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-logo-svg {
  width: 48px;
  height: 48px;
}

.card-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
}

.card-footer-info .tagline {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.card-footer-info .region {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Back Side Card Inner */
.pilot-details {
  display: flex;
  flex-direction: column;
}

.pilot-details .name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.pilot-details .title {
  font-size: 0.75rem;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-divider {
  border: 0;
  height: 1px;
  background: rgba(207, 167, 81, 0.2);
  margin: 0.5rem 0;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
}

.contact-item .label {
  color: var(--color-text-muted);
}

.contact-item .val {
  font-family: monospace;
  color: #fff;
}

/* Flip Trigger */
.business-card-container.flipped .b-card-front {
  transform: rotateY(-180deg);
}

.business-card-container.flipped .b-card-back {
  transform: rotateY(0deg);
}

.card-flipper-btn {
  display: flex;
  justify-content: center;
}

/* Social media campaigns */
.social-copywriter {
  grid-column: 1 / -1;
}

.copy-campaign {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.campaign-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.campaign-header h4 {
  margin: 0;
  font-size: 1.05rem;
}

.campaign-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.campaign-tag.linkedin {
  background-color: rgba(10, 102, 194, 0.15);
  color: #0a66c2;
  border: 1px solid rgba(10, 102, 194, 0.3);
}

.campaign-tag.instagram {
  background-color: rgba(225, 48, 108, 0.15);
  color: #e1306c;
  border: 1px solid rgba(225, 48, 108, 0.3);
}

.campaign-body pre {
  font-family: var(--font-body);
  font-size: 0.8rem;
  white-space: pre-wrap;
  background: #080d14;
  padding: 1rem;
  border-radius: 6px;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: 0.75rem;
}

/* Digital Flyer Section */
.flyer-preview-container {
  background: #fff;
  color: #333;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1.414; /* A5 Aspect ratio */
  margin: 1.5rem auto;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}

.flyer-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.flyer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0b0d10;
  padding-bottom: 0.5rem;
}

.flyer-logo-marker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.flyer-logo-marker span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.65rem;
  color: #0b0d10;
  letter-spacing: 0.05em;
}

.flyer-logo-svg {
  width: 24px;
  height: 24px;
}

.flyer-header .contact-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--color-gold);
}

.flyer-hero {
  background-image: linear-gradient(rgba(11, 13, 16, 0.76), rgba(11, 13, 16, 0.88)), url('assets/coastal-sunset.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 1.25rem 1rem;
  border-radius: 6px;
  text-align: center;
  margin: 0.75rem 0;
}

.flyer-hero h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.2rem;
  letter-spacing: 0.05em;
}

.flyer-hero h5 {
  font-size: 0.75rem;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flyer-bullets {
  text-align: left;
}

.flyer-bullet {
  font-size: 0.7rem;
  margin-bottom: 0.4rem;
  color: #e5e7eb;
}

.flyer-features {
  display: flex;
  justify-content: space-around;
  margin-bottom: 0.5rem;
}

.f-feat {
  font-size: 0.65rem;
  font-weight: bold;
  color: #0b0d10;
  background-color: rgba(207, 167, 81, 0.15);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.flyer-footer {
  border-top: 1px solid #e5e7eb;
  padding-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flyer-footer-left {
  display: flex;
  flex-direction: column;
}

.flyer-footer-left strong {
  font-size: 0.65rem;
  color: #6b7280;
}

.flyer-footer-left span {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0b0d10;
}

.flyer-qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-svg {
  width: 50px;
  height: 50px;
}

.flyer-qr-code span {
  font-size: 0.5rem;
  font-weight: bold;
  color: #374151;
  margin-top: 0.1rem;
}

/* ================== GLOBAL FOOTER ================== */
.main-footer {
  background: #06080a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-col .logo {
  margin-bottom: 1rem;
}

.brand-statement {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-links-col h4,
.footer-contact-col h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

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

.footer-links-col ul li {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.footer-links-col ul li a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links-col ul li a:hover {
  color: var(--color-gold);
}

.footer-contact-col p {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ================== PRINT STYLES ================== */
@media print {
  body * {
    visibility: hidden;
  }
  .digital-flyer-panel,
  .digital-flyer-panel *,
  .flyer-preview-container,
  .flyer-preview-container * {
    visibility: visible;
  }
  
  .digital-flyer-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .flyer-preview-container {
    box-shadow: none !important;
    margin: 0 auto !important;
    width: 148mm;
    height: 210mm; /* A5 */
    border: none !important;
  }
  
  .flyer-print-btn,
  .card-desc,
  h3 {
    display: none !important;
  }
}

/* ================== RESPONSIVENESS ================== */
@media (max-width: 992px) {
  .hero-banner .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }

  .hero-graphic-wrapper {
    margin-top: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .row-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .quote-container {
    grid-template-columns: 1fr;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .pilot-grid {
    grid-template-columns: 1fr;
  }

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

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

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0b0d10;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }

  .nav-menu.mobile-active {
    display: flex;
  }

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

  .header-cta {
    display: none; /* Hide CTA button in header on mobile */
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-text-wrapper h1 {
    font-size: 2.5rem;
  }

  .agronomy-readout-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .color-swatches {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================================
   EXPERIENCE LAYER — preloader, cursor, 3D hero, motion micro-interactions
   ===================================================================== */

/* ---- Preloader / boot sequence ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #11161d 0%, #0b0d10 70%);
  will-change: opacity;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: min(360px, 80vw);
}

.preloader-logo {
  width: 90px;
  height: 90px;
  animation: hoverFloat 3s ease-in-out infinite;
}

.preloader-logo .pl-ring { animation: spinClockwise 8s linear infinite; transform-origin: 50% 50%; }
.preloader-logo .pl-core { animation: pulseCore 1.4s ease-in-out infinite; transform-origin: 50% 50%; }

@keyframes pulseCore {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.preloader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.pl-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.35em;
  color: #fff;
  padding-left: 0.35em;
}

.pl-status {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--color-blue);
  min-height: 1em;
}

.preloader-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-blue));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
  transition: width 0.2s ease-out;
}

.preloader-pct {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1200;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-blue));
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  will-change: transform;
}

/* ---- Custom cursor ---- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  margin-left: -4px;
  margin-top: -4px;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: #fff;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  margin-left: -19px;
  margin-top: -19px;
  border: 1.5px solid var(--color-gold);
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease,
              border-color 0.25s ease, background 0.25s ease;
  mix-blend-mode: normal;
}

.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor .btn,
.has-custom-cursor input,
.has-custom-cursor select,
.has-custom-cursor textarea,
.has-custom-cursor [onclick] {
  cursor: none;
}

.cursor-hover .cursor-ring {
  width: 64px;
  height: 64px;
  margin-left: -32px;
  margin-top: -32px;
  border-color: var(--color-blue);
  background: rgba(0, 229, 255, 0.08);
}

.cursor-down .cursor-ring {
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
}

/* Default cursors only hidden when JS confirms a fine pointer */
.cursor-dot,
.cursor-ring { display: none; }
.has-custom-cursor .cursor-dot,
.has-custom-cursor .cursor-ring { display: block; }

/* ---- Three.js hero canvas + framing ---- */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease 0.2s;
}

.is-loaded .hero-canvas { opacity: 1; }

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(11, 13, 16, 0.55) 100%),
              linear-gradient(to bottom, transparent 70%, var(--color-bg) 100%);
}

.hero-banner {
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-banner .hero-content { width: 100%; }

/* Glass framing for the HUD so it reads over the 3D scene */
.hud-display {
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.12);
}

/* ---- Hero scroll cue ---- */
.hero-scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text-muted);
}

.hero-scroll-cue-text {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  font-weight: 600;
}

.hero-scroll-cue-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  position: relative;
  overflow: hidden;
}

.hero-scroll-cue-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--color-blue);
  box-shadow: 0 0 8px var(--color-blue);
  animation: scrollCueDrop 1.8s ease-in-out infinite;
}

@keyframes scrollCueDrop {
  0% { transform: translateY(-100%); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(250%); opacity: 0; }
}

.hero-scroll-cue:hover { color: var(--color-gold); }

/* ---- Enhanced card / button micro-interactions ---- */
.service-card,
.stat-box,
.readout-box {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s ease, border-color 0.45s ease;
  will-change: transform;
}

.service-card:hover {
  border-color: rgba(207, 167, 81, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(207, 167, 81, 0.12);
}

.service-card .service-icon {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.4s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-4px) scale(1.08);
  color: var(--color-gold);
}

/* Shine sweep across primary buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover::after { left: 130%; }

/* Animated underline for nav links */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link.active::after { transform: scaleX(1); }

/* Project list + fleet item hover polish */
.project-item,
.fleet-item {
  transition: var(--transition);
}

.project-item:hover {
  transform: translateX(4px);
  border-color: rgba(0, 229, 255, 0.3);
}

/* Reveal fallback: keep content visible if JS/GSAP never runs */
.no-js [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ---- Reduced motion: calm everything down ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue-line::after,
  .preloader-logo,
  .preloader-logo .pl-ring,
  .preloader-logo .pl-core { animation: none; }
  .hero-canvas { transition: none; }
  * { scroll-behavior: auto; }
}

@media (max-width: 768px) {
  .hero-banner { min-height: auto; padding: 5rem 0 4rem; }
  .hero-scroll-cue { display: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* =====================================================================
   DESIGN SYSTEM v2 — "Survey Instrument"
   Type carries the personality; monospaced data is the subject's own
   vernacular (flight telemetry, RTK coordinates, GIS readouts, CAA codes).
   The signature is the survey-plate registration frame.
   ===================================================================== */

/* ---- Display type: Space Grotesk, tightened ---- */
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.015em; }
.brand-name { font-weight: 700; letter-spacing: 0.12em; }
.pl-brand { font-weight: 700; }

.hero-text-wrapper h1 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* ---- Monospaced "data voice": every label, code, coordinate & readout ---- */
.badge,
.section-header .subtitle,
.code-badge,
.auth-code,
.auth-label,
.price-label,
.hud-stat-item .label,
.hud-stat-item .val,
.readout-box .label,
.stat-label,
.status-pill,
.status-light-item,
.fleet-status-bar,
.portal-account-type,
.pilot-callsign,
.swatch .hex,
.campaign-tag,
.flyer-logo-marker span,
.table th,
.table td,
.form-group label,
.checkbox-label,
.unit-label,
.trust-item {
  font-family: var(--font-mono);
}

/* Eyebrows / badges: smaller, wider, calmer */
.badge {
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  border-radius: 4px;
  padding: 0.45em 0.9em;
}

.section-header .subtitle {
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
}

/* Instrument-panel form labels */
.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.trust-item {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  font-weight: 500;
}

.code-badge,
.auth-code {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* The big quote price reads like an instrument number */
.price,
.currency {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Stat numbers: monospaced for tabular, instrument-readout feel */
.stat-box .number,
.readout-box .value {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---- Section header as a survey plate: hairline + index tick ---- */
.section-header { position: relative; }

.section-header .subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.section-header .subtitle::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-gold);
  display: inline-block;
}

.section-header.text-center .subtitle::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-gold);
  display: inline-block;
}

/* =====================================================================
   SIGNATURE — survey-plate registration frame in the hero
   ===================================================================== */
.survey-frame {
  position: absolute;
  inset: 90px 28px 28px;
  z-index: 9;
  pointer-events: none;
  /* Four corner registration ticks drawn with layered gradients */
  background-image:
    linear-gradient(var(--color-gold), var(--color-gold)),
    linear-gradient(var(--color-gold), var(--color-gold)),
    linear-gradient(var(--color-gold), var(--color-gold)),
    linear-gradient(var(--color-gold), var(--color-gold)),
    linear-gradient(var(--color-gold), var(--color-gold)),
    linear-gradient(var(--color-gold), var(--color-gold)),
    linear-gradient(var(--color-gold), var(--color-gold)),
    linear-gradient(var(--color-gold), var(--color-gold));
  background-repeat: no-repeat;
  /* sizes: horizontal arms (22x1) and vertical arms (1x22) for each corner */
  background-size:
    22px 1px, 1px 22px,   /* top-left */
    22px 1px, 1px 22px,   /* top-right */
    22px 1px, 1px 22px,   /* bottom-left */
    22px 1px, 1px 22px;   /* bottom-right */
  background-position:
    top left, top left,
    top right, top right,
    bottom left, bottom left,
    bottom right, bottom right;
  opacity: 0;
  transition: opacity 1.2s ease 0.6s;
}

.is-loaded .survey-frame { opacity: 0.5; }

.survey-coord {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.survey-coord-tl { top: -6px; left: 34px; }
.survey-coord-tr { top: -6px; right: 34px; color: var(--color-gold); }
.survey-coord-bl { bottom: -6px; left: 34px; }
.survey-coord-br { bottom: -6px; right: 34px; color: var(--color-blue); }

/* ---- Restraint: calm the scattered glow, keep precision ---- */
.hud-display { box-shadow: 0 0 40px rgba(0, 229, 255, 0.06); }

.service-card:hover {
  border-color: rgba(207, 167, 81, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

/* Status pills tightened to data chips */
.status-pill {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .survey-frame { inset: 76px 14px 14px; }
  .survey-coord-tr, .survey-coord-bl { display: none; }
  .survey-coord { font-size: 0.55rem; }
}

/* ==================================================================
   REAL AERIAL MEDIA — hero photo, showreel, service stills, coastline
   ================================================================== */

/* ---- Hero: real golden-hour aerial behind the 3D particle scene ---- */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(100deg, rgba(11,13,16,0.94) 0%, rgba(11,13,16,0.62) 34%, rgba(11,13,16,0.22) 58%, rgba(11,13,16,0.55) 100%),
    linear-gradient(to bottom, rgba(11,13,16,0.55) 0%, transparent 26%, transparent 58%, var(--color-bg) 100%),
    url('assets/hero.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center 40%;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease 0.1s;
  animation: heroKenBurns 32s ease-in-out 1.6s infinite alternate;
}
.is-loaded .hero-photo { opacity: 1; }

@keyframes heroKenBurns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.2%, -1.4%, 0); }
}

/* ---- Cinematic showreel band ---- */
.showreel-band {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.showreel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.showreel-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,13,16,0.92) 0%, rgba(11,13,16,0.55) 45%, rgba(11,13,16,0.30) 100%),
    linear-gradient(to bottom, rgba(11,13,16,0.85) 0%, transparent 22%, transparent 70%, var(--color-bg) 100%);
}
.showreel-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 5rem 0;
}
.showreel-tag {
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
}
.showreel-tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-gold);
}
.showreel-content h2 {
  font-size: 2.9rem;
  line-height: 1.12;
  margin: 0.6rem 0 1.2rem;
}
.showreel-content p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 30rem;
}
.showreel-readout {
  position: absolute;
  bottom: 1.5rem;
  right: 1.75rem;
  z-index: 2;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  background: rgba(11, 13, 16, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
.showreel-readout .rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-danger, #ff4d4d);
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.8);
  animation: recBlink 1.4s steps(1) infinite;
}
@keyframes recBlink { 50% { opacity: 0.25; } }

/* ---- Service card photo headers ---- */
.service-card { overflow: hidden; padding-top: 0; }
.service-media {
  height: 168px;
  margin: -2px -2rem 1.75rem;
  background-size: cover;
  background-position: center;
  position: relative;
  filter: saturate(1.05);
}
.service-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,13,16,0.10) 0%, transparent 35%, rgba(20,25,32,0.85) 100%);
}
.service-card > .service-icon { margin-top: -2.6rem; position: relative; z-index: 2; }
.service-card { padding-top: 0; }
.service-card > h3,
.service-card > p,
.service-card > .bullet-list,
.service-card > .price-hint { padding-left: 2rem; padding-right: 2rem; }
.service-card > .service-icon { margin-left: 2rem; }
.service-card > .price-hint { margin-bottom: 2rem; }

/* ---- Coastline photo behind GIS modeler ---- */
.bg-image-placeholder {
  position: relative;
  justify-content: center;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius);
  overflow: hidden;
  padding: 1.5rem;
}
.bg-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,13,16,0.25), rgba(11,13,16,0.65));
  z-index: 0;
}
.bg-image-placeholder > .gis-box { position: relative; z-index: 1; }
.coast-caption {
  position: absolute;
  top: 0.9rem;
  left: 1rem;
  z-index: 1;
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(11, 13, 16, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .showreel-band { min-height: 60vh; }
  .showreel-content { padding: 4rem 0; max-width: 100%; }
  .showreel-content h2 { font-size: 2rem; }
  .service-media { height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; transform: scale(1.06); }
  .showreel-readout .rec-dot { animation: none; }
}

/* ================== MISSIONS SHOWCASE (GALLERY) ================== */
.missions-showcase {
  padding: 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.missions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.mission-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  background: rgba(20, 25, 32, 0.65);
  backdrop-filter: blur(10px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.mission-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(207, 167, 81, 0.1);
}

.mission-image-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
  width: 100%;
}

.mission-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mission-card:hover .mission-image {
  transform: scale(1.05);
}

/* HUD Overlay on hover/display */
.mission-hud-overlay {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 13, 16, 0.8) 0%, rgba(11, 13, 16, 0) 50%, rgba(11, 13, 16, 0.3) 100%);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.mission-card:hover .mission-hud-overlay {
  opacity: 1;
}

.hud-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--color-blue);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.mission-card:hover .hud-corner {
  opacity: 1;
  width: 16px;
  height: 16px;
  border-color: var(--color-gold);
}

.hud-corner.top-left { top: 1.25rem; left: 1.25rem; border-right: none; border-bottom: none; }
.hud-corner.top-right { top: 1.25rem; right: 1.25rem; border-left: none; border-bottom: none; }
.hud-corner.bottom-left { bottom: 1.25rem; left: 1.25rem; border-right: none; border-top: none; }
.hud-corner.bottom-right { bottom: 1.25rem; right: 1.25rem; border-left: none; border-top: none; }

.hud-readout {
  align-self: flex-end;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: var(--color-blue);
  background: rgba(11, 13, 16, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.mission-card:hover .hud-readout {
  color: var(--color-gold);
  border-color: rgba(207, 167, 81, 0.3);
}

.mission-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mission-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.mission-date {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.mission-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: #fff;
  transition: color 0.3s ease;
}

.mission-card:hover .mission-content h3 {
  color: var(--color-gold);
}

.mission-location {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.mission-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

@media (max-width: 992px) {
  .missions-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---- Pilot Portal - Airspace Reference Card ---- */
.pilot-airspace-card {
  margin-top: 2rem;
  overflow: hidden;
  padding-bottom: 1.5rem;
}

.airspace-visual-wrapper {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.airspace-visual-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(11, 13, 16, 0.8) 100%);
  z-index: 1;
}

.airspace-hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.airspace-bounds {
  position: absolute;
  inset: 1rem;
  border: 1px dashed rgba(0, 229, 255, 0.4);
  pointer-events: none;
  animation: pulseAlpha 2.5s infinite ease-in-out;
}

@keyframes pulseAlpha {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.hud-tag {
  align-self: flex-start;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: var(--color-blue);
  background: rgba(11, 13, 16, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.hud-status {
  align-self: flex-end;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(11, 13, 16, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.hud-status::before {
  content: '';
  width: 7px;
  height: 7px;
  background-color: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-success);
  animation: recBlink 1s infinite;
}


/* =====================================================================
   CROSS-BROWSER & MOBILE HARDENING
   - Eliminates horizontal overflow / CSS-grid blowouts on phones
   - Ensures Firefox renders gradient headings and wraps long copy
   - Keeps the hero HUD proportionate on small screens
   ===================================================================== */

/* No horizontal scroll on any device */
html, body { overflow-x: hidden; }
body { position: relative; width: 100%; max-width: 100%; }

/* Grid/flex children must be allowed to shrink below their content size
   (otherwise a single column refuses to fit and overflows the viewport) */
.services-grid > *, .row-layout > *, .stat-row > *, .quote-container > *,
.brand-grid > *, .portal-grid > *, .pilot-grid > *, .footer-grid > *,
.agronomy-readout-grid > *, .missions-grid > *, .trust-container > *,
.form-row > * { min-width: 0; }

/* Media and preformatted copy never exceed their container */
img { max-width: 100%; height: auto; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }

/* Phones: proportionate hero HUD + readable type */
@media (max-width: 600px) {
  .container { padding-left: 1.1rem; padding-right: 1.1rem; }

  .hud-display { width: min(248px, 74vw); height: min(248px, 74vw); }
  .hud-drone-center { width: min(210px, 62vw); }
  .hud-stats { bottom: -32px; padding: 0 0.2rem; }
  .hud-stat-item { padding: 0.3rem 0.5rem; }
  .hud-stat-item .label { font-size: 0.5rem; }
  .hud-stat-item .val { font-size: 0.72rem; }

  .hero-text-wrapper h1 { font-size: 2.1rem; }
  .lead { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .section-header h2 { font-size: 1.9rem; }
  .showreel-content h2 { font-size: 1.7rem; }
  .stat-row { gap: 0.6rem; }
}

@media (max-width: 380px) {
  .hud-display { width: 72vw; height: 72vw; }
  .hero-text-wrapper h1 { font-size: 1.85rem; }
  .section-header h2 { font-size: 1.7rem; }
}
