:root {
  color-scheme: light;
  --bg: #f6f8f5;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --ink: #17221f;
  --muted: #65716b;
  --line: rgba(23, 34, 31, 0.13);
  --accent: #168877;
  --accent-strong: #0d665c;
  --fuel: #c08b2f;
  --battery: #46535d;
  --danger: #b85d3b;
  --radius: 8px;
  --shadow: 0 24px 58px rgba(41, 58, 52, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 6%, rgba(22, 136, 119, 0.12), transparent 30vw),
    linear-gradient(135deg, #fbfcfa 0%, var(--bg) 52%, #e9f0ec 100%);
  color: var(--ink);
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    system-ui,
    sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--fuel));
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left center;
  z-index: 30;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(23, 34, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 34, 31, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
  z-index: 20;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: min(1440px, calc(100% - 36px));
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: rgba(249, 251, 249, 0.86);
  box-shadow: 0 14px 40px rgba(41, 58, 52, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.top-links,
.status-pill {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(22, 136, 119, 0.4);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 46%, rgba(22, 136, 119, 0.82) 46% 54%, transparent 54%),
    radial-gradient(circle, rgba(22, 136, 119, 0.2), rgba(22, 136, 119, 0.05));
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.72);
}

.top-links {
  justify-content: center;
  gap: 8px;
}

.top-links a {
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 14px;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.top-links a:hover {
  background: rgba(22, 136, 119, 0.08);
  color: var(--ink);
}

.status-pill {
  justify-self: end;
  gap: 8px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(22, 136, 119, 0.1);
  animation: breathe 2.4s ease-in-out infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(620px, 1.22fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
  width: min(1440px, calc(100% - 44px));
  min-height: calc(100dvh - 84px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 84px) 0 30px;
}

.hero-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 0;
  color: #3f4c47;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.86;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.secondary-link,
.phase-button,
.play-toggle {
  border: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
}

.primary-link {
  background: var(--ink);
  color: white;
  box-shadow: 0 18px 34px rgba(23, 34, 31, 0.18);
}

.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.primary-link:hover,
.secondary-link:hover,
.phase-button:hover,
.play-toggle:hover {
  transform: translateY(-1px);
}

.primary-link:active,
.secondary-link:active,
.phase-button:active,
.play-toggle:active {
  transform: translateY(1px) scale(0.99);
}

.phase-panel {
  width: min(620px, 100%);
  border-left: 3px solid var(--accent);
  padding: 14px 0 14px 18px;
}

.phase-panel p:first-child {
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.phase-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.1;
}

.phase-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.68;
}

.system-demo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  min-height: auto;
  min-width: 0;
}

.conversion-board {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(22, 136, 119, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(22, 136, 119, 0.06) 1px, transparent 1px),
    rgba(255, 255, 255, 0.78);
  background-size: 44px 44px;
  box-shadow: var(--shadow);
}

.conversion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.conversion-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.conversion-head strong {
  font-size: clamp(20px, 2vw, 28px);
}

.conversion-lane {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.82fr) minmax(280px, 1.16fr) minmax(190px, 0.82fr);
  gap: 14px;
  align-items: stretch;
}

.conversion-lane::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(70, 83, 93, 0.22), rgba(22, 136, 119, 0.72), rgba(192, 139, 47, 0.62));
  transform: translateY(-50%);
}

.conversion-end,
.conversion-track {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(22, 136, 119, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 30px rgba(41, 58, 52, 0.07);
  transition:
    border-color 280ms ease,
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    background 280ms ease;
}

.conversion-end {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
}

.conversion-end::after,
.conversion-track::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  width: 22px;
  height: 22px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

.result-end::after {
  display: none;
}

.step-index {
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}

.conversion-end h3,
.track-step h3 {
  margin-bottom: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.16;
}

.conversion-end p,
.track-step p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.48;
}

.step-photo {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 8.4;
  background: rgba(255, 255, 255, 0.72);
}

.step-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.source-end .step-photo img {
  padding: 8px;
}

.dark-photo {
  background: #111a25;
}

.dark-photo img {
  object-fit: cover;
}

.conversion-track {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.track-title {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.track-title span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.track-title strong {
  font-size: 15px;
  line-height: 1.3;
}

.track-steps {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.track-steps::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--battery), var(--accent), var(--fuel));
  opacity: 0.35;
}

.track-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  border: 1px solid rgba(23, 34, 31, 0.1);
  border-radius: var(--radius);
  padding: 9px;
  background: rgba(255, 255, 255, 0.78);
  transition:
    border-color 280ms ease,
    background 280ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.track-step > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(22, 136, 119, 0.28);
  border-radius: 50%;
  background: #f8fbf8;
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}

.track-step h3 {
  font-size: 16px;
}

.track-step p {
  font-size: 12px;
}

.track-step b {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.conversion-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.conversion-summary span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  line-height: 1.34;
}

.conversion-summary span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(22, 136, 119, 0.62);
  border-right: 2px solid rgba(22, 136, 119, 0.62);
  background: transparent;
  transform: translateY(-50%) rotate(45deg);
}

body[data-phase="0"] .source-end,
body[data-phase="1"] .demand-step,
body[data-phase="2"] .module-step,
body[data-phase="3"] .ems-step,
body[data-phase="3"] .bus-step,
body[data-phase="4"] .ems-step,
body[data-phase="4"] .bus-step,
body[data-phase="5"] .result-end {
  border-color: rgba(22, 136, 119, 0.62);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.robot-reference,
.energy-map {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.robot-reference {
  display: grid;
  align-content: space-between;
  padding: 18px;
}

.reference-label {
  display: grid;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.reference-label span,
.map-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reference-label strong,
.map-heading strong {
  font-size: 18px;
}

.robot-reference img {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  object-fit: cover;
  object-position: 88% 50%;
  border-radius: var(--radius);
  filter: saturate(0.95) contrast(1.04);
  transform: scale(1.2);
  animation: referenceFloat 6s ease-in-out infinite;
}

.robot-reference p {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.energy-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto repeat(3, minmax(118px, 1fr));
  gap: 12px;
  min-height: 640px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(22, 136, 119, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(22, 136, 119, 0.06) 1px, transparent 1px),
    rgba(255, 255, 255, 0.72);
  background-size: 44px 44px;
}

.map-heading {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  z-index: 3;
}

.schematic-lines {
  position: absolute;
  inset: 90px 18px 18px;
  width: calc(100% - 36px);
  height: calc(100% - 108px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.72;
}

.line {
  fill: none;
  stroke: rgba(23, 34, 31, 0.16);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 9 14;
  opacity: 0.8;
  transition:
    stroke 300ms ease,
    opacity 300ms ease,
    stroke-width 300ms ease;
}

.node {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 118px;
  border: 1px solid rgba(23, 34, 31, 0.11);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 34px rgba(41, 58, 52, 0.08);
  opacity: 0.42;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 300ms ease,
    background 300ms ease;
}

.node span {
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 900;
}

.node strong {
  font-size: 17px;
}

.node small {
  color: var(--muted);
  line-height: 1.45;
}

.h2-node {
  grid-column: 1;
  grid-row: 2;
}

.fuel-node {
  grid-column: 2;
  grid-row: 2;
}

.dc-node {
  grid-column: 3;
  grid-row: 2;
}

.ems-node {
  grid-column: 2;
  grid-row: 3;
}

.buffer-node {
  grid-column: 3;
  grid-row: 3;
}

.switch-node {
  grid-column: 1;
  grid-row: 4;
}

.bus-node {
  grid-column: 2;
  grid-row: 4;
}

.robot-node {
  grid-column: 3;
  grid-row: 4;
  transform: translateY(10px) scale(0.98);
}

.safety-node {
  grid-column: 1;
  grid-row: 3;
}

body[data-phase="0"] .buffer-node,
body[data-phase="0"] .bus-node,
body[data-phase="0"] .robot-node,
body[data-phase="1"] .buffer-node,
body[data-phase="1"] .bus-node,
body[data-phase="1"] .robot-node,
body[data-phase="2"] .h2-node,
body[data-phase="2"] .fuel-node,
body[data-phase="2"] .dc-node,
body[data-phase="2"] .ems-node,
body[data-phase="2"] .buffer-node,
body[data-phase="3"] .dc-node,
body[data-phase="3"] .ems-node,
body[data-phase="3"] .switch-node,
body[data-phase="3"] .bus-node,
body[data-phase="3"] .robot-node,
body[data-phase="4"] .safety-node,
body[data-phase="4"] .ems-node,
body[data-phase="4"] .robot-node,
body[data-phase="5"] .h2-node,
body[data-phase="5"] .fuel-node,
body[data-phase="5"] .dc-node,
body[data-phase="5"] .ems-node,
body[data-phase="5"] .buffer-node,
body[data-phase="5"] .switch-node,
body[data-phase="5"] .bus-node,
body[data-phase="5"] .robot-node,
body[data-phase="5"] .safety-node {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body[data-phase="2"] .line-h2,
body[data-phase="2"] .line-fuel,
body[data-phase="2"] .line-dc,
body[data-phase="2"] .line-buffer,
body[data-phase="3"] .line-dc,
body[data-phase="3"] .line-ems,
body[data-phase="3"] .line-switch,
body[data-phase="4"] .line-safety,
body[data-phase="5"] .line {
  stroke: var(--accent);
  stroke-width: 5;
  opacity: 0.9;
  animation: lineFlow 1.6s linear infinite;
}

body[data-phase="1"] .buffer-node,
body[data-phase="1"] .line-buffer {
  border-color: rgba(70, 83, 93, 0.32);
  stroke: var(--battery);
}

body[data-phase="4"] .safety-node,
body[data-phase="4"] .line-safety {
  border-color: rgba(184, 93, 59, 0.38);
  stroke: var(--danger);
}

body[data-phase="5"] .node {
  border-color: rgba(22, 136, 119, 0.34);
}

.phase-dock {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(1240px, calc(100% - 32px));
  margin: 14px auto 56px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(249, 251, 249, 0.86);
  box-shadow: 0 18px 48px rgba(41, 58, 52, 0.11);
  backdrop-filter: blur(18px);
}

.phase-button {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.phase-button span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.phase-button.is-active {
  background: var(--ink);
  color: white;
}

.play-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 900;
}

.play-icon {
  width: 13px;
  height: 13px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.play-toggle[aria-pressed="false"] .play-icon {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  border-right: 0;
}

.telemetry,
.upgrade,
.accuracy,
.logic,
.comparison,
.timeline {
  width: min(1320px, calc(100% - 44px));
  margin: 0 auto;
}

.telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 20px 54px rgba(41, 58, 52, 0.08);
}

.telemetry article {
  display: grid;
  gap: 10px;
  min-height: 138px;
  padding: clamp(20px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.76);
}

.telemetry span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.telemetry strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
}

.upgrade,
.accuracy,
.logic,
.comparison,
.timeline {
  padding-top: clamp(76px, 10vw, 132px);
}

.timeline {
  padding-bottom: clamp(76px, 10vw, 132px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(20px, 6vw, 90px);
  align-items: end;
  margin-bottom: clamp(26px, 4vw, 54px);
}

.upgrade > .section-heading,
.logic > .section-heading {
  grid-template-columns: 1fr;
  gap: 12px;
}

.section-heading.compact {
  display: block;
  max-width: 820px;
}

.section-heading.label-only {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-heading h2.single-line-heading {
  white-space: nowrap;
}

.section-heading h2.logic-title {
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.12;
}

.section-heading h2 span {
  display: block;
}

.accuracy-grid,
.module-plan,
.logic-grid,
.timeline-track {
  display: grid;
  gap: 14px;
}

.upgrade-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.upgrade-side {
  display: grid;
  gap: 18px;
  min-height: 470px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  background:
    radial-gradient(circle at 72% 20%, rgba(22, 136, 119, 0.11), transparent 32%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(41, 58, 52, 0.08);
}

.lithium-side {
  background:
    radial-gradient(circle at 78% 18%, rgba(70, 83, 93, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.78);
}

.upgrade-side > p {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 900;
}

.lithium-side > p {
  color: var(--battery);
}

.upgrade-side h3 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
}

.robot-photo-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(90deg, rgba(23, 34, 31, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(23, 34, 31, 0.05) 1px, transparent 1px),
    rgba(255, 255, 255, 0.72);
  background-size: 34px 34px;
}

.robot-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lithium-photo img {
  padding: 10px;
}

.hydrogen-photo {
  background:
    radial-gradient(circle at 48% 24%, rgba(22, 136, 119, 0.22), transparent 34%),
    #111a25;
}

.hydrogen-photo img {
  padding: 0;
  filter: saturate(1.04) contrast(1.02);
}

.upgrade-side dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.upgrade-side dl div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.upgrade-side dt {
  color: var(--muted);
  font-size: 13px;
}

.upgrade-side dd {
  margin: 6px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 900;
}

.upgrade-arrow {
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-weight: 900;
}

.upgrade-arrow::before {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  background: linear-gradient(90deg, var(--battery), var(--accent));
}

.upgrade-arrow span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(22, 136, 119, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 38px rgba(41, 58, 52, 0.1);
}

.module-plan {
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 14px;
}

.module-card {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(41, 58, 52, 0.07);
}

.module-card span {
  display: block;
  margin-bottom: 36px;
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 900;
}

.module-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.module-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.flow-board {
  display: grid;
  grid-template-columns: 1fr 0.72fr 1fr 0.72fr 1fr 0.72fr 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(22, 136, 119, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(22, 136, 119, 0.06) 1px, transparent 1px),
    rgba(255, 255, 255, 0.72);
  background-size: 36px 36px;
}

.flow-node,
.flow-return {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  font-weight: 900;
  line-height: 1.5;
}

.flow-link {
  position: relative;
  min-height: 38px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.flow-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #7ed75f);
  animation: mainFlow 1.4s linear infinite;
}

.flow-return {
  grid-column: 3 / span 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  border-color: rgba(122, 71, 183, 0.28);
}

.flow-return span {
  flex-basis: 100%;
  color: var(--ink);
}

.flow-return b {
  color: var(--muted);
  font-size: 13px;
}

.accuracy-grid {
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
}

.accuracy-grid article,
.upgrade-side,
.module-card,
.logic-card,
.timeline-track article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 42px rgba(41, 58, 52, 0.07);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms ease,
    transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease;
}

.accuracy-grid article.is-visible,
.upgrade-side.is-visible,
.module-card.is-visible,
.logic-card.is-visible,
.timeline-track article.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.accuracy-grid article {
  min-height: 210px;
  padding: 24px;
}

.accuracy-grid span,
.logic-card span,
.timeline-track span {
  display: block;
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
}

.accuracy-grid span {
  margin-bottom: 38px;
  font-size: 18px;
}

.accuracy-grid p,
.logic-card p,
.timeline-track p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.74;
}

.logic-grid {
  grid-template-columns: repeat(12, 1fr);
}

.logic-card {
  min-height: 260px;
  padding: 24px;
}

.logic-card:nth-child(1) {
  grid-column: span 4;
}

.logic-card:nth-child(2) {
  grid-column: span 5;
  margin-top: 52px;
}

.logic-card:nth-child(3) {
  grid-column: span 3;
}

.logic-card:nth-child(4) {
  grid-column: 2 / span 4;
}

.logic-card:nth-child(5) {
  grid-column: span 4;
  margin-top: -30px;
}

.logic-card:nth-child(6) {
  grid-column: span 3;
}

.logic-card.is-active {
  border-color: rgba(22, 136, 119, 0.48);
  background: rgba(255, 255, 255, 0.9);
}

.logic-card span {
  margin-bottom: 46px;
}

.logic-card h3,
.timeline-track h3 {
  margin-bottom: 14px;
  font-size: 25px;
}

.comparison-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.comparison-table > div {
  display: grid;
  grid-template-columns: 0.72fr 1fr 1fr;
  gap: 1px;
}

.comparison-table span,
.comparison-table strong {
  display: block;
  padding: 17px 18px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.55;
}

.comparison-table > div:first-child span {
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.comparison-table span {
  color: var(--muted);
}

.comparison-table strong {
  font-weight: 900;
}

.timeline-track {
  grid-template-columns: repeat(4, 1fr);
}

.timeline-track article {
  min-height: 260px;
  padding: 24px;
}

.timeline-track article:nth-child(even) {
  margin-top: 46px;
}

.timeline-track span {
  margin-bottom: 42px;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.28);
    opacity: 1;
  }
}

@keyframes referenceFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes lineFlow {
  to {
    stroke-dashoffset: -46;
  }
}

@keyframes cylinderPulse {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.35) brightness(1.08);
  }
}

@keyframes mainFlow {
  to {
    background-position: 36px 0;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .top-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .system-demo {
    min-height: auto;
  }

  .accuracy-grid,
  .module-plan,
  .timeline-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .upgrade-stage {
    grid-template-columns: 1fr;
  }

  .upgrade-arrow {
    min-height: 76px;
  }

  .logic-card:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }

  .logic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .hero {
    width: min(100% - 28px, 900px);
    padding-top: 34px;
  }

  .conversion-lane {
    grid-template-columns: 1fr;
  }

  .conversion-lane::before {
    left: 50%;
    right: auto;
    top: 16px;
    bottom: 16px;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }

  .conversion-end::after,
  .conversion-track::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -20px;
    transform: translateX(-50%) rotate(135deg);
  }

  .conversion-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading h2.single-line-heading {
    white-space: normal;
  }

  .section-heading h2.logic-title {
    font-size: clamp(28px, 4vw, 42px);
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .conversion-end {
    grid-template-columns: minmax(220px, 0.46fr) minmax(0, 1fr);
    align-items: center;
  }

  .conversion-end .step-index {
    grid-column: 1 / -1;
  }

  .conversion-end .step-photo {
    grid-row: 2 / span 2;
    aspect-ratio: 16 / 9;
  }

  .conversion-end h3,
  .conversion-end p {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .topbar,
  .hero,
  .phase-dock,
  .telemetry,
  .upgrade,
  .accuracy,
  .logic,
  .comparison,
  .timeline {
    width: min(100% - 24px, 1320px);
  }

  .topbar {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }

  .status-pill {
    justify-self: start;
  }

  h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

  h1 span {
    white-space: normal;
  }

  .upgrade,
  .accuracy,
  .logic,
  .comparison,
  .timeline {
    padding-top: clamp(58px, 16vw, 86px);
  }

  .system-demo,
  .telemetry,
  .module-plan,
  .accuracy-grid,
  .logic-grid,
  .timeline-track {
    grid-template-columns: 1fr;
  }

  .conversion-board {
    padding: 14px;
  }

  .conversion-head {
    display: grid;
  }

  .conversion-lane {
    grid-template-columns: 1fr;
  }

  .conversion-lane::before {
    left: 50%;
    right: auto;
    top: 16px;
    bottom: 16px;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }

  .conversion-end::after,
  .conversion-track::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -20px;
    transform: translateX(-50%) rotate(135deg);
  }

  .conversion-summary {
    grid-template-columns: 1fr;
  }

  .conversion-summary span:not(:last-child)::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -8px;
    transform: translateX(-50%) rotate(135deg);
  }

  .upgrade-stage,
  .flow-board {
    grid-template-columns: 1fr;
  }

  .flow-link {
    min-height: 48px;
  }

  .flow-link::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 4px;
    height: auto;
  }

  .flow-return {
    grid-column: auto;
  }

  .upgrade-side dl {
    grid-template-columns: 1fr;
  }

  .system-demo {
    min-height: auto;
  }

  .robot-reference img {
    aspect-ratio: 16 / 10;
  }

  .energy-map {
    min-height: 720px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .map-heading {
    display: grid;
  }

  .node {
    min-width: 128px;
  }

  .energy-map .node {
    grid-column: 1;
    grid-row: auto;
  }

  .schematic-lines {
    display: none;
  }

  .phase-dock {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: var(--radius);
  }

  .phase-button,
  .play-toggle {
    border-radius: var(--radius);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }

  .section-heading h2 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .comparison-table > div {
    grid-template-columns: 1fr;
  }

  .timeline-track article:nth-child(even) {
    margin-top: 0;
  }
}

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