:root {
  --font-body: 'Inter', -apple-system, 'Segoe UI', roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --ink: #0B0C0E;
  --ink-600: #4B5563;
  --line: #E8EAED;
  --tint: #F6F7F8;
  --char: #0E1116;
  --char-800: #151A21;
  --char-700: #1C232C;
  --lime: #5C9E31;
  --lime-600: #4C8828;
  --lime-400: #7CBF52;
  --sun: #E8910C;
  --hairline: rgba(255, 255, 255, 0.08);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); }

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--lime);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 0.5rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--lime-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(92, 158, 49, 0.25);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: var(--lime);
  background: #F2F8EC;
}

.btn-ghost-tech {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-ghost-tech:hover {
  border-color: var(--lime-400);
  color: #fff;
  background: rgba(124, 191, 82, 0.08);
}

/* ---------- Forms ---------- */
.form-input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(92, 158, 49, 0.12);
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.consent-row {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

/* ---------- Header / chrome ---------- */
.utility-bar {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line, #E8EAED);
  transition: box-shadow 0.25s;
}
.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(11, 12, 14, 0.06);
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--lime-400);
  flex-shrink: 0;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 1px solid var(--lime-400);
  animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.5); opacity: 0.9; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.nav-link { color: #4B5563; }
.nav-link:hover { color: #0B0C0E; }
.nav-link.active { color: var(--lime, #5C9E31); font-weight: 600; }

.header-phone { color: #0B0C0E; }
.header-phone:hover { color: var(--lime, #5C9E31); }
.mobile-nav .header-phone { border-color: #E8EAED; }

.menu-btn {
  border: 1px solid #E8EAED;
  color: #0B0C0E;
  background: #fff;
}
.menu-btn:hover { color: var(--lime, #5C9E31); border-color: #D1D5DB; }

.mobile-nav {
  background: #fff;
  border-top: 1px solid #E8EAED;
}
.mobile-nav .nav-link { color: #4B5563; }
.mobile-nav .nav-link:hover { color: #0B0C0E; background: #F6F7F8; }
.mobile-nav .nav-link.active { color: var(--lime, #5C9E31); background: #F2F8EC; }

/* ---------- Hero: Energy Grid Tech ---------- */
.hero-tech {
  position: relative;
  background: var(--char);
  overflow: hidden;
  color: #fff;
}
.hero-tech .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  filter: saturate(0.6);
}
.hero-tech-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(92, 158, 49, 0.10), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(14, 17, 22, 0.35), rgba(14, 17, 22, 0.85) 90%);
  background-size: 100% 100%, 56px 56px, 56px 56px, 100% 100%;
  pointer-events: none;
}
.hero-tech-inner {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  margin: 0 auto;
  padding: 5.5rem 1rem 4.5rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 640px) { .hero-tech-inner { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) {
  .hero-tech-inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    padding: 7rem 2rem 6rem;
  }
}

.hero-eyebrow {
  font-family: var(--font-display);
  color: var(--lime-400);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: #fff;
  margin-bottom: 1.4rem;
  max-width: 15em;
}
.hero-brand span { color: var(--lime-400); }

.hero-tagline {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Stat chips */
.hero-stat-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 34rem;
}
@media (min-width: 640px) { .hero-stat-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-chip {
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.stat-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--lime-400);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat-l {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

/* Energy flow diagram */
.hero-flow { position: relative; }
.energy-flow-svg { width: 100%; height: auto; display: block; }

.flow-path {
  stroke: var(--lime-400);
  stroke-width: 1.6;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 7 9;
  opacity: 0.75;
  animation: flowDash 1.6s linear infinite;
}
.flow-path-grid { stroke: var(--sun); opacity: 0.65; }
.flow-path-return {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-dasharray: 3 10;
  animation-duration: 3.2s;
  opacity: 0.5;
}
@keyframes flowDash {
  from { stroke-dashoffset: 32; }
  to { stroke-dashoffset: 0; }
}

.flow-dot { fill: var(--lime-400); filter: drop-shadow(0 0 5px rgba(124, 191, 82, 0.9)); }
.flow-dot.d4 { fill: var(--sun); filter: drop-shadow(0 0 5px rgba(232, 145, 12, 0.9)); }

.node-box {
  fill: var(--char-800);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
}
.node-ring { fill: rgba(232, 145, 12, 0.07); stroke: rgba(232, 145, 12, 0.55); stroke-width: 1.4; }
.node-core.sun-core {
  fill: var(--sun);
  animation: sunPulse 3s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes sunPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
.node-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: rgba(255, 255, 255, 0.55);
}
.node-label-grid { fill: var(--sun); }

/* ---------- Certification / trust row ---------- */
.cert-row {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 2.75rem 0;
}
.cert-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #9CA3AF;
  margin-bottom: 1.5rem;
}
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.7rem 1.1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cert-badge:hover {
  border-color: rgba(92, 158, 49, 0.45);
  box-shadow: 0 4px 14px rgba(11, 12, 14, 0.06);
}
.cert-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.cert-badge span {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-600);
}
.cert-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  background: #F2F8EC;
  border: 1px solid rgba(92, 158, 49, 0.4);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--lime);
}
.cert-mark svg { display: block; }

/* ---------- Savings calculator ---------- */
.savings-calc-section {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 6rem 0;
}
.savings-calc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 20px 50px rgba(11, 12, 14, 0.07);
  padding: 2rem;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) { .savings-calc { padding: 3rem; } }
@media (min-width: 1024px) { .savings-calc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

.calc-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.calc-notes li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: #9CA3AF;
}
.calc-notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--lime);
}

.savings-calc-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.calc-field { display: block; }
.calc-field > span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-600);
  margin-bottom: 0.45rem;
}
.calc-field output {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--lime-600);
  font-variant-numeric: tabular-nums;
}

/* Range slider */
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--lime) var(--fill, 50%), var(--line) var(--fill, 50%));
  outline: none;
  cursor: pointer;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: #fff;
  border: 3px solid var(--lime);
  box-shadow: 0 2px 8px rgba(11, 12, 14, 0.2);
  transition: transform 0.15s;
}
input[type='range']::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type='range']::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: #fff;
  border: 3px solid var(--lime);
  box-shadow: 0 2px 8px rgba(11, 12, 14, 0.2);
}
input[type='range']::-moz-range-track {
  height: 6px;
  border-radius: 9999px;
  background: var(--line);
}
input[type='range']::-moz-range-progress {
  height: 6px;
  border-radius: 9999px;
  background: var(--lime);
}

/* Dark result panel */
.calc-result {
  background: var(--char);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}
.calc-result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}
.calc-result-row strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.calc-result-row.calc-savings {
  border-top: 1px solid var(--hairline);
  padding-top: 0.9rem;
  margin-top: 0.2rem;
}
.calc-result-row.calc-savings strong {
  font-size: 2rem;
  color: var(--lime-400);
}
.calc-year {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}

/* ---------- Shared components ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-line {
  position: relative;
}
.step-line::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 2.5rem;
  bottom: -1rem;
  width: 1px;
  background: var(--line);
}

.faq-item button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.faq-item .faq-panel { display: none; }
.faq-item.open .faq-panel { display: block; }

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #F2F8EC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

/* Blog article typography */
.blog-content p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.8;
}
.blog-content h2 {
  color: var(--ink, #0B0C0E);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.875rem;
}
.blog-content h3 {
  color: var(--ink, #0B0C0E);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1.75rem 0 0.75rem;
}
.blog-content ul,
.blog-content ol {
  margin: 0 0 1.25rem 1.25rem;
  list-style: disc;
}
.blog-content ol { list-style: decimal; }
.blog-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.blog-content strong { color: var(--ink, #0B0C0E); }
.blog-content a { color: #5C9E31; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .flow-path,
  .node-core.sun-core,
  .pulse-dot::after { animation: none; }
  .flow-dot { display: none; }
}
