/* =================================================================
   ENERCOM — Living Solar Grid
   Design tokens + global styles
   ================================================================= */

:root {
  /* Base palette */
  --bg:            #0a0a0f;
  --bg-2:          #0d0d14;
  --bg-3:          #111119;
  --surface:       rgba(255, 255, 255, 0.025);
  --surface-line:  rgba(255, 255, 255, 0.08);

  /* Accents */
  --amber:         #00E87A;
  --amber-bright:  #5cffb0;
  --amber-deep:    #00a857;
  --blue:          #00D4FF;
  --blue-deep:     #0a6f8a;

  /* Solar cell */
  --cell-dark:     #0a1424;
  --cell-mid:      #112138;
  --cell-line:     rgba(170, 190, 220, 0.18);

  /* Text */
  --ink:           #f4f2ee;
  --ink-soft:      #b9b7b1;
  --ink-mute:      #6f6e6a;

  /* Type */
  --display: "Manrope", system-ui, sans-serif;
  --mono:    "Manrope", system-ui, sans-serif;
  --ui:      "Manrope", system-ui, sans-serif;

  /* Rhythm */
  --maxw: 1320px;
  --pad: clamp(22px, 5vw, 80px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Film-grain noise overlay across whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--amber); color: #0a0a0f; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  width: 100%;
}

/* ---------- Shared type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--amber);
  display: inline-block;
}

.display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 19px 34px;
  border: none;
  cursor: pointer;
  position: relative;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn--amber {
  background: var(--amber);
  color: #0a0a0f;
  box-shadow: 0 0 0 rgba(245, 166, 35, 0);
}
.btn--amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -12px rgba(245, 166, 35, 0.55);
}
.btn--amber .arrow { transition: transform 0.4s var(--ease); }
.btn--amber:hover .arrow { transform: translateX(6px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--surface-line);
  padding: 18px 30px;
}
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Reveal animation primitive ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =================================================================
   NAV
   ================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--surface-line);
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ui);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 26px; height: 26px;
  position: relative;
  display: grid;
  place-items: center;
}
.brand .mark svg { width: 100%; height: 100%; }
.brand b { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a { color: var(--ink-soft); transition: color 0.3s; position: relative; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--amber); transition: width 0.35s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { font-family: var(--ui); }
.nav-burger { display: none; }

@media (max-width: 880px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  padding: 120px var(--pad) 60px;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* radial glow behind everything */
.hero::before {
  content: "";
  position: absolute;
  top: 40%; right: 8%;
  width: 65vw; height: 65vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(0,232,122,0.16) 0%, rgba(0,232,122,0.04) 35%, transparent 65%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.hero-copy { position: relative; z-index: 3; max-width: 600px; }

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(50px, 7.2vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin: 26px 0 0;
}
.hero h1 .ital { font-style: italic; color: var(--amber); }

/* clip reveal for headline lines */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.line-mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease);
}
.loaded .line-mask > span { transform: translateY(0); }
.loaded .line-mask:nth-child(2) > span { transition-delay: 0.12s; }
.loaded .line-mask:nth-child(3) > span { transition-delay: 0.24s; }

.hero-sub {
  font-family: var(--ui);
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-soft);
  max-width: 440px;
  margin: 30px 0 40px;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease) 0.55s, transform 1s var(--ease) 0.55s;
}
.loaded .hero-sub { opacity: 1; transform: none; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease) 0.7s, transform 1s var(--ease) 0.7s;
}
.loaded .hero-actions { opacity: 1; transform: none; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.hero-meta b { color: var(--ink); font-weight: 400; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(0,212,255,0.6);
  animation: dotpulse 2.4s infinite;
}
@keyframes dotpulse {
  0% { box-shadow: 0 0 0 0 rgba(0,212,255,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(0,212,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); }
}

/* ---- Solar grid stage ---- */
.hero-stage {
  position: relative;
  z-index: 2;
  perspective: 1400px;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 520px;
}
.grid-frame {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.solar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 10px;
  width: clamp(300px, 38vw, 480px);
  aspect-ratio: 4 / 5.4;
  transform-style: preserve-3d;
}

.cell {
  position: relative;
  border-radius: 2px;
  background:
    linear-gradient(135deg, var(--cell-mid) 0%, var(--cell-dark) 55%, #060d18 100%);
  box-shadow: inset 0 0 0 1px rgba(150,175,210,0.10);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: box-shadow 0.5s var(--ease);
  will-change: transform;
}
/* busbar grid lines (monocrystalline texture) */
.cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 24%, var(--cell-line) 24% calc(24% + 1px), transparent calc(24% + 1px) 48%),
    repeating-linear-gradient(90deg, transparent 0 47%, var(--cell-line) 47% calc(47% + 1px), transparent calc(47% + 1px) 94%);
  opacity: 0.7;
}
/* cut corners of monocrystalline cells */
.cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 30% 20%, rgba(120,170,255,0.12), transparent 50%);
}
/* iridescent + amber glow when lit (controlled by JS via --lit) */
.cell .glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 80% at 50% 40%, rgba(0,232,122,0.85), rgba(0,232,122,0.15) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  mix-blend-mode: screen;
  pointer-events: none;
}
.cell .sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(0,212,255,0.10) 48%, rgba(170,210,255,0.18) 52%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  mix-blend-mode: screen;
}

/* corner brackets around grid */
.grid-frame .bracket {
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid rgba(0,232,122,0.5);
  pointer-events: none;
}
.bracket.tl { top: -16px; left: -16px; border-right: 0; border-bottom: 0; }
.bracket.tr { top: -16px; right: -16px; border-left: 0; border-bottom: 0; }
.bracket.bl { bottom: -16px; left: -16px; border-right: 0; border-top: 0; }
.bracket.br { bottom: -16px; right: -16px; border-left: 0; border-top: 0; }

.grid-readout {
  position: absolute;
  bottom: -44px; left: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  text-transform: uppercase;
  display: flex;
  gap: 18px;
}
.grid-readout b { color: var(--amber); font-weight: 400; }

/* floating particles canvas */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 4;
}
.scroll-hint .bar {
  width: 1px; height: 40px;
  background: linear-gradient(var(--amber), transparent);
  animation: scrolldrop 2s infinite;
  transform-origin: top;
}
@keyframes scrolldrop {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(40px); opacity: 0; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; min-height: auto; }
  .hero-stage { min-height: 440px; margin-top: 20px; order: 2; }
  .solar-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); aspect-ratio: 2/3; width: clamp(260px, 70vw, 340px); }
  .scroll-hint { display: none; }
}

/* =================================================================
   STATS BAR
   ================================================================= */
.stats {
  position: relative;
  border-top: 1px solid var(--surface-line);
  border-bottom: 1px solid var(--surface-line);
  background: var(--bg-2);
}
.stats-line {
  position: absolute;
  top: 50%; left: 0;
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,232,122,0.35), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}
.stat {
  padding: 62px 40px;
  text-align: center;
  position: relative;
  cursor: default;
  transition: background 0.5s var(--ease);
}
.stat:not(:last-child) { border-right: 1px solid var(--surface-line); }
.stat:hover { background: rgba(0,232,122,0.04); }
.stat:hover .stat-num { color: var(--amber); }
.stat-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(46px, 5.5vw, 78px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transition: color 0.5s var(--ease);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.stat-num .unit { font-size: 0.4em; color: var(--amber); font-family: var(--mono); font-weight: 400; }
.stat-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 16px;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--surface-line); }
  .stat { padding: 40px 20px; }
}

/* =================================================================
   SECTION SHELL
   ================================================================= */
.section { position: relative; padding: clamp(90px, 12vh, 150px) 0; }
.section-head { max-width: 720px; margin-bottom: 70px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-top: 22px;
  padding-bottom: 0.08em;
}
.section-head h2 .ital { font-style: italic; color: var(--amber); }
.section-head p {
  font-size: 17px; color: var(--ink-soft); margin-top: 32px; max-width: 540px; line-height: 1.7;
}

/* =================================================================
   WHY ENERCOM — staggered glass cards
   ================================================================= */
.why { background: var(--bg); position: relative; overflow: hidden; }
.why::before {
  content: "";
  position: absolute;
  left: -10%; top: 20%;
  width: 50vw; height: 50vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(0,212,255,0.07), transparent 60%);
  pointer-events: none;
}
/* ---- ONE solar panel, divided into benefit cells ---- */
.solar-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;                       /* silver busbars between divisions */
  background: #2a3a4a;            /* gridline colour shows through gaps */
  border: 2px solid #1e3448;
  box-shadow: inset 0 0 0 5px #0a1520, 0 32px 80px -34px rgba(0,0,0,0.9);
  overflow: hidden;
}

/* roaming amber spotlight — the whole panel reacts to the cursor */
.board-spot {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,232,122,0.16), transparent 62%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  z-index: 5;
  mix-blend-mode: screen;
}
.solar-board:hover .board-spot { opacity: 1; }

.board-cell {
  position: relative;
  padding: 48px 44px 50px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: linear-gradient(135deg, #0d1824 0%, #0f2535 100%);
  transition: background 0.5s var(--ease);
  overflow: hidden;
}
/* fine monocrystalline busbar texture inside each division */
.board-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 32%, rgba(170,190,220,0.055) 32% calc(32% + 1px), transparent calc(32% + 1px) 64%),
    repeating-linear-gradient(90deg, transparent 0 48%, rgba(170,190,220,0.055) 48% calc(48% + 1px), transparent calc(48% + 1px) 96%);
  pointer-events: none;
}
/* iridescent sheen */
.board-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 130% at 24% 16%, rgba(120,170,255,0.08), transparent 55%);
  pointer-events: none;
}
.board-cell:hover {
  background: linear-gradient(135deg, #0c2a1c 0%, #0f3d28 100%);
}

.board-cell .bicon {
  position: relative;
  z-index: 2;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: rgba(8,18,28,0.8);
  border: 1px solid #2a3a4a;
  color: var(--ink-soft);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.board-cell .bicon svg { width: 30px; height: 30px; }
.board-cell:hover .bicon {
  color: var(--amber);
  border-color: rgba(0,232,122,0.7);
  background: rgba(0,232,122,0.10);
  box-shadow: 0 0 28px rgba(0,232,122,0.45), inset 0 0 14px rgba(0,232,122,0.22);
}

.board-text { position: relative; z-index: 2; }
.board-text .bnum {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 14px;
}
.board-text h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.board-text p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

@media (max-width: 760px) {
  .solar-board { grid-template-columns: 1fr; }
  .board-cell { min-height: 0; padding: 38px 30px 40px; }
}

/* =================================================================
   HOW IT WORKS
   ================================================================= */
.how { background: var(--bg-2); border-top: 1px solid var(--surface-line); }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 30px;
}
.steps-track {
  position: absolute;
  top: 33px; left: 0; right: 0;
  height: 1px;
  background: var(--surface-line);
}
.steps-track .fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
  box-shadow: 0 0 14px rgba(0,232,122,0.6);
  transition: width 1.4s var(--ease);
}
.step { position: relative; }
.step .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--ink-mute);
  position: relative;
  margin: 27px 0 0 0;
  z-index: 2;
  transition: all 0.5s var(--ease);
}
.step.active .dot {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(0,232,122,0.15), 0 0 18px rgba(0,232,122,0.7);
}
.step .snum {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 18px;
  display: block;
}
.step .sicon {
  width: 48px; height: 48px;
  color: var(--ink-soft);
  margin: 26px 0 22px;
  transition: color 0.5s;
}
.step.active .sicon { color: var(--amber); }
.step h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 12px;
}
.step p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .steps-track { display: none; }
  .step .dot { display: none; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

/* =================================================================
   TESTIMONIALS
   ================================================================= */
.testi { background: var(--bg); position: relative; }
.pullquote {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 1000px;
  margin: 30px 0 0;
}
.pullquote .q { color: var(--amber); font-style: italic; }
.pullquote em { color: var(--amber); font-style: italic; }
.testi-attr {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.testi-attr .av {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-deep), var(--cell-dark));
  border: 1px solid var(--surface-line);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; color: var(--ink);
}
.testi-attr b { color: var(--ink); font-weight: 700; }

.testi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
  border-top: 1px solid var(--surface-line);
  padding-top: 56px;
}
.tcard {
  padding: 30px 28px;
  border: 1px solid var(--surface-line);
  background: var(--surface);
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.tcard:hover { border-color: rgba(0,232,122,0.35); transform: translateY(-4px); }
.stars { display: flex; gap: 3px; color: var(--amber); margin-bottom: 18px; }
.stars svg { width: 16px; height: 16px; }
.tcard p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 22px; }
.tcard .who { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: var(--ink-mute); }
.tcard .who b { color: var(--ink); font-weight: 400; display: block; margin-bottom: 3px; }
@media (max-width: 820px) {
  .testi-row { grid-template-columns: 1fr; }
}

/* =================================================================
   CALCULATOR
   ================================================================= */
.calc { background: var(--bg-2); border-top: 1px solid var(--surface-line); }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.calc-panel {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  padding: 48px 46px;
  backdrop-filter: blur(14px);
}
.calc-panel label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 26px;
}
.bill-display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 36px;
}
.bill-display .cur { font-size: 0.45em; color: var(--amber); font-family: var(--mono); font-weight: 400; vertical-align: super; }
.bill-display .per { font-size: 0.22em; color: var(--ink-mute); font-family: var(--mono); font-weight: 400; letter-spacing: 0.1em; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  height: 3px;
  background: var(--surface-line);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px;
  background: var(--amber);
  border: 3px solid var(--bg-2);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--amber), 0 0 20px rgba(0,232,122,0.7);
  transition: transform 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; background: var(--amber);
  border: 3px solid var(--bg-2); border-radius: 50%;
  box-shadow: 0 0 0 1px var(--amber), 0 0 20px rgba(0,232,122,0.7);
}
.range-scale {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  margin-top: 14px; letter-spacing: 0.05em;
}

.calc-out {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.out-block {
  border-left: 1px solid var(--surface-line);
  padding-left: 28px;
}
.out-block .ol {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px;
}
.out-block .ov {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 4.2vw, 52px); line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.out-block .ov .cur { font-size: 0.4em; color: var(--amber); font-family: var(--mono); font-weight: 400; vertical-align: super; }
.out-block.savings .ov { color: var(--amber); }
.out-block .osub { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); margin-top: 8px; }

/* the filling solar panel viz */
.fill-panel {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.fill-cells {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  flex: 1;
}
.fill-cells .fc {
  aspect-ratio: 1;
  background: var(--cell-dark);
  box-shadow: inset 0 0 0 1px rgba(150,175,210,0.12);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.fill-cells .fc.on {
  background: var(--amber);
  box-shadow: inset 0 0 0 1px var(--amber-bright), 0 0 10px rgba(0,232,122,0.5);
}
.fill-pct {
  font-family: var(--mono); font-size: 13px; color: var(--amber); letter-spacing: 0.05em;
  min-width: 44px; text-align: right;
}
@media (max-width: 880px) {
  .calc-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  position: relative;
  background: var(--bg);
  padding-top: 90px;
}
.footer-line {
  position: absolute;
  top: 0; left: 0;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--amber), var(--blue), transparent);
  background-size: 200% 100%;
  animation: lineflow 6s linear infinite;
}
@keyframes lineflow { to { background-position: 200% 0; } }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 70px;
}
.footer-brand .display {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  margin: 24px 0 0;
}
.footer-brand .display .ital { font-style: italic; color: var(--amber); }
.footer-brand p { color: var(--ink-soft); margin-top: 24px; max-width: 360px; line-height: 1.6; }
.fcol h4 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 22px;
}
.fcol a, .fcol span {
  display: block; color: var(--ink-soft); font-size: 15px;
  margin-bottom: 14px; transition: color 0.3s; cursor: pointer;
}
.fcol a:hover { color: var(--amber); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 30px 0 40px;
  border-top: 1px solid var(--surface-line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.footer-bottom .socials { display: flex; gap: 24px; }
.footer-bottom .socials a:hover { color: var(--amber); }
@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* =================================================================
   FLOATING WHATSAPP BUTTON
   ================================================================= */
.wa-fab {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 60px;
  padding: 0;
  width: 60px;
  border-radius: 999px;
  background: var(--amber);
  color: #0a0a0f;
  box-shadow: 0 14px 38px -10px rgba(0,232,122,0.65), 0 6px 18px rgba(0,0,0,0.4);
  overflow: hidden;
  transition: width 0.45s var(--ease), box-shadow 0.4s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.wa-fab svg {
  width: 32px; height: 32px;
  flex: 0 0 60px;
  padding: 14px;
  box-sizing: border-box;
}
.wa-fab-label {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding-right: 22px;
  opacity: 0;
  transition: opacity 0.3s var(--ease) 0.05s;
}
.wa-fab:hover {
  width: 246px;
  transform: translateY(-2px);
  box-shadow: 0 20px 48px -10px rgba(0,232,122,0.75), 0 8px 22px rgba(0,0,0,0.45);
}
.wa-fab:hover .wa-fab-label { opacity: 1; }
/* gentle attention pulse */
.wa-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(0,232,122,0.55);
  animation: wapulse 2.6s infinite;
  pointer-events: none;
}
@keyframes wapulse {
  0% { box-shadow: 0 0 0 0 rgba(0,232,122,0.5); }
  70% { box-shadow: 0 0 0 16px rgba(0,232,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,232,122,0); }
}
@media (max-width: 600px) {
  .wa-fab, .wa-fab:hover { width: 56px; height: 56px; }
  .wa-fab svg { flex-basis: 56px; }
  .wa-fab:hover { width: 56px; }
  .wa-fab-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab::after { animation: none; }
}
