/* ═══════════════════════════════════════════════════════
   CLIMAWISE WEBSITE — MAIN STYLESHEET
   Full Dark / Light Mode Adaptability & Smooth Transitions
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── DESIGN TOKENS (Dark Mode Default) ── */
:root {
  --primary:         #4F46E5;
  --primary-dark:    #3730A3;
  --primary-glow:    rgba(79, 70, 229, 0.35);
  --accent:          #7C3AED;
  --accent-glow:     rgba(124, 58, 237, 0.3);
  --green:           #10B981;
  --amber:           #FBBF24;
  --red:             #EF4444;
  --bg:              #080C14;
  --bg-card:         rgba(20, 25, 39, 0.85);
  --bg-card-solid:   #0D121F;
  --border:          rgba(255, 255, 255, 0.08);
  --border-glow:     rgba(79, 70, 229, 0.3);
  --text:            #F8FAFC;
  --text-muted:      #94A3B8;
  --text-subtle:     #64748B;
  --radius:          16px;
  --radius-lg:       24px;
  --radius-sm:       10px;
  --transition:      0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --theme-btn-bg:    rgba(255, 255, 255, 0.06);

  /* Component Specific Tokens */
  --nav-bg:          rgba(8, 12, 20, 0.90);
  --phone-frame-bg:  #1E293B;
  --phone-screen-bg: #0B0F1A;
  --preview-bg:      #0F172A;
  --app-card-bg:     rgba(255, 255, 255, 0.04);
  --float-card-bg:   rgba(15, 23, 42, 0.92);
  --float-shadow:    0 12px 40px rgba(0, 0, 0, 0.5);
  --badge-bg:        rgba(79, 70, 229, 0.12);
  --badge-border:    rgba(79, 70, 229, 0.25);
  --badge-text:      #818CF8;
  --pill-bg:         rgba(255, 255, 255, 0.04);
  --pill-border:     rgba(255, 255, 255, 0.08);
  --footer-bg:       #050810;
  --cta-card-bg:     linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(124, 58, 237, 0.08) 100%);
  --store-btn-bg:    rgba(255, 255, 255, 0.05);
  --store-btn-border:rgba(255, 255, 255, 0.10);
  --step-bg:         rgba(20, 25, 39, 0.6);
  --banner-bg:       rgba(16, 185, 129, 0.1);
  --dpo-bg:          rgba(255, 255, 255, 0.03);
  --map-top-bar-bg:  rgba(8, 12, 20, 0.85);
}

/* ── LIGHT MODE OVERRIDES ── */
[data-theme="light"] {
  --bg:              #F8FAFC;
  --bg-card:         #FFFFFF;
  --bg-card-solid:   #FFFFFF;
  --border:          rgba(0, 0, 0, 0.08);
  --border-glow:     rgba(79, 70, 229, 0.2);
  --text:            #0F172A;
  --text-muted:      #475569;
  --text-subtle:     #64748B;
  --theme-btn-bg:    rgba(0, 0, 0, 0.05);

  /* Component Specific Tokens in Light Mode */
  --nav-bg:          rgba(255, 255, 255, 0.90);
  --phone-frame-bg:  #0F172A;
  --phone-screen-bg: #FFFFFF;
  --preview-bg:      #F1F5F9;
  --app-card-bg:     #FFFFFF;
  --float-card-bg:   #FFFFFF;
  --float-shadow:    0 12px 36px rgba(0, 0, 0, 0.10);
  --badge-bg:        rgba(79, 70, 229, 0.08);
  --badge-border:    rgba(79, 70, 229, 0.2);
  --badge-text:      #4F46E5;
  --pill-bg:         #FFFFFF;
  --pill-border:     rgba(0, 0, 0, 0.08);
  --footer-bg:       #E2E8F0;
  --cta-card-bg:     linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.04) 100%);
  --store-btn-bg:    #FFFFFF;
  --store-btn-border:rgba(0, 0, 0, 0.12);
  --step-bg:         #FFFFFF;
  --banner-bg:       rgba(16, 185, 129, 0.08);
  --dpo-bg:          #F1F5F9;
  --map-top-bar-bg:  rgba(255, 255, 255, 0.92);
}

/* ── Theme Toggle Buttons ── */
.theme-toggle-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--theme-btn-bg);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  position: relative !important;
  margin: 0 !important;
}
.theme-toggle-btn:hover {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
  transform: scale(1.05);
}

.theme-toggle-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px var(--primary-glow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s ease;
}
.theme-toggle-fab:hover {
  transform: scale(1.12);
}

/* ── UTILITIES ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.gradient-text {
  background: linear-gradient(135deg, #818CF8 0%, #C084FC 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #FFF;
  box-shadow: 0 4px 24px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--primary-glow);
}
.btn-outline {
  border: 1.5px solid var(--badge-border);
  color: var(--text);
  background: var(--badge-bg);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 14px;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}
.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo-highlight { color: #818CF8; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--theme-btn-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 3px;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  transition: var(--transition);
}
.lang-btn.active {
  background: var(--primary);
  color: #FFF;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO SECTION ── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; left: -100px; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--accent); top: 100px; right: -100px; }
.hero-orb-3 { width: 300px; height: 300px; background: #38BDF8; bottom: -50px; left: 30%; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.hero-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions, .hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
/* .stat-value and .stat-num are both used in HTML */
.stat-value, .stat-num { font-size: 22px; font-weight: 900; color: var(--text); }
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* Phone Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-mockup {
  position: relative;
  z-index: 2;
}
.phone-frame {
  width: 280px;
  height: 570px;
  background: var(--phone-frame-bg);
  border: 1px solid var(--border);
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  position: relative;
  transition: var(--transition);
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--phone-screen-bg);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

.app-ui-preview {
  padding: 14px 14px 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--preview-bg);
  color: var(--text);
}
.app-ui-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.app-ui-time { font-size: 11px; font-weight: 800; color: var(--text); }
.app-ui-status-icons { display: flex; gap: 4px; color: var(--text); }
.app-ui-main { text-align: center; margin: 4px 0; }
.app-ui-loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--badge-bg);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 6px;
}
.app-weather-vector { display: flex; justify-content: center; margin: 4px 0; }
.app-ui-temp { font-size: 38px; font-weight: 900; color: var(--text); line-height: 1; letter-spacing: -1px; }
.app-ui-condition { font-size: 10px; font-weight: 600; color: var(--text-muted); margin-top: 4px; }

.app-ui-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 6px 0;
}
.metric-pill {
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
}

.app-ui-card {
  background: var(--app-card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 10px;
}
.app-ui-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.app-ui-live { display: flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 900; color: #34D399; letter-spacing: 1px; }
.app-ui-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #34D399; animation: pulse-dot 1.5s infinite; }
.app-ui-badge { font-size: 8px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.5px; }
.app-ui-radar-box {
  width: 100%; height: 56px;
  position: relative;
  background: var(--phone-screen-bg);
  border-radius: 8px;
  overflow: hidden;
}
.app-radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.25);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.ring-1 { width: 40px; height: 40px; }
.ring-2 { width: 80px; height: 80px; }
.app-radar-center { width: 6px; height: 6px; background: #38BDF8; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.app-radar-blip { position: absolute; border-radius: 50%; background: #34D399; opacity: 0.8; animation: blip-pulse 2s infinite; }
.blip-1 { width: 14px; height: 14px; top: 12px; left: 30px; }
.blip-2 { width: 22px; height: 22px; top: 24px; right: 40px; background: rgba(251, 191, 36, 0.7); }

.app-ui-hourly { display: flex; gap: 6px; }
.hourly-item {
  flex: 1;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: 10px;
  padding: 5px 3px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hourly-item.active { background: var(--badge-bg); border-color: var(--primary); }
.h-time { font-size: 8px; color: var(--text-muted); font-weight: 700; }
.h-temp { font-size: 10px; font-weight: 800; color: var(--text); }

/* Floating cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--float-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: var(--float-shadow);
  white-space: nowrap;
}
.float-card-1 { top: 60px; left: -90px; animation: float-card-1 4s ease-in-out infinite; }
.float-card-2 { bottom: 100px; right: -80px; animation: float-card-2 5s ease-in-out infinite; }
.float-icon-vector {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-rain-vec { background: rgba(56,189,248,0.15); color: #38BDF8; }
.icon-wind-vec { background: rgba(129,140,248,0.15); color: #818CF8; }
.float-badge-mini { font-size: 8px; font-weight: 900; letter-spacing: 1px; color: #34D399; margin-bottom: 2px; }
.float-title { font-size: 13px; font-weight: 800; color: var(--text); }
.float-sub { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ── SECTIONS GENERAL ── */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--badge-text);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--badge-bg);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-title { font-size: 40px; font-weight: 900; color: var(--text); letter-spacing: -1px; margin-bottom: 14px; }
.section-subtitle { font-size: 17px; color: var(--text-muted); line-height: 1.6; }

/* ── FEATURES SECTION ── */
.features { padding: 100px 0; position: relative; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 40px var(--primary-glow);
}
.feature-icon-wrap {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icon-radar { background: rgba(79,70,229,0.15); color: #818CF8; }
.icon-station { background: rgba(56,189,248,0.15); color: #38BDF8; }
.icon-alert { background: rgba(251,191,36,0.15); color: #FBBF24; }
.icon-ai { background: rgba(192,132,252,0.15); color: #C084FC; }
.icon-widget { background: rgba(16,185,129,0.15); color: #34D399; }
.icon-report { background: rgba(244,63,94,0.15); color: #FB7185; }

.feature-card h3 { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.feature-badge {
  display: inline-block;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--badge-text);
  background: var(--badge-bg);
  padding: 4px 10px; border-radius: 50px;
}

/* ── RAIN MAP 2-COLUMN SECTION ── */
.rain-map-section { padding: 100px 0; position: relative; }
.rain-map-grid {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 48px;
  align-items: center;
}
.rain-map-card {
  width: 100%;
  height: 560px;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  background: var(--bg-card);
}
#rainviewerMap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  z-index: 1;
}

/* Map Overlays */
.rm-top-bar {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 1000;
  background: var(--map-top-bar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  pointer-events: none;
}
.rm-top-bar strong { color: var(--text); font-weight: 700; }

.rm-control-pill {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--map-top-bar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  max-width: 92vw;
  transition: var(--transition);
}

.rm-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 9px;
  font-weight: 900;
  color: #EF4444;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.rm-live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #EF4444;
  animation: pulse-dot 1.5s infinite;
}
.rm-current-time {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
}

/* Timeline Progress Scrubber Bar */
.rm-timeline-bar {
  width: 56px;
  height: 4px;
  background: var(--theme-btn-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.rm-timeline-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, #38BDF8 100%);
  border-radius: 50px;
  transition: width 0.25s linear;
}

.rm-btn-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.rm-pill-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.rm-pill-btn:hover {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
  transform: scale(1.08);
}
.rm-play-btn {
  width: 30px; height: 30px;
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}
.rm-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px var(--primary-glow);
}

.rain-map-info { padding-top: 8px; }
.rm-title { font-size: 36px; font-weight: 900; color: var(--text); letter-spacing: -1px; line-height: 1.2; margin-bottom: 16px; }
.rm-description { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin-bottom: 32px; }

/* 3 Feature Cards next to Rain Map */
.rm-feature-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.rm-feat-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.rm-feat-card:hover { transform: translateX(4px); border-color: var(--border-glow); }
.rm-feat-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-blue { background: rgba(56,189,248,0.12); color: #38BDF8; }
.icon-cyan { background: rgba(34,211,238,0.12); color: #22D3EE; }
.icon-purple { background: rgba(192,132,252,0.12); color: #C084FC; }

.rm-feat-card h3 { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.rm-feat-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.rm-feat-badge {
  position: absolute; top: 12px; right: 16px;
  font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-subtle); background: var(--theme-btn-bg);
  border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 50px;
}

.rm-store-row { display: flex; gap: 12px; margin-bottom: 16px; }
.store-badge-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--store-btn-bg);
  border: 1px solid var(--store-btn-border);
  border-radius: 12px;
  padding: 10px 18px;
  color: var(--text);
  transition: var(--transition);
}
.store-badge-btn:hover { background: var(--primary); color: #FFF; border-color: var(--primary); transform: translateY(-2px); }
.store-badge-disabled { opacity: 0.5; cursor: not-allowed; }
.store-badge-disabled:hover { background: var(--store-btn-bg); color: var(--text); border-color: var(--store-btn-border); transform: none; }
.sb-sub { display: block; font-size: 9px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.5px; }
.sb-main { display: block; font-size: 14px; font-weight: 900; color: var(--text); }
.rm-disclaimer { font-size: 12px; color: var(--text-subtle); margin-top: 4px; }

/* ── HOW IT WORKS ── */
.how-it-works { padding: 100px 0; position: relative; }
.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}
.step {
  flex: 1;
  max-width: 320px;
  background: var(--step-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.step:hover { transform: translateY(-4px); border-color: var(--border-glow); }
.step-number {
  font-size: 13px; font-weight: 900; color: var(--badge-text);
  background: var(--badge-bg); display: inline-block;
  padding: 4px 12px; border-radius: 50px; margin-bottom: 16px;
}
.step-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--badge-bg);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.step-connector {
  flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-top: 60px; opacity: 0.4;
}

/* ── DOWNLOAD CTA ── */
.download-cta { padding: 100px 0; position: relative; }
.cta-content {
  background: var(--cta-card-bg);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 64px 32px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}
.cta-title { font-size: 44px; font-weight: 900; color: var(--text); letter-spacing: -1px; margin-bottom: 16px; line-height: 1.15; }
.cta-subtitle { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; }
.store-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--store-btn-bg);
  border: 1px solid var(--store-btn-border);
  border-radius: 16px;
  padding: 14px 28px;
  color: var(--text);
  transition: var(--transition);
}
.store-btn:hover { background: var(--primary); color: #FFF; border-color: var(--primary); transform: translateY(-2px); }
.store-btn-disabled { opacity: 0.5; cursor: not-allowed; }
.store-btn-disabled:hover { background: var(--store-btn-bg); color: var(--text); transform: none; }
.store-btn-sub { display: block; font-size: 10px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.5px; }
.store-btn-main { display: block; font-size: 16px; font-weight: 900; color: var(--text); }

/* ── FOOTER ── */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  transition: var(--transition);
}
.footer-top { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: 16px; line-height: 1.6; max-width: 240px; }
.footer-links-group { display: flex; flex-direction: column; gap: 12px; }
.footer-links-group h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text); margin-bottom: 4px; }
.footer-links-group a { font-size: 14px; color: var(--text-muted); transition: color var(--transition); }
.footer-links-group a:hover { color: var(--primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.footer-lang-mini { display: flex; gap: 8px; }
.lang-mini { font-size: 11px; font-weight: 700; color: var(--text-muted); transition: color var(--transition); letter-spacing: 0.5px; }
.lang-mini.active { color: var(--primary); }
.lang-mini:hover { color: var(--text); }

/* ── PRIVACY PAGE STYLES (`privacidade.html`) ── */
.privacy-hero { padding: 140px 0 60px; text-align: center; position: relative; }
.privacy-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--badge-bg); border: 1px solid var(--badge-border); color: var(--badge-text);
  padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 700; margin-bottom: 20px;
}
.privacy-title { font-size: 48px; font-weight: 900; color: var(--text); letter-spacing: -1px; margin-bottom: 12px; }
.privacy-updated { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.privacy-container { max-width: 900px; margin: 0 auto 100px; padding: 0 24px; display: flex; flex-direction: column; gap: 24px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--badge-bg); border: 1px solid var(--badge-border); color: var(--badge-text);
  padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 700; align-self: flex-start;
  transition: var(--transition);
}
.back-link:hover { background: var(--primary); color: #FFF; border-color: var(--primary); }
.p-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.p-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.p-card-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-indigo { background: rgba(79,70,229,0.12); color: #818CF8; }
.icon-emerald { background: rgba(16,185,129,0.12); color: #34D399; }
.icon-cyan { background: rgba(34,211,238,0.12); color: #22D3EE; }
.icon-amber { background: rgba(251,191,36,0.12); color: #FBBF24; }
.icon-rose { background: rgba(251,113,133,0.12); color: #FB7185; }

.p-card-num { font-size: 11px; font-weight: 900; letter-spacing: 1.5px; color: #818CF8; display: block; margin-bottom: 2px; }
.p-card-title { font-size: 22px; font-weight: 800; color: var(--text); }
.p-text { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.p-text:last-child { margin-bottom: 0; }
.p-text strong { color: var(--text); }
.p-list { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; }
.p-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.p-list-dot { width: 8px; height: 8px; border-radius: 50%; background: #818CF8; margin-top: 8px; flex-shrink: 0; }
.p-banner {
  background: var(--banner-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex; align-items: flex-start; gap: 14px;
  margin: 20px 0;
}
.p-banner-icon { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.p-banner p { font-size: 14px; color: var(--text); line-height: 1.6; margin: 0; }

.dpo-card {
  background: var(--dpo-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 24px; flex-wrap: wrap; gap: 16px;
}
.dpo-email {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary); color: #FFF;
  padding: 12px 22px; border-radius: 12px;
  font-size: 14px; font-weight: 800; transition: var(--transition);
}
.dpo-email:hover { transform: translateY(-2px); box-shadow: 0 4px 20px var(--primary-glow); }

/* Privacy Helper Classes */
.p-highlight-text { color: var(--primary); font-weight: 700; }
.color-emerald { color: #10B981; }
.color-cyan { color: #06B6D4; }
.color-amber { color: #F59E0B; }
.color-rose { color: #F43F5E; }
.dot-emerald { background: #10B981; }
.dot-cyan { background: #06B6D4; }
.dot-amber { background: #F59E0B; }

.dpo-title-text { color: var(--text); display: block; margin-bottom: 4px; font-weight: 800; }
.dpo-sub-text { font-size: 13px; color: var(--text-muted); }

/* ── LIGHT MODE COMPONENT & ICON ADAPTATIONS ── */
[data-theme="light"] .icon-indigo { background: rgba(79, 70, 229, 0.1); color: #4F46E5; }
[data-theme="light"] .icon-emerald { background: rgba(16, 185, 129, 0.1); color: #059669; }
[data-theme="light"] .icon-cyan { background: rgba(6, 182, 212, 0.1); color: #0891B2; }
[data-theme="light"] .icon-amber { background: rgba(245, 158, 11, 0.1); color: #D97706; }
[data-theme="light"] .icon-rose { background: rgba(244, 63, 94, 0.1); color: #E11D48; }

[data-theme="light"] .p-card-num { color: var(--primary); }
[data-theme="light"] .p-highlight-text { color: var(--primary); }
[data-theme="light"] .color-emerald { color: #059669; }
[data-theme="light"] .color-cyan { color: #0891B2; }
[data-theme="light"] .color-amber { color: #D97706; }
[data-theme="light"] .color-rose { color: #E11D48; }
[data-theme="light"] .dot-emerald { background: #059669; }
[data-theme="light"] .dot-cyan { background: #0891B2; }
[data-theme="light"] .dot-amber { background: #D97706; }

[data-theme="light"] .p-banner {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}
[data-theme="light"] .p-banner-icon { color: #059669; }
[data-theme="light"] .dpo-card {
  background: #F1F5F9;
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .rm-feat-card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
[data-theme="light"] .rm-feat-card h3 { color: #0F172A; }
[data-theme="light"] .rm-feat-card p { color: #475569; }
[data-theme="light"] .rm-feat-badge {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
  color: #64748B;
}
[data-theme="light"] .store-badge-btn {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0F172A;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
[data-theme="light"] .sb-sub { color: #64748B; }
[data-theme="light"] .sb-main { color: #0F172A; }

/* Leaflet Zoom Control Theme Adaptation */
.leaflet-container { background: var(--bg-card) !important; font-family: 'Inter', sans-serif; }
.leaflet-control-zoom {
  border: none !important;
  margin-bottom: 24px !important;
  margin-right: 16px !important;
}
.leaflet-control-zoom a {
  background: var(--map-top-bar-bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 30px !important;
  font-size: 16px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
  backdrop-filter: blur(12px);
  margin-bottom: 6px;
  transition: var(--transition);
}
.leaflet-control-zoom a:hover {
  background: var(--primary) !important;
  color: #FFF !important;
  border-color: var(--primary) !important;
}

/* ═══════════════════════════════════════════════════════
   ADDITIONAL ENHANCEMENTS: Testimonials, FAQ, Comparison, Mid-CTA
   ═══════════════════════════════════════════════════════ */

/* ── TESTIMONIALS SECTION ── */
.testimonials {
  padding: 100px 0;
  position: relative;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 36px rgba(79, 70, 229, 0.12);
}
.stars-row {
  display: flex;
  gap: 4px;
  color: var(--amber);
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.user-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}
.user-info p {
  font-size: 12px;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 4px;
}
.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

/* ── MID-PAGE CTA SECTION ── */
.mid-page-cta {
  padding: 40px 0 80px;
}
.mid-cta-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(124, 58, 237, 0.12) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 54px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}
.mid-cta-card h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.mid-cta-card p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.mid-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── WHY CLIMAWISE (COMPARISON) ── */
.why-climawise {
  padding: 100px 0;
}
.comparison-table-wrap {
  margin-top: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.comparison-table th, .comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.comparison-table th.col-climawise {
  background: rgba(79, 70, 229, 0.15);
  color: #818CF8;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table td.col-climawise {
  background: rgba(79, 70, 229, 0.05);
  font-weight: 700;
  color: var(--text);
}
.cw-check {
  color: var(--green);
  font-weight: 800;
  margin-right: 6px;
}
.cw-cross {
  color: var(--red);
  font-weight: 700;
  margin-right: 6px;
}

/* ── FAQ SECTION ── */
.faq {
  padding: 100px 0;
}
.faq-accordion {
  max-width: 860px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item[open] {
  border-color: var(--border-glow);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.1);
}
.faq-question {
  padding: 22px 28px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-icon-chev {
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  transition: transform 0.3s ease;
  color: var(--primary);
  flex-shrink: 0;
}

/* Mobile Comparison Cards Styling */
.why-mobile-cards {
  display: none;
  margin-top: 32px;
}
.why-card {
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.why-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.why-card-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.5;
}
.why-badge-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cw-badge {
  background: rgba(79, 70, 229, 0.2);
  color: #818CF8;
  border: 1px solid rgba(79, 70, 229, 0.4);
}
.ot-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.faq-item[open] .faq-icon-chev {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 28px 24px 28px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── iOS APP STORE WAITLIST FORM & MODAL ── */
.ios-waitlist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin-top: 16px;
}
.ios-form {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.ios-input {
  flex: 1;
  min-width: 220px;
  background: var(--theme-btn-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.ios-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.ios-form-success {
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  margin-top: 10px;
  display: none;
}

/* ── MODAL STYLES ── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--theme-btn-bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover {
  color: #FFFFFF;
  background: var(--primary);
}

/* Media queries centralizadas em css/responsive.css */

