:root {
  --ink: #0c1222;
  --ink-soft: #1a2236;
  --muted: #5a6478;
  --line: #e2e6ee;
  --paper: #f3f4f7;
  --paper-2: #eaedf3;
  --white: #ffffff;
  --mint: #0d9f6e;
  --on-ink: #ffffff;
  --line-strong: #cfd5e2;
  --deep: #0c1222;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --nav-bg: rgba(243, 244, 247, 0.72);
  --nav-bg-solid: rgba(243, 244, 247, 0.92);
  --grid-line: rgba(12, 18, 34, 0.05);
  --ghost-line: rgba(12, 18, 34, 0.18);
  --tick-bg: #0c1222;
  --input-focus: #ffffff;
  --wash-a: rgba(142, 230, 191, 0.35);
  --wash-b: rgba(169, 155, 255, 0.32);

  /* product surfaces (mirror the console) */
  --s0: #0b0e14;
  --s1: #12161f;
  --s2: #181d28;
  --s3: #222838;
  --s-line: rgba(255, 255, 255, 0.07);
  --s-line-2: rgba(255, 255, 255, 0.12);
  --s-text: #e7ebf3;
  --s-dim: #8a93a6;
  --indigo: #7c8cff;
  --violet: #a78bfa;
  --green: #34d399;
  --amber: #f5b942;
  --red: #f0627a;
  --sky: #38bdf8;
  --pill: linear-gradient(90deg, #8ee6bf 0%, #a99bff 100%);

  --f-display: "Syne", "Source Sans 3", system-ui, sans-serif;
  --f-body: "Source Sans 3", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --nav-h: 68px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef1f7;
  --ink-soft: #d5dae5;
  --muted: #98a1b4;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.2);
  --paper: #090b11;
  --paper-2: #0d1018;
  --white: #121621;
  --on-ink: #0b0e14;
  --deep: #05070c;
  --glass: rgba(18, 22, 33, 0.7);
  --glass-strong: rgba(18, 22, 33, 0.9);
  --nav-bg: rgba(9, 11, 17, 0.72);
  --nav-bg-solid: rgba(9, 11, 17, 0.92);
  --grid-line: rgba(255, 255, 255, 0.045);
  --ghost-line: rgba(255, 255, 255, 0.2);
  --tick-bg: #222838;
  --input-focus: #0b0e14;
  --wash-a: rgba(142, 230, 191, 0.12);
  --wash-b: rgba(124, 140, 255, 0.18);
  --s0: #0e121b;
}
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease !important;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.mono { font-family: var(--f-mono); }
.dim { color: var(--s-dim); }

.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
.skip {
  position: absolute; left: 14px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 14px; }

.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--pill); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow .num {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); letter-spacing: 0.04em;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.55); }
.eyebrow--light .num { background: var(--pill); color: #0c1222; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--s-dim); display: inline-block; flex: none; }
.dot--ok { background: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }
.dot--live { background: var(--green); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: saturate(1.3) blur(16px);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.nav.is-solid { border-bottom-color: var(--line); background: var(--nav-bg-solid); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 800; font-size: 1.2rem;
  text-decoration: none; letter-spacing: -0.04em;
}
.logo__mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none; object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(12, 18, 34, 0.6);
  transition: transform 0.5s var(--spring);
}
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.06); }
.nav__links { display: flex; gap: 2px; margin-left: auto; position: relative; }
.nav__links a {
  text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 550;
  padding: 8px 11px; border-radius: 999px; white-space: nowrap;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--ink); background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 4px 12px -6px rgba(12, 18, 34, 0.2); }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--on-ink);
  font-weight: 650; font-size: 0.98rem; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s, border-color 0.2s;
}
.btn:hover { background: var(--ink-soft); transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ghost-line); }
.btn--ghost:hover { background: var(--white); border-color: var(--ink); }
.btn--ghost .arr { display: inline-block; transition: transform 0.25s var(--ease); }
.btn--ghost:hover .arr { transform: translateY(3px); }
.btn--glow { box-shadow: 0 10px 30px -12px rgba(124, 140, 255, 0.7); overflow: hidden; }
.btn--glow::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 4.5s 1.5s infinite;
}
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn--glow:hover { box-shadow: 0 14px 36px -10px rgba(124, 140, 255, 0.85); }
.btn--block { width: 100%; }

/* Load-in */
.js [data-load] { opacity: 0; transform: translateY(16px); animation: rise 0.9s var(--ease) forwards; }
.js [data-load]:nth-child(2) { animation-delay: 0.08s; }
.js [data-load]:nth-child(3) { animation-delay: 0.16s; }
.js [data-load]:nth-child(4) { animation-delay: 0.24s; }
.js .hero__stage-wrap[data-load] { animation-delay: 0.35s; animation-duration: 1.2s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Hero */
.hero { position: relative; padding: 64px 0 40px; overflow: clip; }
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42% 40% at 15% 8%, var(--wash-a), transparent 70%),
    radial-gradient(40% 40% at 85% 12%, var(--wash-b), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(124, 140, 255, 0.12), transparent 70%);
}
.hero__bg::after {
  content: ""; 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: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero__copy { position: relative; text-align: center; display: grid; justify-items: center; }
.pill-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  font-size: 0.86rem; font-weight: 600; color: var(--ink-soft);
  backdrop-filter: blur(8px);
}
.hero h1 { margin-top: 22px; font-size: clamp(2.5rem, 6.4vw, 5rem); max-width: 14em; }
.grad-text {
  background: linear-gradient(90deg, #0d9f6e, #5b6cff 55%, #8b5cf6);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shift 8s ease-in-out infinite alternate;
}
@keyframes shift { to { background-position: 100% 0; } }
.lead { margin-top: 22px; max-width: 40em; font-size: 1.16rem; color: var(--muted); }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hero__stage-wrap {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 56px auto 0;
  perspective: 1600px;
}
.console {
  --p: 0;
  position: relative;
  border-radius: 22px;
  background: var(--s0);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 60px 120px -40px rgba(12, 18, 34, 0.55),
    0 0 0 1px rgba(12, 18, 34, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--s-text);
  transform: rotateX(calc((1 - var(--p)) * 16deg)) scale(calc(0.94 + var(--p) * 0.06));
  transform-origin: 50% 0;
  will-change: transform;
  overflow: hidden;
}
.console::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(169, 155, 255, 0.25), transparent 30%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px;
}
.console__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--s-line);
}
.console__logo, .portal__logo {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: #050816 url("media/logo.jpg") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.console__spacer { flex: 1; }
.tab-pill {
  padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 650; color: var(--s-dim);
}
.tab-pill.is-on { background: var(--pill); color: #0b0e14; }
.tab-pill.sm { padding: 4px 11px; font-size: 0.74rem; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600;
  border: 1px solid var(--s-line-2); color: var(--s-dim); background: transparent; white-space: nowrap;
}
.chip.is-on { color: var(--s-text); background: var(--s3); }
.chip.sm { padding: 2px 8px; font-size: 0.68rem; }
.chip--live { color: var(--green); border-color: rgba(52, 211, 153, 0.3); }

.console__body { padding: 16px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr) 1.5fr; gap: 12px; }
.kpi {
  position: relative; overflow: hidden;
  background: var(--s1); border: 1px solid var(--s-line); border-radius: 14px;
  padding: 14px 14px 0; min-height: 132px; display: flex; flex-direction: column;
}
.kpi__h, .akpi p, .panel-h {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.8rem; font-weight: 650; color: var(--s-text);
}
.kpi__h i, .akpi p i, .legend i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); flex: none; }
.kpi__h em { font-style: normal; font-weight: 500; color: var(--s-dim); font-size: 0.72rem; }
.kpi__v { font-family: var(--f-display); font-size: 1.85rem; letter-spacing: -0.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.spark { margin: auto -14px 0; width: calc(100% + 28px); height: 48px; display: block; }
.spark__line, .ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kpi--vol { padding-bottom: 14px; }
.vol { display: grid; gap: 8px; margin-top: 12px; }
.vol div { display: flex; align-items: center; gap: 10px; }
.vol b { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vol div:first-child b { font-size: 1.55rem; }
.cur {
  font-family: var(--f-mono); font-size: 0.68rem; font-weight: 500;
  padding: 2px 7px; border-radius: 6px; background: var(--s3); color: var(--s-text); letter-spacing: 0.04em;
}

.console__split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.feed, .mini-route { background: var(--s1); border: 1px solid var(--s-line); border-radius: 14px; padding: 14px; }
.panel-h { justify-content: space-between; margin-bottom: 10px; }
.panel-h .mono { font-size: 0.7rem; font-weight: 500; }
.feed__list { display: grid; gap: 6px; height: 196px; overflow: hidden; mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
.feed__list li {
  display: grid; grid-template-columns: 1.3fr 0.9fr 0.8fr 0.9fr; align-items: center; gap: 10px;
  font-size: 0.8rem; padding: 7px 10px; border-radius: 9px; background: var(--s2);
  animation: slideIn 0.55s var(--spring);
}
.feed__list li .mono { font-size: 0.74rem; color: #8fa2ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed__list li span:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-14px) scale(0.98); } }

.badge {
  justify-self: end; display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  color: var(--s-dim); background: rgba(255, 255, 255, 0.06);
}
.badge--ok { color: var(--green); background: rgba(52, 211, 153, 0.12); }
.badge--bad { color: var(--red); background: rgba(240, 98, 122, 0.12); }
.badge--casc { color: var(--violet); background: rgba(167, 139, 250, 0.14); }
.badge--pend { color: var(--amber); background: rgba(245, 185, 66, 0.12); }

.mini-route__svg { width: 100%; height: auto; display: block; }
.mini-route__svg path { fill: none; stroke: rgba(124, 140, 255, 0.45); stroke-width: 1.6; }
.mini-route__svg .dash, .route .dash { stroke-dasharray: 4 5; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.mini-route__svg .n { fill: var(--s2); stroke: var(--s-line-2); transition: stroke 0.3s, fill 0.3s; }
.mini-route__svg .n--start { fill: rgba(52, 211, 153, 0.25); stroke: rgba(52, 211, 153, 0.6); }
.mini-route__svg .t { fill: var(--s-text); font: 600 11px var(--f-mono); text-anchor: middle; }
.n.flash-ok, .node.flash-ok rect:first-child { stroke: var(--green) !important; fill: rgba(52, 211, 153, 0.14) !important; }
.n.flash-bad, .node.flash-bad rect:first-child { stroke: var(--red) !important; fill: rgba(240, 98, 122, 0.14) !important; }

.float {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--glass-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -24px rgba(12, 18, 34, 0.45);
  font-size: 0.86rem; line-height: 1.3;
}
.float b { display: block; font-weight: 700; }
.float small { color: var(--muted); font-size: 0.78rem; }
.float--a { right: -28px; top: 34%; animation: bob 6s ease-in-out infinite; transition: opacity 0.4s, transform 0.4s var(--spring); }
.float--a.is-pop { animation: pop 0.6s var(--spring); }
.float--b { left: -36px; bottom: 16%; animation: bob 7s 1s ease-in-out infinite reverse; }
.badge-2fa { font: 600 0.7rem var(--f-mono); padding: 5px 7px; border-radius: 8px; background: var(--ink); color: var(--on-ink); }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes pop { 0% { transform: scale(0.85); opacity: 0.4; } 100% { transform: none; opacity: 1; } }

/* Marquee */
.marquee { padding: 26px 0; overflow: hidden; border-block: 1px solid var(--line); background: var(--white); }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em;
  color: var(--ink); padding: 0 26px; white-space: nowrap; display: inline-flex; align-items: center; gap: 26px;
}
.marquee span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pill); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Section heads */
.sec-head { max-width: 40em; }
.sec-head h2 { margin-top: 14px; font-size: clamp(2rem, 4vw, 3rem); }
.sec-head > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.sec-head--wide { max-width: 52em; }

/* Who */
.who { padding: 96px 0 24px; }
.who__grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.who__card {
  position: relative; overflow: hidden;
  padding: 28px; border-radius: 20px; background: var(--white); border: 1px solid var(--line);
  transform-style: preserve-3d; transition: box-shadow 0.3s, border-color 0.3s;
}
.who__card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 140, 255, 0.14), transparent 60%);
}
.who__card:hover { box-shadow: 0 30px 60px -36px rgba(12, 18, 34, 0.45); border-color: var(--line-strong); }
.who__card:hover::before { opacity: 1; }
.who__ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: var(--ink); color: var(--on-ink);
}
.who__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.who__card h3 { margin-top: 22px; font-size: 1.35rem; }
.who__card p { margin-top: 10px; color: var(--muted); }

/* Feature */
.feature { padding: clamp(64px, 7vw, 96px) 0; position: relative; }
.feature--tint { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 22%, var(--paper-2) 78%, var(--paper) 100%); }
.feature__grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 64px; align-items: center; }
.feature__grid--flip { grid-template-columns: 1.18fr 0.82fr; }
.feature__grid--flip .feature__copy { order: 2; }
.feature__copy h2 { margin-top: 16px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.feature__copy > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }
.ticks { margin-top: 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-weight: 550; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; border-radius: 6px;
  background: var(--tick-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%238ee6bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks--light li { color: rgba(255, 255, 255, 0.85); }
.ticks--light li::before { background-color: rgba(255, 255, 255, 0.1); }
.stat-row { margin-top: 30px; display: flex; gap: 34px; }
.stat-row b { display: block; font-family: var(--f-display); font-size: 2.2rem; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat-row span { color: var(--muted); font-size: 0.9rem; }

/* Scene window */
.scene { margin: 0; min-width: 0; }
.win {
  position: relative;
  background: var(--s0); color: var(--s-text);
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 60px -36px rgba(12, 18, 34, 0.5), 0 0 0 1px rgba(12, 18, 34, 0.06);
}
.win__bar {
  display: flex; align-items: center; gap: 8px; min-height: 48px;
  padding: 8px 14px; border-bottom: 1px solid var(--s-line); background: var(--s1);
}
.win__bar > span:not([class]) { width: 10px; height: 10px; border-radius: 50%; background: #2a3040; flex: none; }
.win__bar > span:not([class]):nth-child(1) { background: #ff5f57; opacity: 0.8; }
.win__bar > span:not([class]):nth-child(2) { background: #febc2e; opacity: 0.8; }
.win__bar > span:not([class]):nth-child(3) { background: #28c840; opacity: 0.8; }
.win__bar em { font-style: normal; font-size: 0.8rem; font-weight: 600; margin-left: 8px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ver { display: inline-flex; align-items: center; gap: 7px; font-size: 0.74rem; font-weight: 600; color: var(--green); padding: 3px 10px; border: 1px solid rgba(52, 211, 153, 0.3); border-radius: 999px; white-space: nowrap; }
.win__body { position: relative; padding: 16px; }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--s2); border: 1px solid var(--s-line); gap: 2px; flex: none; }
.seg__b {
  border: 0; background: transparent; color: var(--s-dim);
  font-size: 0.76rem; font-weight: 650; padding: 5px 12px; border-radius: 999px;
  transition: color 0.2s, background 0.3s;
}
.seg__b:hover { color: var(--s-text); }
.seg__b.is-on { background: var(--pill); color: #0b0e14; }
.seg--sm .seg__b { padding: 4px 12px; }
.seg--lg { margin-top: 30px; background: var(--white); border-color: var(--line); padding: 4px; box-shadow: 0 10px 30px -18px rgba(12, 18, 34, 0.35); }
.seg--lg .seg__b { font-size: 0.95rem; padding: 10px 24px; color: var(--muted); }
.seg--lg .seg__b.is-on { background: var(--ink); color: var(--on-ink); }

/* Routing scene */
.win__body--grid { display: grid; gap: 14px; background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 18px 18px; }
.route { width: 100%; height: auto; display: block; overflow: visible; }
.route .edges path { fill: none; stroke: url(#edge); stroke-width: 2; opacity: 0.65; }
.route .edges .dash { stroke: var(--violet); }
.route text { font: 600 12px var(--f-body); fill: var(--s-text); }
.route .mono { font: 500 11px var(--f-mono); }
.route .mono.dim { fill: var(--s-dim); }
.route .cap { font: 600 10px var(--f-mono); fill: #8fa2ff; letter-spacing: 0.05em; }
.route .node rect:first-child { fill: var(--s2); stroke: var(--s-line-2); transition: fill 0.35s, stroke 0.35s; }
.route .node line { stroke: var(--s-line-2); }
.route .node--start rect { fill: #2f8f55 !important; stroke: #4cc27c !important; }
.route .node--start text { text-anchor: middle; }
.route .node--mid circle { fill: var(--indigo); }
.route .node--fail text { text-anchor: middle; fill: var(--s-dim); }
.route .cnt rect { fill: rgba(52, 211, 153, 0.12); stroke: rgba(52, 211, 153, 0.5); }
.route .cnt text { font: 600 10px var(--f-mono); fill: var(--green); text-anchor: middle; dominant-baseline: central; }
.route .casc-label { font: 500 10px var(--f-mono); fill: var(--violet); text-anchor: end; }
.packet { filter: drop-shadow(0 0 6px currentColor); }
.trace { background: var(--s1); border: 1px solid var(--s-line); border-radius: 14px; padding: 12px 14px; }
.trace ol { display: grid; align-content: start; gap: 4px; height: 140px; overflow: hidden; font: 500 0.76rem var(--f-mono); }
.trace li { display: flex; gap: 10px; align-items: baseline; min-width: 0; animation: slideIn 0.4s var(--ease); }
.trace li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trace li time { color: var(--s-dim); flex: none; }
.trace li.ok { color: var(--green); }
.trace li.bad { color: var(--red); }
.trace li.casc { color: var(--violet); }

/* Widget studio */
.scene--wide { margin-top: 40px; }
.sec-head--split { max-width: none; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 20px 64px; align-items: end; }
.sec-head--split h2 { margin-top: 14px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.sec-head--split p { color: var(--muted); font-size: 1.06rem; }
.sec-note { margin-top: 10px; font-weight: 600; color: var(--ink) !important; font-size: 0.95rem !important; }

.tour-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 4px 11px 4px 9px; border-radius: 999px; border: 1px solid var(--s-line-2);
  background: transparent; color: var(--s-text); font-size: 0.74rem; font-weight: 650;
}
.tour-btn:hover { background: var(--s2); }
.tour-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tour-btn .i-play { display: none; fill: currentColor; }
.tour-btn[aria-pressed="false"] .i-play { display: block; }
.tour-btn[aria-pressed="false"] .i-pause { display: none; }

.rail {
  display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--s-line);
  overflow-x: auto; scrollbar-width: none; background: var(--s0);
}
.rail::-webkit-scrollbar { display: none; }
.rail button {
  position: relative; flex: 1 0 auto; overflow: hidden;
  border: 1px solid var(--s-line); background: var(--s1); color: var(--s-dim);
  font-size: 0.74rem; font-weight: 650; padding: 7px 12px 9px; border-radius: 10px; white-space: nowrap;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.rail button::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--pill); transform-origin: 0 50%; transform: scaleX(0);
}
.rail button.is-on:not(.is-timed)::after { transform: scaleX(1); }
.rail button:hover { color: var(--s-text); }
.rail button.is-on { color: var(--s-text); border-color: rgba(167, 139, 250, 0.45); background: var(--s2); }
.rail button.is-done:not(.is-on)::after { transform: scaleX(1); opacity: 0.35; }

.studio__body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; height: 500px; }
.studio__ctl {
  position: relative; background: var(--s1); border: 1px solid var(--s-line); border-radius: 14px;
  padding: 16px; overflow: hidden; display: grid; align-content: start; gap: 12px;
}
.studio__ctl > * { animation: slideIn 0.4s var(--ease) both; }
.studio__ctl > *:nth-child(2) { animation-delay: 0.03s; }
.studio__ctl > *:nth-child(3) { animation-delay: 0.06s; }
.studio__ctl > *:nth-child(4) { animation-delay: 0.09s; }
.studio__ctl > *:nth-child(5) { animation-delay: 0.12s; }
.ctl-title { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: -0.02em; }
.ctl-hint { font-size: 0.78rem; color: var(--s-dim); margin-top: -8px !important; line-height: 1.4; }
.ctl-h { display: flex; justify-content: space-between; font-size: 0.68rem; font-weight: 650; color: var(--s-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.ctl-h output { font-family: var(--f-mono); color: var(--s-text); text-transform: none; letter-spacing: 0; }
.ctl-group { display: grid; gap: 8px; }
.opt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt {
  display: grid; gap: 8px; justify-items: center; padding: 10px 8px; border-radius: 12px;
  border: 1px solid var(--s-line-2); background: var(--s2); color: var(--s-dim); font-size: 0.76rem; font-weight: 650;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.opt:hover { color: var(--s-text); }
.opt.is-on { border-color: var(--violet); color: var(--s-text); background: rgba(167, 139, 250, 0.1); }
.wire { width: 76px; height: 48px; border-radius: 6px; background: #2b3245; display: grid; gap: 3px; padding: 4px; }
.wire i { border-radius: 3px; background: #4a5470; }
.wire i:first-child { background: #7c8cff; }
.wire--split { grid-template-columns: 0.8fr 1.2fr; }
.wire--stacked { grid-template-rows: 0.6fr 1.4fr; }
.ctl-seg { display: flex; padding: 3px; border-radius: 999px; background: var(--s2); border: 1px solid var(--s-line); gap: 2px; }
.ctl-seg button { flex: 1; border: 0; background: transparent; color: var(--s-dim); font-size: 0.76rem; font-weight: 650; padding: 6px 10px; border-radius: 999px; transition: color 0.2s, background 0.3s; }
.ctl-seg button.is-on { background: var(--pill); color: #0b0e14; }
.presets { display: flex; gap: 8px; }
.preset {
  flex: 1; display: grid; justify-items: center; gap: 5px; padding: 8px 0 6px; border-radius: 12px;
  border: 1px solid var(--s-line); background: var(--s2); color: var(--s-dim); font-size: 0.66rem; font-weight: 650;
  transition: border-color 0.25s, color 0.25s;
}
.preset.is-on { border-color: #fff; color: var(--s-text); }
.preset i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.tune { display: grid; gap: 6px; }
.tune div { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; background: var(--s2); font-size: 0.78rem; }
.tune i { width: 16px; height: 16px; border-radius: 5px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); transition: background 0.4s; }
.tune code { margin-left: auto; font: 500 0.72rem var(--f-mono); color: var(--s-dim); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button {
  width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--sw);
  box-shadow: 0 0 0 2px var(--s1), 0 0 0 3px transparent; transition: box-shadow 0.2s, transform 0.2s var(--spring);
}
.swatches button:hover { transform: scale(1.12); }
.swatches button.is-on { box-shadow: 0 0 0 2px var(--s1), 0 0 0 4px #fff; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--s2); font-size: 0.82rem; cursor: pointer; }
.sw { width: 30px; height: 18px; border-radius: 999px; background: var(--s3); position: relative; transition: background 0.25s; flex: none; }
.sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 0.3s var(--spring); }
.sw.on { background: var(--green); }
.sw.on::after { transform: translateX(12px); }
.sw-row small { color: var(--s-dim); font-size: 0.7rem; display: block; }
.sw-row .fee { margin-left: auto; font: 500 0.7rem var(--f-mono); color: var(--amber); }
input[type="range"] { width: 100%; accent-color: var(--violet); margin: 0; }
.fonts { display: grid; gap: 6px; }
.fonts button {
  display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--s-line); background: var(--s2); color: var(--s-text); font-size: 1rem; text-align: left;
  transition: border-color 0.25s;
}
.fonts button small { font: 500 0.66rem var(--f-mono); color: var(--s-dim); }
.fonts button.is-on { border-color: var(--violet); }
.locales { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.locales button {
  display: grid; gap: 2px; justify-items: center; padding: 10px 0 8px; border-radius: 12px;
  border: 1px solid var(--s-line); background: var(--s2); color: var(--s-dim); font: 600 0.82rem var(--f-mono);
  transition: border-color 0.25s, color 0.25s;
}
.locales button small { font: 500 0.6rem var(--f-body); }
.locales button.is-on { border-color: var(--violet); color: var(--s-text); }
.loaders { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.loaders button {
  display: grid; justify-items: center; gap: 8px; padding: 12px 6px 8px; border-radius: 12px;
  border: 1px solid var(--s-line); background: var(--s2); color: var(--s-dim); font-size: 0.72rem; font-weight: 650;
  --acc: var(--violet);
}
.loaders button.is-on { border-color: var(--violet); color: var(--s-text); }
.loaders .ld { display: block; transform: scale(0.55); margin: -10px 0; }
.ctl-btn { border: 0; border-radius: 10px; padding: 10px; font-weight: 700; font-size: 0.84rem; background: var(--pill); color: #0b0e14; }

.studio__stage {
  position: relative; overflow: hidden; border-radius: 14px;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(124, 140, 255, 0.16), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 16px 16px,
    #10131b;
}

/* The customer-facing widget */
.wz {
  --bg: #EEF2F5; --hd: #13202C; --acc: #0E7C7B; --glass-c: #0E7C7B;
  --r: 8px; --br: 8px; --ih: 48px; --bw: 1px; --fs: 1; --ff: "Inter", system-ui, sans-serif; --fit: 1;
  --tx: var(--hd);
  --mut: color-mix(in srgb, var(--hd) 55%, var(--bg));
  --in-bg: color-mix(in srgb, var(--bg) 45%, #fff);
  --in-bd: color-mix(in srgb, var(--hd) 16%, var(--bg));
  position: absolute; left: 50%; top: 50%;
  width: 600px; height: 410px;
  transform: translate(-50%, -50%) scale(var(--fit));
  display: grid; grid-template-columns: 220px 1fr;
  border-radius: 18px; overflow: hidden;
  background: var(--bg); color: var(--tx);
  font-family: var(--ff); font-size: calc(15px * var(--fs));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: background-color 0.5s, color 0.5s;
}
.wz[data-layout="stacked"] { width: 380px; height: 480px; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.wz__sum {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--hd); color: #fff; padding: 20px;
  transition: background-color 0.5s;
}
.wz__glass {
  position: absolute; inset: -40%; z-index: -1; opacity: 0;
  background:
    radial-gradient(circle at 30% 30%, var(--glass-c), transparent 45%),
    radial-gradient(circle at 70% 65%, var(--acc), transparent 45%),
    radial-gradient(circle at 40% 80%, #ffffff55, transparent 30%);
  filter: blur(28px); transition: opacity 0.6s;
}
.wz[data-glass] .wz__glass { opacity: 1; }
.wz[data-glass-anim] .wz__glass { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wz__sumcard { height: 100%; display: flex; flex-direction: column; gap: 10px; border-radius: 14px; transition: background 0.5s, box-shadow 0.5s, padding 0.5s; }
.wz[data-glass] .wz__sumcard {
  padding: 14px; background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 10px 30px -10px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.wz__brand { display: flex; align-items: center; gap: 10px; }
.wz__brand b { font-size: 1em; }
.wz__logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--acc); font-weight: 800; transition: background 0.5s; }
.wz__order { font-size: 0.78em; opacity: 0.7; }
.wz__mono { font-family: var(--f-mono); font-size: 0.92em; }
.wz__items { display: grid; gap: 6px; font-size: 0.8em; opacity: 0.85; margin-top: 6px; }
.wz__items li { display: flex; justify-content: space-between; gap: 8px; }
.wz__total { margin-top: auto; display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.wz__total span { font-size: 0.78em; opacity: 0.7; }
.wz__total b { font-size: 1.9em; letter-spacing: -0.02em; }
.wz[data-layout="stacked"] .wz__sum { padding: 14px 16px; }
.wz[data-layout="stacked"] .wz__sumcard { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; height: auto; }
.wz[data-layout="stacked"] .wz__items, .wz[data-layout="stacked"] .wz__order { display: none; }
.wz[data-layout="stacked"] .wz__total { margin: 0; padding: 0; border: 0; text-align: right; }
.wz[data-layout="stacked"] .wz__total b { font-size: 1.4em; }

.wz__form { position: relative; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wz__title { font-weight: 700; font-size: 1em; }
.wz__methods { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.wz__methods button {
  position: relative; border: var(--bw) solid var(--in-bd); background: var(--in-bg); color: var(--mut);
  border-radius: var(--r); padding: 9px 4px; font: 600 0.74em var(--ff); white-space: nowrap;
  transition: border-color 0.4s, color 0.4s, background 0.4s, border-radius 0.4s;
  animation: pop 0.4s var(--spring);
}
.wz__methods button.is-on { border-color: var(--acc); color: var(--acc); background: color-mix(in srgb, var(--acc) 9%, var(--in-bg)); }
.wz__methods i { position: absolute; top: -8px; right: 4px; font: 700 0.62rem var(--f-body); font-style: normal; padding: 1px 5px; border-radius: 999px; background: #F59E0B; color: #fff; }
.wz__card { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wz__in {
  display: grid; align-content: center; padding: 0 12px; min-width: 0;
  height: var(--ih); border-radius: var(--r); border: var(--bw) solid var(--in-bd); background: var(--in-bg);
  transition: height 0.4s var(--ease), border-radius 0.4s var(--ease), border-width 0.3s, background 0.5s, border-color 0.5s;
}
.wz__in small { font-size: 0.66em; color: var(--mut); line-height: 1.1; }
.wz__in span { font-size: 0.9em; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.wz__num, .wz__holder { grid-column: 1 / -1; }
.wz[data-card="combined"] .wz__card {
  grid-template-columns: 1fr 78px 58px; gap: 0;
  border: var(--bw) solid var(--in-bd); border-radius: var(--r); background: var(--in-bg); overflow: hidden;
}
.wz[data-card="combined"] .wz__in { border: 0; border-radius: 0; background: transparent; }
.wz[data-card="combined"] .wz__num { grid-column: 1; }
.wz[data-card="combined"] .wz__exp, .wz[data-card="combined"] .wz__cvc { border-left: var(--bw) solid var(--in-bd); }
.wz[data-card="combined"] .wz__holder { border-top: var(--bw) solid var(--in-bd); }
.wz__crypto { display: none; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r); border: var(--bw) solid var(--in-bd); background: var(--in-bg); }
.wz__crypto div { display: grid; gap: 2px; font-size: 0.84em; }
.wz__crypto small { font-size: 0.72em; color: var(--mut); }
.wz__qr { width: 84px; height: 84px; fill: var(--hd); }
.wz[data-method="crypto"] .wz__card { display: none; }
.wz[data-method="crypto"] .wz__crypto { display: grid; animation: pop 0.4s var(--spring); }
.wz__pay {
  margin-top: auto; height: calc(var(--ih) + 2px); border: 0; border-radius: var(--br);
  background: var(--acc); color: #fff; font: 700 0.95em var(--ff); cursor: default;
  transition: background 0.5s, border-radius 0.4s var(--ease), height 0.4s var(--ease), transform 0.2s;
}
.wz__pay.is-press { transform: scale(0.97); }
.wz__fine { text-align: center; font-size: 0.7em; color: var(--mut); margin-top: -4px; }
.wz__over {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.wz__over.is-load, .wz__over.is-ok { opacity: 1; }
.wz__over .ld, .wz__ok { grid-area: 1 / 1; }
.wz__over .ld { opacity: 0; transform: scale(1.25); transition: opacity 0.2s; }
.wz__over.is-load .ld { opacity: 1; }
.wz__ok { display: grid; justify-items: center; gap: 10px; opacity: 0; transform: scale(0.8); transition: opacity 0.3s, transform 0.4s var(--spring); }
.wz__ok span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #fff; font-size: 1.5rem; }
.wz__ok b { font-size: 0.95em; }
.wz__over.is-ok .wz__ok { opacity: 1; transform: none; }

/* Loaders (GooeyLoader, StepLoader, BallLoader, FlexLoader) */
.ld { position: relative; width: 56px; height: 56px; }
.ld i { position: absolute; display: block; background: var(--acc); }
.ld[data-l="gooey"] { filter: blur(1.5px) contrast(6); }
.ld[data-l="gooey"] i { width: 20px; height: 20px; border-radius: 50%; left: 18px; top: 18px; animation: goo 1.2s ease-in-out infinite; }
.ld[data-l="gooey"] i:nth-child(2) { animation-delay: -0.4s; }
.ld[data-l="gooey"] i:nth-child(3) { animation-delay: -0.8s; }
@keyframes goo { 0%, 100% { transform: rotate(0deg) translateX(14px) rotate(0deg); } 50% { transform: rotate(180deg) translateX(4px) rotate(-180deg); } }
.ld[data-l="step"] i { bottom: 12px; width: 10px; height: 32px; border-radius: 3px; transform-origin: 50% 100%; animation: stepbar 0.9s steps(3) infinite; }
.ld[data-l="step"] i:nth-child(1) { left: 8px; }
.ld[data-l="step"] i:nth-child(2) { left: 23px; animation-delay: 0.15s; }
.ld[data-l="step"] i:nth-child(3) { left: 38px; animation-delay: 0.3s; }
@keyframes stepbar { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.ld[data-l="ball"] i:nth-child(1) { width: 18px; height: 18px; border-radius: 50%; left: 19px; top: 4px; animation: bounce 0.7s cubic-bezier(.5, 0, .5, 1) infinite alternate; }
.ld[data-l="ball"] i:nth-child(2) { width: 22px; height: 5px; border-radius: 50%; left: 17px; bottom: 6px; opacity: 0.25; animation: shadow 0.7s cubic-bezier(.5, 0, .5, 1) infinite alternate; }
.ld[data-l="ball"] i:nth-child(3), .ld[data-l="flex"] i:nth-child(n+2) { display: none; }
@keyframes bounce { to { transform: translateY(26px) scaleX(1.12) scaleY(0.9); } }
@keyframes shadow { from { transform: scaleX(0.5); } to { transform: scaleX(1.1); opacity: 0.45; } }
.ld[data-l="flex"] i { inset: 6px; border-radius: 50%; background: none; border: 5px solid var(--acc); border-right-color: transparent; border-bottom-color: transparent; animation: flex 0.9s cubic-bezier(.6, .2, .4, .8) infinite; }
@keyframes flex { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(200deg) scale(0.8); } 100% { transform: rotate(360deg) scale(1); } }

.typing::after { content: "|"; color: var(--violet); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

.cursor {
  position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 22px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 10-7 1.4L8.6 20z' fill='%23fff' stroke='%230b0e14' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0 / contain no-repeat;
  transition: transform 0.8s var(--ease), opacity 0.3s;
  opacity: 0; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}
.cursor.is-on { opacity: 1; }
.cursor::after {
  content: ""; position: absolute; left: -9px; top: -9px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #fff; opacity: 0; transform: scale(0.4);
}
.cursor.is-click::after { animation: ripple 0.5s var(--ease); }
@keyframes ripple { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(1.8); } }

/* Refunds scene */
.rf { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 12px; height: 400px; overflow: hidden; }
.rf__tx, .rf__side { background: var(--s1); border: 1px solid var(--s-line); border-radius: 14px; padding: 16px; min-width: 0; }
.rf__tx { display: flex; flex-direction: column; gap: 14px; }
.rf__head { display: flex; justify-content: space-between; gap: 12px; }
.rf__head small { color: var(--s-dim); font-size: 0.72rem; display: block; }
.rf__head b { font-family: var(--f-display); font-size: 1.8rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rf__meta { display: grid; gap: 2px; text-align: right; font-size: 0.74rem; color: var(--s-dim); }
.rf__meta .mono { color: #8fa2ff; font-size: 0.7rem; }
.rf__bar { height: 10px; border-radius: 999px; background: var(--s3); overflow: hidden; }
.rf__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--indigo)); transition: width 0.9s var(--ease); }
.rf__left { display: flex; justify-content: space-between; gap: 10px; font-size: 0.78rem; color: var(--s-dim); }
.rf__left b { color: var(--s-text); font-variant-numeric: tabular-nums; }
.rf__actions { display: flex; gap: 8px; }
.rf__btn { flex: 1; border: 0; border-radius: 10px; padding: 10px; font-weight: 700; font-size: 0.84rem; background: var(--pill); color: #0b0e14; cursor: default; transition: transform 0.2s, opacity 0.3s, box-shadow 0.3s; }
.rf__btn--ghost { background: transparent; color: var(--s-text); box-shadow: inset 0 0 0 1px var(--s-line-2); }
.rf__btn.is-press { transform: scale(0.95); box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.3); }
.rf__btn:disabled { opacity: 0.35; }
.rf__settings { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.72rem; color: var(--s-dim); }
.rf__settings span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 10px; border-radius: 999px; background: var(--s2); }
.rf__settings i { width: 24px; height: 14px; border-radius: 999px; background: var(--s3); position: relative; transition: background 0.3s; }
.rf__settings i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: transform 0.3s var(--spring); }
.rf__settings i.on { background: var(--green); }
.rf__settings i.on::after { transform: translateX(10px); }
.rf__rules { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px; border-radius: 12px; background: var(--s2); font-size: 0.76rem; }
.rf__rules dt { color: var(--s-dim); }
.rf__rules dd { margin: 0; text-align: right; font-weight: 600; }
.rf__log { position: relative; display: grid; align-content: start; gap: 10px; padding-left: 18px; height: 320px; overflow: hidden; }
.rf__log::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 0; width: 1px; background: var(--s-line-2); }
.rf__log li { position: relative; font-size: 0.8rem; animation: slideIn 0.45s var(--ease); }
.rf__log li::before { content: ""; position: absolute; left: -18px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--indigo)); box-shadow: 0 0 0 3px var(--s1); }
.rf__log b { display: block; font-weight: 650; }
.rf__log code { display: block; font: 500 0.7rem var(--f-mono); color: var(--s-dim); margin-top: 2px; }
.rf__dlg {
  position: absolute; left: 50%; top: 50%; width: min(300px, calc(100% - 32px));
  transform: translate(-50%, -46%) scale(0.96); opacity: 0; pointer-events: none;
  display: grid; gap: 12px; padding: 18px; border-radius: 16px;
  background: var(--s2); border: 1px solid var(--s-line-2); box-shadow: 0 30px 60px -10px #000;
  transition: opacity 0.3s, transform 0.4s var(--spring);
}
.rf__dlg.is-on { opacity: 1; transform: translate(-50%, -50%); }
.rf__dlg-h { font-family: var(--f-display); font-size: 1.1rem; letter-spacing: -0.02em; }
.rf__field { display: grid; gap: 2px; padding: 9px 12px; border-radius: 10px; background: var(--s1); border: 1px solid var(--violet); }
.rf__field small { font-size: 0.68rem; color: var(--s-dim); }
.rf__field span { font: 600 0.95rem var(--f-mono); min-height: 1.4em; }
.rf__hint { font-size: 0.74rem; color: var(--s-dim); }
.rf__hint b { color: var(--amber); font-weight: 600; }

/* Analytics scene */
.an { display: grid; gap: 14px; }
.an__scope { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.72rem; }
.an__scope .chip { transition: background 0.3s, color 0.3s; }
.an__scope .chip.is-flash { background: rgba(124, 140, 255, 0.2); color: var(--s-text); }
.an__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.akpi { background: var(--s1); border: 1px solid var(--s-line); border-radius: 12px; padding: 12px; min-width: 0; }
.akpi p { font-size: 0.74rem; white-space: nowrap; }
.akpi b { display: block; font-family: var(--f-display); font-size: 1.4rem; letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.akpi small { font: 500 0.7rem var(--f-mono); }
.up { color: var(--green); }
.down { color: var(--red); }
.an__chart { background: var(--s1); border: 1px solid var(--s-line); border-radius: 12px; padding: 14px; }
.legend { display: inline-flex; gap: 6px; align-items: center; color: var(--s-dim); font-weight: 500; font-size: 0.72rem; }
.legend i { margin-left: 6px; }
.area { width: 100%; height: 190px; display: block; overflow: visible; }
.grid-lines line { stroke: var(--s-line); stroke-dasharray: 3 4; }
.cur-line { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; }

/* Trace scene */
.tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 380px; }
.tabs-line { display: flex; gap: 14px; align-items: center; margin-left: 8px; font-size: 0.78rem; font-weight: 600; color: var(--s-dim); overflow: hidden; white-space: nowrap; }
.tr__table { background: var(--s1); border: 1px solid var(--s-line); border-radius: 12px; overflow: hidden; }
.tr__th, .tr__row { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 0.9fr; gap: 8px; padding: 10px 12px; align-items: center; font-size: 0.76rem; }
.tr__th { font: 500 0.64rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--s-dim); border-bottom: 1px solid var(--s-line); }
.tr__row { border-bottom: 1px solid var(--s-line); transition: background 0.3s; animation: slideIn 0.5s var(--ease); }
.tr__row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr__row .mono { color: #8fa2ff; font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr__row.is-sel { background: rgba(124, 140, 255, 0.12); box-shadow: inset 2px 0 0 var(--indigo); }
.tr__drawer { background: var(--s1); border: 1px solid var(--s-line); border-radius: 12px; padding: 14px; }
.timeline { position: relative; display: grid; gap: 12px; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--s-line-2); }
.timeline li { position: relative; animation: slideIn 0.45s var(--ease); }
.timeline li::before { content: ""; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--indigo)); box-shadow: 0 0 0 3px var(--s1); }
.timeline b { display: block; font-size: 0.8rem; }
.timeline code { display: block; margin-top: 3px; font: 500 0.7rem/1.5 var(--f-mono); color: var(--s-dim); white-space: pre-wrap; word-break: break-all; }
.toast-in {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 14px; border-radius: 12px; font-size: 0.78rem;
  background: var(--s3); border: 1px solid var(--s-line-2); box-shadow: 0 20px 40px -12px #000;
  transition: transform 0.6s var(--spring), opacity 0.4s; opacity: 0;
}
.toast-in.is-on { transform: translate(-50%, 0); opacity: 1; }

/* Projects scene */
.pj { display: grid; gap: 14px; min-height: 380px; align-content: start; }
.pj__tabs { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 3px; border-radius: 999px; background: var(--s1); border: 1px solid var(--s-line); }
.pj__tabs::-webkit-scrollbar { display: none; }
.pj__tabs button { position: relative; z-index: 1; border: 0; background: transparent; color: var(--s-dim); font-size: 0.76rem; font-weight: 650; padding: 6px 12px; border-radius: 999px; white-space: nowrap; transition: color 0.3s; }
.pj__tabs button.is-on { color: #0b0e14; }
.pj__ink { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 999px; background: var(--pill); transition: transform 0.5s var(--ease), width 0.5s var(--ease); }
.pj__panel { background: var(--s1); border: 1px solid var(--s-line); border-radius: 14px; padding: 18px; min-height: 300px; }
.pj__panel > * { animation: slideIn 0.45s var(--ease) both; }
.pj__panel > *:nth-child(2) { animation-delay: 0.05s; }
.pj__panel > *:nth-child(3) { animation-delay: 0.1s; }
.pj__panel > *:nth-child(4) { animation-delay: 0.15s; }
.pj__panel > *:nth-child(5) { animation-delay: 0.2s; }
.pj__panel h4 { margin: 0 0 12px; font-size: 0.95rem; font-family: var(--f-display); letter-spacing: -0.02em; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--s-line); font-size: 0.84rem; }
.kv span { color: var(--s-dim); }
.kv b { font-variant-numeric: tabular-nums; }
.kv .mono { font-size: 0.78rem; color: #8fa2ff; }
.mid-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--s2); margin-bottom: 8px; font-size: 0.82rem; }
.mid-card .mono { color: #8fa2ff; font-size: 0.76rem; }
.mid-card .badge { margin-left: auto; }
.meter { height: 8px; border-radius: 999px; background: var(--s3); overflow: hidden; margin: 8px 0 14px; }
.meter span { display: block; height: 100%; width: var(--w); background: var(--pill); border-radius: inherit; animation: grow 1s var(--ease); }
@keyframes grow { from { width: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip { font-family: var(--f-mono); font-weight: 500; color: var(--s-text); }
.cb-field { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--s2); margin-bottom: 6px; font: 500 0.76rem var(--f-mono); }
.cb-field .grip { color: var(--s-dim); letter-spacing: -2px; }
.cb-field em { margin-left: auto; font-style: normal; color: var(--s-dim); }
.cb-field.is-new { animation: slideIn 0.5s var(--spring); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.5); }

/* Money bento */
.bento { margin-top: 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.bento__card { background: var(--s0); color: var(--s-text); border-radius: 20px; padding: 18px; border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 40px 80px -50px rgba(12, 18, 34, 0.6); min-width: 0; }
.bal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bal__c { background: var(--s1); border: 1px solid var(--s-line); border-radius: 14px; padding: 14px; min-width: 0; }
.bal__c b { display: block; margin: 10px 0 8px; font-family: var(--f-display); font-size: 1.5rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; transition: color 0.4s; }
.bal__c b.is-up { color: var(--green); }
.bal__c dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 0.72rem; }
.bal__c dt { color: var(--s-dim); }
.bal__c dd { margin: 0; font-variant-numeric: tabular-nums; }
.fx__row { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: center; gap: 10px; margin-top: 10px; }
.fx__side { background: var(--s1); border: 1px solid var(--s-line); border-radius: 14px; padding: 14px; min-width: 0; }
.fx__side b { display: block; margin-top: 8px; font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.fx__arrow svg { width: 100%; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 5; animation: dash 0.8s linear infinite; }
.fx__meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 0.74rem; }
.fx__spark { width: 100%; height: 50px; margin-top: 10px; }
.fx__spark path { fill: none; stroke: var(--violet); stroke-width: 2; }
.batch__bar { height: 10px; border-radius: 999px; background: var(--s2); overflow: hidden; margin-top: 4px; }
.batch__bar span { display: block; height: 100%; width: 0; background: var(--pill); border-radius: inherit; transition: width 0.3s linear; }
.batch__nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.batch__nums b { display: block; font-family: var(--f-display); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.batch__nums small { color: var(--s-dim); font-size: 0.72rem; }
.ok { color: var(--green); }
.bad { color: var(--red); }
.batch__rows { margin-top: 12px; display: grid; gap: 5px; height: 112px; overflow: hidden; mask-image: linear-gradient(#000 60%, transparent); -webkit-mask-image: linear-gradient(#000 60%, transparent); }
.batch__rows li { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 8px; font: 500 0.72rem var(--f-mono); padding: 6px 10px; background: var(--s1); border-radius: 8px; animation: slideIn 0.35s var(--ease); align-items: center; }
.ops__list { display: grid; gap: 6px; }
.ops__list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--s1); font-size: 0.84rem; transition: transform 0.3s var(--ease), background 0.3s; }
.ops__list li:hover { transform: translateX(4px); background: var(--s2); }
.ops__list b { margin-left: auto; font-variant-numeric: tabular-nums; }
.op { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--s3); font-size: 0.8rem; flex: none; }
.op--in { color: var(--green); background: rgba(52, 211, 153, 0.12); }
.op--out { color: var(--sky); background: rgba(56, 189, 248, 0.12); }
.op--warn { color: var(--amber); background: rgba(245, 185, 66, 0.12); }

/* Portals */
.portal { transition: box-shadow 0.5s; }
.portal__body { display: grid; grid-template-columns: 200px 1fr; gap: 14px; height: 500px; }
.portal__nav { background: var(--s1); border: 1px solid var(--s-line); border-radius: 14px; padding: 12px; }
.portal__brand { display: flex; align-items: center; gap: 10px; padding: 4px 4px 12px; border-bottom: 1px solid var(--s-line); margin-bottom: 8px; }
.portal__brand b { font-family: var(--f-display); font-size: 0.95rem; letter-spacing: -0.02em; transition: color 0.4s; }
.portal__logo { transition: background 0.5s; }
.portal__nav li {
  font-size: 0.8rem; font-weight: 600; color: var(--s-dim);
  padding: 0 10px; border-radius: 8px; max-height: 32px; line-height: 32px; overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s, transform 0.5s var(--ease), color 0.3s, background 0.3s;
}
.portal__nav li:first-child { color: var(--s-text); background: var(--s3); }
.portal[data-p="merchant"] .portal__nav li:not([data-both]) { max-height: 0; opacity: 0; transform: translateX(-16px); }
.portal[data-p="merchant"] .portal__logo { background: radial-gradient(circle at 40% 40%, #fff 0 8%, transparent 10%), radial-gradient(circle at 50% 50%, #E82576, #3a0b20 70%); }
.portal[data-p="merchant"] .portal__brand b { color: #ff7eb3; }
.portal[data-p="merchant"] .portal__nav li:first-child { background: rgba(232, 37, 118, 0.18); }
.portal[data-p="merchant"] .portal__cards b { color: #ffd1e3; }
.portal__main { display: grid; gap: 14px; align-content: start; }
.portal__hello { font-family: var(--f-display); font-size: 1.15rem; letter-spacing: -0.02em; }
.portal__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.portal__cards div { background: var(--s1); border: 1px solid var(--s-line); border-radius: 12px; padding: 12px; min-width: 0; }
.portal__cards small { color: var(--s-dim); font-size: 0.72rem; display: block; }
.portal__cards b { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: -0.03em; transition: color 0.4s; }
.portal__lines { display: grid; gap: 8px; background: var(--s1); border: 1px solid var(--s-line); border-radius: 12px; padding: 14px; }
.portal__lines span { height: 30px; border-radius: 8px; background: linear-gradient(90deg, var(--s2), var(--s3), var(--s2)); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.portal__lines span:nth-child(2) { width: 86%; } .portal__lines span:nth-child(3) { width: 92%; } .portal__lines span:nth-child(4) { width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Trust */
.trust { padding: clamp(72px, 8vw, 104px) 0; background: var(--s0); color: var(--s-text); position: relative; overflow: hidden; }
.trust::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 50% at 80% 0%, rgba(124, 140, 255, 0.16), transparent 70%), radial-gradient(40% 40% at 0% 100%, rgba(142, 230, 191, 0.1), transparent 70%); pointer-events: none; }
.trust .sec-head { position: relative; }
.trust__grid { position: relative; margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tcard { background: var(--s1); border: 1px solid var(--s-line); border-radius: 18px; padding: 20px; min-width: 0; transition: border-color 0.3s, transform 0.4s var(--ease); }
.tcard:hover { border-color: var(--s-line-2); transform: translateY(-4px); }
.tcard--wide { grid-column: span 2; grid-row: span 2; }
.tcard h3 { font-size: 1.15rem; }
.tcard > p { margin-top: 6px; color: var(--s-dim); font-size: 0.9rem; }
.otp { display: flex; gap: 6px; margin-top: 18px; }
.otp span { flex: 1; aspect-ratio: 0.8; max-width: 40px; display: grid; place-items: center; border-radius: 9px; background: var(--s2); border: 1px solid var(--s-line-2); font: 600 1.05rem var(--f-mono); transition: border-color 0.2s, background 0.3s; }
.otp span.is-cur { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2); }
.otp.is-ok span { border-color: var(--green); background: rgba(52, 211, 153, 0.1); color: var(--green); }
.rbac { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 0.8rem; }
.rbac th { font: 500 0.66rem var(--f-mono); color: var(--s-dim); text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 6px; }
.rbac td { padding: 6px 0; border-top: 1px solid var(--s-line); }
.rbac td:not(:first-child) { text-align: center; }
.rbac i { display: inline-block; width: 26px; height: 15px; border-radius: 999px; background: var(--s3); position: relative; transition: background 0.3s; vertical-align: middle; }
.rbac i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform 0.3s var(--spring); }
.rbac i.on { background: var(--green); }
.rbac i.on::after { transform: translateX(11px); }
.audit { margin-top: 16px; display: grid; align-content: start; gap: 8px; height: 270px; overflow: hidden; mask-image: linear-gradient(#000 75%, transparent); -webkit-mask-image: linear-gradient(#000 75%, transparent); }
.audit li { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 11px 12px; border-radius: 12px; background: var(--s2); animation: slideIn 0.55s var(--spring); }
.audit .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 0.68rem var(--f-mono); background: var(--s3); grid-row: span 2; }
.audit p { font-size: 0.84rem; }
.audit p span { color: var(--s-dim); }
.audit .diff { font: 500 0.72rem var(--f-mono); }
.audit .diff del { color: var(--red); text-decoration: line-through; opacity: 0.85; }
.audit .diff ins { color: var(--green); text-decoration: none; }
.certs { margin-top: 14px; display: grid; gap: 8px; }
.certs li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--s2); font-size: 0.8rem; }
.certs span { font: 500 0.7rem var(--f-mono); color: var(--s-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.certs em { font-style: normal; font-size: 0.72rem; }
.pan { position: relative; margin-top: 16px; padding: 16px; border-radius: 14px; background: linear-gradient(135deg, #2a3150, #171b28); border: 1px solid var(--s-line-2); display: grid; gap: 6px; overflow: hidden; }
.pan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.08) 50%, transparent 65%); transform: translateX(-100%); animation: sheen 5s infinite; }
.pan b { font: 600 1rem var(--f-mono); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.pan small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.72rem; color: var(--s-dim); transition: color 0.3s; }
.pan.is-open small { color: var(--green); }
.pan__lock { width: 22px; height: 22px; border-radius: 7px; background: var(--s3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pan.is-open .pan__lock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 7.5-2'/%3E%3C/svg%3E"); }

/* How */
.how { padding: clamp(64px, 7vw, 96px) 0; }
.steps { position: relative; margin-top: 54px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps__line { position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: var(--line); }
.steps__line span { display: block; height: 100%; width: 100%; background: var(--pill); transform-origin: 0 50%; transform: scaleX(var(--s, 0)); }
.steps li { position: relative; }
.steps__n { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); font-family: var(--f-display); font-weight: 800; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.steps li.is-lit .steps__n { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.steps h3 { margin-top: 20px; font-size: 1.3rem; }
.steps p { margin-top: 8px; color: var(--muted); }

/* Demo */
.demo { position: relative; padding: clamp(72px, 8vw, 104px) 0; background: var(--deep); color: #fff; overflow: hidden; }
.demo__bg { position: absolute; inset: 0; background: radial-gradient(50% 60% at 10% 10%, rgba(142, 230, 191, 0.16), transparent 70%), radial-gradient(50% 60% at 90% 90%, rgba(169, 155, 255, 0.2), transparent 70%); }
.demo__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.demo__copy h2 { margin-top: 14px; font-size: clamp(2rem, 4vw, 3rem); }
.demo__copy > p { margin-top: 16px; color: rgba(232, 238, 247, 0.62); font-size: 1.1rem; max-width: 28em; }
.demo .ticks { margin-top: 28px; }
.form-card { background: var(--white); color: var(--ink); border-radius: 22px; padding: 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; }
.field--full, .form .btn, .form__err { grid-column: 1 / -1; }
.field label { font-size: 0.84rem; font-weight: 650; }
.field label span { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b8c0d0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); background: var(--input-focus); box-shadow: 0 0 0 4px rgba(124, 140, 255, 0.18); }
.field.has-err input { border-color: #d9483a; box-shadow: 0 0 0 4px rgba(217, 72, 58, 0.1); }
.field__err { color: #d9483a; font-size: 0.8rem; }
.field__err:empty, .form__err:empty { display: none; }
.form__err { color: #d9483a; font-size: 0.9rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; font-weight: 500 !important; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--indigo); flex: none; }
.success { text-align: center; padding: 36px 8px; outline: none; }
.success__mark { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #0c1222; color: #8ee6bf; font-size: 1.6rem; animation: pop 0.6s var(--spring); }
.success h3 { margin-top: 16px; font-size: 1.5rem; }
.success p { margin-top: 8px; color: var(--muted); }

.footer { padding: 32px 0; background: var(--deep); color: rgba(255, 255, 255, 0.6); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 0.9rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.logo--footer { color: #fff; margin-right: auto; }
.footer__copy { opacity: 0.6; }

/* Theme toggle */
.theme-btn {
  position: relative; display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  overflow: hidden; transition: transform 0.25s var(--ease), border-color 0.2s;
}
.theme-btn:hover { transform: rotate(-15deg); border-color: var(--line-strong); }
.theme-btn svg {
  position: absolute; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.5s var(--spring), opacity 0.3s;
}
.theme-btn .i-moon { transform: translateY(26px) rotate(-60deg); opacity: 0; }
[data-theme="dark"] .theme-btn .i-sun { transform: translateY(-26px) rotate(60deg); opacity: 0; }
[data-theme="dark"] .theme-btn .i-moon { transform: none; opacity: 1; }
.nav__links + .theme-btn { margin-left: 4px; }

[data-theme="dark"] .win,
[data-theme="dark"] .console,
[data-theme="dark"] .bento__card { border-color: rgba(255, 255, 255, 0.09); box-shadow: 0 50px 100px -50px #000; }
[data-theme="dark"] .grad-text { background-image: linear-gradient(90deg, #34d399, #7c8cff 55%, #b79bff); }
[data-theme="dark"] .float { box-shadow: 0 24px 50px -24px #000; }
[data-theme="dark"] .marquee span::after { opacity: 0.8; }
[data-theme="dark"] .trust { background: #070910; border-block: 1px solid var(--line); }

/* Responsive */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .theme-btn { margin-left: auto; }
  .nav__inner .btn--sm { margin-left: -12px; }
  .nav__links + .theme-btn { margin-left: auto; }
  .feature__grid, .feature__grid--flip { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature__grid--flip .feature__copy { order: 0; }
  .feature__copy { max-width: 40em; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi--vol { grid-column: 1 / -1; }
  .vol { grid-template-columns: repeat(3, 1fr); }
  .float--a { right: 8px; top: auto; bottom: -24px; }
  .float--b { display: none; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .hero { padding-top: 40px; }
  .hero__stage-wrap { margin-top: 40px; }
  .console { border-radius: 16px; }
  .console__bar .chip:not(.chip--live) { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { display: none; }
  .kpi { min-height: 116px; }
  .kpi__v { font-size: 1.45rem; }
  .vol { grid-template-columns: 1fr; }
  .console__split { grid-template-columns: 1fr; }
  .mini-route { display: none; }
  .feed__list li { grid-template-columns: 1.3fr 0.8fr 0.9fr; }
  .feed__list li span:nth-child(2) { display: none; }
  .float--a { left: 12px; right: 12px; bottom: -30px; }
  .who { padding-top: 80px; }
  .who__grid { grid-template-columns: 1fr; }
  .feature, .how, .trust, .demo { padding: 56px 0; }
  .win__body { padding: 12px; }
  .win__bar em { display: none; }
  .sec-head--split { grid-template-columns: 1fr; }
  .studio__body { grid-template-columns: 1fr; grid-template-rows: 300px 380px; height: auto; }
  .rail button { flex: none; }
  .rf { grid-template-columns: 1fr; height: 640px; }
  .rf__log { height: 200px; }
  .an__kpis { grid-template-columns: 1fr 1fr; }
  .tr { grid-template-columns: 1fr; }
  .tr__drawer { height: 400px; overflow: hidden; }
  .tr__table { height: 318px; }
  .tabs-line span:not(.tab-pill) { display: none; }
  .bal__grid { grid-template-columns: 1fr; }
  .fx__row { grid-template-columns: 1fr 36px 1fr; }
  .portal__body { grid-template-columns: 1fr; height: auto; }
  .portal__nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .portal__nav li { line-height: 28px; max-height: 28px; background: var(--s2); }
  .portal[data-p="merchant"] .portal__nav li:not([data-both]) { max-height: 28px; transform: none; opacity: 0.18; text-decoration: line-through; }
  .portal__cards { grid-template-columns: 1fr 1fr; }
  .portal__cards div:last-child { display: none; }
  .trust__grid { grid-template-columns: 1fr; }
  .tcard--wide { grid-column: auto; grid-row: auto; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps__line { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
  .steps__line span { transform-origin: 50% 0; transform: scaleY(var(--s, 0)); }
  .demo__grid { grid-template-columns: 1fr; gap: 36px; }
  .form { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .stat-row { gap: 24px; }
  .marquee span { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-load], .js [data-reveal] { opacity: 1; transform: none; }
  .console { transform: none; }
  .marquee__track { animation: none; }
}
