/* ----------------------------------------------------
   NetScope Premium Stylesheet - Vibe REDESIGN
   ---------------------------------------------------- */

/* --- Custom Properties (Design System Tokens) --- */
:root {
  /* Supabase-Style Light Theme Variables */
  --bg-dark: hsl(210, 20%, 98%);
  --bg-dark-card: rgba(255, 255, 255, 0.45); /* High Translucency Glass */
  --bg-dark-accent: hsl(210, 15%, 95%);
  --border-glass: rgba(0, 0, 0, 0.06);
  
  --text-primary: hsl(220, 40%, 12%);
  --text-secondary: hsl(220, 15%, 38%);
  --text-muted: hsl(220, 10%, 55%);
  
  --primary: hsl(265, 85%, 55%);
  --primary-glow: rgba(130, 70, 240, 0.12);
  --primary-hover: hsl(265, 85%, 48%);
  
  --neon-cyan: hsl(190, 95%, 40%);
  --neon-cyan-glow: rgba(0, 220, 255, 0.2);
  
  --neon-purple: hsl(285, 85%, 50%);
  --neon-purple-glow: rgba(200, 50, 255, 0.2);
  
  --neon-green: hsl(140, 85%, 35%);
  --neon-green-glow: rgba(0, 200, 50, 0.2);
  
  --neon-red: hsl(355, 85%, 50%);
  --neon-red-glow: rgba(255, 50, 70, 0.2);
  
  --neon-yellow: hsl(42, 90%, 42%);
  --neon-yellow-glow: rgba(255, 180, 0, 0.2);
  
  --glass-blur: blur(20px); /* Upgraded blur */
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother bezier */
  --transition-fast: all 0.15s ease-out;
  
  --container-width: 1200px;

  /* Phone Mockup Responsive Scale Variables */
  --phone-scale: 1;
  --phone-w: 310px;
  --phone-h: 650px;
  --radar-size: 130px;
  --grid-gap: 0.8rem;
  --card-padding: 0.9rem;
}

/* --- Dark Theme Variables --- */
[data-theme="dark"] {
  --bg-dark: hsl(224, 25%, 5%);
  --bg-dark-card: rgba(10, 14, 26, 0.45);
  --bg-dark-accent: hsl(224, 25%, 8%);
  --border-glass: rgba(255, 255, 255, 0.05);
  
  --text-primary: hsl(0, 0%, 93%);
  --text-secondary: hsl(224, 12%, 75%);
  --text-muted: hsl(224, 10%, 55%);
  
  --primary: hsl(265, 85%, 60%);
  --primary-glow: hsla(265, 85%, 60%, 0.2);
  --primary-hover: hsl(265, 85%, 65%);
  
  --neon-cyan: hsl(180, 100%, 50%);
  --neon-cyan-glow: hsla(180, 100%, 50%, 0.35);
  
  --neon-purple: hsl(285, 100%, 60%);
  --neon-purple-glow: hsla(285, 100%, 60%, 0.35);
  
  --neon-green: hsl(140, 100%, 45%);
  --neon-green-glow: hsla(140, 100%, 45%, 0.35);
  
  --neon-red: hsl(355, 100%, 60%);
  --neon-red-glow: hsla(355, 100%, 60%, 0.35);
  
  --neon-yellow: hsl(45, 100%, 50%);
  --neon-yellow-glow: hsla(45, 100%, 50%, 0.35);
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  transition: background-color 0.5s ease, color 0.5s ease;
  padding-top: 110px;
}

/* --- Ambient Glow Blobs --- */
.bg-glow-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -3;
  pointer-events: none;
  opacity: 0.15;
  transition: opacity 0.5s ease;
}

[data-theme="dark"] .bg-glow-blob {
  opacity: 0.08;
}

.blob-1 {
  top: -50px;
  left: -150px;
  background: radial-gradient(circle, var(--primary) 0%, var(--neon-cyan) 100%);
}

.blob-2 {
  top: 35%;
  right: -200px;
  background: radial-gradient(circle, var(--neon-purple) 0%, var(--neon-cyan) 100%);
}

.blob-3 {
  top: 75%;
  left: 10%;
  background: radial-gradient(circle, var(--primary) 0%, var(--neon-green) 100%);
}

/* --- High Performance Background Canvas --- */
#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* --- Structural Layout Helpers --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Prevent content blowout in CSS Grid columns on small screens */
.hero-content,
.hero-visual,
.telemetry-content,
.telemetry-visual,
.speed-content,
.speed-visual,
.map-content,
.map-visual,
.integration-content,
.supabase-card-wrap {
  min-width: 0;
}

.container-narrow {
  max-width: 800px;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-header);
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 3.5rem auto;
  font-weight: 400;
}

.text-glow {
  background: linear-gradient(135deg, var(--primary) 20%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- Premium Glassmorphism Card Style --- */
.glass {
  background: var(--bg-dark-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0,0,0,0.01);
  transition: var(--transition-smooth);
}

.glass:hover {
  border-color: hsla(265, 85%, 60%, 0.22);
  box-shadow: 0 20px 50px -10px rgba(130, 70, 240, 0.08), 0 1px 1px rgba(130,70,240,0.02);
  transform: translateY(-2px);
}

[data-theme="dark"] .glass {
  box-shadow: 0 15px 45px -15px rgba(0, 0, 0, 0.5);
}

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

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-dark);
  box-shadow: 0 8px 25px -8px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px var(--primary-glow);
}

[data-theme="dark"] .btn-primary {
  background-color: #fff;
  color: #000;
}

.btn-secondary {
  background-color: var(--bg-dark-accent);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background-color: var(--primary-glow);
  border-color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

.btn-full {
  width: 100%;
}

/* --- Floating Pill Navigation Bar --- */
#site-header {
  position: fixed;
  top: 1.5rem;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  border: none;
}

.nav-pill {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 2rem;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-header);
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: contain;
}

.logo-text {
  background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

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

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

.mobile-nav-toggle .bar {
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero-container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 4rem;
  min-height: 75vh;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-quick-stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
}

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

.stat-val {
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Smooth Phone Casing Fix (No separate 3D sides) --- */
.hero-visual {
  position: relative;
  perspective: 1500px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(var(--phone-w) * var(--phone-scale));
  height: calc(var(--phone-h) * var(--phone-scale));
  margin: 0 auto;
}

/* Colored glow blob right behind phone mockup to blend with light theme */
.hero-visual-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(130, 70, 240, 0.25) 0%, rgba(0, 220, 255, 0.15) 100%);
  filter: blur(70px);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.device-3d-wrapper {
  position: absolute;
  width: var(--phone-w);
  height: var(--phone-h);
  transform: scale(var(--phone-scale));
  transform-origin: center center;
  transform-style: preserve-3d;
  z-index: 2;
  transition: transform 0.15s ease-out;
}

.device-3d {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 44px;
  transform-style: preserve-3d;
  
  /* Double Bezel - smooth silver titanium border in light theme, space-gray in dark theme */
  border: 12px solid #ffffff;
  outline: 1px solid #e2e8f0;
  
  /* 3D Extrusion using smooth anti-aliased layered shadows */
  box-shadow: 
    0 15px 40px -10px rgba(0, 0, 0, 0.25),
    -2px 2px 0px #e2e8f0,
    -4px 4px 0px #cbd5e1,
    -6px 6px 0px #94a3b8,
    -8px 8px 15px rgba(0, 0, 0, 0.2);
  transition: border-color 0.4s ease, outline-color 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="dark"] .device-3d {
  border-color: #1e293b;
  outline-color: #0f172a;
  box-shadow: 
    0 20px 50px -10px rgba(0, 0, 0, 0.6),
    -2px 2px 0px #0f172a,
    -4px 4px 0px #090d16,
    -6px 6px 12px rgba(0, 0, 0, 0.5);
}

.device-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #080a13; /* Deep navy-black */
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.95);
}

/* --- High-Fidelity App UI Replication --- */
.screenshot-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 1.4rem 0.8rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.screenshot-app-title {
  color: #ffffff;
  font-family: var(--font-header);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
}

.info-btn-left {
  width: 20px;
}

.info-btn-right {
  background: transparent;
  border: none;
  color: #00d2ff;
  font-size: 1.2rem;
  cursor: pointer;
}

.screenshot-screen-content {
  flex: 1;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Radar Monitor Card */
.radar-card-match {
  background: linear-gradient(145deg, #0d1222, #070914);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radar-card-title {
  width: 100%;
  text-align: left;
  font-size: 0.65rem;
  font-weight: 700;
  color: #8c9cb3;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.radar-logo {
  color: #00d2ff;
  font-size: 0.8rem;
}

.radar-display {
  position: relative;
  width: var(--radar-size);
  height: var(--radar-size);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

/* Radar sweep and ripple animations */
.radar-circle-outer {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 70, 85, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden; /* Contains sweep gradient */
}

/* Concentric rippling waves */
.radar-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 70, 85, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.ripple-1 { animation: radar-ripple-key 3.5s infinite linear 0s; }
.ripple-2 { animation: radar-ripple-key 3.5s infinite linear 1.1s; }
.ripple-3 { animation: radar-ripple-key 3.5s infinite linear 2.2s; }

@keyframes radar-ripple-key {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
  8% { opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(12); opacity: 0; }
}

/* Rotating sweep arm */
.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, rgba(255, 70, 85, 0.28) 0deg, transparent 90deg);
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;
  animation: radar-sweep-key 4s infinite linear;
  pointer-events: none;
  z-index: 2;
}

@keyframes radar-sweep-key {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.radar-circle-inner {
  width: calc(var(--radar-size) - 28px);
  height: calc(var(--radar-size) - 28px);
  border-radius: 50%;
  background: #080a13;
  border: 1.5px solid #ff4655;
  box-shadow: 0 0 15px rgba(255, 70, 85, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.radar-value {
  font-family: var(--font-header);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.radar-unit {
  font-size: 0.65rem;
  color: #8c9cb3;
  margin-top: 2px;
}

.radar-badge-status {
  font-size: 0.5rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid transparent;
  letter-spacing: 0.05em;
  margin-top: 6px;
  transition: all 0.3s ease;
}

.radar-badge-status.status-optimal {
  background-color: rgba(39, 201, 63, 0.12);
  color: #27c93f;
  border-color: rgba(39, 201, 63, 0.25);
}

.radar-badge-status.status-low {
  background-color: rgba(255, 0, 127, 0.12);
  color: #ff007f;
  border-color: rgba(255, 0, 127, 0.25);
}

.radar-badge-status.status-critical {
  background-color: rgba(255, 70, 85, 0.12);
  color: #ff4655;
  border-color: rgba(255, 70, 85, 0.25);
}

/* Radar subrow */
.radar-metrics-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 0.8rem;
}

.radar-metric-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radar-metric-divider {
  width: 1px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.06);
}

.r-lbl {
  font-size: 0.55rem;
  color: #5d6d82;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.r-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
}

.screenshot-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #8c9cb3;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  text-align: left;
}

/* Telemetry Grid Cards */
.screenshot-telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}

.telemetry-grid-card {
  background: #0d1222;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  margin-bottom: 0.5rem;
}

.c-title {
  font-size: 0.65rem;
  color: #5d6d82;
  font-weight: 700;
}

.c-icon {
  font-size: 0.75rem;
}

.c-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.c-status {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.c-progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
  overflow: hidden;
}

.c-progress-fill {
  height: 100%;
  border-radius: 2px;
}

/* Color Classes matching app UI */
.text-critical { color: #ff4655; }
.bg-critical { background-color: #ff4655; }
.border-critical { border-color: rgba(255, 70, 85, 0.15) !important; }

.text-optimal { color: #27c93f; }
.bg-optimal { background-color: #27c93f; }
.border-optimal { border-color: rgba(39, 201, 63, 0.15) !important; }

.text-low { color: #ff007f; }
.bg-low { background-color: #ff007f; }
.border-low { border-color: rgba(255, 0, 127, 0.15) !important; }

.text-pci { color: #00d2ff; }
.border-pci { border-color: rgba(0, 210, 255, 0.15) !important; }

.text-muted-app {
  font-size: 0.55rem;
  color: #5d6d82;
  font-weight: 600;
}

/* Bottom Nav bar replication */
.screenshot-bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #060914;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.6rem 0.5rem 1rem 0.5rem;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.35;
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-tab.active {
  opacity: 1;
  color: #00d2ff;
}

.t-icon {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.t-lbl {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2.2rem;
}

.feature-card {
  padding: 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card:nth-child(1):hover { border-color: hsla(265, 85%, 60%, 0.4); box-shadow: 0 15px 35px -10px var(--primary-glow); }
.feature-card:nth-child(2):hover { border-color: hsla(190, 95%, 40%, 0.4); box-shadow: 0 15px 35px -10px var(--neon-cyan-glow); }
.feature-card:nth-child(3):hover { border-color: hsla(140, 85%, 35%, 0.4); box-shadow: 0 15px 35px -10px var(--neon-green-glow); }
.feature-card:nth-child(4):hover { border-color: hsla(355, 85%, 50%, 0.4); box-shadow: 0 15px 35px -10px var(--neon-red-glow); }
.feature-card:nth-child(5):hover { border-color: hsla(285, 85%, 50%, 0.4); box-shadow: 0 15px 35px -10px var(--neon-purple-glow); }
.feature-card:nth-child(6):hover { border-color: hsla(265, 85%, 60%, 0.4); box-shadow: 0 15px 35px -10px var(--primary-glow); }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  transition: var(--transition-fast);
}

.feat-svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.25;
}

.icon-telemetry { background: var(--primary-glow); color: var(--primary); }
.icon-logging { background: var(--neon-cyan-glow); color: var(--neon-cyan); }
.icon-mapping { background: var(--neon-green-glow); color: var(--neon-green); }
.icon-benchmarks { background: var(--neon-red-glow); color: var(--neon-red); }
.icon-export { background: var(--neon-purple-glow); color: var(--neon-purple); }
.icon-extractor { background: var(--primary-glow); color: var(--primary); }

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Telemetry Section --- */
.telemetry-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.slider-wrapper {
  margin: 2rem 0;
}

.slider-label {
  display: block;
  font-family: var(--font-header);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.signal-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-dark-accent);
  border: 1px solid var(--border-glass);
  outline: none;
  margin-bottom: 0.5rem;
}

.signal-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid #fff;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.signal-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  background: var(--primary);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-summary-box {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.summary-val-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.summary-badge {
  background-color: var(--neon-green-glow);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 0 10px var(--neon-green-glow);
  transition: var(--transition-smooth);
}

.summary-badge.poor {
  background-color: var(--neon-red-glow);
  color: var(--neon-red);
  border-color: var(--neon-red);
  box-shadow: 0 0 10px var(--neon-red-glow);
}

.summary-badge.fair {
  background-color: var(--neon-yellow-glow);
  color: var(--neon-yellow);
  border-color: var(--neon-yellow);
  box-shadow: 0 0 10px var(--neon-yellow-glow);
}

.summary-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* macOS Window Component */
.mac-window {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 45px -12px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-glass);
  box-sizing: border-box;
}

[data-theme="dark"] .mac-window {
  box-shadow: 0 25px 55px -15px rgba(0, 0, 0, 0.6);
}

.mac-header {
  background: var(--bg-dark-accent);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--border-glass);
  min-height: 42px;
}

.mac-dots {
  display: flex;
  gap: 6px;
  z-index: 10;
}

.mac-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.mac-dot.close { background-color: #ff5f56; }
.mac-dot.minimize { background-color: #ffbd2e; }
.mac-dot.maximize { background-color: #27c93f; }

.mac-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-family: var(--font-header);
  font-weight: 600;
  color: var(--text-secondary);
  pointer-events: none;
}

/* Console & Dashboard layout */
.telemetry-dashboard {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--bg-dark-card);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
}

.dash-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dash-carrier {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.telemetry-meters {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.meter-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.meter-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.meter-name {
  color: var(--text-secondary);
}

.meter-value {
  font-family: var(--font-mono);
  font-weight: 700;
}

.meter-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  overflow: hidden;
}

[data-theme="dark"] .meter-bar-bg {
  background: rgba(255,255,255,0.04);
}

.meter-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.live-raw-feed {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feed-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.console-box {
  background: #080a13; /* macOS Terminal black */
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #27c93f;
  min-height: 90px;
  max-height: 90px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.03);
}

.console-line {
  margin-bottom: 0.3rem;
}

/* --- Speed Test Section --- */
.speed-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 4rem;
}

.speed-test-widget {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 380px;
  margin: 0 auto;
}

.speedometer-container {
  position: relative;
  width: 180px;
  height: 180px;
}

.speedometer {
  width: 100%;
  height: 100%;
  transform: rotate(-135deg);
}

.gauge-bg {
  fill: none;
  stroke: rgba(0,0,0,0.03);
  stroke-width: 8;
  stroke-dasharray: 400 534;
  stroke-linecap: round;
}

[data-theme="dark"] .gauge-bg {
  stroke: rgba(255,255,255,0.04);
}

.gauge-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-dasharray: 400 534;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px var(--primary-glow));
  transition: stroke-dashoffset 0.1s linear;
}

.speed-value-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.speed-number {
  font-family: var(--font-header);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.speed-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.speed-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.stat-box {
  background: rgba(0,0,0,0.01);
  border: 1px solid var(--border-glass);
  padding: 0.8rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

[data-theme="dark"] .stat-box {
  background: rgba(255,255,255,0.01);
}

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

.stat-box .stat-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
}

.checkmark-list {
  list-style: none;
  margin-top: 1.5rem;
}

.checkmark-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.checkmark-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--neon-green);
  font-weight: bold;
  font-size: 1.1rem;
}

/* --- Premium Dark Map Canvas Redesign (Visual contrast fix) --- */
.map-section-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.tab-container {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
  margin: 1.5rem 0;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--primary);
  background: var(--primary-glow);
}

.tab-content-wrapper {
  min-height: 100px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

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

.map-mockup {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.map-header {
  padding: 0.8rem 1.2rem;
  background: #090c15; /* Always dark for map window */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.map-title-text {
  font-family: var(--font-mono);
  color: #8c9cb3;
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #5d6d82;
  font-weight: 600;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.green { background-color: var(--neon-green); }
.legend-dot.yellow { background-color: var(--neon-yellow); }
.legend-dot.red { background-color: var(--neon-red); }

.map-canvas-container {
  position: relative;
  background: #080a13; /* Deep navy-black map canvas for contrast */
  height: 310px;
  width: 100%;
}

.map-svg {
  width: 100%;
  height: 100%;
}

.map-road {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 4;
  stroke-linecap: round;
}

.map-point {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-point:hover {
  transform: scale(1.6);
}

.map-point.green { 
  fill: var(--neon-green); 
  filter: drop-shadow(0 0 6px var(--neon-green)); 
}
.map-point.yellow { 
  fill: var(--neon-yellow); 
  filter: drop-shadow(0 0 6px var(--neon-yellow)); 
}
.map-point.red { 
  fill: var(--neon-red); 
  filter: drop-shadow(0 0 6px var(--neon-red)); 
}

.glow-red-sm { filter: drop-shadow(0 0 6px var(--neon-red-glow)); }
.glow-green-sm { filter: drop-shadow(0 0 6px var(--neon-green-glow)); }

/* Map tooltip */
.map-tooltip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  transform: translateY(5px);
  z-index: 10;
}

.map-tooltip.active {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-title {
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--neon-cyan);
}

/* Tower waves animation */
.ping-wave {
  transform-origin: 0px -5px;
  animation: radar-ping 2s infinite linear;
}

.wave-2 {
  animation-delay: 1s;
}

@keyframes radar-ping {
  0% { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* --- macOS Terminal Windows for Code Blocks --- */
.mac-header .btn-copy {
  position: absolute;
  right: 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: #8c9cb3;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mac-header .btn-copy:hover {
  background: var(--primary-glow);
  color: #ffffff;
}

.code-block {
  margin: 0;
  padding: 1.2rem;
  background: #080a13; /* macOS Terminal black */
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #d1d9e6;
  line-height: 1.55;
  text-align: left;
  border-top: none;
}

.integration-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
}

.supabase-sync-card {
  padding: 3rem 2.5rem;
  text-align: left;
}

.supabase-badge {
  background-color: var(--primary-glow);
  color: var(--primary);
  border: 1px solid var(--primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.supabase-sync-card h3 {
  margin-bottom: 0.8rem;
}

.supabase-sync-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.db-visual-animation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--border-glass);
  padding: 1rem;
  border-radius: 10px;
}

[data-theme="dark"] .db-visual-animation {
  background: rgba(0,0,0,0.15);
}

.db-node {
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border-glass);
}

.node-local {
  background: var(--bg-dark-accent);
  color: var(--primary);
  border-color: var(--primary);
}

.node-cloud {
  background: var(--bg-dark-accent);
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.sync-arrow-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.sync-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  animation: move-right 2s infinite linear;
}

.sync-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* --- Privacy Policy Section --- */
.container-privacy {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.privacy-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.privacy-card {
  display: flex;
  gap: 2rem;
  padding: 2.5rem;
  align-items: flex-start;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.privacy-card:hover {
  transform: translateY(-3px);
}

/* Unique hover glows for cards */
.privacy-card:nth-child(1):hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.15);
}
.privacy-card:nth-child(2):hover {
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 10px 30px -10px rgba(2, 132, 199, 0.15);
}
.privacy-card:nth-child(3):hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.15);
}
.privacy-card:nth-child(4):hover {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 10px 30px -10px rgba(239, 68, 68, 0.15);
}
.privacy-card:nth-child(5):hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.15);
}

.privacy-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Badge specific styling */
.badge-purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

.badge-cyan {
  background: rgba(2, 132, 199, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(2, 132, 199, 0.25);
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.1);
}

.badge-yellow {
  background: rgba(245, 158, 11, 0.1);
  color: var(--neon-yellow);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

.badge-red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--neon-red);
  border: 1px solid rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.privacy-content {
  flex: 1;
  text-align: left;
}

.privacy-content h3 {
  font-family: var(--font-header);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.privacy-content p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}

.privacy-list {
  list-style: none;
  margin-top: 1rem;
}

.privacy-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.privacy-list li::before {
  content: "•";
  position: absolute;
  left: 0.6rem;
  color: var(--primary);
  font-weight: bold;
}

.privacy-section-footer {
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* --- Footer --- */
#site-footer {
  background: var(--bg-dark-accent);
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 320px;
  text-align: left;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

.footer-socials {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-link svg {
  width: 18px;
  height: 18px;
}

.social-icon-link:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

body.light-theme .social-icon-link {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

body.light-theme .social-icon-link:hover {
  background: rgba(10, 80, 220, 0.04);
  border-color: rgba(10, 80, 220, 0.2);
  color: #0a50dc;
  box-shadow: 0 4px 12px rgba(10, 80, 220, 0.1);
}

.footer-links {
  display: flex;
  gap: 5rem;
}

.link-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-align: left;
}

.link-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.link-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.link-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.03);
  padding-top: 1.5rem;
}

[data-theme="dark"] .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.theme-toggle-nav {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
  padding: 0;
}

[data-theme="dark"] .theme-toggle-nav {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.theme-toggle-nav:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

/* ----------------------------------------------------
   Responsive Mobile Media Queries
   ---------------------------------------------------- */
/* ----------------------------------------------------
   Responsive Mobile Media Queries
   ---------------------------------------------------- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding-top: 2rem;
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-quick-stats {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .telemetry-container,
  .speed-container,
  .map-section-container,
  .integration-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .speed-visual {
    order: 1;
  }
  
  .stat-item {
    align-items: center;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 2.5rem;
  }

  .developers-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  #site-header {
    top: 1rem;
  }
  
  .nav-pill {
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    margin: 0 1rem;
  }

  .nav-links-wrapper {
    display: none;
    position: absolute;
    top: 60px;
    left: 10px;
    right: 10px;
    background-color: var(--bg-dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 1000;
  }
  
  .nav-links-wrapper.active {
    display: flex;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .mobile-nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .footer-bottom-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .btn.nav-btn {
    display: none;
  }

  /* Shrink phone mockup dynamically on tablets/mobiles */
  :root {
    --phone-scale: 0.85;
  }

  .mac-header.map-header,
  .mac-header.csv-header {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 0.5rem;
  }
  .mac-header.map-header .mac-title,
  .mac-header.csv-header .mac-title {
    position: static;
    transform: none;
    margin: 0.2rem 0;
    text-align: center;
    word-break: break-all;
    width: 100%;
    max-width: 100%;
  }
  .mac-header.map-header .map-legend {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .mac-header.csv-header .btn-copy {
    position: static;
    margin: 0.4rem auto 0 auto;
    display: inline-block;
  }

  /* Card paddings and other layout adjustments */
  section {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .feature-card {
    padding: 2rem;
  }

  .privacy-card {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .supabase-sync-card {
    padding: 2rem 1.5rem;
  }

  .telemetry-dashboard {
    padding: 1.5rem 1rem;
  }

  .speed-test-widget {
    padding: 1.5rem;
    max-width: 320px;
  }

  .map-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .download-card, .requirements-card {
    padding: 2.2rem 1.6rem;
  }

  /* Footer mobile optimization */
  .footer-container {
    text-align: center;
    align-items: center;
    gap: 3rem;
  }
  .footer-brand {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
  }
  .footer-brand .logo {
    justify-content: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    align-items: center;
  }
  .link-col {
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 576px) {
  /* Shrink phone mockup further for very small screens (iPhone SE, etc.) */
  :root {
    --phone-scale: 0.72;
  }

  .container {
    padding: 0 1rem; /* Maximize visible screen width */
  }

  .db-visual-animation {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
  }

  .sync-arrow-wrap {
    margin: 0.2rem 0;
    gap: 0.1rem;
  }

  .sync-arrow {
    transform: rotate(90deg);
    display: inline-block;
  }

  .speed-test-widget {
    padding: 1.2rem;
    gap: 1.5rem;
    width: 100%;
    max-width: 320px;
  }

  /* Spacings and general responsive cleanup */
  .hero-title {
    font-size: 2.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .privacy-card {
    padding: 1.6rem 1.2rem;
    gap: 1.2rem;
  }
  .privacy-badge {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    border-radius: 10px;
  }
  .privacy-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
  }
  .privacy-content p {
    font-size: 0.92rem;
  }

  .code-block {
    font-size: 0.75rem;
    padding: 1rem;
  }

  /* Center hero quick stats and wrap them neatly */
  .hero-quick-stats {
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Scrollable map section tabs for tiny screens */
  .tab-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .tab-container::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  /* Widget adjustments */
  .speedometer-container {
    width: 150px;
    height: 150px;
  }

  .speed-test-widget {
    padding: 1.2rem;
    gap: 1.5rem;
    max-width: 320px;
  }

  .speed-stats-grid {
    gap: 0.6rem;
  }

  .stat-box {
    padding: 0.6rem;
  }

  .map-canvas-container {
    height: 230px;
  }

  /* Supabase direct sync visual scale */
  .db-visual-animation {
    padding: 0.8rem;
  }

  .db-node {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  .sync-arrow {
    font-size: 1rem;
  }

  .sync-badge {
    font-size: 0.5rem;
  }

  /* Telemetry dashboard meter labels stacking */
  .meter-info {
    flex-direction: column;
    gap: 0.2rem;
  }

  /* Download & Requirements sections responsive optimization */
  .download-card, .requirements-card {
    padding: 1.8rem 1.2rem;
  }
  .download-grid {
    gap: 1.8rem;
  }
  .req-title {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Developer grid gaps and card padding optimization */
  .developers-grid {
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
  .dev-card {
    padding: 2rem 1.2rem;
  }
}

/* --- Accessibility Preferences Override --- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  
  #network-canvas {
    display: none;
  }
  
  .radar-sweep,
  .radar-ripple {
    animation: none !important;
    display: none;
  }
}

/* ==========================================================================
   PREMIUM UX / DYNAMIC ANIMATIONS OVERHAUL
   ========================================================================== */

/* 1. Map Drive Vehicle Dot Styling */
.map-point-vehicle {
  fill: #00f3ff;
  stroke: #ffffff;
  stroke-width: 2px;
  filter: drop-shadow(0 0 8px #00f3ff);
  r: 6px;
  transition: r 0.2s ease, fill 0.2s ease;
  cursor: pointer;
}
.map-point-vehicle:hover {
  r: 8px;
  fill: #ffffff;
}

/* 2. Cell Tower Transmission Ripples */
@keyframes towerRipple {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  30% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}
.ping-wave {
  animation: towerRipple 2.5s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: 0px 0px; /* Origin at tower top (0,0) */
}
.wave-1 {
  animation-delay: 0s;
}
.wave-2 {
  animation-delay: 1.25s;
}

/* 3. Mouse-Tracking Spotlight Hover Glow for Feature Cards */
.feature-card {
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
.feature-card > * {
  position: relative;
  z-index: 2;
}
/* Card Inner Radial Background Glow */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(0, 243, 255, 0.05),
    transparent 50%
  );
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.4s ease;
}
/* Card Border Radial Stroke Glow */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    200px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(0, 243, 255, 0.3),
    transparent 60%
  );
  -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;
  z-index: 1;
  transition: opacity 0.4s ease;
}
.feature-card:hover::before,
.feature-card:hover::after {
  opacity: 1;
}

/* Light Theme Adjustments for Mouse Spotlight */
body.light-theme .feature-card::before {
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(10, 80, 220, 0.03),
    transparent 50%
  );
}
body.light-theme .feature-card::after {
  background: radial-gradient(
    200px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(10, 80, 220, 0.2),
    transparent 60%
  );
}

/* 4. Scroll-Driven Reveal Transitions (Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered Delay using inline card indices */
.reveal[style*="--card-index"] {
  transition-delay: calc(var(--card-index) * 0.08s);
}

/* 5. Theme Switcher & Code Copy Animations */
.theme-toggle-nav {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-toggle-nav:active {
  transform: scale(0.85) rotate(180deg);
}

.btn-copy {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-copy.copied {
  transform: scale(1.05);
  background-color: rgba(0, 243, 255, 0.1);
  color: var(--neon-green) !important;
  border-color: var(--neon-green) !important;
}

/* Accessibility overrides for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ping-wave {
    animation: none !important;
  }
  .feature-card::before,
  .feature-card::after {
    display: none !important;
  }
}

/* 6. Back-To-Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 10, 19, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: #080a13;
  box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.back-to-top-btn .arrow-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.back-to-top-btn:hover .arrow-icon {
  transform: translateY(-2px);
}

body.light-theme .back-to-top-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #080a13;
}
body.light-theme .back-to-top-btn:hover {
  background: #0a50dc;
  border-color: #0a50dc;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(10, 80, 220, 0.3);
}

/* 7. Meet The Developers Section */
#developers {
  padding: 8rem 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.developers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 4rem;
}

.dev-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2.2rem 2.8rem 2.2rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 280px;
  max-width: 320px;
}

.dev-card:hover {
  transform: translateY(-5px);
}

/* Hover glow states for specific dev card indices */
.dev-card:nth-child(1):hover {
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 15px 35px -10px rgba(2, 132, 199, 0.25);
}
.dev-card:nth-child(2):hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 15px 35px -10px rgba(139, 92, 246, 0.25);
}
.dev-card:nth-child(3):hover {
  border-color: rgba(5, 150, 105, 0.4);
  box-shadow: 0 15px 35px -10px rgba(5, 150, 105, 0.25);
}

/* Avatars */
.dev-avatar-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 1.6rem;
}

.dev-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Custom avatar glows */
.dev-card:nth-child(1) .dev-avatar-img {
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.3);
  border-color: rgba(2, 132, 199, 0.25);
}

.dev-card:nth-child(2) .dev-avatar-img {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.25);
}

/* 3rd child is the Join the Team avatar icon */
.dev-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-muted);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}
.dev-card:hover .dev-avatar-placeholder {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transform: scale(1.05);
}

.dev-card:nth-child(3) .dev-avatar-img {
  box-shadow: 0 0 20px rgba(5, 150, 105, 0.3);
  border-color: rgba(5, 150, 105, 0.25);
}

.dev-card:hover .dev-avatar-img {
  transform: scale(1.05);
}

/* Text elements */
.dev-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.dev-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.2rem;
  flex-grow: 1;
}

/* LinkedIn Link */
.dev-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  width: 100%;
  justify-content: center;
}

.dev-link:hover {
  background: rgba(10, 102, 194, 0.12);
  border-color: rgba(10, 102, 194, 0.35);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(10, 102, 194, 0.15);
  transform: translateY(-2px);
}

.linkedin-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2px;
}

/* Light Theme overrides */
body.light-theme #developers {
  border-top-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .dev-avatar-img {
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
body.light-theme .dev-card:nth-child(1) .dev-avatar-img {
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.15);
}
body.light-theme .dev-card:nth-child(2) .dev-avatar-img {
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.15);
}
body.light-theme .dev-avatar-placeholder {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-muted);
}
body.light-theme .dev-card:hover .dev-avatar-placeholder {
  border-color: rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}
body.light-theme .dev-card:nth-child(3) .dev-avatar-img {
  box-shadow: 0 0 15px rgba(5, 150, 105, 0.15);
}

body.light-theme .dev-link {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

body.light-theme .dev-link:hover {
  background: rgba(10, 102, 194, 0.08);
  border-color: rgba(10, 102, 194, 0.25);
  color: #0a66c2;
}

/* Revision: 2026-06-24 */

/* 8. Footer Contact Text */
.footer-contact-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* Clickable Developers Link in Privacy Policy */
.privacy-footer-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1.5px dashed var(--primary-glow);
  transition: var(--transition-fast);
}

.privacy-footer-link:hover {
  color: var(--primary-hover);
  border-bottom: 1.5px solid var(--primary);
}

/* --- App Download & Technical Requirements --- */
#download {
  padding: 8rem 0;
  border-top: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
}

.download-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.download-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 3rem;
  margin-top: 4rem;
  align-items: stretch;
}

.download-card, .requirements-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.download-card {
  align-items: center;
  text-align: center;
  padding: 3rem 2.5rem;
  justify-content: center;
  position: relative;
}

.app-icon-badge {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  background: var(--bg-dark-accent);
  border: 1.5px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: var(--transition-smooth);
}

.download-card:hover .app-icon-badge {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 25px var(--primary-glow);
  border-color: var(--primary);
}

.download-app-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.download-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-header);
}

.version-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  display: inline-block;
  border: 1px solid rgba(130, 70, 240, 0.15);
}

.download-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 320px;
}

.download-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  width: 100%;
  text-decoration: none;
}

.download-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.2px;
}

/* Requirements Card */
.requirements-card {
  padding: 3rem 2.5rem;
  text-align: left;
}

.requirements-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-family: var(--font-header);
  border-bottom: 1.5px solid var(--border-glass);
  padding-bottom: 1rem;
}

.requirements-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.requirements-list li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.req-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.req-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-dark-accent);
  border: 1px solid var(--border-glass);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.requirements-list p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 0;
}

/* Light Theme overrides for download */
body.light-theme #download {
  border-top-color: rgba(0, 0, 0, 0.04);
}
body.light-theme .app-icon-badge {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}
body.light-theme .req-badge {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-secondary);
}

/* responsive download section */
@media (max-width: 992px) {
  .download-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
  }
}

/* --- Spotlight & Border Glow Overlay (MagicBento Integration) --- */
.spotlight-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    var(--glow-color, rgba(255, 255, 255, 0.05)),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.border-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    var(--border-glow-color, rgba(255, 255, 255, 0.15)),
    transparent 40%
  );
  -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;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* Make sure inner text content sits above the absolute overlays */
.feature-card > *,
.requirements-card > *,
.dev-card > *,
.privacy-card > *,
.download-card > *,
.supabase-sync-card > * {
  position: relative;
  z-index: 3;
}

/* Override overlays back to bottom layer */
.feature-card > .spotlight-overlay,
.requirements-card > .spotlight-overlay,
.dev-card > .spotlight-overlay,
.privacy-card > .spotlight-overlay,
.download-card > .spotlight-overlay,
.supabase-sync-card > .spotlight-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.feature-card > .border-glow,
.requirements-card > .border-glow,
.dev-card > .border-glow,
.privacy-card > .border-glow,
.download-card > .border-glow,
.supabase-sync-card > .border-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Show overlays on hover */
.feature-card:hover .spotlight-overlay,
.requirements-card:hover .spotlight-overlay,
.dev-card:hover .spotlight-overlay,
.privacy-card:hover .spotlight-overlay,
.download-card:hover .spotlight-overlay,
.supabase-sync-card:hover .spotlight-overlay {
  opacity: 1;
}

.feature-card:hover .border-glow,
.requirements-card:hover .border-glow,
.dev-card:hover .border-glow,
.privacy-card:hover .border-glow,
.download-card:hover .border-glow,
.supabase-sync-card:hover .border-glow {
  opacity: 1;
}

/* --- Themed Spotlight & Border Colors --- */

/* Feature Cards Glows */
.feature-card:nth-child(1) {
  --glow-color: rgba(139, 92, 246, 0.08);
  --border-glow-color: rgba(139, 92, 246, 0.4);
}
.feature-card:nth-child(2) {
  --glow-color: rgba(2, 132, 199, 0.08);
  --border-glow-color: rgba(2, 132, 199, 0.4);
}
.feature-card:nth-child(3) {
  --glow-color: rgba(5, 150, 105, 0.08);
  --border-glow-color: rgba(5, 150, 105, 0.4);
}
.feature-card:nth-child(4) {
  --glow-color: rgba(225, 29, 72, 0.08);
  --border-glow-color: rgba(225, 29, 72, 0.4);
}
.feature-card:nth-child(5) {
  --glow-color: rgba(168, 85, 247, 0.08);
  --border-glow-color: rgba(168, 85, 247, 0.4);
}
.feature-card:nth-child(6) {
  --glow-color: rgba(139, 92, 246, 0.08);
  --border-glow-color: rgba(139, 92, 246, 0.4);
}

/* Privacy Cards Glows */
.privacy-card:nth-child(1) {
  --glow-color: rgba(139, 92, 246, 0.08);
  --border-glow-color: rgba(139, 92, 246, 0.4);
}
.privacy-card:nth-child(2) {
  --glow-color: rgba(14, 165, 233, 0.08);
  --border-glow-color: rgba(14, 165, 233, 0.4);
}
.privacy-card:nth-child(3) {
  --glow-color: rgba(34, 197, 94, 0.08);
  --border-glow-color: rgba(34, 197, 94, 0.4);
}
.privacy-card:nth-child(4) {
  --glow-color: rgba(249, 115, 22, 0.08);
  --border-glow-color: rgba(249, 115, 22, 0.4);
}
.privacy-card:nth-child(5) {
  --glow-color: rgba(217, 70, 239, 0.08);
  --border-glow-color: rgba(217, 70, 239, 0.4);
}

/* Developer Cards Glows */
.dev-card:nth-child(1) {
  --glow-color: rgba(2, 132, 199, 0.08);
  --border-glow-color: rgba(2, 132, 199, 0.4);
}
.dev-card:nth-child(2) {
  --glow-color: rgba(139, 92, 246, 0.08);
  --border-glow-color: rgba(139, 92, 246, 0.4);
}
.dev-card:nth-child(3) {
  --glow-color: rgba(5, 150, 105, 0.08);
  --border-glow-color: rgba(5, 150, 105, 0.4);
}

/* Download, Requirements & Supabase Cards Glows */
.download-card {
  --glow-color: rgba(139, 92, 246, 0.08);
  --border-glow-color: rgba(139, 92, 246, 0.4);
}
.requirements-card {
  --glow-color: rgba(139, 92, 246, 0.08);
  --border-glow-color: rgba(139, 92, 246, 0.4);
}
.supabase-sync-card {
  --glow-color: rgba(5, 150, 105, 0.08);
  --border-glow-color: rgba(5, 150, 105, 0.4);
}

/* Light Theme tweaks to lower glare */
body.light-theme .spotlight-overlay {
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    var(--glow-color, rgba(0, 0, 0, 0.02)),
    transparent 80%
  );
}
body.light-theme .border-glow {
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    var(--border-glow-color, rgba(0, 0, 0, 0.06)),
    transparent 40%
  );
}

/* Click Ripple effect */
.card-ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--border-glow-color, rgba(139, 92, 246, 0.3));
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-effect 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  pointer-events: none;
  z-index: 1000;
}

@keyframes ripple-effect {
  to {
    transform: scale(80);
    opacity: 0;
  }
}
