/* -- Page canvas: solid dark base stays dominant; a single opposite-
   corner diagonal wash (red top-right -> plum bottom-left) runs behind
   the whole home page below the hero (hero itself is fully covered by
   its own video/overlay so this only shows from Stats onward). Two
   glows only, unlike other pages' multi-glow washes, to keep it
   distinct in "type" as well as angle. -- */
body.page-home {
  background:
    radial-gradient(ellipse 1000px 650px at 96% 0%, rgba(195,34,31,0.20), transparent 58%),
    radial-gradient(ellipse 1000px 750px at 4% 100%, rgba(89,28,83,0.20), transparent 58%),
    var(--clr-dark);
}
:root[data-theme="light"] body.page-home {
  background:
    radial-gradient(ellipse 1000px 650px at 96% 0%, rgba(195,34,31,0.11), transparent 58%),
    radial-gradient(ellipse 1000px 750px at 4% 100%, rgba(89,28,83,0.11), transparent 58%),
    var(--clr-dark);
}

/* ── 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('../../Resources/Images/hero_background.png');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.35) saturate(1.2);
  display: none; /* Substituted by video background */
}

/* 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-inner {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
  padding-bottom: 5rem;
  width: calc(100% - 2rem);
  max-width: 1200px;
  margin: 0 auto;
}

.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.4rem, 5vw, 4.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: 1.1rem;
  color: rgba(232,232,240,0.85);
  font-weight: 400;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

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

/* .btn-outline's real border adds height vs .btn-primary's borderless box;
   swap to an inset box-shadow (same look, doesn't affect box height) so
   both hero CTAs match exactly */
#hero .btn-outline {
  border: none;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3);
}
#hero .btn-outline:hover {
  box-shadow: inset 0 0 0 2px var(--clr-red);
}

.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;
}

