:root {
  --sky: #eef4f6;
  --sky-2: #e3edf1;
  --paper: #ffffff;
  --ink: #0d1b2a;
  --ink-soft: #3d4f63;
  --muted: #64768a;
  --line: #d3dfe6;
  --sun: #f5a524;
  --sun-deep: #a8650a;
  --sun-tint: #fff3d9;
  --battery: #1f9d5c;
  --grid: #2a6cc0;
  --display: "Google Sans Flex", "Inter", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --slash: #b9c6cf;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 400 16px/1.75 var(--body);
  letter-spacing: -0.02em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.04em; line-height: 1.12; margin: 0; }
/* Infra8 heading: two Title Case lines set between light slashes. */
.slash::before { content: "/ " / ""; color: var(--slash); }
.slash::after { content: " /" / ""; color: var(--slash); }
h1, h2 { text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--grid); outline-offset: 3px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(238, 244, 246, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 22px/1 var(--display); letter-spacing: -0.04em; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 26px; margin-left: auto; font: 400 16px/1 var(--mono); letter-spacing: 0; }
.nav a { text-decoration: none; color: var(--ink); transition: color 0.2s; }
.nav a:hover { color: var(--sun-deep); }

/* buttons: square, mono caps, small square marker (Infra8 blueprint button) */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 44px; padding: 0 16px; font: 400 12px/1 var(--mono); letter-spacing: 0.01em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: color 0.3s, background 0.3s; }
.btn::before { content: ""; width: 6px; height: 6px; background: currentColor; transition: rotate 0.4s var(--ease); }
.btn:hover::before { rotate: 45deg; }
.btn--sm { height: 40px; padding: 0 14px; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.cta .btn--sun:hover { background: #fff; color: var(--ink); }

/* type helpers */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1 var(--mono); letter-spacing: 0; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--sun); }

/* hero */
.hero { padding: 72px 0 24px; }
.hero h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; margin-top: 22px; max-width: 820px; color: #000; }
.lede { max-width: 620px; margin-top: 24px; font-size: 18px; line-height: 1.75; color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* the scope */
.scope { margin: 56px 0 0; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(13, 27, 42, 0.35); }
.scope__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 18px 26px; background: var(--ink); color: #fff; }
.scope__clock { display: flex; align-items: baseline; gap: 12px; }
.scope__clock span { font: 400 44px/1 var(--mono); letter-spacing: -0.04em; }
.scope__clock small { font: 400 12px/1 var(--mono); color: #93a7bb; text-transform: uppercase; letter-spacing: 0.06em; }
.scope__mode { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.scope__hint { font-size: 14px; line-height: 1.4; color: #b8c8d8; max-width: 460px; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.01em; background: #22384f; color: #cfe0f0; }
.chip--peak { background: var(--sun); color: var(--ink); }

.scope__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.flow { width: 100%; height: auto; padding: 18px; border-right: 1px solid var(--line); background: linear-gradient(180deg, #fff, #f6fafb); }
.wire { stroke: #cddae3; stroke-width: 3; stroke-dasharray: 5 7; transition: stroke 0.3s; }
.wire.on { animation: flow 0.9s linear infinite; }
.wire.rev { animation-direction: reverse; }
.wire--solar.on { stroke: var(--sun); }
.wire--bat.on { stroke: var(--battery); }
.wire--grid.on { stroke: var(--grid); }
.wire--home.on { stroke: var(--ink); }
@keyframes flow { to { stroke-dashoffset: -24; } }
.hub circle { fill: var(--ink); }
.hub__t { fill: #fff; font: 500 11px var(--display); }
.hub__s { fill: var(--sun); font: 500 10px var(--mono); }
.node rect { fill: #fff; stroke: var(--line); stroke-width: 1.5; transition: stroke 0.3s, fill 0.3s; }
.node .n__l { font: 400 11px var(--mono); fill: var(--muted); text-transform: uppercase; }
.node .n__v { font: 500 17px var(--display); fill: var(--ink); }
.node--solar.on rect { stroke: var(--sun); fill: var(--sun-tint); }
.node--bat.on rect { stroke: var(--battery); fill: #e6f6ed; }
.node--grid.on rect { stroke: var(--grid); fill: #e8f0fb; }
.node--home rect { stroke: var(--ink); }

.ribbon { position: relative; padding: 26px 26px 20px; display: flex; flex-direction: column; justify-content: center; }
.chart { position: relative; padding-bottom: 26px; }
#ribbon { width: 100%; height: 170px; }
.chart__peak { position: absolute; left: calc(680 / 960 * 100%); width: calc(240 / 960 * 100%); top: 6px; text-align: center; font: 400 11px var(--mono); color: var(--sun-deep); }
.chart__dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); pointer-events: none; }
.chart__hours span { position: absolute; bottom: 0; translate: -50% 0; font: 400 11px var(--mono); color: var(--muted); }
.r__peak { fill: var(--sun-tint); }
.r__solar { fill: rgba(245, 165, 36, 0.28); stroke: var(--sun); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.r__load { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.r__cursor { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.tick { stroke: var(--line); vector-effect: non-scaling-stroke; }
.ribbon__slider { display: block; margin-top: 6px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: ew-resize; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); }
.legend { display: flex; gap: 18px; margin-top: 4px; font: 400 12px var(--mono); color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 8px; vertical-align: middle; border-radius: 2px; }
.lg--solar::before { background: var(--sun); }
.lg--load::before { background: var(--ink); }
.scope figcaption { padding: 14px 26px 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* sections */
.sec { padding: 112px 0; }
.sec--alt { background: var(--paper); border-block: 1px solid var(--line); }
.sec__head { max-width: 680px; margin-bottom: 52px; }
.sec__head h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.14; margin-top: 20px; }
.sec__head p:not(.eyebrow) { margin-top: 20px; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }

.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mode { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 18px; border-top: 5px solid var(--grid); }
.mode--peak { border-top-color: var(--sun); }
.mode--off { border-top-color: var(--battery); }
.mode h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; }
.mode dl { margin: 0; display: grid; gap: 8px; padding: 14px 0; border-block: 1px dashed var(--line); }
.mode dl div { display: flex; justify-content: space-between; gap: 12px; }
.mode dt { font: 400 12px var(--mono); text-transform: uppercase; color: var(--muted); letter-spacing: 0; }
.mode dd { margin: 0; font: 400 16px var(--display); letter-spacing: -0.02em; }
.mode p { color: var(--ink-soft); }
.mode .mode__use { margin-top: auto; font: 400 12px/1.5 var(--mono); letter-spacing: 0; color: var(--ink); text-transform: uppercase; }

.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.feats li { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); }
.feats li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.feats h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.03em; margin-bottom: 12px; }
.feats p { color: var(--ink-soft); font-size: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 20px; border-radius: 50%; background: var(--ink); color: var(--sun); font: 500 15px var(--mono); }
.steps h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.03em; margin-bottom: 10px; }
.steps p { color: var(--ink-soft); font-size: 16px; }

.built__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.built h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.14; margin: 20px 0 20px; }
.built p:not(.eyebrow) { color: var(--ink-soft); font-size: 16px; }
.tech { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tech li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 22px; background: var(--sky); }
.tech li + li { border-top: 1px solid var(--line); }
.tech b { font: 400 12px/1.8 var(--mono); text-transform: uppercase; letter-spacing: 0; color: var(--muted); }
.tech span { font-size: 16px; color: var(--ink-soft); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font: 400 20px/1.3 var(--display); letter-spacing: -0.03em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font: 400 28px/1 var(--mono); color: var(--sun-deep); transition: rotate 0.3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 40px 26px 0; color: var(--ink-soft); }

.cta { background: var(--ink); color: #fff; padding: 104px 0; }
.cta__in { display: grid; gap: 18px; justify-items: start; }
.cta h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.14; max-width: 780px; }
.cta h2.slash::before, .cta h2.slash::after { color: #4a6076; }
.cta p { max-width: 560px; color: #b8c8d8; font-size: 16px; }
.cta .btn { margin-top: 12px; }

.foot { background: var(--ink); color: #93a7bb; border-top: 1px solid #22384f; padding: 28px 0 40px; font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; }
.brand--foot { color: #fff; font-size: 18px; }
.foot p { max-width: 640px; }
.foot a { color: #fff; }

@media (max-width: 980px) {
  .scope__body { grid-template-columns: 1fr; }
  .flow { border-right: 0; border-bottom: 1px solid var(--line); max-width: 560px; margin-inline: auto; }
  .modes { grid-template-columns: 1fr; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats li, .feats li:not(:nth-child(3n + 1)) { padding: 28px 24px 30px 0; border-left: 0; }
  .feats li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .built__in { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .top__in { justify-content: space-between; gap: 12px; }
  .brand { font-size: 20px; white-space: nowrap; }
  .top .btn--sm { padding: 0 14px; font-size: 13px; white-space: nowrap; }
  .node .n__l { font-size: 13px; }
  .node .n__v { font-size: 20px; }
  .chart__hours span:nth-child(even) { display: none; }
  .hero { padding-top: 44px; }
  .lede { font-size: 16px; }
  .sec { padding: 76px 0; }
  .scope__bar { padding: 16px 18px; }
  .scope__clock span { font-size: 38px; }
  .ribbon { padding: 18px 16px 14px; }
  #ribbon { height: 140px; }
  .chart__peak { display: none; }
  .scope figcaption { padding: 12px 18px 16px; }
  .feats { grid-template-columns: 1fr; }
  .feats li, .feats li:nth-child(even) { padding: 24px 0 26px; border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .tech li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wire.on { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
