/* ===== Infra-Relay — Signal Mint ===== */
:root {
  --paper: #07080A;
  --panel: #0D0F12;
  --ink: #ECECE6;
  --mute: #8A8C92;
  --line: rgba(236, 236, 230, .12);
  --mint: #A6E4CC;
  --mint-deep: #5FC4A0;
  --lilac: #C9C2F0;
  --lilac-deep: #9C8FE6;
  --live: #00B873;
  --down: #D9534F;
  --spectrum: linear-gradient(90deg, #FF4D6D, #FF9F1C, #FFE14D, #3DFF9E, #3DB8FF, #8B5CFF, #E45CFF);
  --spectrum-v: linear-gradient(180deg, #FF4D6D, #FF9F1C, #FFE14D, #3DFF9E, #3DB8FF, #8B5CFF, #E45CFF);
  --r-sm: 6px;
  --r-lg: 22px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-intro { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--ink);
  font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--spectrum); color: #07080A; border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn.is-connected { background: var(--mint); color: #07080A; border-color: var(--ink); }
.btn.is-connected::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }

.ca-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  font-size: 13px; max-width: 100%;
}
.ca-chip:hover { border-color: var(--ink); }
.ca-label { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 2px 9px; font-weight: 700; font-size: 11px; }
.ca-value { font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-link { font-size: 14px; font-weight: 600; text-underline-offset: 4px; }

/* ===== Intro ===== */
#intro { position: fixed; inset: 0; z-index: 100; background: var(--paper); overflow: hidden; }
#introCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-word {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0 12px;
  display: flex; justify-content: center;
  font-stretch: 125%; font-weight: 800; letter-spacing: -.045em; line-height: .82;
  font-size: clamp(54px, 13.2vw, 260px); color: var(--ink);
  transform: translateY(.14em);
}
.intro-word span { display: inline-block; opacity: 0; transform: translateY(40%); animation: rise .7s var(--ease) forwards; }
.intro-word span:nth-child(1) { animation-delay: 2.9s } .intro-word span:nth-child(2) { animation-delay: 2.94s }
.intro-word span:nth-child(3) { animation-delay: 2.98s } .intro-word span:nth-child(4) { animation-delay: 3.02s }
.intro-word span:nth-child(5) { animation-delay: 3.06s } .intro-word span:nth-child(6) { animation-delay: 3.1s }
.intro-word span:nth-child(7) { animation-delay: 3.14s } .intro-word span:nth-child(8) { animation-delay: 3.18s }
.intro-word span:nth-child(9) { animation-delay: 3.22s } .intro-word span:nth-child(10) { animation-delay: 3.26s }
.intro-word span:nth-child(11) { animation-delay: 3.3s }
.intro-skip {
  position: absolute; right: 20px; top: 20px;
  background: none; border: 1px solid rgba(255,255,255,.2); color: var(--mute);
  border-radius: 999px; padding: 8px 16px; font-size: 13px;
}
.intro-skip:hover { color: var(--ink); border-color: var(--ink); }
#intro.is-out { animation: introOut .6s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

/* ===== Top bar ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px 20px;
  transition: background .3s, backdrop-filter .3s;
}
.topbar.is-solid { background: rgba(7,8,10,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.menu-btn { justify-self: start; display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; font-weight: 600; font-size: 14px; padding: 8px 4px; }
.menu-lines { width: 22px; height: 8px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-lines { transform: scaleY(.25); }
.brand { font-stretch: 125%; font-weight: 800; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.brand sup { font-size: .5em; font-weight: 500; }
.topbar-right { justify-self: end; display: flex; align-items: center; gap: 16px; }
.clock { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }

/* ===== Menu overlay ===== */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--paper);
  padding: 96px max(20px, 6vw) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a {
  display: flex; align-items: baseline; gap: 18px;
  text-decoration: none; font-stretch: 118%; font-weight: 700;
  font-size: clamp(34px, 6vw, 76px); line-height: 1.08; letter-spacing: -.03em;
  border-bottom: 1px solid var(--line); padding: 6px 0;
  opacity: 0; transform: translateY(16px);
  animation: rise .5s var(--ease) forwards;
}
.menu-list li:nth-child(2) a { animation-delay: .04s } .menu-list li:nth-child(3) a { animation-delay: .08s }
.menu-list li:nth-child(4) a { animation-delay: .12s } .menu-list li:nth-child(5) a { animation-delay: .16s }
.menu-list li:nth-child(6) a { animation-delay: .2s } .menu-list li:nth-child(7) a { animation-delay: .24s }
.menu-list a span { font-size: 14px; font-stretch: 100%; font-weight: 500; color: var(--mute); width: 40px; flex: none; }
.menu-list a:hover { color: var(--lilac); }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

/* ===== Spectrum rail (right edge nav) ===== */
.rail { position: fixed; right: 24px; top: 96px; bottom: 96px; z-index: 40; width: 2px; }
.rail-track { position: absolute; inset: 0; background: var(--line); border-radius: 2px; }
.rail-fill { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--sp, 0) * 100%); background: var(--spectrum-v); border-radius: 2px; box-shadow: 0 0 14px rgba(255,255,255,.18); }
.rail-prism {
  position: absolute; left: 50%; top: calc(var(--sp, 0) * 100%); width: 20px; height: 18px; overflow: visible;
  transform: translate(-50%, -50%) rotate(calc(var(--sp, 0) * 720deg));
  filter: drop-shadow(0 0 6px rgba(255,255,255,.5));
}
.rail-prism polygon { fill: rgba(255,255,255,.14); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.rail-stops { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.rail-stops li { position: absolute; right: -4px; transform: translateY(-50%); }
.rail-stops a { display: flex; align-items: center; gap: 10px; padding: 4px 0; text-decoration: none; font-size: 12px; color: var(--mute); }
.rail-stops a::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--mute); background: var(--paper); flex: none; transition: background .3s, box-shadow .3s, border-color .3s; }
.rail-stops span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; white-space: nowrap; }
.rail-stops a:hover span, .rail-stops a.is-active span { opacity: 1; transform: none; color: var(--ink); }
.rail-stops a.is-active::after { background: #fff; border-color: #fff; box-shadow: 0 0 10px #fff; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: radial-gradient(70% 60% at 40% 40%, rgba(255,255,255,.035), transparent 70%), var(--paper);
}
#prism { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-line {
  position: absolute; z-index: 2; top: clamp(90px, 14vh, 160px); right: clamp(16px, 6vw, 110px);
  margin: 0; max-width: 12ch; text-align: right;
  font-stretch: 112%; font-weight: 600; font-size: clamp(30px, 4vw, 68px); line-height: 1.02; letter-spacing: -.03em;
}
body:not(.is-intro) .hero-line { animation: rise .9s .2s var(--ease) both; }
.hero-inner { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.hero-kicker { margin: 0; font-size: 15px; font-weight: 500; color: var(--mute); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.wordmark {
  position: relative; z-index: 1; margin: 28px 0 -0.14em; padding: 0 12px;
  font-stretch: 125%; font-weight: 800; letter-spacing: -.045em; line-height: .82;
  font-size: clamp(54px, 13.2vw, 260px); white-space: nowrap; text-align: center;
}
.footer-word {
  color: transparent;
  background:
    radial-gradient(38% 70% at 18% 35%, #FF4D6D 0%, transparent 62%),
    radial-gradient(34% 65% at 68% 62%, #3DB8FF 0%, transparent 62%),
    radial-gradient(30% 60% at 44% 78%, #FFE14D 0%, transparent 62%),
    radial-gradient(36% 70% at 86% 24%, #8B5CFF 0%, transparent 62%),
    radial-gradient(32% 65% at 8% 88%, #3DFF9E 0%, transparent 62%),
    linear-gradient(110deg, #E45CFF, #3DB8FF, #3DFF9E, #FFE14D, #FF9F1C, #FF4D6D, #8B5CFF);
  background-size: 180% 180%, 160% 160%, 210% 210%, 170% 170%, 190% 190%, 320% 100%;
  -webkit-background-clip: text; background-clip: text;
  filter: saturate(1.1);
  animation: oil 28s ease-in-out infinite alternate;
}
@keyframes oil {
  0%   { background-position: 0% 0%,   100% 0%,  50% 100%, 0% 100%,  100% 50%, 0% 50%; }
  33%  { background-position: 60% 40%, 20% 70%,  90% 20%,  40% 10%,  30% 90%,  45% 50%; }
  66%  { background-position: 100% 90%, 0% 30%, 20% 60%,  90% 70%,  0% 10%,   80% 50%; }
  100% { background-position: 30% 100%, 70% 100%, 0% 0%,   100% 30%, 60% 0%,   100% 50%; }
}
.wordmark sup { font-size: .18em; font-weight: 500; vertical-align: top; letter-spacing: 0; margin-left: .1em; position: relative; top: .4em; }

/* ===== Ticker ===== */
.ticker { background: var(--spectrum); color: #07080A; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker-track span { padding: 14px 0; font-size: 15px; font-weight: 650; white-space: pre; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.sec { padding: clamp(80px, 12vw, 150px) 0; border-bottom: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sec-head-row > div { max-width: 640px; }
.sec-num { display: block; width: max-content; font-size: 14px; font-weight: 700; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.sec h2 { margin: 0; font-stretch: 110%; font-weight: 650; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.03em; }
.lede { margin: 18px 0 0; font-size: 18px; color: var(--mute); max-width: 60ch; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.stats div { padding: 22px 18px 26px 0; border-right: 1px solid var(--line); }
.stats div + div { padding-left: 18px; }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-stretch: 120%; font-weight: 700; font-size: clamp(40px, 5vw, 68px); letter-spacing: -.04em; line-height: 1; }
.stats span { font-size: 14px; color: var(--mute); }

.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 12px; margin-top: clamp(56px, 7vw, 96px); }
.photo { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; background: linear-gradient(150deg, var(--lilac), var(--mint)); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.02); transition: transform .9s var(--ease); }
.photo:hover img { transform: scale(1.04); }
.slices { position: absolute; inset: 0; display: flex; }
.slices i {
  flex: 1; background-repeat: no-repeat;
  transform: translateY(calc(var(--off, 0) * var(--k) * 14%));
  filter: saturate(.85) hue-rotate(calc(var(--off, 0) * var(--k) * 40deg));
  transition: transform .25s linear, filter .25s linear;
}
.photo:hover .slices i { transform: none; filter: saturate(.85); transition: transform .7s var(--ease), filter .7s var(--ease); }
.photo img.is-sliced { opacity: 0; }
.photo figcaption {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max-content; max-width: 82%; text-align: center;
  background: rgba(7,8,10,.42); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.35); border-radius: 4px;
  padding: 22px 30px 18px; font-size: 13px; color: rgba(236,236,230,.75);
}
.photo figcaption b {
  display: block; margin-bottom: 10px; color: #fff;
  font-family: "Michroma", "Archivo", sans-serif; font-weight: 400;
  font-size: clamp(22px, 2.6vw, 42px); letter-spacing: .12em; text-transform: uppercase; line-height: 1.1;
}

/* ===== Channels ===== */
.sec-channels { background: var(--panel); }
.relay { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.relay-stage { position: relative; aspect-ratio: 640 / 460; border: 1px solid var(--line); border-radius: var(--r-lg); background: radial-gradient(60% 70% at 28% 50%, rgba(255,255,255,.04), transparent 70%), #040506; overflow: hidden; }
#relayCanvas, #relaySvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.r-node { cursor: pointer; }
.r-node .shape { fill: rgba(255,255,255,.03); stroke: rgba(255,255,255,.45); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.r-node .shape-in { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 1.5; }
.r-node:hover .shape { stroke: rgba(255,255,255,.85); }
.r-node text { font-size: 13px; font-weight: 600; fill: var(--ink); font-family: inherit; }
.r-node text.sub { font-size: 11px; font-weight: 400; fill: var(--mute); }
.r-node.is-on .shape { fill: rgba(255,255,255,.08); stroke: var(--node-c, #fff); stroke-width: 2; filter: drop-shadow(0 0 6px var(--node-c, #fff)); }
.r-node:focus-visible { outline: none; }
.r-node:focus-visible .shape { stroke: var(--lilac-deep); stroke-width: 3; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 7px 14px; font-size: 13px; font-weight: 550;
}
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.channel-card { margin-top: 22px; border-top: 1px solid var(--ink); padding-top: 22px; min-height: 290px; }
.channel-card.swap { animation: rise .45s var(--ease) both; }
.channel-card .ch-id { font-size: 13px; color: var(--mute); }
.channel-card h3 { margin: 6px 0 4px; font-stretch: 118%; font-weight: 700; font-size: clamp(34px, 3.6vw, 48px); letter-spacing: -.03em; line-height: 1; }
.channel-card .ch-role { margin: 0 0 16px; font-size: 17px; color: var(--lilac); font-weight: 550; }
.channel-card p { margin: 0 0 18px; max-width: 46ch; }
.ch-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.ch-specs div { padding: 12px 14px; border-right: 1px solid var(--line); }
.ch-specs div:last-child { border-right: 0; }
.ch-specs dt { font-size: 12px; color: var(--mute); }
.ch-specs dd { margin: 2px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ===== Steps ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; padding-top: 40px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 14px; left: 0; height: 2px; }
.steps::before { right: 0; background: var(--line); }
.steps::after { width: calc(var(--p) * 100%); background: var(--spectrum); }
.step-n {
  position: absolute; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--paper); border: 1.5px solid var(--ink);
}
.steps li { position: relative; padding-top: 10px; }
.steps li .step-n { top: -40px; }
.steps h3 { margin: 0 0 6px; font-stretch: 110%; font-weight: 650; font-size: 22px; letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--mute); max-width: 28ch; }

/* ===== Packs ===== */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pack { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; background: var(--panel); }
.pack h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--mute); }
.pack-price { margin: 14px 0 0; font-size: 18px; }
.pack-price strong { font-stretch: 120%; font-weight: 700; font-size: 64px; letter-spacing: -.04em; line-height: 1; }
.pack-alt { margin: 4px 0 0; font-size: 13px; color: var(--mute); }
.pack-feature .pack-alt { color: rgba(7,8,10,.6); }
.pack-credits { margin: 6px 0 18px; font-weight: 600; }
.pack-credits em { font-style: normal; font-weight: 500; font-size: 13px; background: var(--mint); color: #07080A; border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.pack ul { margin: 0 0 26px; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); color: var(--mute); flex: 1; }
.pack li { padding: 4px 0 4px 20px; position: relative; }
.pack li::before { content: ""; position: absolute; left: 0; top: .78em; width: 9px; height: 9px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--mint-deep); }
.pack-feature { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pack-feature h3, .pack-feature ul { color: rgba(7,8,10,.65); border-color: rgba(7,8,10,.15); }
.pack-feature .btn-ink { background: var(--mint); color: #07080A; border-color: var(--mint); }
.pack-feature .btn-ink:hover { background: var(--spectrum); color: #07080A; border-color: transparent; }

/* ===== Console ===== */
.sec-console { background: var(--panel); }
.console { border: 1px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.console-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #bbb; }
.status.is-live i { background: var(--live); box-shadow: 0 0 0 4px rgba(0,184,115,.18); }
.model-select { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); }
.model-select select { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.balance { margin-left: auto; color: var(--mute); }
.balance strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.console-log { height: clamp(380px, 60vh, 620px); overflow-y: auto; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { margin: 0; max-width: 72ch; padding: 14px 18px; border-radius: 16px; font-size: 16px; }
.msg-sys { color: var(--mute); background: transparent; border: 1px dashed var(--line); }
.msg-you { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.msg-relay { background: var(--lilac); color: #07080A; border-bottom-left-radius: 4px; }
.msg-err { background: transparent; border: 1px solid var(--down); color: var(--ink); }
.console-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.console-input input { flex: 1; min-width: 0; font: inherit; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 0 20px; height: 52px; }
.console-input input:focus { border-color: var(--ink); outline: none; }

/* ===== Wire ===== */
.wire { border-top: 1px solid var(--ink); }
.wire-head, .wire-row {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: minmax(180px, 2.2fr) 1fr .7fr .7fr 1fr 1fr 1fr 120px;
}
.wire-head { padding: 12px 0; font-size: 12px; color: var(--mute); border-bottom: 1px solid var(--line); }
.wire-row { width: 100%; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; font-variant-numeric: tabular-nums; transition: background .2s; }
.wire-row:hover { background: rgba(255,255,255,.04); }
.wire-row[aria-expanded="true"] { background: rgba(201,194,240,.07); }
.tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tok img, .tok .tok-ph { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; background: linear-gradient(140deg, var(--mint), var(--lilac)); }
.tok b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok small { color: var(--mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.up { color: var(--live); } .dn { color: var(--down); }
.spark { width: 120px; height: 36px; display: block; }
.wire-detail { padding: 18px 0 26px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 260px; gap: 24px; }
.wire-detail svg { width: 100%; height: 180px; display: block; }
.wire-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.wire-links a { text-underline-offset: 4px; }
.wire-links .ca-chip { font-size: 12px; }
.chart-note { font-size: 12px; color: var(--mute); margin: 6px 0 0; }
.wire-empty { padding: 40px 0; color: var(--mute); }
.wire-updated { font-size: 12px; color: var(--mute); margin: 14px 0 0; }

/* ===== Principle ===== */
.principle { position: relative; padding: clamp(100px, 14vw, 180px) 0; background: #000; color: var(--ink); overflow: hidden; }
.principle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(1); }
.principle .wrap { position: relative; }
.principle blockquote { margin: 0; font-stretch: 112%; font-weight: 600; font-size: clamp(34px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.035em; max-width: 18ch; }
.principle-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 40px; margin-top: 60px; }
.principle-pair h3 { margin: 0 0 6px; font-size: 18px; color: var(--mint); font-weight: 650; }
.principle-pair p { margin: 0; color: var(--mute); }

/* ===== FAQ ===== */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--ink); transform: rotate(180deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: none; background: var(--live); }
.faq details p { margin: 0 0 22px; color: var(--mute); max-width: 60ch; }

/* ===== Footer ===== */
.footer { padding-top: clamp(80px, 10vw, 130px); overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.footer-top h2 { margin: 0; font-stretch: 115%; font-weight: 650; font-size: clamp(40px, 6vw, 88px); letter-spacing: -.04em; line-height: 1; }
.footer-mid { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ink); }
.back-top { margin-left: auto; font-size: 14px; text-underline-offset: 4px; }
.footer-word { margin: 50px 0 0; text-align: center; font-stretch: 125%; font-weight: 800; letter-spacing: -.045em; line-height: .8; font-size: clamp(54px, 13.2vw, 260px); white-space: nowrap; }
.footer-word sup { font-size: .18em; -webkit-text-stroke: 0; color: var(--ink); vertical-align: top; position: relative; top: .4em; }
.footer-legal { font-size: 12px; color: var(--mute); padding: 18px 0 26px; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); border-radius: 999px;
  padding: 12px 20px; font-size: 14px; max-width: calc(100% - 32px);
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .rail { display: none; }
  .wire-head, .wire-row { grid-template-columns: minmax(150px, 2fr) 1fr .7fr .7fr 110px; }
  .hide-sm { display: none; }
  .spark { width: 110px; }
}
@media (max-width: 900px) {
  .relay { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .steps::before, .steps::after { display: none; }
  .packs { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .wire-detail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar { grid-template-columns: auto 1fr auto; padding: 12px 16px; gap: 10px; }
  .brand { font-size: 15px; justify-self: center; }
  .clock, .menu-btn span:last-child { display: none; }
  .topbar .btn { height: 36px; padding: 0 12px; font-size: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(3) { padding-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .photo-row { grid-template-columns: 1fr; }
  .photo { aspect-ratio: 4 / 3; }
  .slices { display: none; }
  .photo img.is-sliced { opacity: 1; }
  .steps { grid-template-columns: 1fr; }
  .ch-specs { grid-template-columns: 1fr; }
  .ch-specs div { border-right: 0; border-bottom: 1px solid var(--line); }
  .ch-specs div:last-child { border-bottom: 0; }
  .wire-head, .wire-row { grid-template-columns: minmax(0, 1.8fr) 1fr .8fr 70px; gap: 8px; }
  .wire-head span:nth-child(3), .wire-row > :nth-child(3) { display: none; }
  .spark { width: 70px; }
  .principle-pair { grid-template-columns: 1fr; }
  .balance { margin-left: 0; }
  .back-top { margin-left: 0; }
}

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