/* ═══════════════════════════════════════════════════════════════
   GuardianEye — Premium Showcase Website
   Design: Dark OLED Cyberpunk + Clean Light Theme
   Typography: Exo (headings) / Roboto Mono (data)
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700;800;900&family=Roboto+Mono:wght@300;400;500;700&display=swap');

/* ── CSS Custom Properties ────────────────────────────────────── */
:root {
  /* Dark Theme (default) */
  --bg-primary: #0A0E1A;
  --bg-secondary: #0D1225;
  --bg-tertiary: #111827;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-border: rgba(255, 255, 255, 0.08);

  --text-primary: #F0F4F8;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-heading: #FFFFFF;

  --accent-cyan: #F59E0B;
  --accent-purple: #E67E22;
  --accent-pink: #FF3D71;
  --accent-green: #00E676;
  --accent-amber: #FFB300;
  --accent-cyan-glow: rgba(245, 158, 11, 0.4);
  --accent-purple-glow: rgba(230, 126, 34, 0.3);

  --gradient-primary: linear-gradient(135deg, #F59E0B 0%, #E67E22 100%);
  --gradient-hero: linear-gradient(180deg, #0A0E1A 0%, #0D1225 50%, #111827 100%);
  --gradient-card: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(230, 126, 34, 0.08) 100%);
  --gradient-border: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(230, 126, 34, 0.3));

  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(245, 158, 11, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(245, 158, 11, 0.25);

  --nav-bg: rgba(10, 14, 26, 0.85);
  --nav-border: rgba(255, 255, 255, 0.06);

  --code-bg: rgba(245, 158, 11, 0.08);
  --code-color: #F59E0B;

  --table-header-bg: rgba(245, 158, 11, 0.1);
  --table-row-hover: rgba(245, 158, 11, 0.05);
  --table-border: rgba(255, 255, 255, 0.08);

  --particle-color: rgba(245, 158, 11, 0.15);
  --grid-line: rgba(245, 158, 11, 0.03);

  /* Spacing */
  --section-padding: 120px;
  --container-max: 1280px;
  --nav-height: 72px;
  --border-radius: 16px;
  --border-radius-sm: 10px;
  --border-radius-xs: 6px;

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 250ms ease-out;
  --transition-slow: 400ms ease-out;
  --transition-theme: 500ms ease;
}

/* ── Light Theme ──────────────────────────────────────────────── */
[data-theme="light"] {
  --bg-primary: #F8FAFD;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F1F5F9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-border: rgba(0, 0, 0, 0.06);

  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-heading: #0F172A;

  --accent-cyan: #B45309;
  --accent-purple: #C2410C;
  --accent-pink: #E11D48;
  --accent-green: #059669;
  --accent-amber: #D97706;
  --accent-cyan-glow: rgba(180, 83, 9, 0.15);
  --accent-purple-glow: rgba(194, 65, 12, 0.1);

  --gradient-primary: linear-gradient(135deg, #D97706 0%, #C2410C 100%);
  --gradient-hero: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 50%, #FDE68A20 100%);
  --gradient-card: linear-gradient(135deg, rgba(180, 83, 9, 0.06) 0%, rgba(194, 65, 12, 0.06) 100%);
  --gradient-border: linear-gradient(135deg, rgba(180, 83, 9, 0.2), rgba(194, 65, 12, 0.2));

  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(180, 83, 9, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(180, 83, 9, 0.08);
  --shadow-glow-strong: 0 0 60px rgba(180, 83, 9, 0.12);

  --nav-bg: rgba(255, 255, 255, 0.88);
  --nav-border: rgba(0, 0, 0, 0.06);

  --code-bg: rgba(180, 83, 9, 0.08);
  --code-color: #B45309;

  --table-header-bg: rgba(180, 83, 9, 0.08);
  --table-row-hover: rgba(180, 83, 9, 0.04);
  --table-border: rgba(0, 0, 0, 0.08);

  --particle-color: rgba(180, 83, 9, 0.08);
  --grid-line: rgba(180, 83, 9, 0.04);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Exo', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition-theme), color var(--transition-theme);
  /* Subtle noise texture for premium depth */
  background-image: radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 50%, rgba(230, 126, 34, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Exo', sans-serif;
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 700;
  transition: color var(--transition-theme);
}

code, .mono {
  font-family: 'Roboto Mono', monospace;
}

a {
  text-decoration: none;
  color: var(--accent-cyan);
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent-purple); }

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

/* ── Container ────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 48px; }
}

/* ── Section Base ─────────────────────────────────────────────── */
section {
  padding: 80px 0;
  position: relative;
}

@media (min-width: 768px) {
  section { padding: var(--section-padding) 0; }
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Navigation ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--nav-border);
  border-radius: 16px;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-theme), border-color var(--transition-theme), box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-heading);
  cursor: pointer;
  transition: color var(--transition-theme);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.nav-logo-icon svg {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 8px;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--transition-fast), background var(--transition-fast);
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-cyan);
  background: var(--bg-card);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--accent-cyan);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.theme-toggle:hover svg {
  transform: rotate(30deg);
}

[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }
:root .theme-icon-sun { display: block; }
:root .theme-icon-moon { display: none; }
/* Fix: default dark = show sun, light = show moon */
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }



/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn:hover {
  border-color: var(--border-hover);
  color: var(--accent-cyan);
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
}

/* Mobile Menu Drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: 100px 32px 32px;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 16px 20px;
  border-radius: 12px;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.mobile-menu a:hover {
  background: var(--bg-card);
  color: var(--accent-cyan);
}

/* ── Hero Section ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 0 80px;
  background: var(--gradient-hero);
  overflow: hidden;
  transition: background var(--transition-theme);
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 32px;
  font-family: 'Roboto Mono', monospace;
  transition: background var(--transition-theme), border-color var(--transition-theme);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 8px;
  color: var(--text-heading);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #F59E0B 0%, #F97316 30%, #FFD700 50%, #F59E0B 70%, #E67E22 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerGold 4s ease-in-out infinite;
}

@keyframes shimmerGold {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Neon Glow for dark theme only */
[data-theme="dark"] .hero-title .gradient-text,
:root:not([data-theme="light"]) .hero-title .gradient-text {
  filter: drop-shadow(0 0 40px rgba(245, 158, 11, 0.5)) drop-shadow(0 0 80px rgba(245, 158, 11, 0.2));
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 700px;
  margin: 16px auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px var(--accent-cyan-glow);
  color: #fff;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--bg-glass);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  color: var(--accent-cyan);
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition-base);
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.stat-value {
  font-family: 'Roboto Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: block;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ── Multi-Drone Flying Scene ─────────────────────────────────── */
.hero-drone-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-drone-scene { opacity: 0.5; }
  .drone-2, .drone-3 { display: none; }
}

/* Individual Flying Drones */
.flying-drone {
  position: absolute;
  color: var(--accent-cyan);
}

.flying-drone svg {
  width: 100%;
  height: 100%;
}

/* Rotor spin animation */
.rotor {
  animation: rotorSpin 0.15s linear infinite;
  transform-origin: center;
}

@keyframes rotorSpin {
  from { opacity: 0.15; }
  to { opacity: 0.35; }
}

/* Drone 1: Main drone — large, foreground, diagonal patrol */
.drone-1 {
  width: 140px;
  height: 88px;
  top: 12%;
  right: 8%;
  opacity: 0.35;
  animation: dronePatrol1 12s ease-in-out infinite;
  filter: drop-shadow(0 0 8px var(--accent-cyan-glow));
}

@keyframes dronePatrol1 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  15%  { transform: translate(-60px, -25px) rotate(-4deg); }
  30%  { transform: translate(-120px, 10px) rotate(2deg); }
  50%  { transform: translate(-80px, 40px) rotate(-1deg); }
  65%  { transform: translate(-20px, 20px) rotate(3deg); }
  80%  { transform: translate(30px, -15px) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Drone 2: Medium drone — mid-depth, opposite patrol */
.drone-2 {
  width: 90px;
  height: 56px;
  top: 25%;
  left: 10%;
  opacity: 0.18;
  animation: dronePatrol2 16s ease-in-out infinite;
}

@keyframes dronePatrol2 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(50px, -30px) rotate(3deg); }
  40%  { transform: translate(100px, 5px) rotate(-2deg); }
  60%  { transform: translate(70px, 35px) rotate(1deg); }
  80%  { transform: translate(20px, 15px) rotate(-3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Drone 3: Small drone — far background, slow sweep */
.drone-3 {
  width: 55px;
  height: 34px;
  bottom: 28%;
  right: 18%;
  opacity: 0.1;
  animation: dronePatrol3 20s ease-in-out infinite;
}

@keyframes dronePatrol3 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-40px, -15px); }
  50%  { transform: translate(-80px, 10px); }
  75%  { transform: translate(-30px, 25px); }
  100% { transform: translate(0, 0); }
}

/* Search Beam — spotlight cone from drone 1 */
.search-beam {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 250px;
  background: linear-gradient(
    180deg,
    var(--accent-cyan) 0%,
    rgba(245, 158, 11, 0.08) 40%,
    transparent 100%
  );
  opacity: 0.25;
  clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
  width: 120px;
  animation: beamSweep 6s ease-in-out infinite;
}

[data-theme="light"] .search-beam {
  background: linear-gradient(
    180deg,
    var(--accent-cyan) 0%,
    rgba(180, 83, 9, 0.06) 40%,
    transparent 100%
  );
  opacity: 0.15;
}

@keyframes beamSweep {
  0%, 100% { transform: translateX(-50%) skewX(-5deg); opacity: 0.25; }
  25%      { transform: translateX(-50%) skewX(8deg); opacity: 0.35; }
  50%      { transform: translateX(-50%) skewX(-3deg); opacity: 0.2; }
  75%      { transform: translateX(-50%) skewX(6deg); opacity: 0.3; }
}

/* Radar Pulse Rings */
.radar-ring {
  position: absolute;
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.ring-1 {
  width: 200px;
  height: 200px;
  top: 8%;
  right: 4%;
  animation: radarPulse 4s ease-out infinite;
}

.ring-2 {
  width: 200px;
  height: 200px;
  top: 8%;
  right: 4%;
  animation: radarPulse 4s ease-out 1.3s infinite;
}

.ring-3 {
  width: 200px;
  height: 200px;
  top: 8%;
  right: 4%;
  animation: radarPulse 4s ease-out 2.6s infinite;
}

@keyframes radarPulse {
  0% {
    transform: scale(0.3);
    opacity: 0.4;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: 'Roboto Mono', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
}

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

/* ── About Section ────────────────────────────────────────────── */
.about { background: var(--bg-secondary); transition: background var(--transition-theme); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.principles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.principle-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-base);
  cursor: default;
}

.principle-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.principle-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.principle-icon svg {
  width: 22px;
  height: 22px;
}

.principle-content h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.principle-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* About visual (drone illustration) */
.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-illustration {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  position: relative;
}

.orbit-ring {
  position: absolute;
  border: 1px dashed var(--border-color);
  border-radius: 50%;
  animation: orbitSpin 20s linear infinite;
}

.orbit-ring:nth-child(1) {
  inset: 10%;
  animation-duration: 25s;
}
.orbit-ring:nth-child(2) {
  inset: 25%;
  animation-duration: 18s;
  animation-direction: reverse;
}
.orbit-ring:nth-child(3) {
  inset: 40%;
  animation-duration: 15s;
}

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

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-cyan-glow);
  top: -5px;
  left: 50%;
  margin-left: -5px;
}

.about-center-icon {
  position: absolute;
  inset: 35%;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.about-center-icon svg {
  width: 48px;
  height: 48px;
  color: var(--accent-cyan);
}

/* ── Architecture Pipeline ────────────────────────────────────── */
.architecture {
  background: var(--bg-primary);
  transition: background var(--transition-theme);
}

.pipeline-stages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .pipeline-stages {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.pipeline-stage {
  position: relative;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-align: center;
  transition: all var(--transition-base);
  cursor: default;
}

.pipeline-stage:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.pipeline-stage-number {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.pipeline-stage-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  transition: all var(--transition-base);
}

.pipeline-stage:hover .pipeline-stage-icon {
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.pipeline-stage-icon svg {
  width: 28px;
  height: 28px;
}

.pipeline-stage h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.pipeline-stage p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Connector arrows between stages (desktop only) */
.pipeline-connector {
  display: none;
}

@media (min-width: 768px) {
  .pipeline-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    color: var(--accent-cyan);
    opacity: 0.5;
  }
  .pipeline-connector svg {
    width: 24px;
    height: 24px;
  }
}

/* Component Grid */
.components-title {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 32px;
  color: var(--text-heading);
}

.components-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .components-grid { grid-template-columns: repeat(4, 1fr); }
}

.component-card {
  padding: 24px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  text-align: center;
  transition: all var(--transition-base);
  cursor: default;
}

.component-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.component-card svg {
  width: 28px;
  height: 28px;
  color: var(--accent-cyan);
  margin: 0 auto 12px;
}

.component-card h4 {
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.component-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Algorithms Section ───────────────────────────────────────── */
.algorithms {
  background: var(--bg-secondary);
  transition: background var(--transition-theme);
}

.algo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.algo-tab {
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: 'Exo', sans-serif;
}

.algo-tab:hover {
  border-color: var(--border-hover);
  color: var(--accent-cyan);
}

.algo-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

.algo-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  transition: background var(--transition-theme);
}

.algo-panel.active {
  display: block;
  animation: fadeSlideUp 0.4s ease-out;
}

.algo-panel h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.algo-panel p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.formula-block {
  background: var(--code-bg);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--border-radius-xs);
  padding: 20px 28px;
  margin: 20px 0;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.95rem;
  color: var(--code-color);
  overflow-x: auto;
  text-align: center;
  letter-spacing: 0.3px;
  line-height: 1.8;
}

.formula-var {
  font-style: italic;
  font-weight: 600;
  color: var(--accent-amber);
}

.formula-accent {
  font-weight: 700;
  color: var(--text-heading);
}

.formula-block sub {
  font-size: 0.7em;
  color: var(--text-secondary);
}

.algo-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .algo-features { grid-template-columns: repeat(2, 1fr); }
}

.algo-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
}

.algo-feature svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--accent-green);
  margin-top: 2px;
}

.algo-feature span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── Tech Stack ────────────────────────────────────────────────── */
.techstack {
  background: var(--bg-primary);
  transition: background var(--transition-theme);
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.tech-grid > * {
  flex: 0 1 calc(50% - 16px);
  min-width: 200px;
}

@media (min-width: 768px) {
  .tech-grid > * {
    flex: 0 1 calc(25% - 16px);
  }
}

.tech-card {
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-align: center;
  transition: all var(--transition-base);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.tech-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--gradient-card);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent-cyan);
}

.tech-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.tech-card .tech-layer {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.tech-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Results Section ──────────────────────────────────────────── */
.results {
  background: var(--bg-secondary);
  transition: background var(--transition-theme);
}

.results-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .results-hero-stats { grid-template-columns: repeat(4, 1fr); }
}

.result-stat {
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-align: center;
  transition: all var(--transition-base);
  cursor: default;
}

.result-stat:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.result-stat .big-number {
  font-family: 'Roboto Mono', monospace;
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.result-stat .stat-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

/* Data Tables */
.data-table-wrapper {
  overflow-x: auto;
  margin-bottom: 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table thead {
  background: var(--table-header-bg);
}

.data-table th {
  padding: 14px 18px;
  font-weight: 600;
  text-align: left;
  color: var(--text-heading);
  border-bottom: 1px solid var(--table-border);
  white-space: nowrap;
  font-size: 0.85rem;
}

.data-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--table-row-hover);
}

.data-table .highlight {
  color: var(--accent-cyan);
  font-weight: 600;
}

.data-table .positive {
  color: var(--accent-green);
  font-weight: 600;
}

.data-table .negative {
  color: var(--accent-pink);
  font-weight: 600;
}

/* Latency Bar Chart */
.latency-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.latency-chart h4 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.latency-bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.latency-label {
  width: 180px;
  min-width: 180px;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: right;
  font-family: 'Roboto Mono', monospace;
}

.latency-bar-track {
  flex: 1;
  height: 28px;
  background: var(--bg-glass);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.latency-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: var(--gradient-primary);
  transition: width 1.2s ease-out;
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.78rem;
  color: #fff;
  font-weight: 600;
  min-width: fit-content;
}

.latency-bar-value {
  min-width: 50px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Operator Console ─────────────────────────────────────────── */
.console-section {
  background: var(--bg-primary);
  transition: background var(--transition-theme);
}

.console-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .console-layout {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
}

.console-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 4px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.console-inner {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 50px 1fr 200px;
  grid-template-rows: 36px 1fr 40px;
  gap: 2px;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.console-topbar {
  grid-column: 1 / -1;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.console-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.console-dot.red { background: var(--accent-pink); }
.console-dot.yellow { background: var(--accent-amber); }
.console-dot.green { background: var(--accent-green); }

.console-sidebar {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  gap: 4px;
}

.console-sidebar-item {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
}

.console-sidebar-item.active {
  border-color: var(--accent-cyan);
  background: var(--gradient-card);
}

.console-viewport {
  background: var(--bg-secondary);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.console-viewport-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(245, 158, 11, 0.02) 2px,
    rgba(245, 158, 11, 0.02) 4px
  );
}

.console-viewport-text {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.5rem;
  color: var(--accent-cyan);
  opacity: 0.5;
}

.console-intel {
  background: var(--bg-card);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.console-intel-block {
  flex: 1;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.console-bottom {
  grid-column: 1 / -1;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
}

.console-btn-mock {
  width: 40px;
  height: 24px;
  border-radius: 4px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
}

.console-btn-mock.danger {
  border-color: rgba(255, 61, 113, 0.3);
  background: rgba(255, 61, 113, 0.1);
}

/* Console Feature List */
.console-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.console-feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-base);
  cursor: default;
}

.console-feature:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.console-feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Roboto Mono', monospace;
}

.console-feature:nth-child(1) .console-feature-icon { background: linear-gradient(135deg, #00D4FF, #0284C7); }
.console-feature:nth-child(2) .console-feature-icon { background: linear-gradient(135deg, #7B61FF, #6D28D9); }
.console-feature:nth-child(3) .console-feature-icon { background: linear-gradient(135deg, #00E676, #059669); }
.console-feature:nth-child(4) .console-feature-icon { background: linear-gradient(135deg, #FFB300, #D97706); }
.console-feature:nth-child(5) .console-feature-icon { background: linear-gradient(135deg, #FF3D71, #E11D48); }

.console-feature h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.console-feature p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Comparison Table ─────────────────────────────────────────── */
.comparison {
  background: var(--bg-secondary);
  transition: background var(--transition-theme);
}

.comparison .data-table .guardian-row {
  background: var(--gradient-card);
}

.comparison .data-table .guardian-row td {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ── Team Section ─────────────────────────────────────────────── */
.team {
  background: var(--bg-primary);
  transition: background var(--transition-theme);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

.team-card {
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-align: center;
  transition: all var(--transition-base);
  cursor: default;
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.team-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent-cyan);
  transition: border-color var(--transition-theme);
}

.team-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.team-card .team-role {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-family: 'Roboto Mono', monospace;
  margin-bottom: 8px;
}

.team-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Guide card (last in team, special) */
.team-card.guide-card {
  border: 1px solid rgba(0, 212, 255, 0.2);
  background: var(--gradient-card);
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
  transition: background var(--transition-theme), border-color var(--transition-theme);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-content { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 380px;
}

.footer-links h4 {
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--text-heading);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
  cursor: pointer;
}

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

.footer-divider {
  height: 1px;
  background: var(--border-color);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-ieee {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent-cyan);
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--code-bg);
  border: 1px solid var(--border-color);
}

/* ── Scroll Reveal Animations ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 480ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 560ms; opacity: 1; transform: translateY(0); }

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

/* ── Reduced Motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
  .stagger-children > * {
    opacity: 1;
    transform: none;
  }
  html { scroll-behavior: auto; }
}

/* ── State Machine Diagram ────────────────────────────────────── */
.fsm-diagram {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin-top: 20px;
}

.fsm-state {
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  cursor: default;
}

.fsm-state:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.fsm-state.active-state {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--gradient-card);
}

.fsm-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* ── Misc ─────────────────────────────────────────────────────── */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-border {
  position: relative;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.glow-border:hover::after {
  opacity: 1;
}

/* ── Safety Section ───────────────────────────────────────────── */
.safety-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
}

.safety-sub-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  margin-top: 40px;
  text-align: center;
}

/* Mobile nav body scroll lock */
body.menu-open {
  overflow: hidden;
}

/* ── Keyframe: pulse glow ─────────────────────────────────────── */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px var(--accent-cyan-glow); }
  50% { box-shadow: 0 0 24px var(--accent-cyan-glow); }
}

.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ── Scroll-Following Drone ──────────────────────────────────── */
.scroll-drone {
  position: fixed;
  left: 0;
  top: 0;
  width: 100px;
  height: 67px;
  color: var(--accent-cyan);
  opacity: 0;
  z-index: 50;
  pointer-events: none;
  transition: opacity 0.6s ease;
  filter: drop-shadow(0 0 10px var(--accent-cyan-glow));
  will-change: transform;
}

.scroll-drone.visible {
  opacity: 0.3;
}

.scroll-drone svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .scroll-drone { display: none; }
}

/* Light theme bg */
[data-theme="light"] {
  --bg-primary: #FFFBEB;
}

/* ══════════════════════════════════════════════════════════
   PREMIUM VISUAL EFFECTS
   ══════════════════════════════════════════════════════════ */

/* ── Floating Ambient Orbs (Hero) ────────────────────────── */
.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  top: 10%;
  left: -10%;
  animation: floatOrb1 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 126, 34, 0.06) 0%, transparent 70%);
  bottom: 5%;
  right: -5%;
  animation: floatOrb2 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, -40px) scale(1.1); }
  50% { transform: translate(30px, 60px) scale(0.95); }
  75% { transform: translate(-40px, 20px) scale(1.05); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, 40px) scale(1.08); }
  66% { transform: translate(50px, -30px) scale(0.92); }
}

/* ── Enhanced Card Hover (Animated Border Gradient) ──────── */
.component-card,
.tech-card {
  position: relative;
  overflow: hidden;
}

.component-card::before,
.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.component-card:hover::before,
.tech-card:hover::before {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(230, 126, 34, 0.1), rgba(245, 158, 11, 0.4));
  opacity: 1;
}

/* Card inner glow on hover */
.component-card:hover,
.tech-card:hover {
  box-shadow: 
    0 0 30px rgba(245, 158, 11, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 30px rgba(245, 158, 11, 0.03);
}

/* ── Stat Cards Glowing Border ───────────────────────────── */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.5s ease;
  border-radius: 2px;
}

.stat-card:hover::after {
  width: 80%;
}

/* ── Result Stat Glow ────────────────────────────────────── */
.result-stat {
  position: relative;
  overflow: hidden;
}

.result-stat::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(245, 158, 11, 0.05), transparent 30%);
  animation: rotateGlow 8s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.result-stat:hover::before {
  opacity: 1;
}

@keyframes rotateGlow {
  100% { transform: rotate(360deg); }
}

/* ── Section Separator Glow Lines ────────────────────────── */
section + section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.15;
}

/* ── Animated Badge Pulse ────────────────────────────────── */
.hero-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

/* ── Better Algo Tab Animation ────────────────────────────── */
.algo-tab.active {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

/* ── Enhanced Pipeline Arrow Animation ────────────────────── */
.pipeline-arrow {
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

/* ── Nav Logo Glow on Dark ────────────────────────────────── */
[data-theme="dark"] .nav-logo svg,
:root:not([data-theme="light"]) .nav-logo svg {
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3));
}

/* ── Console Viewport Enhanced Scan ───────────────────────── */
.console-viewport {
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .console-viewport::after,
:root:not([data-theme="light"]) .console-viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(245, 158, 11, 0.02) 50%, transparent 100%);
  pointer-events: none;
}

/* ── Smooth Section Reveal ────────────────────────────────── */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  will-change: transform, opacity;
}

/* ── Comparison Table Row Hover Glow ──────────────────────── */
.data-table tbody tr {
  transition: all 0.3s ease;
}

.data-table tbody tr:hover {
  background: var(--table-row-hover);
  box-shadow: inset 3px 0 0 var(--accent-cyan);
}

/* ── Better Footer Glow ───────────────────────────────────── */
.footer {
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.3;
}

/* ── Scroll Indicator Bounce ──────────────────────────────── */
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ── Button Glow on Hover (Dark) ──────────────────────────── */
[data-theme="dark"] .btn-primary:hover,
:root:not([data-theme="light"]) .btn-primary:hover {
  box-shadow: 0 6px 30px rgba(245, 158, 11, 0.35), 0 0 60px rgba(245, 158, 11, 0.15);
}

/* ── Flyover Trail Effect for Scroll Drone ────────────────── */
.scroll-drone.visible {
  filter: drop-shadow(0 0 12px var(--accent-cyan-glow)) drop-shadow(0 4px 20px rgba(245, 158, 11, 0.2));
}
