/* ==========================================================================
   Section refresh · rebuilt from the reference brand's own section patterns
   Why (orb verdict) · Voice (stepped wave) · Trust (radar panel) · Roadmap (beam)
   Prefixes: wy- · vw- · tz- · rmx-  (refresh.js draws the figures)
   ========================================================================== */

/* ---------- Why: problems on the left, the platform's answer on the right,
   the reference's mesh orb between them. A beam carries each problem through
   the orb to its answer. ---------- */
.wy { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr) minmax(0, 1fr); align-items: center; column-gap: clamp(28px, 4.4vw, 72px); }
.wy-col { position: relative; z-index: 2; }
.wy-h { margin: 0 0 18px 4px; font-size: var(--fs-lg); font-weight: 600; letter-spacing: 0.01em; color: var(--ink-3); }
.wy-new .wy-h { color: var(--violet); }
.wy-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.wy-card { position: relative; padding: 22px 26px 24px; border-radius: var(--radius-sm); background: #fff; box-shadow: 0 1px 2px rgba(26, 11, 84, 0.04), 0 18px 40px -26px rgba(26, 11, 84, 0.16); transition: box-shadow 700ms var(--ease), translate 700ms var(--ease); }
.wy-card p { margin: 14px 0 0; font-size: var(--fs-xl); line-height: 1.42; text-wrap: pretty; }
.wy-old .wy-card p { color: var(--ink-3); }
.wy-new .wy-card p { color: var(--ink); }
.wy-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #c8c2d8; transition: background-color 700ms var(--ease); }
.wy-new .wy-ic { background: linear-gradient(135deg, #8130ff, #ac24ff); }
.wy-ic svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
/* the problem gets crossed out as its answer lights */
.wy-old p span { background: linear-gradient(rgba(26, 11, 84, 0.42), rgba(26, 11, 84, 0.42)) no-repeat 0 58% / 0% 1.5px; transition: background-size 900ms cubic-bezier(.65, 0, .35, 1) 150ms; }
.wy-old .wy-card.is-on p span { background-size: 100% 1.5px; }
.wy-old .wy-card.is-on .wy-ic { background: #a79fbe; }
.wy-new .wy-card.is-on { translate: 0 -3px; box-shadow: 0 0 0 1px rgba(129, 48, 255, 0.18), 0 26px 50px -24px rgba(129, 48, 255, 0.42); }
.wy-new .wy-card.is-on .wy-ic { animation: wyPop 900ms var(--ease) 700ms both; }
@keyframes wyPop { 0% { scale: 1; } 40% { scale: 1.22; } 100% { scale: 1; } }

.wy-orb { position: relative; z-index: 1; aspect-ratio: 1; width: 112%; max-width: 520px; justify-self: center; }
.wy-orb::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side at 36% 40%, rgba(172, 36, 255, 0.2), rgba(172, 36, 255, 0) 100%), radial-gradient(closest-side at 64% 64%, rgba(254, 136, 27, 0.15), rgba(254, 136, 27, 0) 100%); filter: blur(24px); }
/* stacked layers: static back and front, the mesh rings and sparks turn as their own
   HTML layers, so the rotation runs on the compositor instead of repainting the SVG */
.wy-orb > svg, .wy-rot { position: absolute; inset: 0; }
.wy-orb svg { width: 100%; height: 100%; overflow: visible; }
.wy-rot { animation: wySpin 140s linear infinite; animation-play-state: paused; }
.wy-rot.rev { animation-duration: 190s; animation-direction: reverse; }
.wy-rot.wy-sparks { animation: wySpin 140s linear infinite, wyTw 3.6s ease-in-out infinite alternate; animation-play-state: paused; }
.wy.is-live .wy-rot { animation-play-state: running; }
@keyframes wySpin { to { rotate: 360deg; } }
@keyframes wyTw { from { opacity: 0.55; } to { opacity: 1; } }
/* below 960px each problem sits beside (tablet) or above (phone) its answer */
@media (max-width: 960px) {
  .wy { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wy-col, .wy-col ul { display: contents; }
  .wy-h { display: none; }
  .wy-orb { grid-column: 1 / -1; order: 0; width: 100%; max-width: min(320px, 76vw); margin-bottom: 18px; }
  .wy-old .wy-card { order: calc(var(--k) * 2 + 1); }
  .wy-new .wy-card { order: calc(var(--k) * 2 + 2); }
}
@media (max-width: 600px) {
  .wy { grid-template-columns: 1fr; gap: 0; }
  .wy-old .wy-card { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 4px 6px 10px; background: none; box-shadow: none; }
  .wy-old .wy-card:first-of-type { margin-top: 0; }
  .wy-new .wy-card { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 20px; }
  .wy-card p { margin: 1px 0 0; font-size: 17px; }
  .wy-ic { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wy-rot { animation: none; }
  .wy-old p span, .wy-card { transition: none; }
}

/* ---------- Voice: one clip climbs a ribbon through four steps ---------- */
#voice .facts3 { margin-top: clamp(40px, 5vw, 72px); }
.vw-clip { position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(120px, 190px) minmax(0, 1fr); grid-template-areas: "play bars text" "play bars cap"; align-items: center; column-gap: clamp(16px, 2vw, 28px); max-width: 1040px; margin: 0 auto; padding: 18px clamp(18px, 2.4vw, 32px) 18px 18px; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 1px 2px rgba(26, 11, 84, 0.04), 0 24px 50px -30px rgba(26, 11, 84, 0.22); }
.vw-play { grid-area: play; align-self: center; display: grid; place-items: center; width: 60px; height: 60px; border: 0; border-radius: 14px; color: #fff; background-color: var(--blue); background-image: var(--ec-button); background-size: 300%; background-position: left; transition: background-position var(--dur-normal) var(--ease), scale 200ms var(--ease); }
.vw-play:hover, .vw-play[aria-pressed="true"] { background-position: right; }
.vw-play:active { scale: 0.97; }
.vw-play svg { width: 22px; height: 22px; translate: 1px 0; }
.vw-bars { grid-area: bars; display: flex; align-items: center; gap: 3px; height: 64px; }
.vw-bars i { flex: 1; height: var(--h); border-radius: 3px; background: linear-gradient(#8130ff, #ca45ff); opacity: 0.85; transform-origin: center; }
.vw-clip.is-playing .vw-bars i { animation: vwxTalk 0.8s ease-in-out infinite alternate; animation-delay: var(--dl); }
@keyframes vwxTalk { from { scale: 1 0.35; } to { scale: 1 1; } }
.vw-clip blockquote { grid-area: text; margin: 0; }
.vw-clip blockquote p { margin: 0; }
.vw-clip .te { font-size: 17px; line-height: 1.6; color: var(--ink); }
.vw-en { margin-top: 6px !important; font-size: var(--fs-lg); line-height: 1.5; color: var(--ink-3); }
.vw-clip figcaption { grid-area: cap; margin-top: 10px; font-size: var(--fs-md); font-weight: 600; color: var(--violet); }

.vw-stage { position: relative; height: 660px; margin-top: clamp(26px, 3vw, 44px); }
.vw-ribbon { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.vw-ribbon path { vector-effect: non-scaling-stroke; }
.vw-ribbon .ln path { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.9s cubic-bezier(.65, 0, .35, 1) var(--dl, 0s); }
.vw-ribbon.is-drawn .ln path { stroke-dashoffset: 0; }
.vw-ribbon .vw-glow { opacity: 0; transition: opacity 1.4s var(--ease) 0.7s; }
.vw-ribbon.is-drawn .vw-glow { opacity: 0.1; }
@media (prefers-reduced-motion: reduce) { .vw-ribbon .ln path, .vw-ribbon .vw-glow { transition: none; } }
.vw-steps { list-style: none; margin: 0; padding: 0; }
.vw-step { position: absolute; left: var(--x); top: var(--t); width: 21%; }
.vw-pill { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 24px 0 18px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 19px; font-weight: 600; box-shadow: 0 14px 34px -18px rgba(26, 11, 84, 0.3); }
.vw-pill::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: calc(100% + 6px); height: 64px; border-radius: 50%; background: rgba(129, 48, 255, 0.05); filter: blur(26px); pointer-events: none; }
.vw-pill i { position: relative; flex: none; width: 20px; height: 20px; }
.vw-pill i::before, .vw-pill i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 210deg, #1b4dfe, #ac24ff, #f79fff, #fe881b, #ffd600, #1b4dfe); }
.vw-pill i::before { -webkit-mask: radial-gradient(circle, transparent 6.4px, #000 7px); mask: radial-gradient(circle, transparent 6.4px, #000 7px); }
.vw-pill i::after { inset: 5px; scale: 0; transition: scale 600ms var(--ease); }
.vw-step.is-lit .vw-pill i::after { scale: 1; }
.vw-pill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px rgba(172, 36, 255, 0.28), 0 0 34px rgba(202, 69, 255, 0.35); opacity: 0; transition: opacity 600ms var(--ease); }
.vw-step.is-hot .vw-pill::after { opacity: 1; }
.vw-line { position: absolute; left: 27px; top: 54px; width: 1px; height: var(--h, 200px); background: linear-gradient(rgba(172, 36, 255, 0.7), rgba(254, 136, 27, 0.75) 88%, rgba(254, 136, 27, 0)); transform-origin: top; }
.vw-step ul { list-style: none; margin: 0; padding: 22px 0 0 58px; display: grid; gap: 14px; font-size: 16.5px; line-height: 1.3; color: var(--ink); }
.vw-step b { font-weight: 700; font-variant-numeric: tabular-nums; }
.vw-sent li { display: flex; align-items: center; gap: 9px; }
.vw-sent i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.vw-sent i.n { background: var(--neg); }
.vw-sent i.p { background: var(--pos); }
.vw-dot { position: absolute; left: 0; top: 0; z-index: 3; transition: opacity 400ms var(--ease); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(202, 69, 255, 0.55), 0 0 24px 6px rgba(202, 69, 255, 0.55), 0 0 60px 14px rgba(254, 136, 27, 0.25); opacity: 0; pointer-events: none; }
.js .vw-stage.is-armed .vw-step ul, .js .vw-stage.is-armed .vw-line { opacity: 0.32; transition: opacity 700ms var(--ease); }
.js .vw-stage.is-armed .vw-step.is-lit ul, .js .vw-stage.is-armed .vw-step.is-lit .vw-line { opacity: 1; }
@media (max-width: 1100px) { .vw-step ul { padding-left: 40px; font-size: 15.5px; } .vw-line { left: 22px; } .vw-pill { height: 48px; font-size: 17px; padding: 0 18px 0 14px; } .vw-line { top: 48px; } }
@media (max-width: 860px) {
  .vw-clip { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "play bars" "text text" "cap cap"; row-gap: 16px; }
  .vw-stage { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; padding-top: 150px; }
  .vw-ribbon { height: 140px; bottom: auto; }
  .vw-steps { display: contents; }
  .vw-step { position: static; width: auto; }
  .vw-line { display: none; }
  .vw-step ul { padding: 16px 0 0 4px; gap: 10px; }
}
@media (max-width: 520px) { .vw-stage { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .vw-clip.is-playing .vw-bars i { animation: none; } }

/* ---------- Trust: the reference's dark panel inside a light page, a list on
   a hairline, a radar of six protective rings, and the law on a dial ---------- */
#trust .tz-sheet { padding: clamp(16px, 3vw, 56px) 0; }
#trust .tz-sheet > .wrap { max-width: 1440px; padding: 0 clamp(8px, 2vw, 40px); }
.tz { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 34px); padding: clamp(14px, 2.2vw, 34px); border-radius: clamp(29px, 3.2vw, 46px); color: #fff;
  background: radial-gradient(130% 90% at 0% 100%, #28282e 0%, #1d1d21 30%, #161619 58%, #08080a 85%); }
.tz-copy { display: flex; flex-direction: column; min-width: 0; padding: clamp(18px, 4vw, 64px) clamp(4px, 2vw, 30px) clamp(6px, 1vw, 12px) clamp(6px, 4vw, 70px); }
.tz-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 15px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); font-size: var(--fs-lg); font-weight: 600; }
.tz-tag svg { width: 20px; height: 20px; fill: url(#gBrand); stroke: none; }
.tz .h2 { margin-top: clamp(24px, 3vw, 40px); color: #fff; max-width: 13ch; }
.tz-soft { color: #b4a3df; }
.tz-lead { margin: 18px 0 0; max-width: 46ch; font-size: var(--fs-xl); line-height: 1.5; color: #c8bce6; }
.tz-panes { margin-top: clamp(30px, 3.4vw, 46px); }
.tz-list { position: relative; list-style: none; margin: 0; padding: 0 0 0 clamp(26px, 3vw, 52px); }
.tz-list::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: rgba(169, 151, 206, 0.22); }
.tz-item { position: relative; }
.tz-item::before { content: ""; position: absolute; left: calc(-1 * clamp(26px, 3vw, 52px)); top: 6px; bottom: 6px; width: 2px; margin-left: -0.5px; border-radius: 2px; background: linear-gradient(#b997ff, #8130ff); transform: scaleY(0); transform-origin: top; transition: transform 500ms var(--ease); }
.tz-item.is-on::before { transform: scaleY(1); }
.tz.is-auto .tz-item.is-on::before { animation: tzFill var(--dwell, 4800ms) linear both; }
@keyframes tzFill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.tz-item button { display: block; width: 100%; margin: 0; padding: 11px 0; border: 0; background: none; text-align: left; font-size: clamp(18px, 1.45vw, 21px); font-weight: 500; line-height: 1.3; color: rgba(255, 255, 255, 0.6); transition: color var(--dur-instant) var(--ease); }
.tz-item button:hover, .tz-item.is-on button { color: #fff; }
.tz-d { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 600ms var(--ease); }
.tz-item.is-on .tz-d { grid-template-rows: 1fr; }
.tz-d > p { min-height: 0; overflow: hidden; margin: 0; max-width: 50ch; color: #b9abdc; font-size: var(--fs-lg); line-height: 1.55; }
.tz-item.is-on .tz-d > p { padding-bottom: 12px; }
.tz-silence { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.05); }
.tz-silence b { display: block; font-weight: 600; }
.tz-silence p { margin: 2px 0 0; color: #d0c4ee; font-size: var(--fs-md); }
.tz-seg { position: relative; align-self: flex-start; display: inline-flex; gap: 4px; margin-top: clamp(30px, 4vw, 56px); padding: 6px; border-radius: var(--radius-pill); background: rgba(11, 11, 13, 0.35); }
.tz-seg::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: linear-gradient(90deg, #fe881b, #ca45ff 45%, #1b4dfe); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.tz-seg button { position: relative; height: 50px; padding: 0 clamp(16px, 1.8vw, 26px); border: 0; border-radius: var(--radius-pill); background: none; color: #a997ce; font-size: var(--fs-lg); font-weight: 600; white-space: nowrap; transition: color var(--dur-instant), background-color var(--dur-instant); }
.tz-seg button:hover { color: #fff; }
.tz-seg button[aria-selected="true"] { background: #131316; color: #fff; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6); }

.tz-viz { position: relative; min-height: 560px; border-radius: clamp(20px, 2.2vw, 30px); background: #060607; overflow: hidden; }
.tz-viz svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tz-rings, .tz-dial, .tz-sweep { transition: opacity 800ms var(--ease); }
.tz-ring { fill: rgba(129, 48, 255, 0.045); stroke: rgba(221, 149, 255, 0.12); stroke-width: 1; transition: stroke 600ms var(--ease), stroke-width 600ms var(--ease); }
.tz-ring.is-on { stroke: rgba(221, 149, 255, 0.85); stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(202, 69, 255, 0.7)); }
.tz-node circle { fill: #151518; stroke: rgba(221, 149, 255, 0.35); transition: fill 600ms var(--ease), stroke 600ms var(--ease); }
.tz-node use { color: #b9abdc; transition: color 600ms var(--ease); }
.tz-node text { fill: #fff; font: 600 14px var(--font); opacity: 0; transition: opacity 500ms var(--ease); }
.tz-node.is-on circle { fill: #8130ff; stroke: #dd95ff; }
.tz-node.is-on use { color: #fff; }
.tz-node.is-on text { opacity: 1; }
.tz-sweep { position: absolute; inset: 0; animation: tzSweep 9s linear infinite; animation-play-state: paused; }
.tz.is-live .tz-sweep { animation-play-state: running; }
.tz.is-log .tz-sweep .tz-wedge { opacity: 1; }
.tz-wedge { opacity: 0.6; transition: opacity 600ms; }
@keyframes tzSweep { to { rotate: 360deg; } }
.tz-dial { opacity: 0; }
.tz[data-mode="law"] .tz-rings { opacity: 0.28; }
.tz[data-mode="law"] .tz-sweep, .tz[data-mode="law"] .tz-orbtxt { opacity: 0; }
.tz[data-mode="law"] .tz-dial { opacity: 1; }
.tz-arc { fill: none; stroke: url(#tzArcG); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(202, 69, 255, 0.75)); transition: opacity 600ms var(--ease); }
.tz-arc-off { fill: none; stroke: rgba(169, 151, 206, 0.45); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; opacity: 0; transition: opacity 600ms var(--ease); }
.tz.is-open .tz-arc { opacity: 0; }
.tz.is-open .tz-arc-off { opacity: 1; }
.tz-dial text { fill: #d6cbf2; font: 600 14px var(--font); }
.tz-dial .tz-big { fill: #fff; font: 600 20px var(--font); }
.tz-shackle { transition: translate 500ms var(--ease); }
.tz.is-open .tz-shackle { translate: 0 -6px; }
.tz-lockstate { transition: opacity 400ms; }
@media (max-width: 1000px) {
  .tz { grid-template-columns: 1fr; }
  .tz-viz { min-height: 0; aspect-ratio: 1 / 0.92; }
  .tz-copy { padding: 22px 10px 8px; }
}
@media (max-width: 560px) {
  .tz-seg { align-self: stretch; }
  .tz-seg button { flex: 1; padding: 0 10px; font-size: 14px; white-space: normal; line-height: 1.15; }
}
@media (prefers-reduced-motion: reduce) { .tz-sweep, .tz.is-auto .tz-item.is-on::before { animation: none; } .tz-d, .tz-item::before { transition: none; } }

/* ---------- Roadmap: four tall stages with a beam of light falling between
   them and pooling below, white-pink-violet only ---------- */
.rmx-sec { isolation: isolate; overflow: clip; padding-bottom: clamp(150px, 16vw, 250px); }
/* the second line carries the full ramp, cool to warm, like the beam below it */
.rmx-soft {
  background: linear-gradient(95deg, #2ba7ff 0%, #1b4dfe 22%, #ac24ff 48%, #f79fff 71%, #fe881b 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}
.rmx-beam { position: absolute; inset: 0; z-index: -1; pointer-events: none; --bdx: 0px; }
.rmx-beam::before { content: ""; position: absolute; left: 50%; top: var(--bt, 30%); width: clamp(26px, 2.6vw, 44px); height: calc(86% - var(--bt, 30%)); translate: calc(-50% + var(--bdx)) 0; border-radius: 50%;
  background: linear-gradient(180deg, rgba(254, 136, 27, 0) 0%, rgba(254, 136, 27, 0.42) 18%, rgba(255, 190, 112, 0.78) 44%, rgba(255, 234, 208, 0.94) 72%, #fff 100%); filter: blur(16px); transform: scaleY(0); transform-origin: top; transition: translate 1400ms var(--ease), transform 1800ms cubic-bezier(.65, 0, .35, 1); }
.rmx-beam::after { content: ""; position: absolute; left: 50%; bottom: 0; width: min(1700px, 168%); height: 72%; translate: calc(-50% + var(--bdx)) 0;
  background:
    radial-gradient(ellipse 13% 27% at 50% 73%, #fff 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 24% 38% at 50% 75%, rgba(255, 214, 170, 0.9) 0%, rgba(255, 214, 170, 0) 100%),
    radial-gradient(ellipse 40% 50% at 50% 79%, rgba(221, 149, 255, 0.82) 0%, rgba(221, 149, 255, 0) 100%),
    radial-gradient(ellipse 62% 66% at 50% 84%, rgba(172, 36, 255, 0.6) 0%, rgba(129, 48, 255, 0.3) 46%, rgba(48, 6, 129, 0) 100%);
  -webkit-mask-image: linear-gradient(#000 76%, transparent 100%); mask-image: linear-gradient(#000 76%, transparent 100%);
  opacity: 0; transition: translate 1400ms var(--ease), opacity 1600ms var(--ease) 500ms; }
.rmx-sec.is-lit .rmx-beam::before { transform: scaleY(1); }
.rmx-sec.is-lit .rmx-beam::after { opacity: 1; }
.rmx { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1vw, 16px); }
.rmx-card { position: relative; display: flex; flex-direction: column; min-height: clamp(400px, 34vw, 500px); padding: clamp(22px, 2.3vw, 36px); border-radius: clamp(26px, 2.6vw, 40px); overflow: hidden;
  background: linear-gradient(180deg, rgba(6, 6, 7, 0.95) 0%, rgba(20, 19, 24, 0.87) 40%, rgba(52, 48, 62, 0.5) 100%);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(169, 151, 206, 0.1); }
.rmx-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(90% 55% at 50% 100%, rgba(221, 149, 255, 0.2), rgba(221, 149, 255, 0)); opacity: 0; transition: opacity 900ms var(--ease); }
.rmx-card:hover::after, .rmx-card.is-on::after { opacity: 1; }
/* the beam rises between the middle two, so each card is lit from the side that
   faces it: --wx is where the light enters, --warm how much of it reaches here */
.rmx-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(96% 78% at var(--wx, 50%) 60%,
    rgba(255, 201, 134, var(--warm, 0)) 0%,
    rgba(255, 170, 120, calc(var(--warm, 0) * .78)) 26%,
    rgba(226, 150, 255, calc(var(--warm, 0) * .62)) 50%,
    rgba(129, 48, 255, 0) 84%);
  opacity: 0; transition: opacity 1500ms var(--ease) 250ms;
}
.rmx-sec.is-lit .rmx-card::before { opacity: 1; }
.rmx-card:nth-child(1) { --warm: .26; --wx: 118%; }
.rmx-card:nth-child(2) { --warm: .58; --wx: 101%; }
.rmx-card:nth-child(3) { --warm: .58; --wx: -1%; }
.rmx-card:nth-child(4) { --warm: .26; --wx: -18%; }
.rmx-tag { position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 22px 0 17px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.07); font-size: var(--fs-xl); font-weight: 600; }
/* the ring fills a little more at every stage */
.rmx-tag i { position: relative; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px #b46cff; }
.rmx-tag i::after { content: ""; position: absolute; inset: 0; margin: auto; width: calc(var(--k) * 3.3px); height: calc(var(--k) * 3.3px); border-radius: 50%; background: #c58bff; }
.rmx-card h3 { position: relative; z-index: 1; margin: auto 0 0; padding-top: 60px; font-size: clamp(25px, 2.3vw, 35px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.rmx-card ul { position: relative; z-index: 1; list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.rmx-card li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-lg); line-height: 1.3; color: #d2c6f0; }
.rmx-ck { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #8130ff, #ac24ff); }
.rmx-ck svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1101px) { @supports (grid-template-rows: subgrid) {
  .rmx { grid-template-rows: auto 1fr auto auto; }
  .rmx-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .rmx-tag { grid-row: 1; justify-self: start; }
  .rmx-card h3 { grid-row: 3; margin: 0; }
  .rmx-card ul { grid-row: 4; align-self: start; }
} }
@media (max-width: 1100px) { .rmx { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rmx-card { min-height: 360px; }
  .rmx-card:nth-child(odd) { --warm: .34; --wx: 108%; } .rmx-card:nth-child(even) { --warm: .34; --wx: -8%; } }
@media (max-width: 600px) { .rmx { grid-template-columns: 1fr; } .rmx-card { min-height: 0; } .rmx-card h3 { padding-top: 70px; } .rmx-beam::before { display: none; }
  .rmx-card:nth-child(n) { --warm: .26; --wx: 50%; } }
@media (prefers-reduced-motion: reduce) { .rmx-beam::before, .rmx-beam::after { transition: none; } }

/* ==========================================================================
   Proof line · the "how it works" teaser on the home page.
   One clip walks the eight steps: the orb speaks, each stop lights in turn as
   a glow travels the rail, and the score lands in the card. The loop runs only
   while the figure is on screen; under reduced motion it holds the end state.
   ========================================================================== */
.pf {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  padding: clamp(26px, 3vw, 44px) clamp(22px, 2.8vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--ec-card-wide);
  border: 1px solid var(--border);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45);
}
.pf-glow {
  position: absolute; left: 50%; top: -220px; width: min(900px, 110%); height: 420px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(172, 36, 255, .20), transparent 70%);
}

/* ---- the two ends ---- */
.pf-cap { position: relative; margin: 0; display: grid; justify-items: center; gap: 16px; text-align: center; max-width: 212px; }
.pf-out { max-width: 248px; }
.pf-cap figcaption b { display: block; font-size: var(--fs-lg); font-weight: 700; color: #fff; }
.pf-cap figcaption span { display: block; margin-top: 5px; color: var(--muted-foreground); font-size: var(--fs-md); line-height: 1.45; }

.pf-orb {
  position: relative; width: clamp(88px, 8vw, 106px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 26%, rgba(172, 36, 255, .34), rgba(10, 10, 12, .92) 70%);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 0 0 10px rgba(129, 48, 255, .05), 0 26px 60px rgba(129, 48, 255, .22);
}
.pf-orb::after {
  content: ''; position: absolute; inset: -13px; border-radius: 50%;
  border: 1px solid rgba(202, 69, 255, .22); animation: pf-ping 3.4s var(--ease) infinite;
}
.pf-wave { display: flex; align-items: center; gap: 3px; height: 40px; }
.pf-wave i {
  width: 3px; height: var(--h, 18px); border-radius: 3px;
  background: linear-gradient(180deg, #f79fff, #ac24ff);
  animation: pf-bar 1.15s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes pf-bar { 0%, 100% { transform: scaleY(.34) } 50% { transform: scaleY(1) } }
@keyframes pf-ping { 0% { transform: scale(.86); opacity: .85 } 70% { transform: scale(1.2); opacity: 0 } 100% { opacity: 0 } }
.pf:not(.is-live) .pf-wave i, .pf:not(.is-live) .pf-orb::after { animation-play-state: paused; }

.pf-card {
  display: grid; gap: 12px; min-width: 196px; padding: 17px 19px;
  border-radius: var(--radius-sm); background: var(--ec-card);
  border: 1px solid var(--border); box-shadow: 0 26px 60px rgba(0, 0, 0, .5);
}
.pf-num b {
  display: block; line-height: 1; font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(30px, 3vw, 42px); font-variant-numeric: tabular-nums;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.pf-num i { display: block; margin-top: 7px; font-style: normal; color: var(--muted-foreground); font-size: var(--fs-md); }
/* no score yet: the slot keeps its height but reads as waiting, not as a value */
.pf-num.is-wait b { background: none; color: rgba(255, 255, 255, .20); -webkit-text-fill-color: rgba(255, 255, 255, .20); }
.pf-ok { display: flex; align-items: center; gap: 7px; font-size: var(--fs-md); color: var(--muted-foreground); transition: color var(--dur-fast) var(--ease); }
.pf-ok.is-ok { color: var(--success); }
.pf-ok em { font-style: normal; }
.pf-ok svg { width: 16px; height: 16px; flex: none; }
.pf-ok b { font-variant-numeric: tabular-nums; }

/* ---- the rail of eight stops ---- */
.pf-track { position: relative; }
.pf-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.pf-step { position: relative; display: grid; justify-items: center; gap: 11px; text-align: center; }
.pf-step::before {
  content: ''; position: absolute; left: -50%; right: 50%; top: 25px; height: 2px;
  background: rgba(255, 255, 255, .09);
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.pf-step:first-child::before { content: none; }
.pf-dot {
  position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: #0f0f12;
  border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .42);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.pf-dot svg { width: 21px; height: 21px; }
.pf-lbl { font-size: var(--fs-md); font-weight: 600; color: rgba(255, 255, 255, .42); transition: color var(--dur-fast) var(--ease); }
.pf-step.is-on .pf-dot {
  color: #fff; background: color-mix(in srgb, var(--c) 20%, #0f0f12);
  border-color: color-mix(in srgb, var(--c) 72%, transparent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 11%, transparent), 0 0 26px color-mix(in srgb, var(--c) 45%, transparent);
}
.pf-step.is-on .pf-lbl { color: #fff; }
.pf-step.is-on::before { background: var(--c); box-shadow: 0 0 15px color-mix(in srgb, var(--c) 55%, transparent); }

/* the clip itself: a glow that travels behind the stops */
.pf-bead {
  position: absolute; left: 0; top: 0; z-index: 0; width: 74px; height: 74px; margin: -37px 0 0 -37px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, var(--bc, #ca45ff) 0%, transparent 68%);
  transform: translate(var(--bx, 0px), var(--by, 0px));
  transition: transform .62s var(--ease), opacity .4s var(--ease), background .4s linear;
}
.pf.is-run .pf-bead { opacity: .55; }

/* ---- the three figures under it ---- */
.pf-figs {
  list-style: none; margin: clamp(16px, 1.8vw, 24px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px);
}
.pf-figs li {
  display: grid; align-content: start; gap: 6px; padding: 18px 20px;
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, .022); border: 1px solid var(--border);
}
.pf-figs b { font-size: clamp(22px, 2.1vw, 29px); font-weight: 800; letter-spacing: -.025em; color: #fff; }
.pf-figs span { color: var(--muted-foreground); font-size: var(--fs-md); line-height: 1.45; }

/* ---- narrow: the rail stands up, the ends sit above and below it ---- */
@media (max-width: 1040px) {
  .pf { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(26px, 4vw, 40px); }
  .pf-cap, .pf-out { max-width: 440px; }
  .pf-track { width: auto; max-width: 100%; }
  .pf-rail { grid-auto-flow: row; grid-auto-columns: auto; gap: 18px; }
  .pf-step { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 15px; text-align: left; }
  .pf-step::before { left: 25px; right: auto; top: -20px; bottom: 50%; width: 2px; height: auto; }
  .pf-lbl { font-size: var(--fs-lg); }
}
@media (max-width: 700px) {
  .pf { padding: 24px 18px; }
  .pf-rail { gap: 13px; }
  .pf-step { gap: 13px; }
  .pf-dot { width: 46px; height: 46px; }
  .pf-dot svg { width: 19px; height: 19px; }
  .pf-step::before { left: 22px; top: -14px; }
  .pf-figs { grid-template-columns: minmax(0, 1fr); }
  .pf-figs li { padding: 15px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-wave i, .pf-orb::after { animation: none; }
  .pf-bead { transition: none; }
}

/* ==========================================================================
   Glance · "The whole state, five seconds to read." (index, #teaser-demo)
   Prefix gl-. The claim is made three times over: the living map on the left,
   the dashboard tile and the AI answer on the right, all reading one area at
   a time from the same demo database (refresh.js → Glance).
   ========================================================================== */
.gl { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr); gap: clamp(14px, 1.6vw, 24px); align-items: stretch; margin-top: clamp(26px, 3vw, 44px); }

/* ---------- left: the living map ---------- */
.gl-stage { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: clamp(14px, 1.5vw, 22px); border-radius: var(--radius-lg); background: var(--ec-card-wide); box-shadow: inset 0 0 0 1px var(--border); }
.gl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: var(--fs-md); color: var(--muted-foreground); }
.gl-live { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--border); color: #fff; font-weight: 600; }
.gl-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(63, 191, 138, 0.55); animation: glBeat 2.4s ease-out infinite; }
@keyframes glBeat { 0% { box-shadow: 0 0 0 0 rgba(63, 191, 138, 0.5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(63, 191, 138, 0); } }
.gl-scale { margin-left: auto; font-variant-numeric: tabular-nums; }
.gl-timer { position: absolute; top: 0; left: clamp(14px, 1.5vw, 22px); right: clamp(14px, 1.5vw, 22px); height: 2px; border-radius: var(--radius-pill); overflow: hidden; }
.gl-timer i { display: block; height: 100%; background: var(--ec-gradient-line); transform: scaleX(0); transform-origin: left; }
.gl.is-run .gl-timer i { animation: glRun var(--gl-dwell, 5s) linear forwards; }
@keyframes glRun { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.gl-canvas { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; }
.gl-amap { width: min(100%, 640px); }
.gl-amap svg { cursor: pointer; }
.gl-amap .mp-d:hover { stroke: #fff; }
.gl-tip { position: absolute; left: 0; top: 0; z-index: 6; width: 186px; padding: 11px 13px 12px; border-radius: 14px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.85); pointer-events: none; opacity: 0; transform: translate3d(var(--x, 50%), var(--y, 50%), 0) translate(-50%, -116%); transition: transform 900ms var(--ease), opacity 400ms var(--ease); }
.gl-tip.on { opacity: 1; }
.gl-tip::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.gl-tip b { display: block; font-size: var(--fs-lg); line-height: 1.2; }
.gl-tip .r { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 5px; font-size: var(--fs-xs); color: var(--ink-3); }
.gl-tip .r > span { display: inline-flex; align-items: center; min-width: 0; white-space: nowrap; }
.gl-tip .r strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.gl-tip .pc { flex: 0 0 auto; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; }
.gl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gl-chips a { padding: 7px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted-foreground); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; transition: color var(--dur-instant) var(--ease), background-color var(--dur-instant) var(--ease); }
.gl-chips a:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }

.gl-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 18px; }
.gl-legend { min-width: 190px; max-width: 320px; font-size: var(--fs-xs); color: var(--muted-foreground); }
.gl-legend b { display: block; margin-bottom: 6px; font-size: var(--fs-xs); font-weight: 600; color: #fff; }
.gl-legend .ramp { height: 7px; }
.gl-pips { display: flex; flex-wrap: wrap; gap: 5px; }
.gl-pips button { height: 30px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted-foreground); font: 600 var(--fs-xs) / 1 var(--font); cursor: pointer; transition: background-color var(--dur-instant) var(--ease), color var(--dur-instant) var(--ease); }
.gl-pips button:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.gl-pips button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: none; }

/* ---------- right: the dashboard tile and the AI answer ---------- */
.gl-side { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(14px, 1.6vw, 24px); min-width: 0; }
.gl-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(16px, 1.5vw, 22px); border-radius: var(--radius-lg); background: var(--ec-card); box-shadow: inset 0 0 0 1px var(--border); }
.gl-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.gl-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--border); }
.gl-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gl-spark svg { fill: url(#gWarm); stroke: none; }
.gl-head b { display: block; font-size: var(--fs-xl); font-weight: 600; line-height: 1.2; }
.gl-head small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--grey-text-dark); }
.gl-lang { padding: 3px; }
.gl-lang button { height: 30px; padding: 0 11px; font-size: var(--fs-xs); font-weight: 600; }

.gl-hero { display: grid; gap: 2px; }
.gl-where { font-size: var(--fs-md); font-weight: 600; color: var(--muted-foreground); }
.gl-big { font-size: clamp(42px, 4.6vw, 62px); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gl-big-l { font-size: var(--fs-md); color: var(--muted-foreground); }
.gl-big-l em { font-style: normal; font-weight: 600; }
.gl-up { color: #ffb36b; }
.gl-dn { color: var(--sky); }

.gl-h2h { display: grid; gap: 7px; }
.gl-h2h div { display: grid; grid-template-columns: 62px minmax(0, 1fr) 46px; align-items: center; gap: 10px; font-size: var(--fs-md); color: var(--muted-foreground); }
.gl-h2h .tr { height: 8px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.gl-h2h .tr i { display: block; height: 100%; border-radius: var(--radius-pill); transition: width 700ms var(--ease); }
.gl-h2h strong { justify-self: end; color: #fff; font-variant-numeric: tabular-nums; }

.gl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.gl-stats div b { display: block; font-size: var(--fs-xl); font-weight: 600; font-variant-numeric: tabular-nums; }
.gl-stats div span { display: block; margin-top: 1px; font-size: var(--fs-xs); color: var(--grey-text-dark); }

.gl-q { align-self: flex-start; max-width: 100%; margin: 0; padding: 9px 14px; border-radius: 14px 14px 14px 5px; background: rgba(255, 255, 255, 0.05); font-size: var(--fs-md); font-weight: 600; color: #fff; }
.gl-a { margin: 0; font-size: var(--fs-lg); line-height: 1.52; color: var(--muted-foreground); text-wrap: pretty; }
.gl-a b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.gl-a[lang="te"] { font-family: var(--font-te); font-size: var(--fs-md); line-height: 1.7; }
.gl-src { margin: 0; font-size: var(--fs-xs); color: var(--grey-text-dark); font-variant-numeric: tabular-nums; }
.gl-go { margin-top: auto; font-size: var(--fs-md); color: #fff; }
.gl-note { margin: clamp(14px, 1.6vw, 20px) 0 0; font-size: var(--fs-md); color: var(--grey-text-dark); text-align: center; }

@media (max-width: 1080px) {
  .gl { grid-template-columns: minmax(0, 1fr); }
  .gl-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .gl-amap { width: min(100%, 760px); }
}
@media (max-width: 720px) {
  .gl-side { grid-template-columns: minmax(0, 1fr); }
  .gl-what { display: none; }
  .gl-stats div span { text-wrap: balance; }
  .gl-tip { width: 168px; padding: 9px 11px 10px; }
  .gl-tip b { font-size: var(--fs-md); }
  .gl-foot { flex-direction: column; align-items: stretch; }
  .gl-pips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; }
  .gl-pips::-webkit-scrollbar { display: none; }
  .gl-pips button { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .gl-timer { display: none; }
  .gl-tip, .gl-h2h .tr i { transition: none; }
  .gl-live i { animation: none; }
}
