/* ==========================================================================
   Live Smart Electric & Solar — Direction C: "Grid Premium"
   Dark-first premium energy-tech design system.
   Brand: Electric Blue #2B6DA8 · Solar Orange #F79A1E
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('../assets/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../assets/plexmono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../assets/plexmono-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg-0: #05080f;
  --bg-1: #090e19;
  --bg-2: #0d1524;
  --bg-3: #111b2e;
  /* ink */
  --ink-0: #eef4fb;
  --ink-1: #bccadb;
  --ink-2: #93a6bb;
  /* brand */
  --blue: #2b6da8;          /* fills + graphics only, never small text on dark */
  --blue-bright: #74b3e8;   /* text-safe blue on dark */
  --blue-deep: #16385c;
  --orange: #f79a1e;
  --orange-soft: #ffb54d;
  --orange-ink: #180f02;    /* text on orange fills */
  /* lines + glow */
  --line: rgba(116, 179, 232, 0.16);
  --line-strong: rgba(116, 179, 232, 0.32);
  --glow-blue: rgba(43, 109, 168, 0.4);
  --glow-orange: rgba(247, 154, 30, 0.28);
  /* type */
  --font-sans: 'Archivo', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  /* rhythm */
  --space-section: clamp(4.5rem, 9vw, 8rem);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-bright); text-decoration: none; }
a:hover { color: var(--ink-0); }
h1, h2, h3, h4 {
  color: var(--ink-0);
  font-family: var(--font-sans);
  font-stretch: 112%;
  font-weight: 640;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.05rem); font-weight: 680; font-stretch: 116%; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
strong { color: var(--ink-0); font-weight: 620; }

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--orange-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.15rem, 4vw, 2.5rem); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--orange); color: var(--orange-ink);
  padding: 0.6rem 1.1rem; border-radius: 0 0 10px 0; font-weight: 620;
}
.skip-link:focus { left: 0; }

/* ---------- Mono microlabel (eyebrow) ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px; flex: none;
  background: linear-gradient(90deg, var(--orange), transparent);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: '';
  width: 26px; height: 1px; flex: none;
  background: linear-gradient(270deg, var(--orange), transparent);
}
.eyebrow.blue { color: var(--blue-bright); }
.eyebrow.blue::before { background: linear-gradient(90deg, var(--blue-bright), transparent); }
.eyebrow.blue::after { background: linear-gradient(270deg, var(--blue-bright), transparent); }

.lead { font-size: clamp(1.08rem, 1.7vw, 1.24rem); color: var(--ink-1); max-width: 62ch; }
.center-text { text-align: center; }
.center-text .lead { margin-inline: auto; }

/* ---------- Powerline divider ---------- */
.powerline {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
  overflow: visible;
  margin: 0;
  border: 0;
}
.powerline::after {
  content: '';
  position: absolute; top: -2px; left: 0;
  width: 68px; height: 5px; border-radius: 5px;
  background: linear-gradient(90deg, transparent, var(--orange));
  filter: drop-shadow(0 0 6px var(--glow-orange));
  animation: pulse-line 5.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  opacity: 0.9;
}
@keyframes pulse-line {
  0% { left: -8%; opacity: 0; }
  12% { opacity: 0.9; }
  88% { opacity: 0.9; }
  100% { left: 104%; opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.99rem; font-weight: 640; font-stretch: 106%;
  letter-spacing: 0.005em;
  padding: 0.88rem 1.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  text-align: center;
  max-width: 100%;
}
@media (min-width: 700px) {
  .btn { white-space: nowrap; }
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange-soft), var(--orange) 55%, #e58405);
  color: var(--orange-ink);
  box-shadow: 0 4px 22px -6px var(--glow-orange), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  color: var(--orange-ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 34px -8px rgba(247, 154, 30, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-secondary {
  background: rgba(43, 109, 168, 0.16);
  border-color: var(--line-strong);
  color: var(--ink-0);
}
.btn-secondary:hover {
  border-color: var(--blue-bright);
  background: rgba(43, 109, 168, 0.3);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -10px var(--glow-blue);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--blue-bright);
  padding-inline: 1rem;
}
.btn-ghost:hover { color: var(--ink-0); }
.btn-ghost .arrow { transition: transform 0.2s ease; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

.btn-lg { padding: 1.05rem 2rem; font-size: 1.06rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.cta-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 8, 15, 0.92);
}
.header-inner {
  display: flex; align-items: center; gap: 1.4rem;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 12px; }
.brand-plate {
  background: #f7fafd;
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 0 0 1px rgba(116, 179, 232, 0.22), 0 2px 14px -4px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.25s ease;
}
.brand:hover .brand-plate { box-shadow: 0 0 0 1px var(--blue-bright), 0 2px 18px -4px var(--glow-blue); }
.brand-plate img { height: 42px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--ink-1);
  font-size: 0.98rem;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.main-nav a:hover { color: var(--ink-0); background: rgba(116, 179, 232, 0.08); }
.main-nav a[aria-current='page'] { color: var(--orange); }
.header-cta { flex: none; }
.header-cta .btn { padding: 0.62rem 1.25rem; font-size: 0.93rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 46px; height: 42px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute; left: 50%;
  width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink-0);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle span::before { transform: translate(-50%, -7px); top: 0; }
.nav-toggle span::after { transform: translate(-50%, 5px); top: 0; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translate(-50%, -1px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: translate(-50%, -1px) rotate(-45deg); }

@media (max-width: 920px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #070b14;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    padding: 0.8rem 1.2rem 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav ul { flex-direction: column; gap: 0.15rem; }
  .main-nav a { display: block; padding: 0.85rem 0.6rem; font-size: 1.08rem; border-bottom: 1px solid rgba(116, 179, 232, 0.08); }
  .main-nav li:last-child a { border-bottom: 0; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .brand-plate img { height: 36px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4.2rem, 9vw, 7.5rem) 0 clamp(3.6rem, 7vw, 6rem);
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(43, 109, 168, 0.34), transparent 65%),
    radial-gradient(900px 480px at 95% 108%, rgba(247, 154, 30, 0.13), transparent 60%),
    var(--bg-0);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero-grid-bg svg { width: 100%; height: 100%; }
.hero-inner { position: relative; max-width: 880px; }
.hero h1 { margin-bottom: 0.5em; }
.hero .lead { margin-bottom: 2rem; }
.hero-cta-note {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

/* energy flow lines */
.flow path {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.flow .grid-path { stroke: rgba(116, 179, 232, 0.10); }
.flow .pulse-b {
  stroke: var(--blue-bright);
  stroke-dasharray: 10 380;
  animation: flow 7s linear infinite;
  filter: drop-shadow(0 0 4px var(--glow-blue));
}
.flow .pulse-o {
  stroke: var(--orange);
  stroke-dasharray: 7 420;
  animation: flow 9s linear infinite reverse;
  filter: drop-shadow(0 0 4px var(--glow-orange));
}
@keyframes flow { to { stroke-dashoffset: -390; } }

/* trust strip */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 14, 25, 0.6);
}
.trust-strip ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.4rem 2.6rem;
  list-style: none; margin: 0; padding: 1.05rem 0;
}
.trust-strip li {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
}
.trust-strip li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--orange);
  box-shadow: 0 0 8px var(--glow-orange);
}

/* ---------- Sections ---------- */
.section { padding: var(--space-section) 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
}
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
}
.card {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.55rem;
  transition: transform 0.22s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.8), 0 0 34px -14px var(--glow-blue);
}
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--ink-2); font-size: 0.99rem; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: 0.85rem;
  font-weight: 620; font-size: 0.95rem;
}
.card .card-link .arrow { transition: transform 0.2s ease; }
.card:hover .card-link .arrow { transform: translateX(4px); }

.card-index {
  font-family: var(--font-mono);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--blue-bright);
  display: block;
  margin-bottom: 0.9rem;
}
.card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(43, 109, 168, 0.18);
  border: 1px solid var(--line);
  margin-bottom: 1.05rem;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--blue-bright); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card-icon { background: rgba(43, 109, 168, 0.3); }
.card:hover .card-icon svg { stroke: var(--orange-soft); }

/* feature card (why live smart) */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--ink-1); }
.check-list li::before {
  content: '';
  flex: none;
  width: 20px; height: 20px; margin-top: 3px;
  border-radius: 6px;
  background: rgba(247, 154, 30, 0.14);
  border: 1px solid rgba(247, 154, 30, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' stroke='%23f79a1e' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Plan cards ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}
.plan-card {
  display: flex; flex-direction: column;
  position: relative;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.65rem 1.7rem;
  transition: transform 0.22s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.85), 0 0 40px -16px var(--glow-blue);
}
.plan-card.featured {
  border-color: rgba(247, 154, 30, 0.45);
  background:
    linear-gradient(170deg, rgba(247, 154, 30, 0.07), rgba(255, 255, 255, 0.012) 55%);
}
.plan-card.featured:hover { box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.85), 0 0 44px -14px var(--glow-orange); }
.plan-flag {
  position: absolute; top: -12px; left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--orange-soft), var(--orange));
  color: var(--orange-ink);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 4px 16px -4px var(--glow-orange);
}
.plan-name {
  font-size: 1.14rem;
  margin-bottom: 0.2em;
}
.plan-for { font-size: 0.92rem; color: var(--ink-2); min-height: 0; }
.plan-price {
  display: flex; align-items: baseline; gap: 0.4rem;
  margin: 1.05rem 0 0.4rem;
}
.plan-price .amount {
  font-size: 2.5rem;
  font-weight: 700; font-stretch: 112%;
  letter-spacing: -0.02em;
  color: var(--orange);
}
.plan-price .per { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); letter-spacing: 0.08em; }
.plan-save {
  font-family: var(--font-mono);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--blue-bright);
  margin-bottom: 0.4rem;
}
.plan-includes { list-style: none; margin: 1.1rem 0 1.4rem; padding: 1.1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.5rem; flex: 1; }
.plan-includes li {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.93rem;
  color: var(--ink-1);
}
.plan-includes li::before {
  content: '';
  position: absolute; left: 0; top: 0.42em;
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5l4.4 4.4L17 5.5' stroke='%2374b3e8' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.plan-card .btn { width: 100%; white-space: normal; margin-top: auto; }

/* 50% note */
.advantage-banner {
  border: 1px solid rgba(247, 154, 30, 0.4);
  background:
    radial-gradient(600px 200px at 8% 0%, rgba(247, 154, 30, 0.12), transparent 70%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.advantage-banner h3 { color: var(--orange-soft); font-size: 1.35rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.15rem; counter-reset: step; }
.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008));
  padding: 1.6rem 1.5rem;
}
.step-num {
  font-family: var(--font-mono);
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em;
  color: var(--orange);
  display: block; margin-bottom: 0.85rem;
}
.step h3 { font-size: 1.12rem; }
.step p { color: var(--ink-2); font-size: 0.96rem; }

/* ---------- Stat / dial ---------- */
.dial-wrap { position: relative; width: min(320px, 78vw); margin: 0 auto; }
.dial-wrap svg { width: 100%; height: auto; display: block; }
.dial-track { stroke: rgba(116, 179, 232, 0.14); }
.dial-value {
  stroke: url(#dialGrad);
  transition: stroke-dashoffset 1.1s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.dial-center {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center;
  gap: 0.1rem;
}
.dial-center .value {
  font-size: clamp(3rem, 8vw, 4.2rem);
  font-weight: 700; font-stretch: 114%;
  letter-spacing: -0.03em;
  color: var(--ink-0);
  line-height: 1;
}
.dial-center .of {
  font-family: var(--font-mono);
  font-size: 0.8rem; letter-spacing: 0.2em;
  color: var(--ink-2);
}

/* ---------- Assessment ---------- */
.quiz-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  padding: clamp(1.4rem, 3.5vw, 2.1rem);
  margin-bottom: 1.15rem;
}
.quiz-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}
.quiz-section-head h3 { margin: 0; font-size: 1.16rem; }
.quiz-section-head .qs-label {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em;
  color: var(--blue-bright); text-transform: uppercase;
  display: block; margin-bottom: 0.35rem;
}
.section-score {
  font-family: var(--font-mono);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--ink-1);
  background: rgba(43, 109, 168, 0.16);
  border: 1px solid var(--line);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.section-score.lit { color: var(--orange-soft); border-color: rgba(247, 154, 30, 0.45); }

.quiz-items { display: grid; gap: 0.6rem; }
.quiz-item {
  display: flex; gap: 0.9rem; align-items: flex-start;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.014);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.quiz-item:hover { background: rgba(116, 179, 232, 0.06); border-color: var(--line); }
.quiz-item input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 22px; height: 22px; margin: 2px 0 0;
  border-radius: 7px;
  border: 1.5px solid var(--line-strong);
  background: rgba(5, 8, 15, 0.5);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.quiz-item input:checked {
  background-color: var(--orange);
  border-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.6 3.6L15.5 6.5' stroke='%23180f02' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 15px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 14px -2px var(--glow-orange);
}
.quiz-item input:focus-visible { outline: 2px solid var(--orange-soft); outline-offset: 2px; }
.quiz-item span { font-size: 0.99rem; color: var(--ink-1); }
.quiz-item input:checked + span { color: var(--ink-0); }

.points-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--ink-2);
}

/* results */
.results-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 320px at 50% -10%, rgba(43, 109, 168, 0.22), transparent 70%),
    linear-gradient(175deg, var(--bg-2), var(--bg-1));
  padding: clamp(1.8rem, 5vw, 3rem);
}
.results-grid {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.6rem, 5vw, 3.4rem);
  align-items: center;
}
@media (max-width: 820px) { .results-grid { grid-template-columns: 1fr; } }
.tier-name {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 680; font-stretch: 114%;
  color: var(--orange);
  margin: 0.2rem 0 0.6rem;
}
.result-breakdown { list-style: none; margin: 1.4rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.55rem; }
.result-breakdown li {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.95rem; color: var(--ink-1);
}
.result-breakdown .pts { font-family: var(--font-mono); font-weight: 600; color: var(--blue-bright); }

/* form fields */
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.73rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.45rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(5, 8, 15, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-0);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.72rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(116, 179, 232, 0.18);
}
.field input::placeholder { color: rgba(147, 166, 187, 0.55); }

/* ---------- Price tiers (report) ---------- */
.tier-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.15rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.7rem; max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-weight: 620;
  color: var(--ink-0);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: 1.2rem;
  transition: transform 0.25s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.25rem 1.15rem; color: var(--ink-1); font-size: 0.99rem; }

/* ---------- Final CTA band ---------- */
.cta-band {
  position: relative;
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 0;
  background:
    radial-gradient(900px 420px at 50% 115%, rgba(247, 154, 30, 0.14), transparent 65%),
    radial-gradient(1000px 400px at 50% -30%, rgba(43, 109, 168, 0.3), transparent 70%),
    var(--bg-1);
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.cta-band .lead { margin: 0 auto 2.2rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-0);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 2.6rem;
}
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img {
  width: 150px;
  margin-bottom: 1rem;
  padding: 10px;
  border-radius: 18px;
  background: radial-gradient(closest-side, rgba(174, 205, 235, 0.14), transparent);
  filter: drop-shadow(0 0 22px rgba(150, 195, 238, 0.3));
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
}
.site-footer h4 {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--ink-1); }
.site-footer a:hover { color: var(--blue-bright); }
.footer-area { color: var(--ink-2); font-size: 0.92rem; }
.footer-badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.footer-badges span {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.88rem;
}

/* ---------- Service detail sections ---------- */
.service-block { scroll-margin-top: calc(var(--header-h) + 20px); }
.service-block + .service-block { margin-top: clamp(3rem, 6vw, 5rem); }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.service-tags li {
  font-family: var(--font-mono);
  font-size: 0.73rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--blue-bright);
  background: rgba(43, 109, 168, 0.14);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
}
.tech-callout {
  border-left: 2px solid var(--orange);
  background: linear-gradient(90deg, rgba(247, 154, 30, 0.07), transparent 70%);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.3rem;
  margin: 1.3rem 0;
  color: var(--ink-1);
  font-size: 0.99rem;
}

/* ---------- Load-in reveal (CSS-only, no scroll gating) ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.reveal { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.reveal-stagger > * { animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.reveal-stagger > *:nth-child(2) { animation-delay: 0.04s; }
.reveal-stagger > *:nth-child(3) { animation-delay: 0.08s; }
.reveal-stagger > *:nth-child(4) { animation-delay: 0.12s; }
.reveal-stagger > *:nth-child(5) { animation-delay: 0.16s; }
.reveal-stagger > *:nth-child(6) { animation-delay: 0.20s; }
.reveal-stagger > *:nth-child(7) { animation-delay: 0.24s; }
.reveal-stagger > *:nth-child(8) { animation-delay: 0.28s; }

/* ==========================================================================
   Wow layer — Resilient Home Energy Core (3D hero) + site-wide energy FX
   ========================================================================== */

/* hero split: text + live 3D stage (stage only exists once WebGL is a go) */
.hero-layout { position: relative; }
.hero-stage { display: none; }
.has-core .hero-stage { display: block; margin-top: 2.4rem; }
@media (min-width: 1060px) {
  .has-core .hero-3d .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 45%);
    gap: clamp(1.6rem, 3.4vw, 3.4rem);
    align-items: center;
  }
  .has-core .hero-stage { margin-top: 0; }
  .has-core .hero-3d .hero-inner { max-width: 640px; }
}

.core-frame {
  position: relative;
  background: #0a1120;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.9), 0 0 70px -34px var(--glow-blue);
}
#energy-core {
  position: relative;
  height: clamp(300px, 62vw, 430px);
}
@media (min-width: 1060px) { #energy-core { height: 480px; } }
.core-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.9s ease;
}
#energy-core.is-live .core-canvas { opacity: 1; }

.core-hud {
  position: absolute; top: 0.85rem; left: 0.85rem; right: 0.85rem;
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  pointer-events: none;
}
.hud-chip {
  font-family: var(--font-mono);
  font-size: 0.67rem; font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--blue-bright);
  background: #0a1626;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.hud-chip.is-off, .hud-chip.is-on {
  color: var(--orange);
  border-color: rgba(247, 154, 30, 0.55);
}

.core-controls {
  position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.85rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; flex-wrap: wrap;
}
.core-toggle {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: #101d31;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-0);
  padding: 0.55rem 1.05rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.73rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.core-toggle:hover {
  border-color: var(--orange);
  background: #14233c;
  box-shadow: 0 0 26px -8px var(--glow-orange);
}
.core-toggle .led {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--blue-bright);
  box-shadow: 0 0 9px var(--glow-blue);
  animation: led-breathe 2.6s ease-in-out infinite;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.core-toggle.is-off .led {
  background: var(--orange);
  box-shadow: 0 0 10px var(--glow-orange);
}
@keyframes led-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.core-hint {
  font-family: var(--font-mono);
  font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink-2);
}

/* ambient particle fields ([data-fx='field'] sections) */
[data-fx='field'] { position: relative; }
[data-fx='field'] > .container { position: relative; z-index: 1; }
.fx-field {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* electron orbits inside service card icons */
.card-icon { position: relative; overflow: visible; }
.card-icon svg { position: relative; z-index: 1; }
.fx-orbit {
  position: absolute; left: 50%; top: 50%;
  width: 76px; height: 76px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* rotating wireframe regional grid (About) */
.wiregrid-wrap {
  position: relative;
  height: clamp(290px, 44vw, 430px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0a1120, #060c16);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
}
.wiregrid-wrap canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  display: block;
}
.wiregrid-caption {
  position: absolute; left: 1.05rem; bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink-2);
  pointer-events: none;
}

/* one-shot results burst */
.fx-burst { position: absolute; pointer-events: none; z-index: 2; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .powerline::after, .flow .pulse-b, .flow .pulse-o { animation: none !important; display: none; }
}

/* ---------- Utilities ---------- */
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.max-w-70 { max-width: 70ch; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
