/* ===== Design tokens ===== */
:root {
  --navy: #0a1834;
  --navy-2: #10224a;
  --ink: #0c1526;
  --sky: #1f8fff;
  --sky-2: #16b8f3;
  --sun: #ffb020;
  --sun-2: #ff7a1a;
  --green: #1fce8f;
  --paper: #f6f9ff;
  --white: #ffffff;
  --muted: #5b6b86;
  --line: #e4ecf7;
  --radius: 18px;
  --shadow: 0 18px 50px -22px rgba(12, 30, 66, .35);
  --shadow-sm: 0 8px 24px -14px rgba(12, 30, 66, .3);
  --grad-sun: linear-gradient(100deg, var(--sun), var(--sun-2));
  --grad-sky: linear-gradient(120deg, var(--sky), var(--sky-2));
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand { font-family: "Sora", "Inter", sans-serif; letter-spacing: -.02em; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 600; font-family: "Sora", sans-serif; font-size: .95rem;
  padding: .7rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-sun); color: #241200; box-shadow: 0 10px 24px -10px rgba(255,122,26,.7); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(255,122,26,.85); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.06); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block; font-family: "Sora", sans-serif; font-weight: 600;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sky); background: rgba(31,143,255,.1);
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow.light { color: #ffe4b8; background: rgba(255,255,255,.12); }
.grad { background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--sun-2); }
.brand-mark svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-links + .nav-actions { margin-left: 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #071129 0%, #0c1c40 60%, #0e2149 100%); color: #eaf1ff; }
.hero-glow {
  position: absolute; top: -180px; right: -120px; width: 620px; height: 620px;
  background: radial-gradient(circle at center, rgba(255,176,32,.35), transparent 62%);
  filter: blur(10px); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 5rem 22px 5.5rem; position: relative; }
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); font-weight: 800; margin-bottom: 1.1rem; }
.hero .eyebrow { color: #ffdca0; background: rgba(255,176,32,.14); }
.lead { font-size: 1.12rem; color: #b9c8e6; max-width: 33ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }
.hero-cta .btn-ghost { color: #eaf1ff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.hero-cta .btn-ghost:hover { border-color: var(--sun); color: var(--sun); }
.hero-trust { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-family: "Sora"; font-size: 1.5rem; color: #fff; }
.hero-trust span { font-size: .82rem; color: #8fa2c6; }

/* Energy card */
.hero-visual { display: grid; place-items: center; }
.energy-card {
  width: 100%; max-width: 360px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 1.4rem;
  backdrop-filter: blur(12px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.ec-head { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: #cfdcf6; margin-bottom: 1.2rem; }
.ec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31,206,143,.25); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(31,206,143,0); } }
.ec-flow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3rem; }
.ec-node { display: flex; flex-direction: column; align-items: center; gap: .35rem; font-size: 1.7rem; }
.ec-node span { font-size: .72rem; color: #cfdcf6; text-align: center; line-height: 1.25; }
.ec-line { flex: 1; height: 3px; margin: 0 .6rem; border-radius: 3px; background: linear-gradient(90deg, var(--sun), var(--sky)); background-size: 200% 100%; animation: flow 2s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }
.ec-battery { margin-bottom: 1.1rem; }
.ec-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.ec-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #7bf0c4); border-radius: 999px; }
.ec-batmeta { display: flex; justify-content: space-between; font-size: .78rem; color: #cfdcf6; margin-top: .35rem; }
.ec-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem; }
.ec-stats div { display: flex; flex-direction: column; }
.ec-stats small { font-size: .66rem; color: #8fa2c6; }
.ec-stats b { font-size: .9rem; color: #fff; }

/* ===== Marquee ===== */
.marquee { background: var(--navy); color: #9fb2d6; padding: .9rem 0; overflow: hidden; }
.marquee-inner { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; font-size: .82rem; font-family: "Sora"; letter-spacing: .04em; }

/* ===== Sections ===== */
.section { padding: 5.5rem 0; }
.section.alt { background: var(--paper); }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: .8rem; color: var(--navy); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(31,143,255,.4); }
.card.featured { background: linear-gradient(180deg, #0c1c40, #12285a); color: #eaf1ff; border-color: transparent; }
.card.featured p { color: #b9c8e6; }
.card.featured .ticks li { color: #d7e2f7; }
.card-icon { font-size: 1.8rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(31,143,255,.1); margin-bottom: 1rem; }
.card.featured .card-icon { background: rgba(255,255,255,.12); }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .93rem; margin-bottom: 1rem; }
.badge { position: absolute; top: 1rem; right: 1rem; font-size: .68rem; font-weight: 700; font-family: "Sora"; text-transform: uppercase; letter-spacing: .05em; background: var(--grad-sun); color: #241200; padding: .3rem .6rem; border-radius: 999px; }
.ticks { list-style: none; display: grid; gap: .4rem; }
.ticks li { position: relative; padding-left: 1.5rem; font-size: .88rem; color: #3a496b; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.step-no { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--grad-sky); color: #fff; font-family: "Sora"; font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem; }
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; color: var(--navy); }
.step p { color: var(--muted); font-size: .9rem; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--navy); margin-bottom: 1rem; }
.split-copy > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.4rem; }
.feature-list { list-style: none; display: grid; gap: .8rem; margin-bottom: 1.8rem; }
.feature-list li { position: relative; padding-left: 1.8rem; color: #33425f; }
.feature-list li::before { content: "→"; position: absolute; left: 0; color: var(--sun-2); font-weight: 700; }
.feature-list.light li { color: #d7e2f7; }
.feature-list.light li strong { color: #fff; }

.split-visual { display: grid; place-items: center; }
.gauge-card { width: 100%; max-width: 340px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 2rem; box-shadow: var(--shadow); text-align: center; }
.gauge { position: relative; width: 200px; margin: 0 auto 1.4rem; }
.gauge svg { transform: rotate(-90deg); }
.g-track { fill: none; stroke: var(--line); stroke-width: 12; }
.g-fill { fill: none; stroke: url(#g); stroke-width: 12; stroke-linecap: round; stroke: var(--sun); stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.4s ease; }
.gauge-label { position: absolute; inset: 0; display: grid; place-content: center; }
.gauge-label strong { font-family: "Sora"; font-size: 2.4rem; color: var(--navy); }
.gauge-label span { font-size: .78rem; color: var(--muted); }
.gauge-legend { display: grid; gap: .5rem; text-align: left; font-size: .85rem; color: #3a496b; }
.gauge-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: .5rem; vertical-align: -1px; }
.lg-solar { background: var(--sun); } .lg-batt { background: var(--green); } .lg-grid { background: #b9c3d6; }

/* Stat band */
.statband { background: linear-gradient(120deg, #0c1c40, #123163); color: #eaf1ff; padding: 3.5rem 0; }
.statband-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }
.statband strong { display: block; font-family: "Sora"; font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; }
.statband span { color: #a9bbdc; font-size: .9rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; align-items: start; }
.price-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm); }
.price-card.popular { border-color: var(--sun); box-shadow: 0 24px 60px -26px rgba(255,122,26,.5); transform: translateY(-8px); }
.price-card h3 { font-size: 1.35rem; color: var(--navy); }
.price-sub { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.price { font-family: "Sora"; font-weight: 800; font-size: 2rem; color: var(--navy); margin-bottom: 1.2rem; }
.price span { font-size: .8rem; font-weight: 500; color: var(--muted); display: block; }
.price-card .ticks { margin-bottom: 1.6rem; }
.price-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 1.5rem; }

/* Testimonials */
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); grid-column: span 1; }
.cards .quote { display: block; }
#reviews .cards { grid-template-columns: repeat(3,1fr); }
.stars { color: var(--sun); letter-spacing: 2px; margin-bottom: .8rem; }
.quote p { color: #33425f; font-size: .98rem; margin-bottom: 1.2rem; }
.quote footer { display: flex; flex-direction: column; }
.quote footer strong { color: var(--navy); }
.quote footer span { color: var(--muted); font-size: .82rem; }

/* FAQ */
.faq { display: grid; gap: .8rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.3rem; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; font-family: "Sora"; font-weight: 600; color: var(--navy); padding: 1.1rem 0; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--sky); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; margin-top: -.3rem; }

/* Quote CTA */
.quote-cta { background: linear-gradient(140deg, #081431, #0f2555 55%, #123163); color: #eaf1ff; padding: 5rem 0; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.quote-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.quote-copy > p { color: #b9c8e6; margin-bottom: 1.4rem; }
.quote-form { background: var(--white); border-radius: 22px; padding: 1.9rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field label { font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.field input, .field select { font: inherit; font-size: .95rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; color: var(--ink); transition: border .15s, box-shadow .15s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(31,143,255,.15); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-note { margin-top: .9rem; color: var(--green); font-weight: 600; text-align: center; }

/* Footer */
.site-footer { background: var(--ink); color: #9fb2d6; padding: 3.5rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand { color: #fff; margin-bottom: .8rem; }
.footer-brand p { font-size: .9rem; max-width: 30ch; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.footer-col a { display: block; color: #9fb2d6; font-size: .9rem; padding: .25rem 0; transition: color .15s; }
.footer-col a:hover { color: var(--sun); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding-top: 1.4rem; font-size: .82rem; color: #6f83a8; }

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid, .split, .quote-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .cards, .steps, #reviews .cards { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card.popular { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .statband-grid { grid-template-columns: repeat(2,1fr); gap: 2rem; }
}
@media (max-width: 640px) {
  .nav-links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 22px; gap: .4rem; transform: translateY(-140%); transition: transform .28s ease; box-shadow: var(--shadow); }
  .nav-links.open { transform: none; }
  .nav-links a { padding: .6rem 0; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary { display: none; }
  .cards, .steps, #reviews .cards, .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 1.4rem; }
  .row { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
}
