:root {
  --bg-dark: #070b12;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(26, 38, 64, 0.85);
  --bg-card-solid: #0d1527;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.35);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --cyan-primary: #00f0ff;
  --cyan-deep: #0284c7;
  --amber-solar: #f59e0b;
  --emerald-green: #10b981;
  --victron-blue: #2563eb;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Glassmorphism helpers */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.glow-cyan {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.18);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 18, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.site-header .container {
  max-width: 1440px;
  padding: 0 28px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-logo img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
}

.brand-logo .brand-highlight {
  color: var(--cyan-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-links li {
  display: inline-flex;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  white-space: nowrap;
  padding: 6px 4px;
  letter-spacing: 0.1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-actions .btn {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-full);
  padding: 3px 6px;
  gap: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.lang-icon {
  font-size: 0.95rem;
  margin: 0 3px;
  opacity: 0.9;
  user-select: none;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.12);
}

.lang-btn.active {
  background: var(--cyan-primary);
  color: #050b14;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  color: #050b14;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-solar {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050b14;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.btn-solar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.75rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan-primary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-title span.gradient-text {
  background: linear-gradient(135deg, #00f0ff 20%, #38bdf8 60%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
}

.stat-item .stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--cyan-primary);
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-media {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 240, 255, 0.2);
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-wrap:hover img {
  transform: scale(1.02);
}

.hero-floating-pill {
  position: absolute;
  bottom: -16px;
  left: 24px;
  background: rgba(13, 21, 39, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--emerald-green);
  box-shadow: 0 0 10px var(--emerald-green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Product Pillars Grid */
.section {
  padding: 90px 0;
}

.section-darker {
  background: #05080e;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

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

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

.shade-item {
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: var(--transition-smooth);
}

.shade-item.bad {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.shade-item.good {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.08);
}

.pillar-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(0, 240, 255, 0.12);
}

.pillar-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.pillar-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pillar-card:hover .pillar-card-img img {
  transform: scale(1.06);
}

.pillar-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 11, 18, 0.85);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
}

.pillar-badge.cyan { color: var(--cyan-primary); border-color: rgba(0, 240, 255, 0.4); }
.pillar-badge.amber { color: var(--amber-solar); border-color: rgba(245, 158, 11, 0.4); }
.pillar-badge.emerald { color: var(--emerald-green); border-color: rgba(16, 185, 129, 0.4); }

.pillar-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pillar-body h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.pillar-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.pillar-features {
  list-style: none;
  margin-bottom: 24px;
}

.pillar-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.pillar-features li span.icon {
  color: var(--cyan-primary);
}

/* Feature Spotlight Sections */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.spotlight:last-child {
  margin-bottom: 0;
}

.spotlight.reverse {
  direction: rtl;
}

.spotlight.reverse > * {
  direction: ltr;
}

.spotlight-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.spotlight-media img {
  width: 100%;
  height: auto;
  display: block;
}

.spotlight-content h3 {
  font-size: 2.1rem;
  margin-bottom: 18px;
}

.spotlight-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

/* Interactive Calculator */
.calc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
}

.calc-control {
  margin-bottom: 24px;
}

.calc-label-wrap {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.calc-val-display {
  color: var(--cyan-primary);
  font-weight: 700;
}

.calc-slider {
  width: 100%;
  accent-color: var(--cyan-primary);
  cursor: pointer;
  height: 6px;
  border-radius: 3px;
  background: #1e293b;
}

.calc-results-card {
  background: #0b1120;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.result-item {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.result-item .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-item .value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.result-item .value.cyan {
  color: var(--cyan-primary);
}

.result-item .value.emerald {
  color: var(--emerald-green);
}

/* Calculator Comparison Styles */
.calc-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

/* Contact Section & Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info-card {
  padding: 42px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(165deg, rgba(16, 26, 48, 0.85) 0%, rgba(8, 14, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.65), 0 0 35px -10px rgba(0, 240, 255, 0.08);
}

.contact-direct-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
}

.contact-direct-item:hover {
  background: rgba(0, 240, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.18);
  transform: translateX(4px);
}

.contact-direct-item .icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(2, 132, 199, 0.25) 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.15);
}

/* Contact Form Panel & Modern Inputs */
.contact-form-panel,
.glass-panel:has(#energeek-contact-form) {
  padding: 42px 38px;
  background: linear-gradient(165deg, rgba(16, 26, 48, 0.9) 0%, rgba(7, 12, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 45px -10px rgba(0, 240, 255, 0.1);
  position: relative;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #cbd5e1;
  letter-spacing: 0.2px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(6, 11, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  color: #f8fafc;
  font-size: 0.96rem;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-control::placeholder {
  color: rgba(148, 163, 184, 0.45);
  font-size: 0.92rem;
}

.form-control:hover {
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(9, 16, 32, 0.85);
}

.form-control:focus {
  outline: none;
  background: rgba(11, 20, 40, 0.98);
  border-color: var(--cyan-primary);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 16px) center;
  background-size: 16px 16px;
  padding-right: 46px;
}

select.form-control option {
  background-color: #0b1325;
  color: #f8fafc;
  padding: 12px;
}

textarea.form-control {
  resize: vertical;
  min-height: 190px;
  line-height: 1.6;
  font-family: inherit;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Submit button & Trust indicators */
#energeek-contact-form button[type="submit"],
.form-submit-btn {
  width: 100%;
  padding: 16px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 11px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #00f0ff 0%, #00b4d8 50%, #0284c7 100%);
  color: #030813;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px -4px rgba(0, 240, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 6px;
}

#energeek-contact-form button[type="submit"]:hover,
.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -4px rgba(0, 240, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  filter: brightness(1.06);
}

#energeek-contact-form button[type="submit"].btn-solar {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
  color: #030813;
  box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

#energeek-contact-form button[type="submit"].btn-solar:hover {
  box-shadow: 0 12px 32px -4px rgba(245, 158, 11, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#energeek-contact-form button[type="submit"]:active,
.form-submit-btn:active {
  transform: translateY(0);
}

.form-trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.form-trust-badge span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.form-feedback {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 11px;
  font-size: 0.95rem;
  display: none;
  line-height: 1.5;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--emerald-green);
  color: #6ee7b7;
  box-shadow: 0 8px 25px -5px rgba(16, 185, 129, 0.25);
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid #ef4444;
  color: #fca5a5;
  box-shadow: 0 8px 25px -5px rgba(239, 68, 68, 0.25);
}

/* Footer */
footer.site-footer {
  background: #04070d;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
  color: var(--cyan-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Responsive adjustments */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    background: #090f1d;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 1.05rem;
    padding: 6px 0;
    width: 100%;
  }
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pillar-grid {
    grid-template-columns: 1fr;
  }
  .pillar-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .spotlight, .spotlight.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .calc-compare-grid {
    grid-template-columns: 1fr;
  }
  .pillar-grid-4 {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form-panel,
  .contact-info-card,
  .glass-panel:has(#energeek-contact-form) {
    padding: 30px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* -------------------------------------------------------------
   LIVE MARKET TELEMETRY & 2D DISPATCH POLICY HEATMAP
   ------------------------------------------------------------- */
.heatmap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  position: relative;
}

.heatmap-kpi-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

.heatmap-kpi-item {
  display: flex;
  flex-direction: column;
}

.heatmap-kpi-item .kpi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.heatmap-kpi-item .kpi-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.heatmap-kpi-item .kpi-val.highlight { color: #38bdf8; }
.heatmap-kpi-item .kpi-val.emerald { color: var(--emerald-green); }
.heatmap-kpi-item .kpi-val.amber { color: var(--amber-solar); }
.heatmap-kpi-item .kpi-val.cyan { color: var(--cyan-primary); }

.heatmap-kpi-badge {
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan-primary);
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Inspector Controls Grid */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  background: rgba(11, 17, 32, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
  width: 100%;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.control-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.slider-container input[type=range] {
  flex: 1;
  accent-color: var(--cyan-primary);
  cursor: pointer;
  min-width: 0;
  height: 6px;
  border-radius: 3px;
  background: #1e293b;
}

.slider-num {
  min-width: 44px;
  text-align: right;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--emerald-green);
}

.preset-btns {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
  width: 100%;
}

.preset-btn {
  flex: 1 1 auto;
  min-width: 42px;
  padding: 0.35rem 0.3rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  font-family: inherit;
}

.preset-btn:hover {
  color: var(--text-main);
  border-color: var(--cyan-primary);
}

.preset-btn.active {
  background: var(--cyan-deep);
  color: #fff;
  border-color: var(--cyan-primary);
}

.inst-select {
  background: #090f1d;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.inst-select:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.action-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.action-badge.a0 { background: rgba(100, 116, 139, 0.2); color: #cbd5e1; border: 1px solid #475569; }
.action-badge.a1 { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid #b45309; }
.action-badge.a2 { background: rgba(139, 92, 246, 0.2); color: #c084fc; border: 1px solid #7c3aed; }
.action-badge.a3 { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid #059669; }

.price-ribbon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-summary-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chart-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#canvas-epex, #canvas-heatmap, #canvas-heatmap-prices {
  cursor: crosshair;
  width: 100%;
  height: 100%;
  display: block;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

#chart-tooltip {
  position: fixed;
  display: none;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-main);
  pointer-events: none;
  z-index: 10000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}

.heatmap-footer-note {
  margin-top: 1.25rem;
  padding: 1rem;
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
  line-height: 1.6;
}

