/* ═══════════════════════════════════════════════════════════
   BUCKHANNON AI — Website Stylesheet
   Gold (#e6c134) on Deep Navy (#03081e)
   ═══════════════════════════════════════════════════════════ */

:root {
  --gold:          #e6c134;
  --gold-dark:     #b89a1a;
  --gold-light:    #f5d96a;
  --navy:          #03081e;
  --navy-mid:      #07102e;
  --navy-card:     #0b1840;
  --navy-border:   rgba(230,193,52,0.18);
  --text:          #dde6ff;
  --text-muted:    rgba(200,215,255,0.5);
  --text-dim:      rgba(200,215,255,0.3);
  --radius:        14px;
  --radius-sm:     8px;
  --transition:    0.22s ease;
  --grad-gold:     linear-gradient(135deg, #f5d96a 0%, #e6c134 45%, #b89a1a 100%);
  --shadow-card:   0 8px 40px rgba(0,0,0,0.45);
  --font:          'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--grad-gold);
  color: #040a1e;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(230,193,52,0.3); opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.82rem 1.6rem;
  border-radius: 10px;
  border: 1px solid rgba(220,230,255,0.18);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-decoration: none;
}
.btn-secondary:hover { border-color: rgba(220,230,255,0.4); background: rgba(255,255,255,0.04); opacity: 1; }

/* ══ NAV ════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(3,8,30,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(230,193,52,0.1);
  transition: background var(--transition);
}
.nav.scrolled { background: rgba(3,8,30,0.97); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-brand strong { color: var(--gold); }
.nav-brand:hover { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); opacity: 1; }

.btn-nav-dl {
  background: var(--grad-gold) !important;
  color: #040a1e !important;
  font-weight: 700 !important;
  padding: 0.45rem 1.1rem;
  border-radius: 7px;
  font-size: 0.82rem !important;
}
.btn-nav-dl:hover { opacity: 0.88 !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1.5rem 1.2rem;
  gap: 1rem;
  border-top: 1px solid rgba(230,193,52,0.08);
}
.nav-mobile a {
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
}
.nav-mobile.open { display: flex; }

/* ══ HERO ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem 1.5rem 4rem;
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle var(--d, 3s) var(--delay, 0s) ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: var(--op, 0.6); transform: scale(1); }
  50%       { opacity: 0.1; transform: scale(0.6); }
}

.mountains {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  pointer-events: none;
  z-index: 1;
}
.mountain {
  position: absolute;
  bottom: 0;
}
.m4 { left:-5%; width:55%; height:90%; background: #04102a; clip-path: polygon(0 100%,25% 5%,50% 100%); }
.m3 { left:10%; width:60%; height:75%; background: #061540; clip-path: polygon(0 100%,30% 8%,60% 100%); }
.m2 { left:40%; width:70%; height:80%; background: #04102a; clip-path: polygon(0 100%,28% 6%,56% 100%); }
.m1 { left:60%; width:50%; height:65%; background: #061540; clip-path: polygon(0 100%,22% 12%,44% 100%); }

.hero-content {
  position: relative;
  z-index: 3;
  flex: 1;
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(230,193,52,0.1);
  border: 1px solid rgba(230,193,52,0.3);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1.1rem;
  color: #fff;
}

.hero-glow {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(230,193,52,0.25));
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  line-height: 1.7;
  max-width: 440px;
}
.hero-sub strong { color: var(--text); }

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.hero-dl-btn { position: relative; flex-direction: column; align-items: flex-start; gap: 0; padding: 0.9rem 1.6rem; }
.hero-dl-btn svg { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); }
.hero-dl-sub { font-size: 0.68rem; font-weight: 500; opacity: 0.7; margin-top: 1px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── Mockup ─────────────────────────────────────────────── */
.hero-mockup {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 2rem;
}

.mockup-window {
  background: rgba(7,14,42,0.97);
  border: 1px solid rgba(230,193,52,0.22);
  border-radius: 12px;
  width: min(420px, 90vw);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
  animation: floatUp 6s ease-in-out infinite;
}
@keyframes floatUp {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mockup-dots { display: flex; gap: 5px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.mockup-title { font-size: 0.78rem; color: var(--text-muted); margin: 0 auto 0 0.3rem; }

.mockup-body { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.85rem; }

.mockup-msg {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.83rem;
  line-height: 1.55;
  max-width: 88%;
}
.mockup-user {
  background: rgba(230,193,52,0.1);
  border: 1px solid rgba(230,193,52,0.2);
  color: var(--gold-light);
  align-self: flex-end;
}
.mockup-ai {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text);
}
.mockup-ai-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.73rem;
  margin-bottom: 0.45rem;
}
.cursor-blink {
  display: inline-block;
  color: var(--gold);
  animation: blink 1.2s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.mockup-news-ticker {
  background: rgba(230,193,52,0.06);
  border: 1px solid rgba(230,193,52,0.15);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ══ SECTION SHARED ══════════════════════════════════════════ */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ══ FEATURES ═══════════════════════════════════════════════ */
.features {
  padding: 6rem 0;
  position: relative;
}
.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(230,193,52,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--navy-border);
  box-shadow: var(--shadow-card);
}
.feature-card--accent {
  background: linear-gradient(135deg, rgba(230,193,52,0.07) 0%, rgba(11,24,64,1) 60%);
  border-color: rgba(230,193,52,0.2);
}
.feature-card--accent:hover { border-color: rgba(230,193,52,0.4); }

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.85rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══ HOW IT WORKS ═══════════════════════════════════════════ */
.how-it-works {
  padding: 6rem 0;
  background: var(--navy-mid);
}

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 200px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #040a1e;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}
.step-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.step-body code {
  background: rgba(230,193,52,0.1);
  color: var(--gold);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.8rem;
}
.step-arrow {
  font-size: 1.6rem;
  color: var(--gold);
  opacity: 0.4;
  padding-top: 0.55rem;
  flex-shrink: 0;
}

/* ══ NEWS SHOWCASE ══════════════════════════════════════════ */
.news-showcase {
  padding: 6rem 0;
}

.news-sources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0;
}
.news-source {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  color: var(--text);
  transition: border-color var(--transition);
}
.news-source:hover { border-color: var(--navy-border); }

/* ══ REQUIREMENTS ═══════════════════════════════════════════ */
.requirements {
  padding: 5rem 0;
  background: var(--navy-mid);
}
.req-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.req-col h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}
.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.req-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ══ DOWNLOAD ═══════════════════════════════════════════════ */
.download-section {
  position: relative;
  padding: 7rem 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(230,193,52,0.08) 0%, var(--navy) 65%);
  overflow: hidden;
  text-align: center;
}

.download-inner { position: relative; z-index: 2; }

.download-badge {
  display: inline-block;
  background: rgba(230,193,52,0.12);
  border: 1px solid rgba(230,193,52,0.3);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.download-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.9rem;
}
.download-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.download-cards {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.download-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: min(300px, 90vw);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.download-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.download-card--primary {
  border-color: rgba(230,193,52,0.25);
  background: linear-gradient(150deg, rgba(230,193,52,0.07) 0%, var(--navy-card) 100%);
}
.download-card--primary:hover { border-color: rgba(230,193,52,0.45); box-shadow: 0 20px 60px rgba(230,193,52,0.12); }

.dl-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.dl-info { text-align: center; }
.dl-name { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.dl-meta { font-size: 0.75rem; color: var(--text-dim); }
.dl-btn { width: 100%; justify-content: center; }

.dl-note {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  text-align: left;
}
.dl-note strong { color: var(--text); }

.dl-counter {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  justify-content: center;
}
.dl-count-num {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dl-count-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ══ MAP SECTION ═══════════════════════════════════════════ */
.map-section {
  background: var(--navy-mid);
  padding: 6rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.map-widget {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: 2.5rem auto 1.5rem;
  max-width: 900px;
}

/* Search bar */
.map-widget-search {
  padding: 0.75rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.map-widget-search-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0 0.6rem;
  transition: border-color var(--transition);
}
.map-widget-search-inner:focus-within {
  border-color: rgba(230,193,52,0.5);
}
.map-srch-svg { color: var(--text-muted); flex-shrink: 0; }
.map-widget-search-inner input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.82rem;
  padding: 0.55rem 0;
  font-family: var(--font);
}
.map-widget-search-inner input::placeholder { color: var(--text-dim); }
.map-widget-search-inner button {
  background: var(--gold);
  border: none;
  color: #1a1200;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
}
.map-widget-search-inner button:hover { background: var(--gold-light); }
#map-search-clear {
  background: none !important;
  color: var(--text-muted) !important;
  padding: 0.2rem 0.3rem !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Results dropdown */
.map-widget-results {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: calc(100% - 0.75rem);
  background: #0b1635;
  border: 1px solid rgba(230,193,52,0.2);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
}
.map-widget-result-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 0.5rem 0.75rem;
  color: var(--text);
  font-size: 0.76rem;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.map-widget-result-item:hover { background: rgba(230,193,52,0.08); }
.map-widget-result-item svg { flex-shrink: 0; color: var(--gold); }
.map-widget-result-item span { flex: 1; }
.map-widget-result-city {
  margin-left: auto;
  font-size: 0.65rem;
  background: rgba(230,193,52,0.1);
  color: var(--gold);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  flex-shrink: 0;
}
.map-widget-result-noresult {
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
}
.map-widget-results-dismiss {
  display: block;
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-dim);
  font-size: 0.7rem;
  padding: 0.4rem;
  cursor: pointer;
  transition: background var(--transition);
}
.map-widget-results-dismiss:hover { background: rgba(255,255,255,0.05); }

/* Map canvas */
.map-widget-canvas {
  height: 400px;
  width: 100%;
  background: #07102e;
}

/* Status bar */
.map-widget-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.85rem;
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
#map-tile-label { flex: 1; min-width: 120px; }
.map-widget-style-btns { display: flex; gap: 0.3rem; }
.map-style-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}
.map-style-btn:hover { background: rgba(230,193,52,0.1); border-color: rgba(230,193,52,0.3); }
.map-style-btn.active { background: rgba(230,193,52,0.15); border-color: rgba(230,193,52,0.4); color: var(--gold); }

#map-print-btn, #map-osm-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
#map-print-btn:hover, #map-osm-btn:hover {
  border-color: rgba(230,193,52,0.35);
  color: var(--gold);
}

.map-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}
.map-note a { color: var(--text-muted); text-decoration: underline; }

/* Leaflet popup dark theme */
.map-widget-canvas .leaflet-popup-content-wrapper {
  background: #0b1635;
  color: var(--text);
  border: 1px solid rgba(230,193,52,0.2);
  border-radius: 8px;
  font-size: 0.8rem;
}
.map-widget-canvas .leaflet-popup-tip { background: #0b1635; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.revealed { opacity: 1; transform: translateY(0); }

/* ══ FOOTER ════════════════════════════════════════════════ */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
  width: 100%;
}

/* ══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 5rem;
    gap: 3rem;
  }
  .hero-content { max-width: 100%; }
  .hero-meta { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-mockup { justify-content: center; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .steps-row { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; }
  .req-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { margin-left: 0; }
}

@media (max-width: 600px) {
  .hero-dl-btn { padding: 0.85rem 1.4rem; }
  .features-grid { grid-template-columns: 1fr; }
  .download-cards { flex-direction: column; align-items: center; }
}
