:root {
  --ink: #1A1D21;
  --green: #0E8A78;
  --green-deep: #0B6E60;
  --paper: #ffffff;
  --mist: #F3F6F5;
  --line: rgba(26, 29, 33, 0.12);
  --muted: #5C6562;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
svg { display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: #d7efe9; }
[hidden] { display: none !important; }

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 6;
}
.skip:focus { top: 12px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo svg { width: 22px; height: 31px; }
.logo span { font-weight: 600; font-size: 18px; letter-spacing: -0.045em; }
.logo em { font-style: normal; color: var(--green); }
.nav-tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}
.lang-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn[aria-expanded="true"] { border-color: var(--green); }
.lang-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(26, 29, 33, 0.18);
}
.lang-list .lang-flag { width: 32px; height: 24px; }

.lang-modal {
  width: min(520px, calc(100% - 32px));
  max-height: min(680px, calc(100% - 48px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: white;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(26, 29, 33, 0.22);
  overflow: hidden;
}
.lang-modal::backdrop { background: rgba(26, 29, 33, 0.48); }
.lang-card {
  display: flex;
  flex-direction: column;
  max-height: min(680px, calc(100vh - 48px));
  padding: 22px;
}
.lang-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.lang-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.lang-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  cursor: pointer;
}
.lang-close svg { width: 16px; height: 16px; }
.lang-close:hover { background: #e6eeeb; }
.lang-list {
  list-style: none;
  margin: 0;
  padding: 2px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  overflow: auto;
}
.lang-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: start;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.lang-list button:hover { background: var(--mist); }
.lang-list button[aria-selected="true"] { background: #e7f5f2; color: var(--green-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--green);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
}
.btn:hover { background: var(--green-deep); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--mist); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.hero, .stage-head, .stage-grid {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}
.hero { padding: 72px 0 28px; }
.hero:not(.gate) {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.82fr);
  gap: 36px;
  align-items: center;
}
.kicker {
  margin: 0 0 14px;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3 { letter-spacing: -0.045em; font-weight: 500; }
h1 {
  margin: 0;
  max-width: 12em;
  font-size: clamp(44px, 4.8vw, 72px);
  line-height: 1.02;
}
h1 em {
  display: block;
  margin-top: 0.1em;
  padding-inline-end: 0.12em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.12;
  color: var(--green);
}
.lede { max-width: 46ch; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.marks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.marks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.marks li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.hero-art svg { width: min(100%, 480px); height: auto; display: block; margin-inline: auto; overflow: visible; }
.hero-art .lane { --cycle: 7.2s; --delay: calc(var(--i) * 2.4s); }
.hero-art .span {
  fill: none;
  stroke: rgba(26, 29, 33, 0.16);
  stroke-width: 1.5;
  stroke-linecap: round;
  animation: hero-wire var(--cycle) ease-in-out var(--delay) infinite;
}
.hero-art .pulse {
  fill: none;
  stroke: #0E8A78;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 14 86;
  stroke-dashoffset: 100;
  opacity: 0;
  animation: hero-pulse var(--cycle) linear var(--delay) infinite;
}
.hero-art .node rect {
  fill: #fff;
  stroke: rgba(26, 29, 33, 0.16);
  stroke-width: 1.25;
  animation: hero-card var(--cycle) ease-in-out var(--delay) infinite;
}
.hero-art .node .label {
  fill: rgba(26, 29, 33, 0.62);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  animation: hero-label var(--cycle) ease-in-out var(--delay) infinite;
}
.hero-art .check { opacity: 0; transform-box: fill-box; transform-origin: center; animation: hero-check var(--cycle) ease-in-out var(--delay) infinite; }
.hero-art .check circle { fill: #0E8A78; }
.hero-art .check path { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hero-wire {
  0%, 8%, 32%, 100% { stroke: rgba(26, 29, 33, 0.16); stroke-width: 1.5; }
  12%, 28% { stroke: #0E8A78; stroke-width: 1.9; }
}
@keyframes hero-pulse {
  0%, 8% { opacity: 0; stroke-dashoffset: 100; }
  10% { opacity: 1; }
  24% { opacity: 1; stroke-dashoffset: 0; }
  30%, 100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes hero-card {
  0%, 10%, 34%, 100% { fill: #fff; stroke: rgba(26, 29, 33, 0.16); }
  18%, 30% { fill: #e7f5f2; stroke: #0E8A78; }
}
@keyframes hero-label {
  0%, 10%, 34%, 100% { fill: rgba(26, 29, 33, 0.62); }
  18%, 30% { fill: #0B6E60; }
}
@keyframes hero-check {
  0%, 16%, 34%, 100% { opacity: 0; transform: scale(0.7); }
  20%, 30% { opacity: 1; transform: scale(1); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.stage { padding: 64px 0 24px; }
.stage-head h2 { margin: 0; max-width: 18ch; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.stage-head p:last-child { color: var(--muted); max-width: 46ch; }
.stage-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
.modules { display: grid; align-content: start; }
.modules button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: start;
  padding: 15px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}
.modules button span { color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.modules button b { font-weight: 500; letter-spacing: -0.03em; font-size: 17px; }
.modules button[aria-selected="true"] { color: var(--ink); background: var(--mist); border-radius: 14px; border-bottom-color: transparent; }
.modules button[aria-selected="true"]::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--green);
  border-radius: 2px;
}

.modules button { transition: color 0.25s ease, background-color 0.25s ease; }
.modules button:hover { color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.reel { display: grid; }

.canvas {
  --mx: 72%;
  --my: 18%;
  --glow: #2BC2A8;
  position: relative;
  display: grid;
  isolation: isolate;
  background: #16191C;
  color: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 80px -48px rgba(11, 110, 96, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.canvas::before, .canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.canvas::before { background: radial-gradient(560px circle at var(--mx) var(--my), rgba(14, 138, 120, 0.28), transparent 62%); }
.canvas::after {
  background: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.5px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 35%, black 30%, transparent 78%);
}
.canvas-top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.live { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.86); }
.live em { font-style: normal; color: var(--glow); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--glow); animation: beacon 2s ease-out infinite; }
@keyframes beacon {
  from { box-shadow: 0 0 0 0 rgba(43, 194, 168, 0.55); }
  to { box-shadow: 0 0 0 9px rgba(43, 194, 168, 0); }
}
.count { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.count b { color: white; font-weight: 600; }
.progress { position: absolute; inset: 0 0 auto; z-index: 3; height: 2px; background: rgba(255, 255, 255, 0.06); }
.progress i {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--green), var(--glow));
}
[dir="rtl"] .progress i { transform-origin: right center; background: linear-gradient(270deg, var(--green), var(--glow)); }
.progress.run i { animation: fill var(--wait, 5200ms) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

.panel {
  grid-area: 1 / 1;
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 64px 32px 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.985);
  filter: blur(8px);
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.55s ease, visibility 0s linear 0.7s;
}
.panel.on { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }
.panel:not(.on) *, .panel:not(.on) *::before, .panel:not(.on) *::after { animation-play-state: paused; }
.kicker.light { color: #8ED9CB; }
.panel-copy h3 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 40px); }
.panel-copy p { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, 0.72); }
.panel.on .panel-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.panel.on .panel-copy > :nth-child(2) { animation-delay: 0.08s; }
.panel.on .panel-copy > :nth-child(3) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; scale: 0.85; } }
@keyframes draw { from { stroke-dashoffset: 100; } }
@keyframes spin { to { transform: rotate(360deg); } }

.scene {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  aspect-ratio: 2 / 1;
  direction: ltr;
  container-type: inline-size;
}
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.at { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.at.start { transform: translate(0, -50%); }
.at.end { transform: translate(-100%, -50%); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
  font-size: clamp(9px, 2.05cqw, 14px);
  font-weight: 500;
  line-height: 1;
  padding: 0.62em 0.95em;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(24, 28, 31, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0.6em 1.6em -0.6em rgba(0, 0, 0, 0.6);
}
.pill b { font-weight: 500; }
.pill.muted { color: rgba(255, 255, 255, 0.55); }
.pill.hot {
  color: #C9F3EA;
  background: rgba(13, 62, 55, 0.94);
  border-color: rgba(43, 194, 168, 0.85);
  box-shadow: 0 0 0 0.3em rgba(43, 194, 168, 0.12), 0 0 2.4em rgba(43, 194, 168, 0.38);
}
.pill.hot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(43, 194, 168, 0.7);
  pointer-events: none;
  animation: halo 2.4s ease-out infinite;
}
@keyframes halo { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.16, 1.6); opacity: 0; } }
.pill .dot { width: 0.5em; height: 0.5em; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.ico { width: 1.2em; height: 1.2em; flex: none; }

.wire { fill: none; stroke: rgba(255, 255, 255, 0.13); stroke-width: 1.5; }
.wire.lit { stroke: rgba(43, 194, 168, 0.4); stroke-width: 2; }
.wire.dashed { stroke-dasharray: 3 7; }
.wire.trunk { stroke: rgba(43, 194, 168, 0.35); stroke-width: 3; }
.flow {
  fill: none;
  stroke: var(--glow);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 5 95;
  stroke-dashoffset: 100;
}
.flow.dim { stroke: #8ED9CB; opacity: 0.55; }
.flow.best { stroke-width: 3.5; filter: url(#glow); }
.flow.stream { stroke: rgba(255, 255, 255, 0.7); stroke-width: 3; stroke-dasharray: 8 12; }
.flow.stream.best { stroke: var(--glow); }
.panel.on .flow { animation: flow var(--d, 2.4s) linear var(--delay, 0s) infinite; }
.panel.on .flow.stream { animation: stream-run var(--d, 0.9s) linear infinite; }
@keyframes flow { from { stroke-dashoffset: var(--len, 100); } to { stroke-dashoffset: 0; } }
@keyframes stream-run { to { stroke-dashoffset: -20; } }

.sim-node {
  --sim-fill: rgba(255, 255, 255, 0.04);
  --sim-span: var(--glow);
  width: 9cqw;
  aspect-ratio: 8.8 / 12.3;
  color: white;
  filter: drop-shadow(0 0 1.4cqw rgba(43, 194, 168, 0.5));
}
.sim-node svg { width: 100%; height: 100%; overflow: visible; }
.sim-node.big { width: 12cqw; }
.panel.on .sim-node { animation: pop 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }

.core {
  display: grid;
  place-items: center;
  width: 11cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--glow);
  background: radial-gradient(circle, rgba(43, 194, 168, 0.28), rgba(22, 25, 28, 0.96) 70%);
  border: 1px solid rgba(43, 194, 168, 0.55);
  box-shadow: 0 0 3cqw rgba(43, 194, 168, 0.35);
}
.core::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(43, 194, 168, 0.6);
  animation: halo-round 2.4s ease-out infinite;
}
@keyframes halo-round { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.7); opacity: 0; } }
.core .ico { width: 46%; height: 46%; }
.core .arc path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.s-sales .bars rect {
  fill: #fff;
  fill-opacity: calc(0.08 + var(--i) * 0.022);
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.s-sales .bars .top { fill: var(--glow); fill-opacity: 1; filter: url(#glow); }
.panel.on .s-sales .bars rect { animation: grow 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i) * 55ms + 0.15s) backwards; }
@keyframes grow { from { transform: scaleY(0); } }
.s-sales .baseline, .s-profit .grid { fill: none; stroke: rgba(255, 255, 255, 0.12); }

.s-profit .grid { stroke-dasharray: 2 6; }
.s-profit .area { fill: url(#margin); }
.s-profit .cost { fill: none; stroke: rgba(255, 255, 255, 0.4); stroke-width: 2; stroke-dasharray: 5 6; }
.s-profit .gain {
  fill: none;
  stroke: var(--glow);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  filter: url(#glow);
}
.s-profit .tip { fill: white; stroke: var(--glow); stroke-width: 3; }
.s-profit .ping {
  fill: none;
  stroke: var(--glow);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 2s ease-out infinite;
}
@keyframes ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(4); opacity: 0; } }
.panel.on .s-profit .gain { animation: draw 1.6s cubic-bezier(0.4, 0.1, 0.2, 1) 0.2s backwards; }
.panel.on .s-profit .area { animation: fade 1s ease 1.1s backwards; }
.panel.on .s-profit .tip { animation: fade 0.4s ease 1.6s backwards; }
.panel.on .s-profit .pill.hot { animation: pop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 1.6s backwards; }

.s-speed .ticks path { stroke: rgba(255, 255, 255, 0.22); stroke-width: 2; stroke-linecap: round; }
.s-speed .track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 14; stroke-linecap: round; }
.s-speed .sweep { fill: none; stroke: url(#sweep); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 100; }
.s-speed .comet { stroke: white; stroke-width: 6; stroke-dasharray: 4 96; filter: url(#glow); }
.panel.on .s-speed .sweep { animation: draw 1.1s cubic-bezier(0.3, 0.9, 0.3, 1) 0.15s backwards; }
.panel.on .s-speed .pill.hot { animation: pop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 1s backwards; }

.s-yours .ring { fill: none; stroke: rgba(255, 255, 255, 0.12); transform-box: fill-box; transform-origin: center; }
.s-yours .ring.spin { stroke: rgba(43, 194, 168, 0.55); stroke-width: 1.5; stroke-dasharray: 2 10; animation: spin 40s linear infinite; }
.s-yours .ring.back { stroke-dasharray: 1 6; animation-duration: 26s; animation-direction: reverse; }
.badge {
  display: grid;
  place-items: center;
  width: 5.2cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #0B2E28;
  background: var(--glow);
  box-shadow: 0 0 0 0.8cqw rgba(43, 194, 168, 0.18), 0 0 2.4cqw rgba(43, 194, 168, 0.5);
}
.badge .ico { width: 62%; height: 62%; }
.panel.on .badge { animation: pop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s backwards; }
.pill.travel, .log time, .log li span { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 0.94em; letter-spacing: 0; }
.pill.travel { font-size: clamp(9px, 1.9cqw, 13px); color: #C9F3EA; border-color: rgba(43, 194, 168, 0.6); opacity: 0; }
.panel.on .pill.travel { animation: travel 3.2s cubic-bezier(0.5, 0, 0.3, 1) 0.6s infinite; }
@keyframes travel {
  0% { left: 60%; opacity: 0; }
  15%, 75% { opacity: 1; }
  100% { left: 86%; opacity: 0; }
}

.tiles {
  position: absolute;
  inset: 3% 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 2.4cqw;
}
.tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 1.6cqw;
  row-gap: 0.5cqw;
  padding: 2cqw 2.2cqw;
  border-radius: 2.4cqw;
  font-size: clamp(8px, 1.9cqw, 13px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.tile .sim-ico { --sim-span: var(--glow); grid-row: 1 / 3; align-self: center; width: 3.4cqw; height: auto; aspect-ratio: 8.8 / 12.3; color: white; }
.t-name { font-weight: 600; color: white; letter-spacing: 0.02em; }
.t-state { grid-column: 2; display: grid; color: #8ED9CB; }
.t-state b { grid-area: 1 / 1; font-weight: 500; }
.t-state .s-off { opacity: 0; color: rgba(255, 255, 255, 0.6); }
.toggle {
  position: relative;
  grid-row: 1 / 3;
  grid-column: 3;
  align-self: center;
  width: 4.6cqw;
  height: 2.6cqw;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 1.6cqw rgba(43, 194, 168, 0.4);
}
.toggle i { position: absolute; top: 0.3cqw; left: 0.3cqw; width: 2cqw; height: 2cqw; border-radius: 50%; background: white; transform: translateX(2cqw); }
.tile.off { opacity: 0.5; }
.tile.off .toggle { background: rgba(255, 255, 255, 0.18); box-shadow: none; }
.tile.off .toggle i { transform: none; }
.tile.off .t-state { color: rgba(255, 255, 255, 0.6); }
.panel.on .tile { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i) * 70ms) backwards; }
.panel.on .tile.flip { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.14s backwards, dim 4.8s ease-in-out 1s infinite; }
.panel.on .tile.flip .toggle { animation: switch-bg 4.8s ease-in-out 1s infinite; }
.panel.on .tile.flip .toggle i { animation: knob 4.8s ease-in-out 1s infinite; }
.panel.on .tile.flip .s-on { animation: state-on 4.8s ease-in-out 1s infinite; }
.panel.on .tile.flip .s-off { animation: state-off 4.8s ease-in-out 1s infinite; }
@keyframes dim { 0%, 42%, 100% { opacity: 1; } 50%, 92% { opacity: 0.5; } }
@keyframes switch-bg {
  0%, 42%, 100% { background: var(--green); box-shadow: 0 0 1.6cqw rgba(43, 194, 168, 0.4); }
  50%, 92% { background: rgba(255, 255, 255, 0.18); box-shadow: none; }
}
@keyframes knob { 0%, 42%, 100% { transform: translateX(2cqw); } 50%, 92% { transform: none; } }
@keyframes state-on { 0%, 42%, 100% { opacity: 1; } 50%, 92% { opacity: 0; } }
@keyframes state-off { 0%, 42%, 100% { opacity: 0; } 50%, 92% { opacity: 1; } }

.log {
  position: absolute;
  inset: 2% 4%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: clamp(9px, 1.95cqw, 14px);
}
.log-head {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 0.9em;
  font-size: 0.85em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.rec { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--glow); animation: beacon 2s ease-out infinite; }
.log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8cqw; }
.log li {
  position: relative;
  display: grid;
  grid-template-columns: 6.5em 1fr auto;
  align-items: center;
  gap: 1em;
  padding: 0.6em 1em;
  line-height: 1.2;
  border-radius: 0.8em;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.log time { color: rgba(255, 255, 255, 0.45); }
.log li span { color: rgba(255, 255, 255, 0.88); }
.log li b { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.92em; font-weight: 500; color: #8ED9CB; }
.log li em { font-style: normal; }
.log li.new { border-color: rgba(43, 194, 168, 0.5); background: rgba(14, 138, 120, 0.14); }
.log li.new::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(43, 194, 168, 0.22), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.8s ease-in-out 1s infinite;
}
@keyframes shimmer { 60%, 100% { transform: translateX(100%); } }
.panel.on .log li { animation: slot 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i) * 80ms + 0.1s) backwards; }
@keyframes slot { from { opacity: 0; transform: translateY(-12px); } }

.access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background: var(--ink);
  color: white;
  margin-top: 72px;
  padding: 88px max(32px, calc((100% - 1180px) / 2));
}
.access p { color: rgba(255,255,255,.72); max-width: 42ch; }
.access h2 { margin: 0 0 12px; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
form {
  background: white;
  color: var(--ink);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  gap: 14px;
}
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 500;
}
textarea { resize: vertical; }
.split { display: grid; grid-template-columns: 1fr 0.6fr; gap: 12px; }
.hp { position: absolute; inset-inline-start: -9999px; height: 0; width: 0; }
.form-status { min-height: 1.4em; margin: 0; font-size: 14px; }
.form-status.ok { color: var(--green-deep); }
.form-status.bad { color: #9d2c2c; }
form .btn { justify-self: start; }
.hero.gate { padding-bottom: 88px; }
.hero.gate h1 { max-width: 14ch; }
form.sheet, .sheet {
  width: min(460px, 100%);
  margin-top: 28px;
  background: var(--mist);
}
.sheet { border-radius: 24px; padding: 28px; display: grid; gap: 14px; }
.sheet p { margin: 0; }
.sheet .actions { margin-top: 4px; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 14px;
}
footer p { margin: 0; }

@media (max-width: 900px) {
  .nav { padding: 14px 18px; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav nav {
    display: none;
    position: absolute;
    inset-inline: 16px;
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
  }
  .nav nav.open { display: flex; }
  .hero, .stage-head, .stage-grid, footer { width: min(1180px, calc(100% - 36px)); }
  .hero { padding-top: 36px; }
  .hero:not(.gate) { grid-template-columns: 1fr; gap: 8px; }
  .hero-art svg { width: min(100%, 360px); }
  .stage-grid, .access, .split { grid-template-columns: 1fr; }
  .modules {
    position: relative;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 8px;
    scrollbar-width: none;
  }
  .modules::-webkit-scrollbar { display: none; }
  .modules button {
    flex: 0 0 auto;
    width: auto;
    max-width: 210px;
    scroll-snap-align: center;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    background: white;
  }
  .modules button b { font-size: 14px; line-height: 1.25; }
  .modules button[aria-selected="true"] {
    background: #e7f5f2;
    color: var(--green-deep);
    box-shadow: inset 0 0 0 1px var(--green);
  }
  .modules button[aria-selected="true"]::before { display: none; }
  [dir="rtl"] .panel-copy { direction: rtl; }
  .panel { gap: 18px; padding: 52px 18px 24px; }
  .access { padding: 56px 18px; margin-top: 36px; }
  footer { flex-direction: column; align-items: flex-start; }
  .lang-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel { transform: none; filter: none; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
  .canvas *, .canvas *::before, .canvas *::after { animation: none !important; }
  .hero-art .span, .hero-art .pulse, .hero-art .node rect, .hero-art .node .label, .hero-art .check { animation: none !important; }
  .hero-art .lane[style*="--i:1"] .span { stroke: #0E8A78; }
  .hero-art .lane[style*="--i:1"] .node rect { fill: #e7f5f2; stroke: #0E8A78; }
  .hero-art .lane[style*="--i:1"] .node .label { fill: #0B6E60; }
  .hero-art .lane[style*="--i:1"] .check { opacity: 1; transform: none; }
  .pill.travel { opacity: 1; left: 74%; }
}
