@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --paper: #f4f3f0;
  --paper-2: #faf9f6;
  --ink: #121413;
  --muted: #6f736f;
  --line: #dfddd7;
  --orange: #b86a28;
  --orange-soft: #efe0d3;
  --green: #2c4a3a;
  --green-soft: #e1e7e2;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 24%, rgba(184, 106, 40, .08), transparent 28rem),
    var(--paper);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-shell {
  width: min(1440px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 56px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  height: 96px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 136px; height: auto; }

.preview-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555a56;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.preview-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(184,106,40,.10);
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(600px, 1.18fr);
  gap: clamp(44px, 6vw, 100px);
  align-items: center;
  padding: 54px 0 48px;
}

.hero-copy { max-width: 570px; }

.eyebrow {
  margin: 0 0 24px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 5.1vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 500;
}

h1 span { color: #737570; }

.lede {
  max-width: 570px;
  margin: 30px 0 0;
  color: #525652;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
  letter-spacing: -.012em;
}

.actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }

.primary-action {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: white;
  background: var(--green);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.primary-action:hover { background: #20392c; transform: translateY(-2px); }
.primary-action:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.launch-state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.launch-state strong { display: block; color: var(--ink); font-weight: 600; }
.launch-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: 0 0 auto; animation: pulse 2.4s ease-in-out infinite; }

.product-stage {
  min-height: 570px;
  position: relative;
  border: 1px solid var(--line);
  background: rgba(250, 249, 246, .78);
  overflow: hidden;
  isolation: isolate;
}

.product-stage::before {
  content: "SYSTEM COORDINATION";
  position: absolute;
  top: 24px;
  left: 26px;
  color: #8a8d88;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(18,20,19,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(18,20,19,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  z-index: -1;
}

.system-map { position: absolute; inset: 60px 20px 170px; }

.asset {
  width: 112px;
  min-height: 76px;
  position: absolute;
  padding: 13px 12px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-content: center;
  column-gap: 7px;
  border: 1px solid #d7d5ce;
  background: rgba(250,249,246,.92);
  box-shadow: 0 8px 22px rgba(18,20,19,.035);
  font-size: 12px;
  font-weight: 600;
}

.asset small { grid-column: 2; color: #888b87; font-size: 9px; font-weight: 500; margin-top: 2px; }
.asset-icon { grid-row: 1 / 3; align-self: center; width: 25px; height: 25px; color: var(--green); }
.asset-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.asset-solar { left: 4%; top: 6%; }
.asset-grid { left: 4%; bottom: 5%; }
.asset-bess { right: 4%; top: 6%; }
.asset-load { right: 4%; bottom: 5%; }

.controller-card {
  width: 174px;
  height: 150px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 24px 20px;
  color: white;
  background: var(--green);
  box-shadow: 0 20px 48px rgba(44,74,58,.22);
}

.controller-card p { margin: 8px 0 0; color: rgba(255,255,255,.62); font-size: 10px; letter-spacing: .2em; }
.controller-card strong { display: block; margin-top: 2px; font-size: 18px; font-weight: 500; letter-spacing: .04em; }
.controller-mark { height: 20px; width: 26px; position: relative; }
.controller-mark span { position: absolute; border: 1.5px solid #fff; border-radius: 50%; }
.controller-mark span:nth-child(1) { inset: 0 5px; }
.controller-mark span:nth-child(2) { inset: 4px 1px; border-left-color: transparent; }
.controller-mark span:nth-child(3) { inset: 7px 8px; background: white; }

.controller-status { display: flex; align-items: center; gap: 7px; margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.72); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.controller-status i { width: 6px; height: 6px; border-radius: 50%; background: #e7a265; box-shadow: 0 0 0 4px rgba(231,162,101,.12); }

.connector { position: absolute; height: 1px; background: #bfc3bd; transform-origin: center; }
.connector i { position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: flow 2.8s linear infinite; }
.connector-a { left: 22%; top: 31%; width: 25%; transform: rotate(18deg); }
.connector-b { left: 22%; bottom: 30%; width: 25%; transform: rotate(-18deg); }
.connector-c { right: 22%; top: 31%; width: 25%; transform: rotate(-18deg); }
.connector-d { right: 22%; bottom: 30%; width: 25%; transform: rotate(18deg); }
.connector-b i, .connector-d i { animation-delay: -1.4s; }

.status-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  min-height: 138px;
  padding: 18px 18px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 10px;
  border: 1px solid #d9d7d1;
  background: rgba(244,243,240,.94);
  backdrop-filter: blur(10px);
}

.status-head { grid-column: 1/-1; display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: #868985; font-size: 9px; font-weight: 600; letter-spacing: .15em; }
.status-head time { color: #a0a29e; font-variant-numeric: tabular-nums; }
.metric-row { padding: 11px 9px 0 0; border-right: 1px solid var(--line); }
.metric-row:nth-of-type(4) { border-right: 0; }
.metric-row span { display: block; color: #7b7e7a; font-size: 9px; }
.metric-row strong { display: block; margin-top: 4px; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.metric-row strong small { color: #7b7e7a; font-size: 9px; font-weight: 500; }
.metric-row strong.orange { color: var(--orange); }
.decision-row { grid-column: 1/-1; display: flex; align-items: baseline; gap: 12px; margin-top: 12px; padding: 8px 10px; background: var(--orange-soft); }
.decision-row span { color: var(--orange); font-size: 8px; font-weight: 600; letter-spacing: .12em; white-space: nowrap; }
.decision-row p { margin: 0; color: #6c5038; font-size: 10px; }

footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
footer p { margin: 0; color: #5e625e; font-size: 9px; font-weight: 600; letter-spacing: .16em; }
footer p span + span::before { content: " — "; color: var(--orange); }
.footer-note { color: #90938f; font-weight: 400; letter-spacing: .03em; text-transform: none; }

@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(184,106,40,.2); } 50% { box-shadow: 0 0 0 7px rgba(184,106,40,0); } }
@keyframes flow { from { left: 0; } to { left: calc(100% - 7px); } }

@media (max-width: 1050px) {
  .page-shell { padding: 0 28px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; }
  .hero-copy { max-width: 720px; }
  .product-stage { min-height: 540px; }
}

@media (max-width: 640px) {
  .page-shell { padding: 0 18px; }
  .site-header { height: 74px; }
  .brand img { width: 112px; }
  .preview-label { font-size: 9px; }
  .hero { padding: 36px 0 30px; gap: 34px; }
  .eyebrow { margin-bottom: 18px; }
  h1 { font-size: clamp(42px, 13vw, 58px); }
  .lede { margin-top: 24px; font-size: 15px; line-height: 1.58; }
  .actions { align-items: stretch; flex-direction: column; gap: 16px; margin-top: 28px; }
  .primary-action { justify-content: space-between; width: 100%; }
  .launch-state { padding-left: 4px; }
  .product-stage { min-height: 600px; }
  .product-stage::before { top: 18px; left: 18px; }
  .system-map { inset: 52px 4px 225px; }
  .asset { width: 100px; min-height: 68px; padding: 10px 9px; }
  .asset-solar, .asset-grid { left: 0; }
  .asset-bess, .asset-load { right: 0; }
  .controller-card { width: 144px; height: 138px; padding: 20px 16px; }
  .controller-card strong { font-size: 15px; }
  .connector-a, .connector-b { left: 25%; width: 22%; }
  .connector-c, .connector-d { right: 25%; width: 22%; }
  .status-card { left: 14px; right: 14px; bottom: 14px; min-height: 196px; grid-template-columns: 1fr 1fr; }
  .metric-row { border-right: 0; border-bottom: 1px solid var(--line); padding: 9px 0; }
  .metric-row:nth-of-type(even) { padding-right: 10px; border-right: 1px solid var(--line); }
  .metric-row:nth-of-type(odd) { padding-left: 10px; }
  .decision-row { margin-top: 10px; align-items: flex-start; }
  footer { min-height: 92px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 8px; }
  .footer-note { line-height: 1.4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
