/* ========================================
   Vistalytica - Dark Mode / High-Performance Tool
   Color Palette: #0B0E14 base, #00FF41 green, #FF4B2B red
   Typography: Inter (headers) + JetBrains Mono (data)
   ======================================== */

/* CSS Variables */
:root {
  /* Core Colors */
  --base: #0B0E14;
  --base-light: #0F1319;
  --base-lighter: #141820;
  --base-card: #12161E;

  --green: #00FF41;
  --green-dim: rgba(0, 255, 65, 0.15);
  --green-glow: rgba(0, 255, 65, 0.08);
  --green-text: #00FF41;

  --red: #FF4B2B;
  --red-dim: rgba(255, 75, 43, 0.15);
  --red-glow: rgba(255, 75, 43, 0.08);

  --blue: #3B82F6;
  --blue-dim: rgba(59, 130, 246, 0.15);

  --text: #E8ECF1;
  --text-secondary: #8892A4;
  --text-muted: #4A5568;

  /* Glass */
  --glass-bg: rgba(18, 22, 30, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(0, 255, 65, 0.2);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 300ms ease;
  --t-slow: 500ms ease;

  /* Z-index */
  --z-nav: 300;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--base);
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ========================================
   Grid Dot Background
   ======================================== */
.bg-grid-dots {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* ========================================
   Utility
   ======================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.mono {
  font-family: var(--font-mono);
}

/* .accent-text styled via shimmer animation below */

.green-text { color: var(--green); }
.red-text { color: var(--red); }

/* ========================================
   Glassmorphism Card
   ======================================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--r-md);
  transition: all var(--t-base);
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--green);
  color: var(--base);
  font-weight: 600;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: 0.8rem; }
.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--sp-3) 0;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--t-base);
}

.navbar.scrolled {
  padding: var(--sp-2) 0;
  border-bottom-color: var(--glass-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 1.15rem;
  font-weight: 700;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--green);
  color: var(--base);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
}

.logo-text {
  color: var(--text);
}

.logo-status {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-dim);
  padding: 2px 6px;
  border-radius: var(--r-full);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  letter-spacing: -0.01em;
}

.nav-link:hover, .nav-link.active {
  color: var(--green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.lang-toggle {
  display: flex;
  background: var(--base-lighter);
  border-radius: var(--r-full);
  padding: 2px;
  border: 1px solid var(--glass-border);
}

.lang-btn {
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
}

.lang-btn.active {
  background: var(--green-dim);
  color: var(--green);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t-base);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--green);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--green);
}

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

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--base-light);
    padding: var(--sp-6);
    gap: var(--sp-4);
    border-bottom: 1px solid var(--glass-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--t-base);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-actions .nav-cta { display: none; }
  .nav-actions { gap: var(--sp-3); }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--sp-24) 0 var(--sp-16);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--green-dim);
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green);
  margin-bottom: var(--sp-6);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(0, 255, 65, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
  max-width: 480px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

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

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}

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

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--glass-border);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.satellite-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}

/* Topographic mask - irregular polygon clip */
.topo-mask {
  position: relative;
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  clip-path: polygon(
    2% 8%, 15% 0%, 40% 3%, 65% 0%, 85% 5%, 98% 2%,
    100% 18%, 97% 45%, 100% 70%, 98% 88%, 95% 100%,
    75% 97%, 50% 100%, 25% 98%, 5% 100%,
    0% 85%, 3% 55%, 0% 30%
  );
  border: 1px solid var(--glass-border);
}

.topo-mask svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Scanning Line Animation */
.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--green) 20%,
    var(--green) 80%,
    transparent 100%
  );
  box-shadow: 0 0 12px var(--green), 0 0 30px rgba(0, 255, 65, 0.3);
  animation: scan 4s ease-in-out infinite;
  z-index: 5;
}

@keyframes scan {
  0% { top: 0%; opacity: 0.4; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0.4; }
}

/* Floating Data Cards */
.data-card {
  position: absolute;
  background: rgba(11, 14, 20, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  z-index: 10;
  animation: float 6s ease-in-out infinite;
}

.card-coords {
  top: 8%;
  left: -12%;
  animation-delay: 0s;
}

.card-ndvi {
  bottom: 25%;
  right: -10%;
  animation-delay: 2s;
}

.card-meta {
  bottom: -5%;
  left: 5%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.card-dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.card-dot.blue { background: var(--blue); }

.card-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: 2px 0;
}

.card-key {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-val {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.card-big-val {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.card-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-bottom: var(--sp-2);
  overflow: hidden;
}

.card-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--green);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero Scroll */
.hero-scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.7rem;
  color: var(--text-muted);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Hero Responsive */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle { margin: 0 auto var(--sp-8); }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; }
  .hero-visual { order: -1; }
  .satellite-container { max-width: 380px; }
  .data-card { display: none; }
}

/* ========================================
   Section Shared Styles
   ======================================== */
section {
  padding: var(--sp-24) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--sp-12);
}

.section-tag {
  display: inline-block;
  padding: var(--sp-1) var(--sp-4);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(0, 255, 65, 0.12);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
}

.section-tag.red-tag {
  color: var(--red);
  background: var(--red-dim);
  border-color: rgba(255, 75, 43, 0.12);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
  color: var(--text);
  line-height: 1.1;
}

.section-title.left { text-align: left; }

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   Bento Grid Layout
   ======================================== */
.bento-grid {
  display: grid;
  gap: var(--sp-4);
}

/* Services bento: 2 large + 4 small */
.services-bento {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto auto;
}

.services-bento .bento-lg {
  grid-row: span 2;
}

.bento-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 255, 65, 0.04);
}

.bento-card.bento-featured {
  border-color: rgba(255, 75, 43, 0.2);
}

.bento-card.bento-featured:hover {
  border-color: rgba(255, 75, 43, 0.4);
  box-shadow: 0 8px 32px rgba(255, 75, 43, 0.06);
}

.bento-badge {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(255, 75, 43, 0.15);
  border-radius: var(--r-full);
}

.bento-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 1.1rem;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
}

.bento-icon.red {
  background: var(--red-dim);
  color: var(--red);
}

.bento-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

.bento-features {
  margin-bottom: var(--sp-4);
}

.bento-features li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.feature-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.feature-dot.red { background: var(--red); }

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green);
  transition: gap var(--t-base);
}

.bento-link:hover { gap: var(--sp-3); }

/* Steps bento: 4 equal columns */
.steps-bento {
  grid-template-columns: repeat(4, 1fr);
}

.step-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
}

.step-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(0, 255, 65, 0.1);
  margin-bottom: var(--sp-4);
  line-height: 1;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 1.15rem;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive Bento */
@media (max-width: 968px) {
  .services-bento {
    grid-template-columns: 1fr;
  }
  .services-bento .bento-lg { grid-row: span 1; }
  .steps-bento { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .steps-bento { grid-template-columns: 1fr; }
}

/* ========================================
   API Preview
   ======================================== */
.api-preview {
  background: var(--base-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: var(--sp-12);
}

.api-header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--glass-border);
}

.api-dots {
  display: flex;
  gap: 6px;
}

.api-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green { background: #28C840; }

.api-badge {
  padding: var(--sp-1) var(--sp-3);
  background: var(--green-dim);
  color: var(--green);
  font-size: 0.6rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  letter-spacing: 0.05em;
}

.api-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.api-code {
  padding: var(--sp-6);
  overflow-x: auto;
}

.api-code pre {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
}

.api-code code { color: var(--text); }
.code-comment { color: var(--text-muted); }
.code-method { color: var(--green); }
.code-url { color: rgba(0, 255, 65, 0.7); }
.code-key { color: #c4b5fd; }
.code-string { color: #86efac; }

/* ========================================
   Flood Detection - Before/After Slider
   ======================================== */
.flood-detection {
  background: var(--base-light);
}

.flood-comparison {
  max-width: 800px;
  margin: 0 auto;
}

.comparison-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}

.comparison-layer {
  position: absolute;
  inset: 0;
}

.comparison-layer svg {
  width: 100%;
  height: 100%;
}

.comparison-before {
  z-index: 1;
}

.comparison-after {
  z-index: 2;
  clip-path: inset(0 0 0 50%);
}

.comparison-label-tag {
  position: absolute;
  bottom: var(--sp-4);
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: var(--r-sm);
}

.before-tag {
  left: var(--sp-4);
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(0, 255, 65, 0.15);
}

.after-tag {
  right: var(--sp-4);
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(255, 75, 43, 0.15);
}

/* Slider Handle */
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: white;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.slider-grip {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--base);
  border-radius: 50%;
  font-size: 0.8rem;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  cursor: ew-resize;
}

/* Flood Stats */
.flood-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.flood-stat {
  padding: var(--sp-4);
  text-align: center;
}

.flood-stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-2);
}

.flood-stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

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

/* ========================================
   Technology Section
   ======================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-4);
}

.tech-card {
  padding: var(--sp-6);
}

.tech-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 1.15rem;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
}

.tech-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.tech-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

.tech-tag {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  background: var(--green-dim);
  border-radius: var(--r-sm);
}

.tech-tag.red-tag {
  color: var(--red);
  background: var(--red-dim);
}

/* ========================================
   Industries
   ======================================== */
.industries {
  background: var(--base-light);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
}

.industry-card {
  padding: var(--sp-6);
  text-align: center;
}

.industry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 1.25rem;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
}

.industry-icon.red {
  background: var(--red-dim);
  color: var(--red);
}

.industry-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.industry-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   Why Us
   ======================================== */
.why-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
}

.why-desc {
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
  line-height: 1.7;
}

.advantages-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.advantage {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  align-items: flex-start;
}

.advantage-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dim);
  color: var(--green);
  font-size: 1rem;
  border-radius: var(--r-sm);
}

.advantage-icon.red {
  background: var(--red-dim);
  color: var(--red);
}

.advantage h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--sp-1);
}

.advantage p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Comparison Table */
.comparison-table {
  overflow: hidden;
}

.comp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  background: var(--base);
  border-bottom: 1px solid var(--glass-border);
}

.comp-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.comp-vs {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.comp-body {
  padding: var(--sp-4);
}

.comp-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.comp-row:last-child { border-bottom: none; }

.comp-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.comp-old {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 75, 43, 0.4);
}

.comp-new {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 968px) {
  .why-content { grid-template-columns: 1fr; }
}

/* ========================================
   FAQ
   ======================================== */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  color: var(--text);
  transition: all var(--t-fast);
}

.faq-question:hover {
  color: var(--green);
}

.faq-question i {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform var(--t-fast);
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
  color: var(--green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-base);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ========================================
   Contact
   ======================================== */
.contact {
  background: var(--base-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
}

.contact-desc {
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.contact-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  align-items: center;
}

.contact-item i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dim);
  color: var(--green);
  font-size: 1rem;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: var(--sp-3);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
}

.social-link:hover {
  color: var(--green);
  border-color: var(--glass-border-hover);
}

/* Contact Form */
.contact-form-wrapper {
  padding: var(--sp-8);
}

.form-group {
  margin-bottom: var(--sp-5);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--base);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  color: var(--text);
  transition: all var(--t-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234A5568' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group select option {
  background: var(--base);
  color: var(--text);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

@media (max-width: 968px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--base);
  border-top: 1px solid var(--glass-border);
  padding: var(--sp-12) 0 var(--sp-6);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: var(--sp-6);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

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

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.footer-column h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column ul li {
  margin-bottom: var(--sp-2);
}

.footer-column a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.footer-column a:hover {
  color: var(--green);
}

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

.footer-bottom i {
  color: var(--red);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-bottom { flex-direction: column; gap: var(--sp-2); }
}

/* ========================================
   Animations (AOS)
   ======================================== */
[data-aos] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-right"] {
  transform: translateX(-16px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-left"] {
  transform: translateX(16px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

/* ========================================
   Page Load Transition
   ======================================== */
body {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.loaded {
  opacity: 1;
}

/* ========================================
   Nav Toggles (theme + lang grouped)
   ======================================== */
.nav-toggles {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--base-lighter);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--t-fast);
}

.theme-toggle:hover {
  color: var(--green);
  border-color: var(--glass-border-hover);
}

/* ========================================
   Hero Entrance Animations
   ======================================== */
.hero-badge,
.hero-title,
.hero-subtitle,
.hero-cta,
.hero-stats,
.hero-visual {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-visual {
  transform: translateX(32px);
}

body.loaded .hero-badge   { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
body.loaded .hero-title   { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
body.loaded .hero-subtitle{ opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
body.loaded .hero-cta     { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }
body.loaded .hero-stats   { opacity: 1; transform: translateY(0); transition-delay: 0.9s; }
body.loaded .hero-visual  { opacity: 1; transform: translateX(0); transition-delay: 0.4s; }

/* ========================================
   Accent Text Shimmer
   ======================================== */
.accent-text {
  background: linear-gradient(
    90deg,
    var(--green) 0%,
    #66ffaa 50%,
    var(--green) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

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

/* ========================================
   Scan Grid + Enhanced Scan Line
   ======================================== */
.scan-grid {
  position: absolute;
  inset: 0;
  z-index: 4;
  background-image:
    linear-gradient(rgba(0,255,65,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,65,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,255,65,0.6) 10%,
    transparent 20%
  );
  mask-size: 100% 500%;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,255,65,0.6) 10%,
    transparent 20%
  );
  -webkit-mask-size: 100% 500%;
  animation: scan-grid-move 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan-grid-move {
  0%   { mask-position: 0% 0%;   -webkit-mask-position: 0% 0%; }
  100% { mask-position: 0% 100%; -webkit-mask-position: 0% 100%; }
}

/* Enhanced scan line glow */
.scan-line {
  box-shadow:
    0 0 12px var(--green),
    0 0 30px rgba(0, 255, 65, 0.3),
    0 0 60px rgba(0, 255, 65, 0.15);
}

/* ========================================
   Floating Card Hover Enhancement
   ======================================== */
.data-card:hover {
  animation-play-state: paused;
  transform: rotate(-1deg) scale(1.03);
  border-color: rgba(0, 255, 65, 0.25);
  box-shadow: 0 0 16px rgba(0, 255, 65, 0.12);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ========================================
   Light Mode Theme
   ======================================== */
[data-theme="light"] {
  /* Core Colors */
  --base: #F4F5F9;
  --base-light: #EBEDF3;
  --base-lighter: #DFE2EA;
  --base-card: #FFFFFF;

  --green: #008A24;
  --green-dim: rgba(0, 138, 36, 0.12);
  --green-glow: rgba(0, 138, 36, 0.08);
  --green-text: #007A20;

  --red: #CC3518;
  --red-dim: rgba(204, 53, 24, 0.12);
  --red-glow: rgba(204, 53, 24, 0.08);

  --blue: #1D4ED8;
  --blue-dim: rgba(29, 78, 216, 0.12);

  --text: #111318;
  --text-secondary: #374151;
  --text-muted: #6B7280;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(0, 0, 0, 0.12);
  --glass-border-hover: rgba(0, 138, 36, 0.35);
}

/* Grid dots */
[data-theme="light"] .bg-grid-dots {
  background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px);
}

/* Navbar */
[data-theme="light"] .navbar {
  background: rgba(244, 245, 249, 0.92);
}

[data-theme="light"] .navbar.scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-menu {
  background: var(--base-light);
}

[data-theme="light"] .logo-text {
  color: var(--text);
}

/* Data cards in hero */
[data-theme="light"] .data-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .card-bar {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .card-key {
  color: var(--text-muted);
}

[data-theme="light"] .card-val {
  color: var(--text);
}

[data-theme="light"] .card-label {
  color: var(--text-muted);
}

/* Bento cards */
[data-theme="light"] .bento-card {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Glass cards */
[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* API preview */
[data-theme="light"] .api-preview {
  background: #1A1D24;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .api-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .api-code code {
  color: #E8ECF1;
}

[data-theme="light"] .code-comment {
  color: #6B7280;
}

[data-theme="light"] .code-method {
  color: #00FF41;
}

[data-theme="light"] .code-url {
  color: rgba(0, 255, 65, 0.7);
}

[data-theme="light"] .code-key {
  color: #c4b5fd;
}

[data-theme="light"] .code-string {
  color: #86efac;
}

[data-theme="light"] .api-badge {
  background: rgba(0, 255, 65, 0.15);
  color: #00FF41;
}

[data-theme="light"] .api-title {
  color: #9CA3AF;
}

/* Form inputs */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: var(--text-muted);
}

[data-theme="light"] .form-group select option {
  background: var(--base);
  color: var(--text);
}

/* Buttons */
[data-theme="light"] .btn-primary {
  color: #FFFFFF;
}

[data-theme="light"] .btn-ghost {
  border-color: rgba(0, 0, 0, 0.18);
  color: var(--text);
}

[data-theme="light"] .btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Comparison table */
[data-theme="light"] .comp-header {
  background: var(--base-light);
}

[data-theme="light"] .comp-row {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .comp-old {
  text-decoration-color: rgba(229, 62, 31, 0.4);
}

/* Footer */
[data-theme="light"] .footer {
  background: var(--base-light);
  border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer-content {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Flood detection section */
[data-theme="light"] .flood-detection {
  background: var(--base-light);
}

/* Industries section */
[data-theme="light"] .industries {
  background: var(--base-light);
}

/* Contact section */
[data-theme="light"] .contact {
  background: var(--base-light);
}

/* Step numbers */
[data-theme="light"] .step-num {
  color: rgba(0, 138, 36, 0.18);
}

/* Nav links need more contrast */
[data-theme="light"] .nav-link {
  color: #4B5563;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: var(--green);
}

/* Section subtitles and descriptions */
[data-theme="light"] .section-subtitle,
[data-theme="light"] .hero-subtitle,
[data-theme="light"] .why-desc,
[data-theme="light"] .contact-desc {
  color: #4B5563;
}

/* Bento card descriptions */
[data-theme="light"] .bento-card p,
[data-theme="light"] .bento-features li,
[data-theme="light"] .step-card p,
[data-theme="light"] .tech-card p,
[data-theme="light"] .industry-card p,
[data-theme="light"] .advantage p {
  color: #4B5563;
}

/* FAQ text */
[data-theme="light"] .faq-answer p {
  color: #374151;
}

/* Comparison table labels */
[data-theme="light"] .comp-label {
  color: #374151;
}

[data-theme="light"] .comp-old {
  color: #6B7280;
}

/* Flood stat labels */
[data-theme="light"] .flood-stat-label {
  color: #6B7280;
}

/* Footer text */
[data-theme="light"] .footer-brand p {
  color: #6B7280;
}

[data-theme="light"] .footer-column a {
  color: #4B5563;
}

[data-theme="light"] .footer-bottom {
  color: #6B7280;
}

/* Contact items */
[data-theme="light"] .contact-item p {
  color: #4B5563;
}

/* Form labels */
[data-theme="light"] .form-group label {
  color: #374151;
}

/* Stat values — keep green but darken for readability */
[data-theme="light"] .stat-value {
  color: var(--green);
}

[data-theme="light"] .stat-label {
  color: #6B7280;
}

/* Section tags */
[data-theme="light"] .section-tag {
  border-color: rgba(0, 138, 36, 0.2);
}

[data-theme="light"] .section-tag.red-tag {
  border-color: rgba(204, 53, 24, 0.2);
}

/* Slider handle stays white/dark in both modes */
[data-theme="light"] .slider-grip {
  background: var(--text);
  color: #FFFFFF;
}

[data-theme="light"] .slider-line {
  background: var(--text);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

/* Card header border in light mode */
[data-theme="light"] .card-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Scan line + scan grid toned down in light mode */
[data-theme="light"] .scan-line {
  box-shadow:
    0 0 8px var(--green),
    0 0 20px rgba(0, 194, 52, 0.2);
}

/* Theme toggle icon color */
[data-theme="light"] .theme-toggle {
  background: var(--base-lighter);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-secondary);
}

/* Lang toggle light mode */
[data-theme="light"] .lang-toggle {
  background: var(--base-lighter);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .lang-btn.active {
  background: var(--green-dim);
  color: var(--green);
}

/* ========================================
   Nav App Button
   ======================================== */
.nav-app-btn {
  gap: var(--sp-2);
}

.nav-app-btn i {
  font-size: 0.7rem;
}

.nav-menu-app {
  display: none;
}

@media (max-width: 968px) {
  .nav-app-btn { display: none; }

  .nav-menu-app {
    display: block;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--glass-border);
    margin-top: var(--sp-2);
  }

  .nav-menu-app-btn {
    justify-content: center;
  }
}

/* ========================================
   Mobile Responsive Improvements
   ======================================== */

/* --- Reduce section padding on tablets and phones --- */
@media (max-width: 968px) {
  section {
    padding: var(--sp-16) 0;
  }

  .section-header {
    margin-bottom: var(--sp-8);
  }

  .hero {
    padding: var(--sp-20) 0 var(--sp-12);
  }

  .bento-card {
    padding: var(--sp-6);
  }

  .step-card {
    padding: var(--sp-6) var(--sp-4);
  }
}

@media (max-width: 600px) {
  section {
    padding: var(--sp-12) 0;
  }

  .container {
    padding: 0 var(--sp-4);
  }

  .section-header {
    margin-bottom: var(--sp-6);
  }

  .hero {
    padding: var(--sp-16) 0 var(--sp-10);
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-cta .btn-lg {
    padding: var(--sp-3) var(--sp-6);
    font-size: 0.9rem;
    width: 100%;
  }

  .hero-stats {
    gap: var(--sp-4);
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .satellite-container {
    max-width: 300px;
  }

  .bento-card {
    padding: var(--sp-5);
  }

  .bento-card h3 {
    font-size: 1.05rem;
  }

  .bento-card p {
    font-size: 0.85rem;
  }

  .step-num {
    font-size: 2rem;
  }
}

/* --- Fix grids on very small screens --- */
@media (max-width: 600px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }

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

/* --- Comparison table mobile --- */
@media (max-width: 600px) {
  .comp-row {
    grid-template-columns: 1fr;
    gap: var(--sp-1);
    padding: var(--sp-3) var(--sp-2);
  }

  .comp-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--sp-1);
  }

  .comp-old,
  .comp-new {
    text-align: left;
    font-size: 0.75rem;
  }

  .comp-old::before {
    content: 'GIS: ';
    color: var(--text-muted);
    font-size: 0.65rem;
  }

  .comp-new::before {
    content: 'Vistalytica: ';
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 400;
  }

  .comp-header {
    padding: var(--sp-3) var(--sp-4);
  }

  .comp-title {
    font-size: 0.75rem;
  }
}

/* --- API preview mobile --- */
@media (max-width: 600px) {
  .api-preview {
    margin-top: var(--sp-8);
  }

  .api-code {
    padding: var(--sp-4);
  }

  .api-code pre {
    font-size: 0.65rem;
    line-height: 1.6;
  }

  .api-header {
    padding: var(--sp-3) var(--sp-4);
    gap: var(--sp-2);
  }

  .api-title {
    font-size: 0.75rem;
  }
}

/* --- Flood section mobile --- */
@media (max-width: 600px) {
  .flood-stat {
    padding: var(--sp-3);
  }

  .flood-stat-val {
    font-size: 1rem;
  }

  .flood-stat-label {
    font-size: 0.6rem;
  }
}

/* --- Contact section mobile --- */
@media (max-width: 600px) {
  .contact-form-wrapper {
    padding: var(--sp-5);
  }

  .contact-item {
    padding: var(--sp-3);
  }
}

/* --- Advantages list mobile --- */
@media (max-width: 600px) {
  .advantage {
    padding: var(--sp-3);
    gap: var(--sp-3);
  }

  .advantage-icon {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .why-desc {
    font-size: 0.9rem;
  }
}

/* --- FAQ mobile --- */
@media (max-width: 600px) {
  .faq-question {
    padding: var(--sp-4);
    font-size: 0.9rem;
  }

  .faq-answer p {
    padding: 0 var(--sp-4) var(--sp-4);
    font-size: 0.85rem;
  }
}

/* --- Footer mobile improvements --- */
@media (max-width: 600px) {
  .footer {
    padding: var(--sp-8) 0 var(--sp-4);
  }

  .footer-content {
    gap: var(--sp-8);
    padding-bottom: var(--sp-6);
  }
}
