/* ============================================================
   TRI GREEN — design system
   Palette: deep forest black + emerald→lime energy gradient.
   Verticals: generate = emerald, store = cyan, charge = volt.
   ============================================================ */

:root {
  /* ----- light theme (default) ----- */
  --bg: #f6faf7;
  --bg-alt: #edf4ef;
  --surface: #ffffff;
  --line: rgba(9, 45, 27, 0.12);
  --text: #0c1a12;
  --muted: #4f6558;

  /* three distinct greens: grass / teal-green / lime */
  --c-generate: #15803d;
  --c-generate-rgb: 21, 128, 61;
  --c-store: #0f766e;
  --c-store-rgb: 15, 118, 110;
  --c-charge: #4d7c0f;
  --c-charge-rgb: 77, 124, 15;

  --green: #059669;
  --green-soft: #047857;
  --lime: #4d7c0f;
  --cyan: #0f766e;

  --grad: linear-gradient(100deg, #0f766e, #16a34a 50%, #65a30d);
  --grad-generate: linear-gradient(100deg, #166534, #16a34a);
  --grad-store: linear-gradient(100deg, #134e4a, #0d9488);
  --grad-charge: linear-gradient(100deg, #3f6212, #65a30d);

  --on-grad: #ffffff;
  --on-hue: #ffffff;
  --nav-bg: rgba(246, 250, 247, 0.78);
  --overlay: rgba(246, 250, 247, 0.97);
  --grid-line: rgba(9, 70, 40, 0.06);
  --glass: rgba(9, 45, 27, 0.03);
  --field-focus: rgba(101, 163, 13, 0.06);
  --placeholder: rgba(79, 101, 88, 0.6);
  --aurora-o: 0.34;

  --font-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;

  --container: 1180px;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  --bg: #050807;
  --bg-alt: #090e0b;
  --surface: #0c1310;
  --line: rgba(163, 230, 165, 0.1);
  --text: #eaf3ec;
  --muted: #9db3a4;

  /* three distinct greens: grass / teal-green / lime */
  --c-generate: #4ade80;
  --c-generate-rgb: 74, 222, 128;
  --c-store: #2dd4bf;
  --c-store-rgb: 45, 212, 191;
  --c-charge: #a3e635;
  --c-charge-rgb: 163, 230, 53;

  --green: #10b981;
  --green-soft: #34d399;
  --lime: #a3e635;
  --cyan: #2dd4bf;

  --grad: linear-gradient(100deg, #2dd4bf, #4ade80 50%, #a3e635);
  --grad-generate: linear-gradient(100deg, #16a34a, #4ade80);
  --grad-store: linear-gradient(100deg, #0d9488, #2dd4bf);
  --grad-charge: linear-gradient(100deg, #65a30d, #a3e635);

  --on-grad: #04170d;
  --on-hue: #04170d;
  --nav-bg: rgba(5, 8, 7, 0.72);
  --overlay: rgba(5, 8, 7, 0.96);
  --grid-line: rgba(163, 230, 165, 0.05);
  --glass: rgba(255, 255, 255, 0.03);
  --field-focus: rgba(163, 230, 53, 0.04);
  --placeholder: rgba(157, 179, 164, 0.55);
  --aurora-o: 0.5;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: rgba(var(--c-charge-rgb), 0.3); }

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

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 1.1rem;
}
.eyebrow--generate { color: var(--c-generate); }
.eyebrow--store { color: var(--c-store); }
.eyebrow--charge { color: var(--c-charge); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text--generate { background-image: var(--grad-generate); }
.grad-text--store { background-image: var(--grad-store); }
.grad-text--charge { background-image: var(--grad-charge); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}
.btn svg { width: 1em; height: 1em; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--hue, var(--green));
  color: var(--on-hue);
  box-shadow: 0 6px 24px rgba(var(--hue-rgb, var(--c-generate-rgb)), 0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(var(--hue-rgb, var(--c-generate-rgb)), 0.4);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--glass);
}
.btn--ghost:hover {
  border-color: rgba(var(--c-charge-rgb), 0.45);
  background: rgba(var(--c-charge-rgb), 0.07);
  transform: translateY(-2px);
}

.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 0.8rem 0;
  transition: padding 0.4s var(--ease), background-color 0.4s var(--ease),
    border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 0.45rem 0;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo { display: inline-flex; align-items: center; gap: 0.65rem; }
.logo-mark { width: 34px; height: 34px; }
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.nav__wordmark em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__links > a:not(.btn) {
  position: relative;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--text); }
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); }

/* active page (set by JS via aria-current) */
.nav__links > a:not(.btn)[aria-current="page"] { color: var(--text); }
.nav__links > a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px;
}
.nav__burger span {
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7.5rem 0 3.5rem;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--aurora-o);
  animation: drift 16s var(--ease) infinite alternate;
}
.aurora--1 {
  width: 55vw; height: 55vw;
  top: -18vw; right: -12vw;
  background: radial-gradient(closest-side, rgba(16, 185, 129, 0.5), transparent);
}
.aurora--2 {
  width: 42vw; height: 42vw;
  bottom: -14vw; left: -10vw;
  background: radial-gradient(closest-side, rgba(163, 230, 53, 0.32), transparent);
  animation-delay: -6s;
}
.aurora--3 {
  width: 30vw; height: 30vw;
  top: 30%; left: 38%;
  background: radial-gradient(closest-side, rgba(74, 222, 128, 0.18), transparent);
  animation-delay: -11s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, 3vw, 0) scale(1.12); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
}

.hero__content { position: relative; }

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

.hero__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
}

.hero__sub {
  max-width: 34rem;
  margin-top: 1.2rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 0.3rem;
}

/* ---------- hero triptych ---------- */
/* Expansion animates the container's grid tracks (one smooth
   interpolation) instead of three competing flex-grow tweens. */
.triptych {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.1rem;
  margin-top: 3rem;
  transition: grid-template-columns 0.7s var(--ease);
}

@media (min-width: 961px) {
  .triptych:has(.panel--generate:hover) { grid-template-columns: 1.55fr 1fr 1fr; }
  .triptych:has(.panel--store:hover) { grid-template-columns: 1fr 1.55fr 1fr; }
  .triptych:has(.panel--charge:hover) { grid-template-columns: 1fr 1fr 1.55fr; }
}

.panel {
  --hue: var(--c-generate);
  --hue-rgb: var(--c-generate-rgb);
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 430px;
  padding: 2.1rem 2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.panel--generate { --hue: var(--c-generate); --hue-rgb: var(--c-generate-rgb); }
.panel--store { --hue: var(--c-store); --hue-rgb: var(--c-store-rgb); }
.panel--charge { --hue: var(--c-charge); --hue-rgb: var(--c-charge-rgb); }

.panel::after {
  content: "";
  position: absolute;
  inset: auto -25% -40% -25%;
  height: 75%;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(var(--hue-rgb), 0.22),
    transparent 70%
  );
  opacity: 0.45;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.panel:hover {
  border-color: rgba(var(--hue-rgb), 0.5);
  box-shadow: 0 26px 70px -30px rgba(var(--hue-rgb), 0.4);
}
.panel:hover::after { opacity: 1; }

.panel__word {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.3vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  transition: color 0.4s var(--ease);
}
.panel:hover .panel__word { color: var(--hue); }

.panel__tag {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel__tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 12px rgba(var(--hue-rgb), 0.9);
  flex-shrink: 0;
}

.panel__art {
  margin-top: auto;
  padding-top: 1.5rem;
  width: 100%;
  height: auto;
  color: var(--hue);
  position: relative;
  z-index: 1;
}

.panel__go {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.panel__go svg { width: 15px; height: 15px; }
.panel:hover .panel__go {
  background: var(--hue);
  border-color: transparent;
  color: var(--on-hue);
  transform: rotate(-45deg);
}

.spin { animation: spin 22s linear infinite; }

.cell-wave { animation: cell-wave 2.4s ease-in-out infinite; opacity: 0.2; }
@keyframes cell-wave {
  0%, 100% { opacity: 0.2; }
  45%, 65% { opacity: 0.9; }
}

/* ---------- ticker ---------- */
.ticker {
  border-block: 1px solid var(--line);
  padding: 1rem 0;
  overflow: hidden;
  background: var(--bg-alt);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: ticker 32s linear infinite;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker__track i {
  font-style: normal;
  color: var(--green);
  font-size: 0.6rem;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */
.section { padding: 7.5rem 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section__head {
  max-width: 46rem;
  margin-bottom: 4rem;
}
.section__lede {
  margin-top: 1.4rem;
  font-size: 1.12rem;
  color: var(--muted);
}

/* ---------- vertical cards ---------- */
.vertical-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.v-card {
  --hue: var(--c-generate);
  --hue-rgb: var(--c-generate-rgb);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.2rem 2rem 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.v-card--generate { --hue: var(--c-generate); --hue-rgb: var(--c-generate-rgb); }
.v-card--store { --hue: var(--c-store); --hue-rgb: var(--c-store-rgb); }
.v-card--charge { --hue: var(--c-charge); --hue-rgb: var(--c-charge-rgb); }

.v-card::before {
  /* cursor spotlight — driven by JS via --mx / --my */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(var(--hue-rgb), 0.14),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.v-card:hover::before { opacity: 1; }
.v-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--hue-rgb), 0.45);
  box-shadow: 0 24px 60px -24px rgba(var(--hue-rgb), 0.35);
}

.v-card__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--hue);
}
.v-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--hue);
  background: rgba(var(--hue-rgb), 0.09);
  border: 1px solid rgba(var(--hue-rgb), 0.25);
}
.v-card__icon svg { width: 32px; height: 32px; }
.v-card p { color: var(--muted); font-size: 0.98rem; flex-grow: 1; }

.v-card__go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--hue);
}
.v-card__go svg { width: 1em; height: 1em; transition: transform 0.35s var(--ease); }
.v-card:hover .v-card__go svg { transform: translateX(4px); }

/* ---------- deep dives ---------- */
.deep {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.deep--flip .deep__text { order: 2; }
.deep--flip .deep__visual { order: 1; }

.deep__text > p:not(.eyebrow) {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 32rem;
}

.deep__list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 0.7rem;
}
.deep__list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text);
  font-size: 1rem;
}
.deep__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background:
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none"><path d="m4 8.5 2.8 2.8L12 5.5" stroke="%2322c55e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')
      center / 0.8rem no-repeat,
    rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.deep__visual {
  padding: clamp(1rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.illus { width: 100%; height: auto; }
.illus--generate { color: var(--c-generate); }
.illus--store { color: var(--c-store); }
.illus--charge { color: var(--c-charge); }

/* illustration micro-motion */
.spin-slow { transform-origin: 310px 80px; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pulse { animation: pulse 3.4s ease-in-out infinite; transform-origin: center; }
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.cell-blink { animation: cell-blink 2.6s ease-in-out infinite; }
@keyframes cell-blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.75; }
}

.dash-flow { animation: dash-flow 2.2s linear infinite; }
@keyframes dash-flow {
  to { stroke-dashoffset: -32; }
}

/* ---------- approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.a-card {
  position: relative;
  padding: 2.2rem 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.a-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 0%),
    rgba(var(--hue-rgb, var(--c-generate-rgb)), 0.1),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.a-card:hover::before { opacity: 1; }
.a-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--hue-rgb, var(--c-generate-rgb)), 0.35);
}

.a-card__num {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1.2rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--on-grad);
  background: var(--page-grad, var(--grad));
}
.a-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  margin-bottom: 1.1rem;
  color: var(--hue, var(--green-soft));
  background: rgba(var(--hue-rgb, var(--c-generate-rgb)), 0.09);
  border: 1px solid rgba(var(--hue-rgb, var(--c-generate-rgb)), 0.25);
}
.a-card__icon svg { width: 26px; height: 26px; }
.a-card p { margin-top: 0.6rem; color: var(--muted); font-size: 0.98rem; }

/* ---------- quote ---------- */
.quote { padding: 7rem 0; text-align: center; }
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}
.quote cite {
  display: block;
  margin-top: 1.6rem;
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__text > p:not(.eyebrow) {
  margin-top: 1.4rem;
  color: var(--muted);
  max-width: 30rem;
}
.contact__details {
  margin-top: 2.2rem;
  display: grid;
  gap: 0.9rem;
}
.contact__row {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1rem;
  width: fit-content;
  transition: color 0.3s var(--ease);
}
.contact__row svg { width: 20px; height: 20px; color: var(--green-soft); flex-shrink: 0; }
a.contact__row:hover { color: var(--lime); }

.contact__form {
  padding: 2.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.2);
  display: grid;
  gap: 1.1rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.field { display: grid; gap: 0.45rem; }
.field span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; }
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(var(--c-charge-rgb), 0.55);
  background: var(--field-focus);
}

.form-note {
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--green-soft);
  text-align: center;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-top: 4.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}
.footer__brand p { margin-top: 1.2rem; color: var(--muted); font-size: 0.95rem; }

.footer__col { display: grid; gap: 0.65rem; align-content: start; }
.footer__col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.footer__col a {
  color: var(--text);
  font-size: 0.95rem;
  width: fit-content;
  transition: color 0.3s var(--ease);
}
.footer__col a:hover { color: var(--lime); }

.footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

/* ============================================================
   Multi-page components
   ============================================================ */

/* ---------- per-vertical page themes ---------- */
.theme-generate { --hue: var(--c-generate); --hue-rgb: var(--c-generate-rgb); --page-grad: var(--grad-generate); }
.theme-store { --hue: var(--c-store); --hue-rgb: var(--c-store-rgb); --page-grad: var(--grad-store); }
.theme-charge { --hue: var(--c-charge); --hue-rgb: var(--c-charge-rgb); --page-grad: var(--grad-charge); }

/* ---------- page hero (vertical pages) ---------- */
.page-hero {
  position: relative;
  padding: 10.5rem 0 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.page-hero__lede {
  margin-top: 1.5rem;
  max-width: 37rem;
  font-size: 1.16rem;
  color: var(--muted);
}
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.3rem;
}

.page-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.page-hero__art {
  padding: clamp(1.2rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 30px 80px -40px rgba(var(--hue-rgb, var(--c-generate-rgb)), 0.35);
}
.page-hero__art svg { width: 100%; height: auto; display: block; }

.crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.crumb a { color: var(--muted); transition: color 0.3s var(--ease); }
.crumb a:hover { color: var(--text); }
.crumb i { font-style: normal; color: var(--muted); opacity: 0.5; }
.crumb strong { color: var(--hue, var(--green-soft)); font-weight: 600; }

/* ---------- generic split (text + anything) ---------- */
.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split__body p { color: var(--muted); font-size: 1.05rem; }
.split__body p + p { margin-top: 1.1rem; }
.split__body .lead { color: var(--text); font-size: 1.18rem; }

/* ---------- grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.mini-card {
  padding: 1.7rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.mini-card:hover {
  border-color: rgba(var(--hue-rgb, var(--c-generate-rgb)), 0.35);
  transform: translateY(-3px);
}
.mini-card svg {
  width: 26px;
  height: 26px;
  color: var(--hue, var(--green-soft));
  margin-bottom: 0.9rem;
}
.mini-card h3 { font-size: 1.05rem; }
.mini-card p { margin-top: 0.45rem; color: var(--muted); font-size: 0.93rem; }

/* ---------- process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step {
  padding: 1.9rem 1.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  background: var(--page-grad, var(--grad));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { margin-top: 0.9rem; font-size: 1.08rem; }
.step p { margin-top: 0.5rem; color: var(--muted); font-size: 0.93rem; }

/* ---------- checklist band ---------- */
.band {
  padding: clamp(2.2rem, 5vw, 3.8rem);
  border-radius: 28px;
  border: 1px solid rgba(var(--hue-rgb, var(--c-charge-rgb)), 0.2);
  background:
    radial-gradient(800px 320px at 8% -15%, rgba(var(--hue-rgb, var(--c-generate-rgb)), 0.13), transparent 60%),
    var(--surface);
}
.deep__list--cols {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.95rem 2rem;
  margin-top: 2.2rem;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 46rem;
  display: grid;
  gap: 0.9rem;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.4rem;
  transition: border-color 0.35s var(--ease);
}
.faq details[open] { border-color: rgba(var(--hue-rgb, var(--c-charge-rgb)), 0.4); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--hue, var(--lime));
}
.faq details p { margin-top: 0.8rem; color: var(--muted); font-size: 0.97rem; }

/* ---------- CTA banner + sibling links ---------- */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding: clamp(2.2rem, 5vw, 3.6rem);
  border-radius: 28px;
  border: 1px solid rgba(var(--hue-rgb, var(--c-charge-rgb)), 0.22);
  background:
    radial-gradient(700px 300px at 8% -20%, rgba(var(--hue-rgb, var(--c-charge-rgb)), 0.15), transparent 60%),
    var(--surface);
}
.cta-banner h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.cta-banner p { margin-top: 0.7rem; color: var(--muted); max-width: 36rem; }

.next-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.next-card {
  --hue: var(--c-generate);
  --hue-rgb: var(--c-generate-rgb);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.next-card:hover {
  border-color: rgba(var(--hue-rgb), 0.5);
  transform: translateY(-3px);
}
.next-card small {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.next-card strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.next-card > svg { width: 18px; height: 18px; color: var(--hue); flex-shrink: 0; }

/* ---------- flywheel diagram ---------- */
.flywheel {
  width: min(470px, 100%);
  height: auto;
  margin-inline: auto;
  display: block;
}
.flywheel text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  fill: var(--text);
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 95;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(5, 25, 14, 0.18);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--c-generate-rgb), 0.5);
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__top { flex-direction: column; align-items: flex-start; }
  .hero__actions { padding-bottom: 0; }
  .triptych { grid-template-columns: 1fr; }
  .panel { min-height: 0; }
  .panel__art { max-width: 420px; align-self: center; }
  .vertical-cards { grid-template-columns: 1fr; }
  .deep { grid-template-columns: 1fr; }
  .deep--flip .deep__text { order: 1; }
  .deep--flip .deep__visual { order: 2; }
  .deep__visual { max-width: 480px; }
  .approach-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__art { max-width: 460px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .steps--3 { grid-template-columns: repeat(2, 1fr); }
  .deep__list--cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    font-size: 1.3rem;
    background: var(--overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .nav__links.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav__burger { display: flex; z-index: 110; }
  .nav__cta { margin-top: 0.5rem; }

  .section { padding: 5rem 0; }
  .field-row { grid-template-columns: 1fr; }
  .bq-br { display: none; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero { padding: 8.5rem 0 3.5rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .steps, .steps--3 { grid-template-columns: 1fr; }
  .deep__list--cols { grid-template-columns: 1fr; }
  .next-grid { grid-template-columns: 1fr; }
}

/* ---------- 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 { opacity: 1; transform: none; }
}
