/* ============================================
   HELIOX — Custom Stylesheet
   Built by IAMUVIN | iamuvin.com
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --eco-black: #0A0F0D;
  --dark-green: #0F1F1C;
  --energy-green: #00FF88;
  --tech-blue: #00C2FF;
  --premium-gold: #FFD700;
  --text-primary: #FFFFFF;
  --text-secondary: #B0BEC5;
  --border-subtle: rgba(255,255,255,0.08);
  --card-bg: rgba(15,31,28,0.6);
  --glow-green: 0 0 30px rgba(0,255,136,0.25);
  --glow-blue: 0 0 30px rgba(0,194,255,0.25);
  --glow-gold: 0 0 30px rgba(255,215,0,0.25);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* iOS horizontal scroll fix */
}

body {
  background-color: var(--eco-black);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%; /* Prevent iOS font size boost on rotation */
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--eco-black); }
::-webkit-scrollbar-thumb { background: rgba(0,255,136,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--energy-green); }

/* ============================================
   NAVIGATION
   ============================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  /* Safe area: push content below Dynamic Island / notch */
  padding: max(1.25rem, env(safe-area-inset-top)) 0 1.25rem;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(10,15,13,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
  padding: max(0.875rem, env(safe-area-inset-top)) 0 0.875rem;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--energy-green);
  text-transform: uppercase;
}
.nav-logo-sub {
  font-size: 0.6rem;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-top: -2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--energy-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--energy-green);
  color: var(--eco-black) !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: #00e07a;
  color: var(--eco-black) !important;
  box-shadow: var(--glow-green);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  /* Apple HIG: minimum 44×44px touch target */
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,15,13,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  /* Safe areas: avoid Dynamic Island and home indicator */
  padding-top: max(2rem, env(safe-area-inset-top));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
  /* Minimum touch target */
  min-height: 44px;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.nav-mobile a:hover { color: var(--energy-green); }
.nav-mobile-close {
  position: absolute;
  top: max(1.5rem, env(safe-area-inset-top));
  right: max(1.5rem, env(safe-area-inset-right));
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  /* Minimum touch target */
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* iOS Safari: excludes browser chrome */
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Animated energy grid background */
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(0,255,136,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(0,194,255,0.05) 0%, transparent 50%),
              linear-gradient(135deg, var(--eco-black) 0%, var(--dark-green) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(0,255,136,0.12) 0%, transparent 70%);
  animation: orbFloat1 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  bottom: -50px; left: 10%;
  background: radial-gradient(circle, rgba(0,194,255,0.1) 0%, transparent 70%);
  animation: orbFloat2 15s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-30px,40px) scale(1.1); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px,-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  /* Safe area: account for Dynamic Island pushing nav lower */
  padding: max(8rem, calc(5rem + env(safe-area-inset-top))) 1.5rem 4rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(0,255,136,0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--energy-green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}
.hero-label span.dot {
  width: 6px; height: 6px;
  background: var(--energy-green);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.75rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 800px;
}
.hero-title .gradient {
  background: linear-gradient(135deg, var(--energy-green) 0%, var(--tech-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Hero stats strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 600px;
  padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--energy-green);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem;
  border-radius: 8px;
  padding: 0.875rem 2rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--energy-green);
  color: var(--eco-black);
}
.btn-primary:hover {
  background: #00e07a;
  box-shadow: var(--glow-green);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--premium-gold);
  color: var(--eco-black);
}
.btn-gold:hover {
  background: #ffe033;
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #20c05e;
  box-shadow: 0 0 30px rgba(37,211,102,0.3);
  transform: translateY(-2px);
}
.btn-outline-green {
  background: transparent;
  color: var(--energy-green);
  border: 1px solid var(--energy-green);
}
.btn-outline-green:hover {
  background: rgba(0,255,136,0.08);
  box-shadow: var(--glow-green);
  transform: translateY(-2px);
}
.btn-outline-blue {
  background: transparent;
  color: var(--tech-blue);
  border: 1px solid var(--tech-blue);
}
.btn-outline-blue:hover {
  background: rgba(0,194,255,0.08);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}
.btn-outline-gold {
  background: transparent;
  color: var(--premium-gold);
  border: 1px solid var(--premium-gold);
}
.btn-outline-gold:hover {
  background: rgba(255,215,0,0.08);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}
.btn-lg { padding: 1.125rem 2.5rem; font-size: 1rem; }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.8125rem; }

/* ============================================
   SECTIONS SHARED
   ============================================ */
.section {
  padding: 6rem 0;
}
.section-sm { padding: 4rem 0; }
.section-lg { padding: 8rem 0; }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 480px) { .container { padding: 0 1rem; } }

.section-tag {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--energy-green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.875rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
}

/* Gradient text */
.text-gradient-green {
  background: linear-gradient(135deg, var(--energy-green), var(--tech-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-gold {
  background: linear-gradient(135deg, var(--premium-gold), #ff9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 60%, rgba(0,255,136,0.03));
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.card:hover {
  border-color: rgba(0,255,136,0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--glow-green);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.card-icon-green { background: rgba(0,255,136,0.12); }
.card-icon-blue { background: rgba(0,194,255,0.12); }
.card-icon-gold { background: rgba(255,215,0,0.12); }

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}
.card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   SOLAR CALCULATOR
   ============================================ */
.calculator {
  background: var(--dark-green);
  border: 1px solid rgba(0,255,136,0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
}
.calculator-header {
  background: rgba(0,255,136,0.05);
  border-bottom: 1px solid rgba(0,255,136,0.1);
  padding: 2rem 2.5rem;
}
.calculator-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.calculator-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.calculator-body { padding: 2.5rem; }
.calculator-footer {
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.625rem;
}
.form-control {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.875rem 1.125rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--energy-green);
  background: rgba(0,255,136,0.04);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.1);
}
.form-control::placeholder { color: rgba(176,190,197,0.5); }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300FF88' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
select.form-control option {
  background: var(--dark-green);
  color: var(--text-primary);
}

/* Segmented control */
.segmented {
  display: flex;
  gap: 0.5rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 4px;
}
.segmented-btn {
  flex: 1;
  padding: 0.625rem 0.75rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-family: 'Inter', sans-serif;
  /* Allow text to wrap on mobile — "Monthly Electricity Usage" must not clip */
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}
.segmented-btn.active {
  background: var(--energy-green);
  color: var(--eco-black);
}
.segmented-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

/* Calculator results */
.calc-results {
  display: none;
  animation: fadeInUp 0.4s ease both;
}
.calc-results.show { display: block; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.result-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  transition: var(--transition);
}
.result-card:hover { border-color: rgba(0,255,136,0.2); }
.result-card.featured {
  border-color: rgba(0,255,136,0.3);
  background: rgba(0,255,136,0.05);
  grid-column: 1/-1;
}
.result-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.result-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.result-value.green { color: var(--energy-green); }
.result-value.blue { color: var(--tech-blue); }
.result-value.gold { color: var(--premium-gold); }
.result-unit {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.6;
  margin-left: 2px;
}

.offgrid-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--energy-green);
}
.offgrid-badge svg { flex-shrink: 0; }

.calc-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

/* Feature list */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.feature-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: rgba(0,255,136,0.15);
  border: 1px solid rgba(0,255,136,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath fill='%2300FF88' d='M1 4l2.5 2.5L9 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* ============================================
   MAP / EXPANSION SECTION
   ============================================ */
.map-container {
  position: relative;
  background: var(--dark-green);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-svg-wrapper {
  width: 100%;
  max-width: 500px;
  padding: 2rem;
}
.map-svg-wrapper svg { width: 100%; height: auto; }

.map-legend {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.map-location {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.map-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.map-dot.active {
  background: var(--energy-green);
  box-shadow: 0 0 12px var(--energy-green);
}
.map-dot.active::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(0,255,136,0.3);
  animation: dotRipple 2s ease-in-out infinite;
}
.map-dot.soon { background: rgba(255,215,0,0.4); border: 1px solid var(--premium-gold); }
.map-dot.future { background: rgba(255,255,255,0.1); border: 1px solid var(--border-subtle); }

@keyframes dotRipple {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0; }
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .trust-grid { grid-template-columns: 1fr; } }

.trust-item {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: var(--transition);
}
.trust-item:hover {
  border-color: rgba(0,255,136,0.2);
  background: rgba(0,255,136,0.02);
}
.trust-icon { font-size: 2.25rem; margin-bottom: 1rem; }
.trust-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.trust-desc { font-size: 0.8125rem; color: var(--text-secondary); }

/* ============================================
   PAYMENT BADGES
   ============================================ */
.payment-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.payment-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}
.payment-badge:hover { border-color: rgba(255,215,0,0.3); color: var(--premium-gold); }

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, rgba(0,255,136,0.05), rgba(0,194,255,0.03));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  padding: 6rem 0;
}
.cta-section .section-title { margin-bottom: 1.25rem; }
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--dark-green);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 max(2rem, env(safe-area-inset-bottom));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-social a:hover {
  border-color: var(--energy-green);
  color: var(--energy-green);
  background: rgba(0,255,136,0.05);
  transform: translateY(-3px);
}
.footer-social a[data-social="facebook"]:hover {
  border-color: #1877F2;
  color: #1877F2;
  background: rgba(24,119,242,0.08);
}
.footer-social a[data-social="instagram"]:hover {
  border-color: #E1306C;
  color: #E1306C;
  background: rgba(225,48,108,0.08);
}
.footer-social a[data-social="linkedin"]:hover {
  border-color: #0A66C2;
  color: #0A66C2;
  background: rgba(10,102,194,0.08);
}
.footer-social a[data-social="youtube"]:hover {
  border-color: #FF0000;
  color: #FF0000;
  background: rgba(255,0,0,0.08);
}
.footer-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: gap;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-legal-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-legal-links a:hover { color: var(--text-primary); }

/* IAMUVIN credit (mandatory) */
.iamuvin-credit {
  margin-top: 2rem;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.iamuvin-credit a {
  color: var(--premium-gold);
  transition: var(--transition);
}
.iamuvin-credit a:hover { color: var(--energy-green); }

/* ============================================
   ANIMATIONS & SCROLL REVEAL
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: max(10rem, calc(7rem + env(safe-area-inset-top))) 0 5rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,255,136,0.06) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}
.page-hero .section-title { margin-bottom: 1rem; }
.page-hero .section-desc { margin: 0 auto; }

/* ============================================
   BLOG
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  color: inherit;
}
.blog-card:hover {
  border-color: rgba(0,255,136,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--dark-green), rgba(0,255,136,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 1.5rem; }
.blog-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--energy-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.blog-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
  transition: var(--transition);
}
.blog-card:hover .blog-card-title { color: var(--energy-green); }
.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: var(--transition);
}
.contact-info-item:hover {
  border-color: rgba(0,255,136,0.2);
  background: rgba(0,255,136,0.02);
}
.contact-info-icon {
  font-size: 1.25rem;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(0,255,136,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.contact-info-value { font-size: 0.9375rem; font-weight: 600; }

/* ============================================
   PHASE TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--energy-green), transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--energy-green);
  border: 2px solid var(--eco-black);
  box-shadow: 0 0 10px var(--energy-green);
}
.timeline-label {
  font-size: 0.75rem;
  color: var(--energy-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.timeline-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.timeline-desc { font-size: 0.9rem; color: var(--text-secondary); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 800px) { .vision-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
@media (max-width: 700px) { .team-grid { grid-template-columns: 1fr; } }

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .result-card.featured { grid-column: 1 / -1; }
  .segmented { flex-direction: column; gap: 0.375rem; }
  .segmented-btn { flex: none; width: 100%; min-height: 44px; }
  .calc-cta-group { flex-direction: column; }
  .btn { width: 100%; }
  /* Small variant and inline action buttons must NOT be full-width */
  .btn-sm { width: auto; }
  .hero-actions { flex-direction: column; margin-bottom: 2rem; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: auto; min-width: 280px; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-green { color: var(--energy-green); }
.text-blue { color: var(--tech-blue); }
.text-gold { color: var(--premium-gold); }
.text-muted { color: var(--text-secondary); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }

.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-green { background: rgba(0,255,136,0.12); color: var(--energy-green); }
.badge-blue { background: rgba(0,194,255,0.12); color: var(--tech-blue); }
.badge-gold { background: rgba(255,215,0,0.12); color: var(--premium-gold); }
.badge-red { background: rgba(255,80,80,0.12); color: #ff5050; }

/* Status dots */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.status-active .status-dot {
  background: var(--energy-green);
  box-shadow: 0 0 8px var(--energy-green);
  animation: statusPulse 2s ease-in-out infinite;
}
.status-soon .status-dot { background: var(--premium-gold); }
.status-future .status-dot { background: var(--text-secondary); }

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Glow card variant */
.card-glow-green:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0,255,136,0.15); }
.card-glow-blue:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0,194,255,0.15); }
.card-glow-gold:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(255,215,0,0.15); }

/* ============================================
   RESPONSIVE GRID UTILITIES
   ============================================ */

/* 2-column split (used in page heros & content blocks) */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 860px) {
  .split-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Responsive utility grids */
.rg-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.rg-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.rg-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.rg-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 1rem; }

@media (max-width: 1024px) {
  .rg-5 { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
  .rg-4 { grid-template-columns: repeat(2,1fr); }
  .rg-3.stack-tablet { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .rg-3 { grid-template-columns: 1fr 1fr; }
  .rg-5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .rg-2 { grid-template-columns: 1fr; }
  .rg-3 { grid-template-columns: 1fr; }
  .rg-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .rg-4, .rg-5 { grid-template-columns: 1fr; }
}

/* ============================================
   BLOG ARTICLE PAGE
   ============================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
  min-width: 0;
}
@media (max-width: 1024px) { .article-layout { grid-template-columns: 1fr; gap: 2rem; } }

.article-sidebar { position: sticky; top: 100px; min-width: 0; }

.article-toc {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.article-toc h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.article-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article-toc ol li { counter-increment: toc; }
.article-toc ol li a {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  transition: var(--transition);
}
.article-toc ol li a::before {
  content: counter(toc);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--energy-green);
  background: rgba(0,255,136,0.1);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.article-toc ol li a:hover { color: var(--energy-green); }

.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.article-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.article-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.75rem 0 0.75rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article-body li { color: var(--text-secondary); }
.article-body strong { color: var(--text-primary); font-weight: 600; }
.article-body a { color: var(--energy-green); text-decoration: underline; text-underline-offset: 3px; }

.article-callout {
  background: rgba(0,255,136,0.04);
  border: 1px solid rgba(0,255,136,0.2);
  border-left: 3px solid var(--energy-green);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}
.article-callout-blue {
  background: rgba(0,194,255,0.04);
  border-color: rgba(0,194,255,0.2);
  border-left-color: var(--tech-blue);
}
.article-callout-gold {
  background: rgba(255,215,0,0.04);
  border-color: rgba(255,215,0,0.2);
  border-left-color: var(--premium-gold);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}
.article-table th {
  background: rgba(0,255,136,0.07);
  color: var(--text-primary);
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,255,136,0.2);
}
.article-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.article-table tr:last-child td { border-bottom: none; }
.article-table tr:hover td { background: rgba(255,255,255,0.02); }

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-q {
  padding: 1.125rem 1.25rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.faq-q:hover { color: var(--energy-green); }
.faq-q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--energy-green);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 1.25rem 1.125rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.faq-item.open .faq-a { display: block; }

.article-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 2rem;
}
.article-author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--energy-green), var(--tech-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--eco-black);
  font-size: 1rem;
  flex-shrink: 0;
}
.article-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (max-width: 600px) { .article-related-grid { grid-template-columns: 1fr; } }
.article-related-card {
  display: block;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: var(--transition);
}
.article-related-card:hover {
  border-color: rgba(0,255,136,0.3);
  transform: translateY(-2px);
}
.article-related-card .blog-tag { margin-bottom: 0.5rem; }
.article-related-card p {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Founders */
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}
@media (max-width: 640px) { .founders-grid { grid-template-columns: 1fr; } }
.founder-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.founder-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,255,136,0.04), transparent);
  pointer-events: none;
}
.founder-card:hover {
  border-color: rgba(0,255,136,0.3);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0,255,136,0.08);
}
.founder-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(0,255,136,0.2), rgba(0,194,255,0.2));
  border: 3px solid rgba(0,255,136,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--energy-green);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(0,255,136,0.06), 0 12px 32px rgba(0,0,0,0.4);
}
.founder-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
}
.founder-avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(0,255,136,0.15);
  animation: dotPulse 3s ease-in-out infinite;
}
.founder-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  letter-spacing: -0.02em;
}
.founder-role {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--energy-green);
  margin-bottom: 1.25rem;
}
.founder-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Featured blog card */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
}
@media (max-width: 700px) {
  .blog-featured { grid-template-columns: 1fr; padding: 1.5rem; }
  .blog-featured-img { height: 200px !important; font-size: 4rem !important; border-radius: 8px !important; }
}
@media (max-width: 420px) {
  .blog-featured { padding: 1rem; gap: 1.5rem; }
  .blog-featured-img { height: 160px !important; font-size: 3rem !important; }
}

/* Calculator inner form grid */
.calc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .calc-form-row { grid-template-columns: 1fr; }
}

/* Quick ref grid */
.quick-ref-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
@media (max-width: 560px) {
  .quick-ref-grid { grid-template-columns: 1fr; }
}

/* Results grid (calculator) */
.results-grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 700px) {
  .results-grid-3 { grid-template-columns: repeat(2,1fr); }
  /* Shrink result values so LKR strings fit in narrow 2-col cards */
  .result-value { font-size: 1.375rem; }
  .result-card.featured .result-value { font-size: 1.875rem !important; }
}
@media (max-width: 500px) {
  /* Switch to 1-col early — prevents LKR values overflowing narrow cards */
  .results-grid-3 { grid-template-columns: 1fr; }
  .result-value { font-size: 1.5rem; }
  .result-card.featured .result-value { font-size: 1.875rem !important; }
}
@media (max-width: 380px) {
  .result-card.featured .result-value { font-size: 1.5rem !important; }
}

/* Stats mini grid (solar page hero) */
.stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 420px) {
  .stats-mini { grid-template-columns: 1fr 1fr; }
}

/* Expansion coverage grid */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .coverage-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 560px) {
  .coverage-grid { grid-template-columns: repeat(2,1fr); }
}

/* How-it-works 4-col */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) {
  .steps-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* Bike benefits strip */
.benefits-strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (max-width: 700px) {
  .benefits-strip { grid-template-columns: repeat(2,1fr); }
}

/* EV charging features 2-col */
.ev-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}
@media (max-width: 700px) {
  .ev-features-grid { grid-template-columns: 1fr; }
}

/* Blog featured card */
@media (max-width: 700px) {
  .blog-featured-card { flex-direction: column; }
}

/* Page hero split (inner pages) */
.page-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 860px) {
  .page-hero-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-hero-split .reveal-right { display: none; }
}

/* Contact form inner row */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 500px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* Bike expansion info grid */
.bike-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
}

/* Values 3-col (about) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
@media (max-width: 700px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ============================================
   GLOBAL MOBILE TYPOGRAPHY & SPACING
   ============================================ */
@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .section-lg { padding: 5rem 0; }
  /* Safe area already built into .page-hero, provide mobile fallback minimum */
  .page-hero { padding-top: max(8rem, calc(5.5rem + env(safe-area-inset-top))); padding-bottom: 3.5rem; }
  .container { padding: 0 1.25rem; }
  .card { padding: 1.5rem; }
  .calculator-body { padding: 1.5rem; }
  .calculator-header { padding: 1.5rem; }
  .calculator-footer { padding: 1.25rem 1.5rem; }
  .cta-section { padding: 4rem 0; }
  .hero-content { padding: max(7rem, calc(4.5rem + env(safe-area-inset-top))) 1.25rem 2rem; align-items: flex-start; }
}

@media (max-width: 400px) {
  .section { padding: 3rem 0; }
  .container { padding: 0 1rem; }
  .card { padding: 1.25rem; }
}

/* ============================================
   ADDITIONAL MOBILE FIXES
   ============================================ */

/* Remove white tap flash on interactive elements (iOS) */
a, button, [role="button"], .card, .segmented-btn, details summary {
  -webkit-tap-highlight-color: transparent;
}

/* Ensure buttons always have min touch target height on mobile */
@media (max-width: 960px) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 38px; }
}

/* Prevent button text overflow on very small screens */
@media (max-width: 400px) {
  .btn { font-size: 0.875rem; padding: 0.875rem 1.5rem; letter-spacing: 0.03em; }
  .btn-lg { font-size: 0.9rem; padding: 1rem 1.75rem; }
}

/* Body scroll lock fix for iOS (mobile menu open) */
body.menu-open {
  overflow: hidden;
  /* iOS fix: prevent rubber-band scroll behind overlay */
  position: fixed;
  width: 100%;
}

/* Article table: horizontal scroll on mobile (prevent layout break) */
.article-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 8px;
}
.article-table-wrap .article-table { margin: 0; }

/* Segmented on 360px — already handled by 640px rule */

/* Hero actions: always column on mobile to prevent overflow */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* CTA buttons: prevent overflow at 360px */
@media (max-width: 400px) {
  .cta-actions .btn { min-width: 0; width: 100%; max-width: 320px; }
}

/* Footer: horizontal padding respects safe areas */
@media (max-width: 640px) {
  footer {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-legal-links {
    justify-content: center;
  }
}

/* Fix: hero-stats crowding on 360px — override to single column */
@media (max-width: 360px) {
  .hero-stats { grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
  .stat-num { font-size: 1.25rem; }
  .stat-label { font-size: 0.6rem; letter-spacing: 0.04em; }
}

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

/* Fix: calculator result values don't overflow on small screens */
@media (max-width: 400px) {
  .result-value { font-size: 1.375rem; }
  .calculator-header h3 { font-size: 1.25rem; }
}

/* Fix: payment badges wrap nicely */
.payment-badges { gap: 0.5rem; }
@media (max-width: 480px) {
  .payment-badge { font-size: 0.75rem; padding: 0.4rem 0.75rem; }
}

/* Fix: section-desc max-width on mobile */
@media (max-width: 640px) {
  .section-desc { max-width: 100%; font-size: 1rem; }
}

/* Fix: form inputs — prevent iOS zoom (must be ≥16px) */
.form-control { font-size: max(1rem, 16px); }

/* Fix: EV features grid on mobile */
@media (max-width: 560px) {
  .ev-features-grid { gap: 1.25rem; }
}

/* Fix: page-hero-split right column hidden on mobile is correct,
   but make sure left column text doesn't overflow */
@media (max-width: 640px) {
  .page-hero { padding-left: 0; padding-right: 0; }
  /* Tighter clamp for long blog article titles */
  .page-hero .section-title { font-size: clamp(1.375rem, 5.5vw, 2rem); hyphens: auto; -webkit-hyphens: auto; }
}

/* Fix: prevent text overflow on very small screens */
@media (max-width: 360px) {
  .section-title { font-size: 1.625rem; letter-spacing: -0.02em; }
  .hero-title { font-size: 2.25rem; }
  .result-value { font-size: 1.25rem; }
}

/* Segmented on mobile — handled in 640px block above */

/* Hero stats – always a row on mobile (condensed) */
@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(3,1fr);
    gap: 0.75rem;
    padding-top: 2rem;
  }
  .stat-num { font-size: 1.375rem; }
  .stat-label { font-size: 0.65rem; }
}
@media (max-width: 360px) {
  .hero-stats { grid-template-columns: 1fr; }
}

/* Loading spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--energy-green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Separator with text */
.separator {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.separator::before, .separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* Numbered list */
.numbered-list {
  list-style: none;
  counter-reset: item;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.numbered-list li {
  counter-increment: item;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--text-secondary);
}
.numbered-list li::before {
  content: counter(item, decimal-leading-zero);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--energy-green);
  min-width: 28px;
  line-height: 1.6;
}

/* Price tag */
.price-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--energy-green);
}
.price-tag .currency {
  font-size: 1.5rem;
  vertical-align: top;
  margin-top: 0.5rem;
  display: inline-block;
}
.price-tag .period {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Wave separator */
.wave-sep {
  height: 60px;
  background: none;
  overflow: hidden;
  line-height: 0;
}

/* ============================================
   HERO VISUAL: ENERGY NEXUS
   ============================================ */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hv-scene {
  position: relative;
  width: 460px;
  height: 520px;
  flex-shrink: 0;
}

/* Full-scene atmosphere + orbit SVG */
.hv-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hv-orbit-1 { animation: hvOrbit 10s linear infinite; }
.hv-orbit-2 { animation: hvOrbit 14s linear infinite reverse; }
.hv-orbit-3 { animation: hvOrbit 12s linear infinite 1.5s; }
@keyframes hvOrbit {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -400; }
}
.hv-conn { animation: hvConnPulse 2.8s ease-in-out infinite; }
@keyframes hvConnPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}
.hv-dataline-1 { animation: hvData 5s ease-in-out infinite 0s; }
.hv-dataline-2 { animation: hvData 5s ease-in-out infinite 1.7s; }
.hv-dataline-3 { animation: hvData 5s ease-in-out infinite 3.3s; }
@keyframes hvData {
  0%, 15%, 85%, 100% { opacity: 0; }
  40%, 60%            { opacity: 1; }
}

/* Central hub */
.hv-hub {
  position: absolute;
  left: 50%;
  top: 210px;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
}
.hv-hub-glow {
  position: absolute;
  inset: -70px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(0,255,136,0.22) 0%,
    rgba(0,194,255,0.14) 35%,
    transparent 70%
  );
  filter: blur(18px);
  animation: hvHubGlow 4s ease-in-out infinite;
}
@keyframes hvHubGlow {
  0%, 100% { opacity: 0.6;  transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.2); }
}

/* Gyroscope rings */
.hv-hub-gyro {
  position: absolute;
  inset: -18px;
  pointer-events: none;
}
.hv-hub-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.hv-hub-ring-1 {
  border: 1.5px solid rgba(0,255,136,0.6);
  animation: hvGyro1 8s linear infinite;
}
.hv-hub-ring-2 {
  border: 1.2px solid rgba(0,194,255,0.5);
  animation: hvGyro2 11s linear infinite;
}
@keyframes hvGyro1 {
  from { transform: perspective(400px) rotateX(72deg) rotateZ(0deg); }
  to   { transform: perspective(400px) rotateX(72deg) rotateZ(360deg); }
}
@keyframes hvGyro2 {
  from { transform: perspective(400px) rotateX(72deg) rotateZ(55deg); }
  to   { transform: perspective(400px) rotateX(72deg) rotateZ(415deg); }
}

/* Energy sphere */
.hv-hub-sphere {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%,
    #ffffff    0%,
    #a8ffda   18%,
    #00FF88   38%,
    #00c2ff   65%,
    rgba(0,30,80,0.5) 100%
  );
  box-shadow:
    0 0 22px rgba(0,255,136,0.95),
    0 0 45px rgba(0,255,136,0.65),
    0 0 80px rgba(0,194,255,0.45),
    0 0 130px rgba(0,255,136,0.22),
    inset 0 2px 8px rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: hvSphere 3.8s ease-in-out infinite;
}
.hv-hub-corona {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255,255,255,0.2) 25deg,
    transparent 55deg,
    transparent 180deg,
    rgba(255,255,255,0.14) 205deg,
    transparent 235deg,
    transparent 360deg
  );
  animation: hvCorona 4s linear infinite;
}
.hv-hub-label {
  position: relative;
  z-index: 2;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 0 10px rgba(255,255,255,0.7);
}
@keyframes hvSphere {
  0%, 100% { box-shadow: 0 0 22px rgba(0,255,136,0.95), 0 0 45px rgba(0,255,136,0.65), 0 0 80px rgba(0,194,255,0.45), 0 0 130px rgba(0,255,136,0.22), inset 0 2px 8px rgba(255,255,255,0.35); }
  50%       { box-shadow: 0 0 32px rgba(0,255,136,1), 0 0 65px rgba(0,255,136,0.85), 0 0 110px rgba(0,194,255,0.6), 0 0 180px rgba(0,255,136,0.3), inset 0 2px 8px rgba(255,255,255,0.45); }
}
@keyframes hvCorona {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Service node cards */
.hv-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  background: rgba(4, 12, 8, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid;
  border-radius: 14px;
}
.hv-node-solar {
  top: 28px; left: 8px;
  border-color: rgba(0,255,136,0.38);
  box-shadow: 0 0 24px rgba(0,255,136,0.07), 0 6px 24px rgba(0,0,0,0.45);
  animation: hvNodeFloat 5s ease-in-out 0s infinite;
}
.hv-node-ev {
  top: 18px; right: 8px;
  border-color: rgba(0,194,255,0.38);
  box-shadow: 0 0 24px rgba(0,194,255,0.07), 0 6px 24px rgba(0,0,0,0.45);
  animation: hvNodeFloat 5s ease-in-out 1.7s infinite;
}
.hv-node-bike {
  bottom: 38px; left: 50%;
  border-color: rgba(255,215,0,0.32);
  box-shadow: 0 0 24px rgba(255,215,0,0.05), 0 6px 24px rgba(0,0,0,0.45);
  animation: hvNodeFloatC 5s ease-in-out 3.2s infinite;
}
@keyframes hvNodeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes hvNodeFloatC {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}
.hv-node-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hv-node-solar .hv-node-icon { background: rgba(0,255,136,0.1); }
.hv-node-ev    .hv-node-icon { background: rgba(0,194,255,0.1); }
.hv-node-bike  .hv-node-icon { background: rgba(255,215,0,0.1); }
.hv-node-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.hv-node-stat {
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
}
.hv-stat-green { color: var(--energy-green); }
.hv-stat-blue  { color: var(--tech-blue); }
.hv-stat-gold  { color: var(--premium-gold); }

/* Energy particles */
.hv-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hv-p {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  opacity: 0;
  animation-delay: var(--delay, 0s);
  animation-iteration-count: infinite;
  animation-timing-function: ease-in;
}
.hv-p-solar {
  left: 83px; top: 62px;
  background: var(--energy-green);
  box-shadow: 0 0 6px rgba(0,255,136,0.9), 0 0 12px rgba(0,255,136,0.5);
  animation-name: hvPartSolar;
  animation-duration: 2.2s;
}
.hv-p-ev {
  left: 377px; top: 52px;
  background: var(--tech-blue);
  box-shadow: 0 0 6px rgba(0,194,255,0.9), 0 0 12px rgba(0,194,255,0.5);
  animation-name: hvPartEv;
  animation-duration: 2.4s;
}
.hv-p-bike {
  left: 230px; top: 450px;
  background: var(--premium-gold);
  box-shadow: 0 0 6px rgba(255,215,0,0.9), 0 0 12px rgba(255,215,0,0.5);
  animation-name: hvPartBike;
  animation-duration: 2.6s;
}
@keyframes hvPartSolar {
  0%   { opacity: 0;   transform: translate(0, 0)          scale(1); }
  12%  { opacity: 1; }
  88%  { opacity: 0.7; }
  100% { opacity: 0;   transform: translate(147px, 148px)  scale(0.15); }
}
@keyframes hvPartEv {
  0%   { opacity: 0;   transform: translate(0, 0)          scale(1); }
  12%  { opacity: 1; }
  88%  { opacity: 0.7; }
  100% { opacity: 0;   transform: translate(-147px, 158px) scale(0.15); }
}
@keyframes hvPartBike {
  0%   { opacity: 0;   transform: translate(0, 0)          scale(1); }
  12%  { opacity: 1; }
  88%  { opacity: 0.7; }
  100% { opacity: 0;   transform: translate(0, -240px)     scale(0.15); }
}

/* Top status bar */
.hv-statusbar {
  position: absolute;
  top: 110px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.85rem;
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.22);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--energy-green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: hvNodeFloat 6s ease-in-out 1s infinite;
}
.hv-statusbar-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--energy-green);
  animation: dotPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* Bottom badge */
.hv-badge {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.38rem 0.9rem;
  background: rgba(4,12,8,0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  animation: hvNodeFloatC 6s ease-in-out 2.5s infinite;
}

/* Responsive — scale visual to fit all screen sizes */
@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual  {
    display: flex;
    justify-content: center;
    width: 100%;
    /* Prevent 460px scene from causing horizontal scroll */
    overflow: hidden;
    max-width: 100%;
    contain: layout;
  }
  .hv-scene     { transform: scale(0.78); transform-origin: top center; margin-bottom: -114px; }
}
@media (max-width: 640px) {
  .hv-scene { transform: scale(0.64); margin-bottom: -187px; }
}
@media (max-width: 480px) {
  .hv-scene { transform: scale(0.56); margin-bottom: -228px; }
}
@media (max-width: 390px) {
  /* iPhone Pro / standard: 390px logical width */
  .hv-scene { transform: scale(0.50); margin-bottom: -260px; }
}
@media (max-width: 360px) {
  .hv-scene { transform: scale(0.46); margin-bottom: -280px; }
}
.wave-sep svg { width: 100%; height: 100%; }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
body { cursor: none; }
a, button, [role="button"], input, select, textarea, label { cursor: none; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--energy-green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 0 8px var(--energy-green);
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(0,255,136,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
              height 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.3s ease,
              opacity 0.3s ease;
}

/* Hover states */
body.cursor-hover .cursor-dot {
  width: 6px; height: 6px;
  opacity: 0.4;
}
body.cursor-hover .cursor-ring {
  width: 52px; height: 52px;
  border-color: rgba(0,255,136,0.9);
  border-width: 1.5px;
  box-shadow: 0 0 20px rgba(0,255,136,0.2);
}

/* Click state */
body.cursor-click .cursor-dot {
  width: 12px; height: 12px;
  background: var(--energy-green);
  box-shadow: 0 0 16px var(--energy-green);
}
body.cursor-click .cursor-ring {
  width: 28px; height: 28px;
  border-color: var(--energy-green);
}

/* Hide on mobile/touch — restore native cursors */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  body, a, button, [role="button"], input, select, textarea, label, .card, .segmented-btn, summary { cursor: auto; }
}

/* ============================================
   HOME FAQ ACCORDION (SEO/GEO)
   Uses <details> native element.
   Namespaced as .accordion-* to avoid conflict
   with .faq-item/.faq-q used in blog articles.
   ============================================ */
.accordion-item {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  transition: border-color 0.25s;
}
.accordion-item[open] {
  border-color: rgba(0,255,136,0.3);
}
.accordion-question {
  list-style: none;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-primary);
  transition: color 0.2s;
  /* Minimum touch target */
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.accordion-question::-webkit-details-marker { display: none; }
.accordion-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--energy-green);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.accordion-item[open] .accordion-question::after {
  transform: rotate(45deg);
}
.accordion-question:hover { color: var(--energy-green); }
.accordion-answer {
  padding: 1rem 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
  border-top: 1px solid var(--border-subtle);
}
.accordion-answer p { margin: 0; }
.accordion-answer a { color: var(--energy-green); text-decoration: none; }
.accordion-answer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .accordion-question { font-size: 0.9375rem; padding: 1rem 1.25rem; }
  .accordion-answer { padding: 0.875rem 1.25rem 1rem; font-size: 0.875rem; }
}


/* ============================================
   CALCULATOR — COMPREHENSIVE MOBILE POLISH
   ============================================ */

/* Calculator: tighter padding on very small screens */
@media (max-width: 380px) {
  .calculator-body { padding: 1rem; }
  .calculator-header { padding: 1rem; }
  .calculator-footer { padding: 0.875rem 1rem; }
  .calculator-header h3 { font-size: 1.125rem; }
}

/* Method segmented: 3 buttons cramped on small tablets (641–768px).
   Reduce font/padding so text doesn't need to wrap aggressively. */
@media (max-width: 768px) and (min-width: 641px) {
  .segmented .segmented-btn { font-size: 0.75rem; padding: 0.5rem 0.375rem; }
}

/* Savings chart: allow horizontal scroll on very narrow screens */
@media (max-width: 480px) {
  #savingsChart { padding: 1rem; }
  #savingsChart > div:first-child > div { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* offgrid badge: allow text to wrap on ≤380px */
.offgrid-badge { flex-wrap: wrap; }
@media (max-width: 380px) {
  .offgrid-badge { font-size: 0.875rem; gap: 0.5rem; }
}

/* Calculator CTA buttons: always stack and fill on mobile */
@media (max-width: 640px) {
  .calc-cta-group .btn { width: 100%; justify-content: center; }
}

/* ============================================
   BLOG ARTICLE PAGES — MOBILE POLISH
   ============================================ */

/* Hide sidebar on mobile — article gets full width, sidebar was below article anyway */
@media (max-width: 768px) {
  .article-sidebar { display: none; }
  .article-layout { gap: 0; }
}

/* Article body: tighter typography on small screens */
@media (max-width: 640px) {
  .article-body { font-size: 0.9375rem; line-height: 1.75; }
  .article-body h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
    padding-top: 0.75rem;
  }
  .article-body h3 { font-size: 1.0625rem; margin: 1.5rem 0 0.5rem; }
  .article-body ul, .article-body ol { margin-left: 1rem; }
  .article-callout { padding: 1rem; font-size: 0.875rem; }
}

/* Article table cells: smaller text + less padding on mobile */
@media (max-width: 640px) {
  .article-table { font-size: 0.8rem; }
  .article-table th { padding: 0.625rem 0.75rem; font-size: 0.75rem; }
  .article-table td { padding: 0.5rem 0.75rem; }
}

/* Article author bar: stack vertically on very small screens */
@media (max-width: 420px) {
  .article-author { flex-direction: column; text-align: center; gap: 0.625rem; }
}

/* Article related cards: full width on small screens */
@media (max-width: 480px) {
  .article-related-grid { grid-template-columns: 1fr; }
}
