/* ==========================================================
   HAYTHIVE - Main Stylesheet
   Brand: #591C53 (plum) | #C3221F (red)
   Fonts: Anton (titles) | Open Sans (body)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS CUSTOM PROPERTIES ─────────────────────────────── */
:root {
  --clr-plum:        #591C53;
  --clr-red:         #C3221F;
  --clr-plum-light:  #7a2870;
  --clr-red-light:   #e0362f;
  --clr-dark:        #0a0a10;
  --clr-dark-2:      #111118;
  --clr-dark-3:      #1a1a24;
  --clr-surface:     #16161f;
  --clr-border:      rgba(255,255,255,0.07);
  --clr-text:        #e8e8f0;
  --clr-text-muted:  #9090a8;
  --clr-white:       #ffffff;

  --grad-brand:      linear-gradient(135deg, var(--clr-plum), var(--clr-red));
  --grad-glow-plum:  radial-gradient(ellipse at center, rgba(89,28,83,0.4) 0%, transparent 70%);
  --grad-glow-red:   radial-gradient(ellipse at center, rgba(195,34,31,0.3) 0%, transparent 70%);

  --font-title:      'Anton', sans-serif;
  --font-body:       'Inter', sans-serif;

  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-xl:       32px;

  --shadow-card:     0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow-red: 0 0 40px rgba(195,34,31,0.25);
  --shadow-glow-plum:0 0 40px rgba(89,28,83,0.35);

  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.2s ease;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--clr-dark);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-dark); }
::-webkit-scrollbar-thumb { background: var(--clr-plum); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-red); }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  letter-spacing: 0.03em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
h4 { font-size: 1.1rem; }
p  { font-size: 1rem; }

.text-gradient {
  background-image: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.section-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--clr-red);
  border-radius: 2px;
}

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 7rem 0;
  position: relative;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-primary {
  background: var(--grad-brand);
  color: var(--clr-white);
  box-shadow: 0 4px 24px rgba(195,34,31,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(195,34,31,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--clr-red);
  background: rgba(195,34,31,0.1);
  transform: translateY(-3px);
}

/* ── NAVIGATION ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1200px;
  z-index: 1000;
  padding: 0.8rem 0;
  transition: var(--transition);
  border-radius: 100px;
  background: rgba(16, 16, 24, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
#navbar.scrolled {
  top: 1rem;
  background: rgba(16, 16, 24, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  padding: 0.6rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.nav-logo img {
  height: 48px;
  width: auto;
  transition: var(--transition);
}
.nav-logo:hover img { opacity: 0.85; }

.nav-logo-text {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--clr-white);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--clr-red);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--clr-white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { margin-left: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: var(--transition-fast);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── NAV DROPDOWNS (Desktop) ─────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-drop-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
  transition: var(--transition-fast);
  position: relative;
}
.nav-drop-trigger::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--clr-red);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-drop-trigger:hover,
.nav-dropdown:hover .nav-drop-trigger { color: var(--clr-white); }
.nav-dropdown:hover .nav-drop-trigger::after { transform: scaleX(1); }

.nav-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--clr-text-muted);
}
.nav-dropdown:hover .nav-chevron { transform: rotate(180deg); }

/* The dropdown panel */
.nav-drop-panel {
  position: absolute;
  top: calc(100% + 0.8rem); /* Slightly tighter gap */
  left: 50%;
  transform: translateX(-50%) translateY(12px); 
  width: 295px;
  background: rgba(16, 16, 28, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 0.7rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(195,34,31,0.1);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: 
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.4s;
  z-index: 2000;
}

/* Invisible bridge to prevent mouse-out gap */
.nav-drop-panel::after {
  content: '';
  position: absolute;
  top: -1.2rem;
  left: 0;
  right: 0;
  height: 1.2rem;
  background: transparent;
  z-index: -1;
}

.nav-drop-panel::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  background: rgba(16, 16, 28, 0.96);
  border-left: 1px solid rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.12);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.nav-dropdown:hover .nav-drop-panel {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  /* Slightly faster on enter for responsiveness */
  transition-duration: 0.35s;
}

/* Each row inside the panel */
.nav-drop-panel a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  /* Initial state for staggered entry */
  opacity: 0;
  transform: translateY(12px);
  /* Staggered entry transitions */
  transition: 
    background 0.25s ease,
    color 0.25s ease,
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-drop-panel a:hover {
  background: rgba(195,34,31,0.1);
  color: var(--clr-white);
}

/* On hover of dropdown: trigger items with delay */
.nav-dropdown:hover .nav-drop-panel a {
  opacity: 1;
  transform: translateY(0);
}
.nav-dropdown:hover .nav-drop-panel a:nth-child(1) { transition-delay: 0.05s; }
.nav-dropdown:hover .nav-drop-panel a:nth-child(2) { transition-delay: 0.12s; }
.nav-dropdown:hover .nav-drop-panel a:nth-child(3) { transition-delay: 0.19s; }
.nav-dropdown:hover .nav-drop-panel a:nth-child(4) { transition-delay: 0.26s; }
.nav-dropdown:hover .nav-drop-panel a:nth-child(5) { transition-delay: 0.33s; }
.nav-drop-panel a:hover .drop-icon { color: var(--clr-red); }

.drop-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.drop-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.drop-text strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-white);
  font-family: var(--font-body);
}
.drop-text em {
  font-size: 0.73rem;
  font-style: normal;
  color: var(--clr-text-muted);
  line-height: 1.3;
}

/* Coming Soon badge inside dropdown */
.drop-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--clr-plum), var(--clr-red));
  color: #fff;
  line-height: 1.5;
}

/* Dim the Patent item slightly to signal it's not live */
.drop-item-soon { opacity: 0.75; }
.drop-item-soon:hover { opacity: 1; }

/* ── MOBILE NAV - ACCORDION GROUPS ─────────────────────────── */
.mob-group {
  width: 100%;
}

.mob-group-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  cursor: pointer;
  padding: 0.25rem 0;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.mob-group-trigger:hover,
.mob-group.open .mob-group-trigger { color: var(--clr-white); }

.mob-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.mob-group.open .mob-chevron { transform: rotate(180deg); }

.mob-group-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
  padding-left: 1rem;
  border-left: 2px solid rgba(195,34,31,0.3);
  margin-left: 0.5rem;
}
.mob-group.open .mob-group-panel {
  max-height: 280px;
}
.mob-group-panel a {
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mob-group-panel a:last-child { border-bottom: none; }
.mob-group-panel a:hover { color: var(--clr-white); }

/* Mobile Coming Soon badge */
.mob-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--clr-plum), var(--clr-red));
  color: #fff;
  vertical-align: middle;
  margin-left: 0.4rem;
}
.mob-soon { opacity: 0.8; }

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--clr-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../Images/hero_background.png');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.35) saturate(1.2);
  transform: scale(1.05);
  transition: transform 8s ease;
  display: none; /* Substituted by video background */
}
.hero-bg.loaded { transform: scale(1); }

/* Cinematic Video Background styling */
.hero-bg-video-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: var(--clr-dark);
}
.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) saturate(1.1); /* Balanced contrast for dark mode */
  opacity: 0;
  animation: fadeInVideo 1.5s ease forwards;
  transition: filter 0.5s ease;
}
@keyframes fadeInVideo {
  to { opacity: 1; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,16,0.3) 0%,
    rgba(89,28,83,0.12) 40%,
    rgba(10,10,16,0.85) 85%,
    var(--clr-dark) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(195,34,31,0.15);
  border: 1px solid rgba(195,34,31,0.4);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-red-light);
  margin-bottom: 1.8rem;
  backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clr-red);
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.05;
  color: var(--clr-white);
  margin-bottom: 1.5rem;
}
.hero-title .highlight {
  display: block;
  background-image: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(232,232,240,0.85);
  font-weight: 400;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-tagline {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.45);
}
.hero-tagline span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--clr-red);
}

/* Floating drone animation */
.drone-float {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 28vw, 420px);
  z-index: 2;
  animation: droneFly 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 60px rgba(195,34,31,0.4));
}

/* Hero scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-mouse::before {
  content: '';
  width: 3px; height: 7px;
  background: var(--clr-red);
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}

/* ── STATS BAR ───────────────────────────────────────────── */
#stats-bar {
  padding: 2.5rem 0;
  background: var(--clr-dark-3);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item {
  padding: 1rem;
  border-right: 1px solid var(--clr-border);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.5vw, 3rem);
  background-image: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── PROBLEM / SOLUTION ──────────────────────────────────── */
#problem-solution {
  background: var(--clr-dark-2);
}

/* 3 problem cards - same rhythm as steps-grid */
.ps-problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.ps-problem-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.ps-problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-red), var(--clr-plum));
}
.ps-problem-card:hover {
  transform: translateY(-8px);
  border-color: rgba(195,34,31,0.35);
  box-shadow: var(--shadow-glow-red);
}

.ps-problem-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(195,34,31,0.15);
  border: 2px solid rgba(195,34,31,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--clr-red);
  margin: 0 auto 1.5rem;
}

.ps-problem-card h4 {
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--clr-white);
  margin-bottom: 0.75rem;
}
.ps-problem-card p {
  color: var(--clr-text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Branded divider */
.ps-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 3.5rem 0;
}
.ps-divider-line {
  flex: 1;
  height: 1px;
  background: var(--grad-brand);
  opacity: 0.4;
}
.ps-divider-badge {
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-white);
  background: var(--grad-brand);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  white-space: nowrap;
}

/* 2-column solution feature grid */
.ps-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .ps-problems-grid { grid-template-columns: 1fr; }
  .ps-solution-grid  { grid-template-columns: 1fr; }
}


/* ── PRODUCT ─────────────────────────────────────────────── */
#product {
  background: var(--clr-dark);
  overflow: hidden;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.product-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--clr-border); /* Added consistent border */
}
.product-image-wrap img {
  width: 100%;
  border-radius: var(--radius-xl);
  transition: transform 0.6s ease;
}
.product-image-wrap:hover img { transform: scale(1.03); }
.product-image-glow {
  position: absolute;
  inset: -20px;
  background: var(--grad-glow-red);
  pointer-events: none;
  z-index: -1;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.2rem;
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}
.feature-item:hover {
  border-color: rgba(195,34,31,0.4);
  background: rgba(195,34,31,0.05);
  transform: translateX(6px);
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-red);
  transition: transform var(--transition-fast);
}

.feature-text h4 {
  color: var(--clr-white);
  font-family: var(--font-title);
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}
.feature-text p {
  color: var(--clr-text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ── USE CASES ───────────────────────────────────────────── */
#use-cases {
  background: var(--clr-dark-2);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header p {
  color: var(--clr-text-muted);
  max-width: 560px;
  margin: 1rem auto 0;
  font-size: 1.05rem;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.use-case-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.use-case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.use-case-card:hover {
  transform: translateY(-10px);
  border-color: rgba(195,34,31,0.25);
  box-shadow: var(--shadow-glow-red);
}
.use-case-card:hover::before { opacity: 1; }
.use-case-card:hover .uc-icon, 
.use-case-card:hover h4,
.use-case-card:hover p { position: relative; z-index: 1; }

.uc-icon {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}
.uc-icon svg {
  width: 44px; height: 44px;
  stroke: var(--clr-red);
  fill: none;
  transition: stroke 0.35s ease, transform 0.35s ease;
}
.use-case-card:hover .uc-icon svg { 
  stroke: #ffffff; 
  transform: translateY(-3px);
}
.use-case-card h4 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--clr-white);
  margin-bottom: 0.5rem;
}
.use-case-card p {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}
.use-case-card:hover p { color: rgba(255,255,255,0.85); }

/* ── HOW IT WORKS ────────────────────────────────────────── */
#how-it-works {
  background: var(--clr-dark);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 4rem;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 60px;
  left: calc(16.67% + 30px);
  right: calc(16.67% + 30px);
  height: 2px;
  background: var(--grad-brand);
  z-index: 0;
}

.step-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: var(--transition);
  z-index: 1;
}
.step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(195,34,31,0.4);
  box-shadow: var(--shadow-glow-red);
}

/* ── INTERACTIVE HIW BOX ─────────────────────────────────── */
.hiw-interactive-box {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--clr-dark-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}

.hiw-visual-pane {
  position: relative;
  background: #000;
  overflow: hidden;
  min-height: 480px;
}
.hiw-video-container {
  position: relative;
  height: 100%; width: 100%;
}
.hiw-action-video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.95;
  display: block;
}
.hiw-interactive-box:hover .hiw-action-video { opacity: 1; }


.hiw-hotspot {
  position: absolute;
  width: 24px; height: 24px;
  background: var(--clr-red);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 0 0 4px rgba(195,34,31,0.2);
}
.hiw-hotspot::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--clr-red);
  animation: pulse 2s infinite;
}
.h-launch { top: 35%; left: 65%; }
.h-patrol { top: 20%; left: 20%; }
.h-dock   { top: 75%; left: 70%; }

.hiw-details-pane {
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hiw-step-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(195,34,31,0.1);
  color: var(--clr-red);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hiw-step-info {
  display: none;
  animation: fadeIn 0.5s ease;
}
.hiw-step-info.active { display: block; }

.hiw-step-info h3 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  line-height: 1.1;
  color: var(--clr-white);
}

.hiw-step-info p {
  color: var(--clr-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 400px;
}

.hiw-cycle-ctrls {
  margin-top: 3rem;
  display: flex;
  gap: 0.8rem;
}

.hiw-ctrl {
  background: transparent;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.850rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.hiw-ctrl:hover { border-color: rgba(255,255,255,0.3); color: var(--clr-white); }
.hiw-ctrl.active {
  background: var(--clr-red);
  border-color: var(--clr-red);
  color: #fff;
}

@media (max-width: 900px) {
  .hiw-interactive-box { grid-template-columns: 1fr; }
  .hiw-visual-pane { min-height: 350px; }
  .hiw-details-pane { padding: 3rem 2rem; }
}

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

.step-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--clr-white);
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 30px rgba(195,34,31,0.4);
}

.step-icon {
  display: block;
  margin-bottom: 1rem;
  color: var(--clr-red);
}

.step-card h3 {
  color: var(--clr-white);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.step-card p {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── TEAM ─────────────────────────────────────────────────── */
#team {
  background: var(--clr-dark-2);
}

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

.team-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden; /* clip needed for card shape */
  transition: var(--transition);
  text-align: center;
  position: relative;
  z-index: 1;
}
.team-card:hover {
  transform: translateY(-10px);
  border-color: rgba(195,34,31,0.4);
  box-shadow: var(--shadow-glow-red);
}

.team-photo-wrap {
  /* Pull edges flush against card border walls and slightly overlap bottom area to hide gaps */
  margin: -1px -1px -1px -1px;
  width: calc(100% + 2px);
  padding-top: 100%;
  position: relative;
  overflow: hidden;
  background: var(--clr-surface);
  /* Match card top-corner radius so image clips cleanly */
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 2;
}
.team-photo-wrap img {
  position: absolute;
  top: -0.5%;
  left: -0.5%;
  width: 101%;
  height: 101%;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition);
  /* Filter removed to prevent potential edge rendering artifacts */
}
.team-card:hover .team-photo-wrap img {
  transform: scale(1.08);
}

.team-info {
  background: var(--clr-surface);
  padding: 1.5rem 1.2rem;
  position: relative;
  z-index: 3;
  /* Pull the info area up by 1px to physically cover the bottom edge of the photo wrap */
  margin-top: -1px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.team-info h4 {
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--clr-white);
  margin-bottom: 0.3rem;
}
.team-info .role {
  font-size: 0.8rem;
  color: var(--clr-red-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.team-info .bio {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin-top: 0.6rem;
  line-height: 1.6;
}

/* ── TECHNOLOGY / INNOVATION ─────────────────────────────── */
#technology {
  background: var(--clr-dark);
}

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

.tech-pillar-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
  cursor: default;
}

/* Full gradient overlay - fades in on hover */
.tech-pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

/* Always-visible 3px top accent line */
.tech-pillar-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-plum), var(--clr-red));
  z-index: 1;
  transition: opacity 0.35s ease;
}

.tech-pillar-card:hover {
  transform: translateY(-10px);
  border-color: rgba(195,34,31,0.25);
  box-shadow: var(--shadow-glow-red);
}
.tech-pillar-card:hover::before { opacity: 1; }
/* Hide the top line once gradient fills (it's redundant) */
.tech-pillar-card:hover::after { opacity: 0; }

/* Lift all children above the gradient */
.tech-pillar-card:hover .tech-pillar-icon,
.tech-pillar-card:hover .tech-pillar-num,
.tech-pillar-card:hover h4,
.tech-pillar-card:hover p {
  position: relative;
  z-index: 1;
}

.tech-pillar-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(195,34,31,0.12);
  border: 1px solid rgba(195,34,31,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--clr-red);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.tech-pillar-card:hover .tech-pillar-icon {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(255,255,255,0.15);
}

.tech-pillar-num {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--clr-red);
  margin-bottom: 0.75rem;
  opacity: 0.7;
  position: relative;
  z-index: 1;
  transition: color 0.35s ease, opacity 0.35s ease;
}
.tech-pillar-card:hover .tech-pillar-num {
  color: rgba(255,255,255,0.75);
  opacity: 1;
}

.tech-pillar-card h4 {
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--clr-white);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
}
.tech-pillar-card:hover h4 { color: #ffffff; }

.tech-pillar-card p {
  color: var(--clr-text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
}
.tech-pillar-card:hover p { color: rgba(255,255,255,0.88); }

@media (max-width: 768px) {
  .tech-pillars { grid-template-columns: 1fr; }
}

/* ── PATENT SECTION ───────────────────────────────────────── */
#patent {
  background: var(--clr-dark-2);
  position: relative;
  overflow: hidden;
}

.patent-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.patent-lead {
  font-size: 1.15rem;
  color: var(--clr-text);
  margin: 1.5rem 0 2.5rem;
  line-height: 1.6;
  opacity: 0.9;
}

.patent-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.patent-feature {
  display: flex;
  gap: 1.25rem;
}

.patent-feature .p-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(195,34,31,0.1);
  border: 1px solid rgba(195,34,31,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-red);
  flex-shrink: 0;
}

.patent-feature h4 {
  font-size: 1rem;
  color: var(--clr-white);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.patent-feature p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.patent-badge-wrap {
  display: inline-flex;
}

.patent-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--clr-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text);
}

.patent-badge svg {
  color: #27ae60;
}

/* Patent Visual Card */
.patent-visual {
  width: 100%;
  perspective: 1000px;
}

.patent-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.1;
  background: #1a1a24;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.patent-card:hover {
  transform: rotateY(-5deg) rotateX(5deg) translateY(-10px);
}

.patent-card-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(195,34,31,0.1) 0%, transparent 60%),
              radial-gradient(circle at 0% 100%, rgba(89,28,83,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.patent-card-content {
  position: relative;
  z-index: 1;
}

.p-stamp {
  position: absolute;
  top: -120px;
  right: -20px;
  font-family: var(--font-title);
  font-size: 10rem;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
}

.patent-card h3 {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.p-line {
  width: 60px;
  height: 4px;
  background: var(--grad-brand);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.patent-card p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.6;
}

.patent-glow {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: var(--clr-red);
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.patent-card:hover .patent-glow {
  opacity: 0.3;
}

@media (max-width: 1024px) {
  .patent-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .patent-visual {
    max-width: 420px;
    margin: 0 auto;
  }
}


/* ── MARKET & TRACTION ───────────────────────────────────── */
#traction {
  background: var(--clr-dark);
  overflow: hidden;
}

.traction-inner {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 5rem 4rem;
  position: relative;
  overflow: hidden;
}
.traction-inner::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--grad-glow-plum);
  pointer-events: none;
}
.traction-inner::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--grad-glow-red);
  pointer-events: none;
}

.traction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.traction-item {
  padding: 2rem;
}
.traction-number {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 4vw, 4rem);
  background-image: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.traction-label {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.traction-sub {
  font-size: 0.8rem;
  color: rgba(144,144,168,0.7);
  margin-top: 0.3rem;
}

/* ── CONTACT / CTA ───────────────────────────────────────── */
#contact {
  background: var(--clr-dark-2);
}

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

.contact-info h2 {
  color: var(--clr-white);
  margin-bottom: 1rem;
}
.contact-info p {
  color: var(--clr-text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 3.5rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--clr-text-muted);
  transition: var(--transition-fast);
  font-size: 0.95rem;
}
.contact-link:hover { color: var(--clr-white); }
.contact-link .icon-circle {
  width: 40px; height: 40px;
  background: rgba(195,34,31,0.12);
  border: 1px solid rgba(195,34,31,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.contact-link:hover .icon-circle {
  background: var(--clr-red);
  border-color: var(--clr-red);
  color: #ffffff;
}
.contact-link .icon-circle svg {
  stroke: var(--clr-red);
  transition: stroke 0.35s ease;
}
.contact-link:hover .icon-circle svg {
  stroke: #ffffff;
}

.contact-form {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.contact-form h3 {
  font-family: var(--font-title);
  color: var(--clr-white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--clr-dark-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-red);
  box-shadow: 0 0 0 3px rgba(195,34,31,0.15);
}
.form-group select option { background: var(--clr-dark-3); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--clr-dark-3);
  border-top: 1px solid var(--clr-border);
  padding: 3rem 0 2rem;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.footer-brand img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
  margin-left: -7px; /* Pulls logo left to align visually with the text block */
}
.footer-brand p {
  color: var(--clr-text-muted);
  font-size: 0.875rem;
  max-width: 260px;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--clr-white);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-col a {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  transition: var(--transition-fast);
}
.footer-col a:hover { color: var(--clr-red); }

.footer-social {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.8rem;
}
.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  transition: var(--transition-fast);
  border: 1px solid var(--clr-border);
}
.footer-social-link:hover {
  background: var(--grad-brand);
  color: #ffffff;
  border: none;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(195, 34, 31, 0.35);
}
.footer-social-link svg {
  transition: transform 0.3s ease;
}
.footer-social-link:hover svg {
  transform: scale(1.1);
}

:root[data-theme="light"] .footer-social-link {
  background: #1e1e24; /* Dark neutral to contrast white icon in light mode */
  color: #ffffff;
  border: none;
}
:root[data-theme="light"] .footer-social-link:hover {
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(195, 34, 31, 0.25);
}

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  color: var(--clr-text-muted);
  font-size: 0.8rem;
}
.footer-tagline {
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
}
.footer-tagline span { color: var(--clr-red); }

/* ── MOBILE NAV ──────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,10,16,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-title);
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--clr-white);
  transition: var(--transition-fast);
}
.mobile-nav a:hover { color: var(--clr-red); }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── KEYFRAMES ───────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
@keyframes droneFly {
  0%, 100% { transform: translateY(-50%) rotate(-1deg); }
  50%       { transform: translateY(calc(-50% - 28px)) rotate(1.5deg); }
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateY(0); }
  80%  { opacity: 0; transform: translateY(12px); }
  81%  { opacity: 0; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .use-cases-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner   { grid-template-columns: 1fr 1fr; }
  .drone-float    { display: none; }
}

@media (max-width: 900px) {
  .ps-grid, .product-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .traction-grid { grid-template-columns: 1fr; gap: 1rem; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  section { padding: 4rem 0; }
  .traction-inner { padding: 3rem 1.5rem; }
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── THEME TOGGLE AND LIGHT MODE ────────────────────────────── */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--clr-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition-fast);
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.1);
}
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
:root[data-theme="light"] .theme-toggle .sun-icon { display: block; }
:root[data-theme="light"] .theme-toggle .moon-icon { display: none; }
:root[data-theme="light"] .theme-toggle:hover { background: rgba(0,0,0,0.05); }

:root[data-theme="light"] {
  --clr-dark:        #fdfdfd;
  --clr-dark-2:      #f4f5f7;
  --clr-dark-3:      #e9ebf0;
  --clr-surface:     #ffffff;
  --clr-border:      rgba(0,0,0,0.12);
  --clr-text:        #1e1e24;
  --clr-text-muted:  #5c5c6b;
  --clr-white:       #111118;

  /* Redefined glows for light backgrounds */
  --shadow-glow-red:  0 12px 40px rgba(195,34,31,0.15);
  --shadow-glow-plum: 0 12px 40px rgba(89,28,83,0.18);
  --grad-glow-red:    radial-gradient(ellipse at center, rgba(195,34,31,0.12) 0%, transparent 70%);
  --grad-glow-plum:   radial-gradient(ellipse at center, rgba(89,28,83,0.1) 0%, transparent 70%);
}

:root[data-theme="light"] .btn-primary { color: #ffffff !important; box-shadow: 0 4px 20px rgba(195,34,31,0.25); }
:root[data-theme="light"] .btn-primary:hover { box-shadow: 0 8px 30px rgba(195,34,31,0.4); }
:root[data-theme="light"] section:not(#hero) .btn-outline { border-color: rgba(0,0,0,0.3); }
:root[data-theme="light"] section:not(#hero) .btn-outline:hover { background: rgba(195,34,31,0.1); color: var(--clr-red); border-color: var(--clr-red); }
/* Hero Section forces Dark Mode variables even when Light Theme is active */
:root[data-theme="light"] #hero {
  --clr-text: #e8e8f0;
  --clr-text-muted: #9090a8;
  --clr-white: #ffffff;
}

:root[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    to bottom, 
    rgba(10,10,16,0.3) 0%, 
    rgba(89,28,83,0.12) 40%, 
    rgba(10,10,16,0.85) 85%, 
    #0a0a10 100%
  );
}

:root[data-theme="light"] #navbar { 
  background: rgba(255, 255, 255, 0.85); 
  border-color: rgba(0, 0, 0, 0.08); 
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
:root[data-theme="light"] #navbar.scrolled { 
  background: rgba(255, 255, 255, 0.55); 
  border-color: rgba(0, 0, 0, 0.06); 
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04); 
}
:root[data-theme="light"] .hamburger span { background: #111118; }
:root[data-theme="light"] .ps-divider-badge { color: #ffffff; }
:root[data-theme="light"] .step-number { color: #ffffff; box-shadow: 0 5px 25px rgba(195,34,31,0.25); }
:root[data-theme="light"] .footer-brand img { filter: none; }
:root[data-theme="light"] .product-image-wrap img { filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15)); }
:root[data-theme="light"] .ps-problem-card:hover { box-shadow: var(--shadow-glow-red); border-color: rgba(195,34,31,0.3); }
:root[data-theme="light"] .use-case-card:hover { box-shadow: var(--shadow-glow-red); }
:root[data-theme="light"] .step-card { box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
:root[data-theme="light"] .step-card:hover { box-shadow: var(--shadow-glow-red); border-color: rgba(195,34,31,0.3); }
:root[data-theme="light"] .team-card { border-color: rgba(0,0,0,0.08); }
:root[data-theme="light"] .team-card:hover { box-shadow: var(--shadow-glow-red); border-color: rgba(195,34,31,0.3); }

/* Ensure use-case card text becomes white over the dark hover gradient in light mode */
:root[data-theme="light"] .use-case-card:hover h4 { color: #ffffff; }
:root[data-theme="light"] .use-case-card:hover p { color: rgba(255,255,255,0.85); }

/* Interactive HIW Section - Light Mode */
:root[data-theme="light"] .hiw-interactive-box { background: #ffffff; box-shadow: 0 40px 100px rgba(0,0,0,0.08); }
:root[data-theme="light"] .hiw-step-info h3 { color: var(--clr-dark); }
:root[data-theme="light"] .hiw-ctrl { border-color: #ddd; color: #666; }
:root[data-theme="light"] .hiw-ctrl:hover { border-color: #999; color: #111; }
:root[data-theme="light"] .hiw-ctrl.active { background: var(--clr-red); border-color: var(--clr-red); color: #fff; }

/* ── LIGHT MODE: NAV DROPDOWNS ───────────────────────────── */

/* Trigger button text */
:root[data-theme="light"] .nav-drop-trigger {
  color: #3a3a4a;
}
:root[data-theme="light"] .nav-drop-trigger:hover,
:root[data-theme="light"] .nav-dropdown:hover .nav-drop-trigger {
  color: #111118;
}
:root[data-theme="light"] .nav-chevron {
  color: #3a3a4a;
}

/* White glass panel */
:root[data-theme="light"] .nav-drop-panel {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
}
:root[data-theme="light"] .nav-drop-panel::before {
  background: rgba(255, 255, 255, 0.98);
  border-left-color: rgba(0, 0, 0, 0.08);
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* Row links */
:root[data-theme="light"] .nav-drop-panel a {
  color: #2a2a36;
}
:root[data-theme="light"] .nav-drop-panel a:hover {
  background: rgba(195, 34, 31, 0.07);
  color: #111118;
}

/* Icon bubble */
:root[data-theme="light"] .drop-icon {
  background: rgba(0, 0, 0, 0.05);
  color: #5c5c6b;
}
:root[data-theme="light"] .nav-drop-panel a:hover .drop-icon {
  background: rgba(195, 34, 31, 0.1);
  color: var(--clr-red);
}

/* Text inside rows */
:root[data-theme="light"] .drop-text strong {
  color: #111118;
}
:root[data-theme="light"] .drop-text em {
  color: #5c5c6b;
}

/* ── LIGHT MODE: MOBILE ACCORDION ────────────────────────── */
:root[data-theme="light"] .mob-group-trigger {
  color: #3a3a4a;
}
:root[data-theme="light"] .mob-group-trigger:hover,
:root[data-theme="light"] .mob-group.open .mob-group-trigger {
  color: #111118;
}
:root[data-theme="light"] .mob-group-panel {
  border-left-color: rgba(195, 34, 31, 0.25);
}
:root[data-theme="light"] .mob-group-panel a {
  color: #5c5c6b;
  border-bottom-color: rgba(0,0,0,0.06);
}
:root[data-theme="light"] .mob-group-panel a:hover {
  color: #111118;
}
