/* ---------- tokens ---------- */
:root {
  --bg: #12151b;
  --bg-raised: #171b23;
  --surface: #1a1f28;
  --surface-raised: #212836;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1f6;
  --text-muted: #8891a3;

  --live: #e4a33b;
  --live-dim: rgba(228, 163, 59, 0.14);
  --neutral: #5c8df2;
  --neutral-dim: rgba(92, 141, 242, 0.14);
  --earth: #4fb477;
  --earth-dim: rgba(79, 180, 119, 0.14);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1120px;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--live); color: #14171c; padding: 10px 16px;
  font-family: var(--font-mono); font-size: 13px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--live);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- shared bits ---------- */
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}
.dot-live { background: var(--live); box-shadow: 0 0 0 3px var(--live-dim); }
.dot-neutral { background: var(--neutral); box-shadow: 0 0 0 3px var(--neutral-dim); }
.dot-earth { background: var(--earth); box-shadow: 0 0 0 3px var(--earth-dim); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.zone-eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--live);
  margin-bottom: 12px;
}
.zone-eyebrow-earth { color: var(--earth); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--live); color: #191307; }
.btn-primary:hover { background: #efb254; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--neutral); color: var(--neutral); }
.btn-earth { background: var(--earth); color: #0d1f14; }
.btn-earth:hover { background: #5fc789; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 21, 27, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: flex; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.primary-nav { display: flex; gap: 28px; }
.primary-nav a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.primary-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 20px; height: 2px; background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 56px;
  overflow: hidden;
}
.hero-trace {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.55;
}
.trace {
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 6 2000;
  animation: draw 2.4s ease-out forwards;
}
.trace-live { stroke: var(--live); animation-delay: 0.1s; }
.trace-neutral { stroke: var(--neutral); animation-delay: 0.35s; }
.trace-earth { stroke: var(--earth); animation-delay: 0.6s; }
@keyframes draw {
  from { stroke-dashoffset: 2000; }
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .trace { stroke-dasharray: none; animation: none; }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero .lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- hero device panel ---------- */
.hero-panel {
  position: relative;
  z-index: 1;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-top: 2px solid var(--live);
  border-radius: 14px;
  padding: 18px 20px 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.hero-panel-head {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.hero-panel-rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.hero-panel-rows li:last-child { border-bottom: none; }
.row-text { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.row-name { font-size: 14px; font-weight: 500; }
.row-sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.row-state {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.dot.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--earth-dim); }
  50% { box-shadow: 0 0 0 6px var(--earth-dim); }
}
@media (prefers-reduced-motion: reduce) {
  .dot.pulse { animation: none; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { max-width: 380px; }
}

.disclosure-strip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
}
.disclosure-strip a { color: var(--neutral); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- benefits ---------- */
.benefits { padding: 72px 0; border-bottom: 1px solid var(--border); }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.benefit-dot { display: block; width: 10px; height: 10px; margin: 0 0 16px; }
.benefit-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.benefit-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}
@media (max-width: 860px) {
  .benefit-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .benefit-grid { grid-template-columns: 1fr; }
}

/* ---------- zones ---------- */
.zone { padding: 72px 0; border-bottom: 1px solid var(--border); }
.zone h2, .benefits h2, .faq h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  max-width: 640px;
}
.zone-blurb {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  font-size: 15.5px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.5s ease, box-shadow 0.2s ease;
}
/* only hidden-then-revealed when JS confirms it can animate them back in */
.js-reveal .tile {
  opacity: 0;
  transform: translateY(10px);
}
.js-reveal .tile.in-view { opacity: 1; transform: translateY(0); }
.tile:hover {
  background: var(--surface-raised);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

.tile-status {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}
.tile-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}
.tile-reason {
  color: var(--text-muted);
  font-size: 14px;
  flex-grow: 1;
}
.tile-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--live);
  margin-top: 4px;
}

/* ---------- energy zone ---------- */
.zone-energy { background: linear-gradient(180deg, var(--earth-dim), transparent 60%); }
.energy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid rgba(79, 180, 119, 0.3);
  border-radius: 14px;
  padding: 32px;
}
.energy-card-text { max-width: 480px; }
.energy-card-text p { margin-top: 12px; color: var(--text-muted); font-size: 15px; }

/* ---------- how we pick ---------- */
.how-we-pick { padding: 64px 0 88px; }
.checklist { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.checklist li {
  display: flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--text);
}

/* ---------- faq ---------- */
.faq { padding: 64px 0 88px; border-bottom: 1px solid var(--border); }
.faq h2 { margin-bottom: 40px; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-muted);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
  padding: 0 0 20px 24px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-disclosure {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 14px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.wire-legend {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.copyright { font-size: 12px; color: var(--text-muted); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .tile-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .primary-nav.open { max-height: 360px; }
  .primary-nav a { padding: 16px 24px; border-top: 1px solid var(--border); }
}

@media (max-width: 720px) {
  .tile-grid { grid-template-columns: 1fr; }
  .energy-card { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
