/* ==========================================================================
   TPS PALEMBANG — HOMEPAGE
   Professional WebGIS product landing page
   ========================================================================== */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
ul, p, h1, h2, h3, h4 { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }
svg { display: block; }

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Brand colors */
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-darker: #1E40AF;
  --color-secondary: #0F172A;
  --color-accent: #3B82F6;
  --color-success: #16A34A;

  /* Neutrals */
  --color-bg: #F8FAFC;
  --color-card: #FFFFFF;
  --color-text: #0F172A;
  --color-muted: #64748B;
  --color-muted-light: #94A3B8;
  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;
  --color-tint: #EFF6FF;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* Layout */
  --container-max: 1220px;
  --nav-height: 76px;
  --nav-height-scrolled: 68px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  /* Shadow (brand-tinted, not pure black) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 28px 70px rgba(15, 23, 42, 0.28), 0 8px 20px rgba(15, 23, 42, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.18s;
  --dur-med: 0.32s;
  --dur-slow: 0.6s;
}

/* ---------- BASE ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

section[id] {
  scroll-margin-top: var(--nav-height-scrolled);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--color-secondary);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 2000;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--color-accent); color: #fff; }

/* ---------- TYPE ---------- */
h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--color-secondary); letter-spacing: -0.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #BFDBFE;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(147, 197, 253, 0.3);
  padding: 7px 14px 7px 12px;
  border-radius: var(--radius-pill);
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #60A5FA;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}
.eyebrow-dark {
  color: var(--color-primary);
  background: var(--color-tint);
  border: 1px solid #DBEAFE;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-top: 16px;
}
.section-head p { margin-top: 14px; color: var(--color-muted); font-size: 1.02rem; }

.data-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px auto 0;
  font-size: 13.5px;
  color: var(--color-muted);
  font-family: var(--font-mono);
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-live {
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  animation: pulseDot 2.4s ease-in-out infinite;
}

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

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; transition: transform var(--dur-fast) var(--ease); }
.btn:hover svg { transform: translateX(2px); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.1);
}
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-border-strong);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-tint); }

.btn-white {
  background: #fff;
  color: var(--color-primary-dark);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: height var(--dur-med) var(--ease), background var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.navbar.is-scrolled {
  height: var(--nav-height-scrolled);
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; }
.brand-name {
  font-size: 17px;
  font-weight: 600;
  color: #F8FAFC;
  letter-spacing: -0.01em;
  transition: color var(--dur-med) var(--ease);
}
.navbar.is-scrolled .brand-name { color: var(--color-secondary); }
.brand-name strong { font-weight: 800; }

.nav-center { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.78);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.navbar.is-scrolled .nav-link { color: var(--color-muted); }
.navbar.is-scrolled .nav-link:hover { color: var(--color-secondary); background: rgba(15, 23, 42, 0.05); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid rgba(248, 250, 252, 0.3);
  border-radius: var(--radius-sm);
  padding: 0;
  transition: border-color var(--dur-med) var(--ease);
}
.navbar.is-scrolled .hamburger { border-color: var(--color-border-strong); }
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: #F8FAFC;
  margin: 0 auto;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease), background var(--dur-med) var(--ease);
}
.navbar.is-scrolled .hamburger span { background: var(--color-secondary); }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--nav-height-scrolled);
  left: 16px; right: 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 999;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-link {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--color-text);
}
.mobile-link:hover { background: var(--color-bg); }
.mobile-cta { margin-top: 8px; }

.nav-scrim {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease);
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 56px) 0 96px;
  background: linear-gradient(180deg, #0B1220 0%, #0F172A 55%, #14213D 100%);
  color: #fff;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.10) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  right: -280px; top: -380px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(37, 99, 235, 0) 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy { max-width: 560px; }

.hero-title {
  margin-top: 22px;
  font-size: clamp(2.25rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #F8FAFC;
}

.hero-subtitle {
  margin-top: 20px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #CBD5E1;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero .btn-outline { color: #E2E8F0; border-color: rgba(226, 232, 240, 0.28); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(226, 232, 240, 0.5); color: #fff; }

.hero-trust {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #64748B;
  font-weight: 500;
}
.hero-trust-sep { opacity: 0.6; }

/* ---- Hero visual / map product window ---- */
.hero-visual { position: relative; }

.map-window {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.map-window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F1F5F9;
  border-bottom: 1px solid var(--color-border);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: #CBD5E1;
  display: block;
}
.window-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
  margin: 0 auto;
  letter-spacing: -0.01em;
}

.map-preview {
  position: relative;
  height: 420px;
  background: #E2E8F0;
}

.preview-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #E9EEF3;
}

/* All floating UI must render above the Leaflet canvas + its internal panes/controls */
.map-overlay {
  position: absolute;
  z-index: 10;
  pointer-events: auto;
}

.overlay-badge {
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
}
.overlay-badge-icon {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: var(--color-tint);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.overlay-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.overlay-badge-text strong {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-secondary);
}
.overlay-badge-text em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.overlay-coords {
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  color: #E2E8F0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
}
.overlay-coords svg { flex-shrink: 0; opacity: 0.85; }

.overlay-cta {
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.overlay-cta:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.overlay-cta svg { transition: transform var(--dur-fast) var(--ease); }
.overlay-cta:hover svg { transform: translateX(2px); }

/* Leaflet control tweaks so default controls (if any) sit correctly inside our stacking order */
.preview-map .leaflet-control-container { z-index: 2; }
.preview-map .leaflet-pane { z-index: 1; }

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: 96px 0; background: var(--color-card); border-bottom: 1px solid var(--color-border); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-card {
  background: var(--color-card);
  padding: 40px 24px;
  text-align: center;
  transition: background var(--dur-fast) var(--ease);
}
.stat-card:hover { background: var(--color-bg); }
.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-unit { font-size: 0.5em; font-weight: 600; color: var(--color-muted); margin-left: 2px; }
.stat-label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 96px 0; }

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

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #BFDBFE;
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--color-tint);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--color-muted); line-height: 1.55; }

/* ============================================================
   WHY THIS WEBGIS
   ============================================================ */
.why-webgis { padding: 96px 0; background: var(--color-card); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

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

.why-illustration, .about-illustration { width: 100%; height: auto; border-radius: var(--radius-lg); }
.pulse-ring { transform-origin: center; animation: pulseRing 2.6s ease-out infinite; }
.pulse-ring-delay { animation-delay: 1.1s; }

.why-copy .eyebrow-dark, .why-copy .eyebrow { color: var(--color-primary); background: var(--color-tint); border-color: #DBEAFE; }
.why-copy h2 { margin-top: 16px; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.18; }
.why-copy > p { margin-top: 16px; color: var(--color-muted); font-size: 1.02rem; line-height: 1.65; max-width: 480px; }

.why-points { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.why-points li { display: flex; gap: 14px; align-items: flex-start; }
.why-point-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-tint);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-points strong { display: block; font-size: 15px; font-weight: 700; color: var(--color-secondary); }
.why-points span { display: block; font-size: 13.5px; color: var(--color-muted); margin-top: 2px; }

/* ============================================================
   TENTANG SISTEM
   ============================================================ */
.about-system { padding: 96px 0; }

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

.about-copy h2 { margin-top: 16px; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.18; }
.about-copy > p { margin-top: 16px; color: var(--color-muted); font-size: 1.02rem; line-height: 1.65; max-width: 480px; }

.about-tag {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  color: var(--color-muted);
}
.about-tag-logo { border-radius: 50%; }
.about-tag strong { color: var(--color-secondary); }

/* ============================================================
   RESEARCH / PENGEMBANGAN & PENELITIAN
   ============================================================ */
.research { padding: 96px 0; background: var(--color-card); border-top: 1px solid var(--color-border); }

.research-sub { max-width: 480px; margin-left: auto; margin-right: auto; }

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

.researcher-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.researcher-card:hover { transform: translateY(-2px); }
.researcher-card.lead { border-top-color: var(--color-primary); }

.researcher-role {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}
.role-lead { color: var(--color-primary); background: var(--color-tint); border-color: #DBEAFE; }

.researcher-name { font-size: 16px; font-weight: 700; color: var(--color-secondary); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: linear-gradient(135deg, var(--color-primary-darker) 0%, var(--color-primary) 55%, var(--color-primary-dark) 100%);
  text-align: center;
}
.final-cta .hero-grid-bg { opacity: 0.5; }
.final-cta-inner { position: relative; max-width: 620px; margin: 0 auto; }
.final-cta h2 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }
.final-cta p { margin-top: 14px; color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; }
.final-cta .btn { margin-top: 32px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--color-secondary); color: #CBD5E1; padding: 64px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p { margin-top: 12px; font-size: 13.5px; color: #94A3B8; max-width: 260px; line-height: 1.6; }
.footer .brand-name { color: #fff; }

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14px;
  color: #94A3B8;
  padding: 6px 0;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding: 22px 0;
  font-size: 13px;
  color: #64748B;
  text-align: center;
}

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  transition: opacity var(--dur-med) var(--ease);
}
.loading-overlay.hidden { opacity: 0; pointer-events: none; }
.loader-box {
  background: #fff;
  padding: 24px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-xl);
}
.spinner {
  margin: 0 auto 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  animation: spin 0.8s linear infinite;
}
.load-text { font-size: 14px; font-weight: 500; color: var(--color-secondary); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.06); }
}

@keyframes pulseRing {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.4); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-inner { gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-center { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 100%; }
  .hero-visual { order: 2; }

  .why-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-visual { order: -1; }

  .research-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }

  .hero { padding: calc(var(--nav-height) + 32px) 0 64px; }
  .hero-title { font-size: 2.1rem; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }

  .map-preview { height: 320px; }
  .overlay-badge { padding: 8px 11px; gap: 8px; }
  .overlay-badge-icon { width: 26px; height: 26px; }
  .overlay-badge-text strong { font-size: 15px; }
  .overlay-coords span { display: none; }
  .overlay-coords { padding: 9px; }
  .overlay-cta span { display: none; }
  .overlay-cta { padding: 11px; border-radius: 50%; }

  .stats { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 28px 16px; }

  .features { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }

  .why-webgis, .about-system, .research { padding: 64px 0; }

  .final-cta { padding: 72px 0; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding-top: 48px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
