/* ViralClan premium UI layer — motion system and animated components.
   Loaded after app.css; uses only the semantic tokens defined there. */

:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-1: 160ms; --dur-2: 260ms; --dur-3: 420ms; --dur-4: 700ms;
  --glow: color-mix(in srgb, var(--accent) 38%, transparent);
  --glass: color-mix(in srgb, var(--surface) 72%, transparent);
  --hairline: color-mix(in srgb, var(--text-strong) 8%, transparent);
  --p-instagram: #E1306C; --p-tiktok: #25F4EE; --p-youtube: #FF3D3D; --p-x: #E5E7EB; --p-facebook: #4C8DFF; --p-other: var(--vc-lavender);
}
[data-theme="light"] { --glass: color-mix(in srgb, #FFFFFF 78%, transparent); --hairline: color-mix(in srgb, var(--vc-midnight) 8%, transparent); --p-x: #0B0D17; --p-tiktok: #0EA5A9; }

/* ───── reveal-on-scroll (only when JS + motion are on) ───── */
.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.view-in { animation: viewIn var(--dur-3) var(--ease-out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.swap > * { animation: swapIn var(--dur-3) var(--ease-out) both; }
.swap > *:nth-child(2) { animation-delay: 40ms; } .swap > *:nth-child(3) { animation-delay: 80ms; } .swap > *:nth-child(4) { animation-delay: 120ms; } .swap > *:nth-child(5) { animation-delay: 160ms; } .swap > *:nth-child(6) { animation-delay: 200ms; }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* ───── buttons ───── */
.btn.lg { min-height: 52px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn svg { transition: transform var(--dur-2) var(--ease-out); }
.lift { transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color .12s, border-color .12s; }
.lift:hover { transform: translateY(-2px); }
.lift:hover svg:last-child { transform: translateX(3px); }
.btn.primary.lift:hover { box-shadow: 0 10px 30px -10px var(--glow); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover { text-decoration: none; } .link-arrow:hover svg { transform: translateX(3px); }
.eyebrow + h2.mt0, h2.mt0 { margin-top: 8px; }

/* ───── header + morph navigation ───── */
.top { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(1.4) blur(16px); }
.nav { position: relative; }
.nav a { position: relative; z-index: 1; transition: color var(--dur-1); }
.nav a:hover, .nav a.on { background: transparent; }
.nav-ind { position: absolute; left: 0; top: 0; height: 100%; border-radius: var(--radius-control); background: var(--surface); border: 1px solid var(--hairline); opacity: 0; transition: transform var(--dur-3) var(--ease-out), width var(--dur-3) var(--ease-out), opacity var(--dur-2); pointer-events: none; }
.cmdk-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: var(--radius-control); border: 1px solid var(--border); background: var(--glass); color: var(--muted); font: 500 13px var(--font); cursor: pointer; transition: border-color var(--dur-1), color var(--dur-1); }
.cmdk-btn:hover { border-color: var(--accent-line); color: var(--text-strong); }
.cmdk-btn svg { width: 16px; height: 16px; }
.cmdk-btn kbd, .side-search kbd, .cmdk kbd { font: 600 11px var(--font-mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border-strong); color: var(--muted); background: var(--surface); }
@media (min-width: 860px) { .cmdk-btn { min-width: 180px; } .cmdk-btn kbd { margin-left: auto; } }
.burger { width: 18px; height: 14px; position: relative; display: block; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2), top var(--dur-3) var(--ease-out); }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 6px; } .burger i:nth-child(3) { top: 12px; }
[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.drawer { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(18px); clip-path: inset(0 0 100% 0); transition: clip-path var(--dur-3) var(--ease-out); padding-bottom: var(--space-6); }
.drawer.open { clip-path: inset(0 0 0 0); }
.drawer a { display: flex; align-items: center; justify-content: space-between; font-size: 17px; opacity: 0; transform: translateY(-6px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), background-color .12s; transition-delay: calc(var(--d) * 35ms); }
.drawer a.on { color: var(--link); }
.drawer a svg { width: 18px; height: 18px; color: var(--muted); }
.drawer .btn { opacity: 0; transition: opacity var(--dur-3) var(--ease-out); transition-delay: calc(var(--d) * 35ms); }
.drawer.open a, .drawer.open .btn { opacity: 1; transform: none; }
.side-search { margin: 18px 12px 0; width: calc(100% - 24px); display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-control); border: 1px solid var(--border); background: transparent; color: var(--muted); font: 500 13px var(--font); cursor: pointer; }
.side-search:hover { color: var(--text-strong); border-color: var(--accent-line); }
.side-search svg { width: 16px !important; height: 16px !important; }
.side-search kbd { margin-left: auto; }
.side a { transition: color var(--dur-1), background-color var(--dur-1); }
.tabbar { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(1.4) blur(16px); }
.tabbar a { position: relative; z-index: 1; transition: color var(--dur-2); }
.tab-ind { position: absolute; top: 6px; height: 40px; width: calc(20% - 12px); left: 6px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); transform: translateX(calc(var(--from) * (100vw / 5))); }
.tabbar.settle .tab-ind { transform: translateX(calc(var(--to) * (100vw / 5))); transition: transform var(--dur-3) var(--ease-spring); }
.tab-ind.hidden { display: none; }

/* ───── toast stack ───── */
.toasts { position: fixed; z-index: 70; left: auto; right: 16px; bottom: 84px; transform: none; width: min(380px, calc(100vw - 32px)); display: block; transition: height var(--dur-3) var(--ease-out); }
@media (min-width: 960px) { .toasts { right: 24px; bottom: 24px; } }
.toast { position: absolute; right: 0; bottom: 0; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border: 1px solid var(--border-strong); border-left: 1px solid var(--border-strong); border-radius: 14px; background: color-mix(in srgb, var(--surface-raised) 92%, transparent); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
  transform-origin: bottom center; opacity: 0; transform: translateY(16px) scale(.96);
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease-out); }
.toast.in { opacity: calc(1 - var(--i) * .18); transform: translateY(calc(var(--i) * -10px)) scale(calc(1 - var(--i) * .05)); z-index: calc(10 - var(--i)); }
.toasts.open .toast.in { opacity: 1; transform: translateY(var(--y)); }
.toast.buried { opacity: 0 !important; pointer-events: none; }
.toast.leaving { opacity: 0 !important; transform: translateX(24px) scale(.96) !important; }
.toast-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--link); }
.toast-ic svg { width: 16px; height: 16px; }
.toast.ok .toast-ic, .toast-ic.ok { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.toast.bad .toast-ic { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.toast-msg { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; color: var(--text-strong); }
.toast-x { width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; flex: none; opacity: .6; }
.toast-x:hover { opacity: 1; background: var(--surface); }
.toast-x svg { width: 14px; height: 14px; }

/* ───── command palette ───── */
dialog.cmdk { width: min(620px, calc(100vw - 24px)); margin-top: min(14vh, 120px); padding: 0; border: 1px solid var(--border-strong); border-radius: 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(20px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px var(--hairline); overflow: hidden; }
dialog.cmdk[open] { animation: cmdkIn var(--dur-3) var(--ease-out); }
dialog.cmdk::backdrop { background: color-mix(in srgb, var(--vc-midnight) 55%, transparent); backdrop-filter: blur(3px); }
@keyframes cmdkIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cmdk-in svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.cmdk-in input { border: 0; background: transparent; box-shadow: none !important; padding: 4px 0; min-height: 0; font-size: 16px; }
.cmdk-list { max-height: min(56vh, 420px); overflow-y: auto; padding: 8px; scroll-padding: 8px; }
.cmdk-group { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; color: var(--text); }
.cmdk-item.on { background: var(--accent-soft); color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--accent-line); }
.cmdk-ic { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); flex: none; color: var(--muted); }
.cmdk-ic svg { width: 16px; height: 16px; }
.cmdk-label { display: block; font-size: 14px; font-weight: 500; }
.cmdk-sub { display: block; font-size: 12px; color: var(--muted); }
.cmdk-go { opacity: 0; color: var(--link); transition: opacity var(--dur-1), transform var(--dur-2) var(--ease-out); transform: translateX(-4px); }
.cmdk-go svg { width: 16px; height: 16px; }
.cmdk-item.on .cmdk-go { opacity: 1; transform: none; }
.cmdk-empty { padding: 28px; text-align: center; color: var(--muted); }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); }
.cmdk-foot kbd { margin-right: 2px; }
@media (max-width: 640px) { .cmdk-foot { display: none; } }

/* ───── platform monograms (we don't reproduce platform logos) ───── */
.mono-badge { --c: var(--p-other); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; font: 800 11px/1 var(--font); letter-spacing: .02em; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.mono-badge.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.mono-badge.lg { width: 48px; height: 48px; border-radius: 14px; font-size: 14px; }
.p-instagram { --c: var(--p-instagram); } .p-tiktok { --c: var(--p-tiktok); } .p-youtube { --c: var(--p-youtube); } .p-x { --c: var(--p-x); } .p-facebook { --c: var(--p-facebook); } .p-other { --c: var(--p-other); }

/* ───── spotlight cards ───── */
.glow-card { position: relative; isolation: isolate; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); transition: border-color var(--dur-2), transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out); }
.glow-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1; opacity: 0; transition: opacity var(--dur-2);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 85%, white 15%), transparent 65%);
  -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); }
.glow-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity var(--dur-2); background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%); }
.glow-card:hover::before, .glow-card:hover::after, .glow-card:focus-within::before { opacity: 1; }
a.glow-card:hover, .svc-card:hover { translate: 0 -4px; box-shadow: 0 22px 40px -26px var(--glow); text-decoration: none; }

/* ───── hero ───── */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
@media (min-width: 960px) { .hero { padding: 96px 0 72px; } }
.hero-glow { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(600px 420px at 78% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(500px 300px at 10% 0%, color-mix(in srgb, var(--vc-deep-purple) 14%, transparent), transparent 70%); }
.spot-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity var(--dur-4);
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 40%), color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%); }
.spot-hero.lit::before { opacity: 1; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { gap: 48px; }
@media (min-width: 1040px) { .hero-grid { grid-template-columns: 1fr 1.05fr; } }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); letter-spacing: -.045em; line-height: 1; margin: 16px 0 18px; }
.hero h1 .accent { background: linear-gradient(100deg, var(--vc-lavender), var(--accent) 60%, var(--vc-lavender)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 6s var(--ease-out) infinite alternate; }
[data-theme="light"] .hero h1 .accent { background-image: linear-gradient(100deg, var(--vc-deep-purple), var(--accent) 60%, var(--vc-deep-purple)); }
@keyframes sheen { to { background-position: 100% 0; } }
.hero .lead { font-size: clamp(17px, 1.8vw, 19px); max-width: 540px; }
.hero-cta { margin-top: 28px; }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 15px; height: 15px; color: var(--success); }

/* ───── charts ───── */
.chart { position: relative; outline: none; border-radius: 10px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--border); stroke-dasharray: 3 5; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 6px 12px var(--glow)); }
.chart.in .line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease-out); }
.chart .area { opacity: 0; transition: opacity 1.2s var(--ease-out) .5s; }
.chart.in .area { opacity: 1; }
.chart .cross { stroke: var(--accent-line); stroke-dasharray: 3 3; opacity: 0; vector-effect: non-scaling-stroke; }
.chart .dot { fill: var(--bg); stroke: var(--accent); stroke-width: 3; opacity: 0; vector-effect: non-scaling-stroke; }
.chart.hot .cross, .chart.hot .dot { opacity: 1; }
.chart:focus-visible { box-shadow: 0 0 0 2px var(--focus); }
.chart-x { display: flex; justify-content: space-between; margin-top: 4px; }
.chart-tip { position: absolute; top: -6px; left: 0; display: grid; padding: 6px 10px; border-radius: 10px; background: var(--surface-raised); border: 1px solid var(--border-strong); font-size: 12px; pointer-events: none; opacity: 0; transition: opacity var(--dur-1); white-space: nowrap; box-shadow: var(--shadow); }
.chart-tip b { font-size: 14px; } .chart-tip span { color: var(--muted); }
.chart.hot .chart-tip { opacity: 1; }
.chart-card { padding: 20px; }
.chart-card .chart { margin-top: 16px; }
.chart-total { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--text-strong); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chart-empty { display: grid; justify-items: center; gap: 10px; padding: 36px 16px 20px; text-align: center; }
.chart-empty > span svg { width: 32px; height: 32px; color: var(--accent); opacity: .7; }

/* ───── platform discovery ───── */
.plat-tile { display: grid; gap: 8px; min-height: 150px; padding: 18px; align-content: start; color: inherit; overflow: hidden; }
.plat-tile b { font-size: 18px; margin-top: 6px; }
.tile-go { position: absolute; right: 16px; bottom: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-raised); color: var(--muted); transition: transform var(--dur-3) var(--ease-out), background-color var(--dur-2), color var(--dur-2); }
.tile-go svg { width: 15px; height: 15px; }
.plat-tile:hover .tile-go { transform: translateX(2px) rotate(-30deg); background: var(--accent); color: var(--on-accent); }
.plat-tile .mono-badge { transition: transform var(--dur-3) var(--ease-spring); }
.plat-tile:hover .mono-badge { transform: scale(1.08) rotate(-4deg); }

/* ───── marketplace ───── */
.glass { background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: 20px; }
.market { padding: clamp(14px, 2.4vw, 24px); }
.market-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.sticky-tools { position: sticky; top: 72px; z-index: 5; padding: 10px; margin: 0 -10px 18px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); }
.search-field { position: relative; display: flex; align-items: center; flex: 1 1 220px; max-width: 320px; }
.search-field svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search-field input { padding-left: 36px; border-radius: 12px; }
@media (max-width: 720px) { .search-field { max-width: none; } }
.svc-card { padding: 18px; display: grid; gap: 12px; align-content: start; height: 100%; }
.svc-card .meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.svc-card h3 { font-size: 17px; }
.svc-card h3 a { color: var(--text-strong); }
.svc-card .stretch::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.svc-card .btn, .svc-card .meta { position: relative; z-index: 2; }
.svc-card .facts { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: var(--fs-xs); }
.svc-foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.svc-card .price { font-size: 22px; font-weight: 800; color: var(--text-strong); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.svc-card .unit { color: var(--muted); font-size: var(--fs-sm); }
.cat-group h2 { gap: 12px; }
.cat-group h2 .tiny { font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }

/* ───── tabs with sliding indicator ───── */
.seg { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface-sunken); border: 1px solid var(--border); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg [role="tab"] { position: relative; z-index: 1; flex: none; border: 0; background: transparent; color: var(--muted); font: 600 13px var(--font); padding: 0 14px; min-height: 36px; border-radius: 9px; cursor: pointer; transition: color var(--dur-2); display: inline-flex; align-items: center; gap: 6px; }
.seg [role="tab"]:hover { color: var(--text-strong); }
.seg [role="tab"][aria-selected="true"] { color: var(--text-strong); }
.seg-ind { position: absolute; z-index: 0; left: 0; top: 4px; bottom: 4px; border-radius: 9px; background: var(--surface-raised); border: 1px solid var(--hairline); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .6), inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); transition: transform var(--dur-3) var(--ease-out), width var(--dur-3) var(--ease-out); }
.seg-n { font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.tabs a { transition: background-color var(--dur-2), color var(--dur-2), border-color var(--dur-2); }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 40px; height: 24px; border-radius: 999px; background: var(--surface-raised); border: 1px solid var(--border-strong); position: relative; transition: background-color var(--dur-2); flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-strong); transition: transform var(--dur-3) var(--ease-spring); }
.switch input:checked + .switch-ui { background: var(--accent); border-color: transparent; }
.switch input:checked + .switch-ui::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + .switch-ui { box-shadow: 0 0 0 2px var(--focus); }

/* ───── how it works journey ───── */
.center-head { display: grid; justify-items: center; text-align: center; }
.journey { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
@media (min-width: 860px) { .journey { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.journey-line { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.journey-line i { position: absolute; inset: 0; background: linear-gradient(var(--accent), var(--vc-lavender)); transform-origin: top; transform: scaleY(0); transition: transform 1.6s var(--ease-out) .2s; }
@media (min-width: 860px) { .journey-line { left: calc(100% / 6); right: calc(100% / 6); top: 27px; bottom: auto; width: auto; height: 2px; } .journey-line i { transform-origin: left; transform: scaleX(0); } }
.journey.in .journey-line i, :not(.motion) .journey-line i { transform: none; }
.journey-step { position: relative; display: grid; gap: 8px; padding-left: 76px; }
@media (min-width: 860px) { .journey-step { padding-left: 0; justify-items: center; text-align: center; } }
.journey-node { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--accent-line); color: var(--link); box-shadow: 0 0 0 6px var(--bg), 0 12px 30px -12px var(--glow); }
@media (min-width: 860px) { .journey-node { position: relative; margin-bottom: 10px; } }
.journey-node svg { width: 22px; height: 22px; }
.journey-node em { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--font); font-style: normal; background: var(--accent); color: var(--on-accent); }
.journey-step h3 { margin: 0; }

/* ───── bento grid ───── */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } .b-wallet { grid-column: span 2; } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(190px, auto); } .b-wallet { grid-column: span 4; grid-row: span 2; } .b-track { grid-column: span 2; } .b-api { grid-column: span 2; } .b-resell { grid-column: span 3; } .b-account { grid-column: span 3; } }
.bento-card { padding: 22px; display: grid; gap: 8px; align-content: start; overflow: hidden; }
.bento-card h3 { margin: 4px 0 0; font-size: 19px; }
.bento-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--link); border: 1px solid var(--accent-line); }
.bento-ic svg { width: 20px; height: 20px; }
.b-wallet { grid-template-columns: 1fr; align-content: space-between; }
@media (min-width: 720px) { .b-wallet { grid-template-columns: 1fr 1fr; align-items: center; } }
.mini-tl { display: grid; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.mini-tl span { display: flex; align-items: center; gap: 10px; }
.mini-tl i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-strong); transition: background-color var(--dur-3), border-color var(--dur-3), box-shadow var(--dur-3); }
.mini-tl.in span:nth-child(1) i { transition-delay: .2s; } .mini-tl.in span:nth-child(2) i { transition-delay: .6s; } .mini-tl.in span:nth-child(3) i { transition-delay: 1s; } .mini-tl.in span:nth-child(4) i { transition-delay: 1.4s; }
.mini-tl.in i, :not(.motion) .mini-tl i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.code-mini { margin: 8px 0 0; font-size: 12px; padding: 12px; }
.code-mini .k { color: var(--vc-lavender); font-weight: 700; } .code-mini .s { color: var(--success); }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tiers { display: grid; gap: 8px; margin-top: 10px; }
.tiers span { position: relative; height: 30px; border-radius: 9px; background: var(--surface-sunken); border: 1px solid var(--border); overflow: hidden; }
.tiers span::before { content: ""; position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--accent-soft), color-mix(in srgb, var(--accent) 40%, transparent)); transition: width 1.2s var(--ease-out); }
.tiers.in span::before, :not(.motion) .tiers span::before { width: var(--w); }
.tiers span:nth-child(2)::before { transition-delay: .15s; } .tiers span:nth-child(3)::before { transition-delay: .3s; }
.tiers b { position: relative; font-size: 12px; line-height: 28px; padding-left: 10px; }
.ticks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; color: var(--muted); }
.ticks li { display: flex; gap: 8px; align-items: center; } .ticks svg { width: 16px; height: 16px; color: var(--success); flex: none; }

/* ───── wallet stack ───── */
.wallet-stack { position: relative; height: 230px; perspective: 1000px; outline: none; }
.wcard { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; border-radius: 18px; padding: 18px 20px; display: grid; align-content: space-between; color: #fff; border: 1px solid rgba(255, 255, 255, .14); transition: transform var(--dur-4) var(--ease-out); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .8); overflow: hidden; }
.wcard::after { content: ""; position: absolute; inset: 0; background: radial-gradient(260px 160px at 85% 0%, rgba(255, 255, 255, .22), transparent 70%); pointer-events: none; }
.wcard.w1 { z-index: 3; background: linear-gradient(135deg, var(--vc-deep-purple), var(--vc-purple) 55%, var(--vc-lavender)); }
.wcard.w2 { z-index: 2; transform: translateY(-18px) scale(.95); background: linear-gradient(135deg, #2A1F5C, #3A2A80); opacity: .9; }
.wcard.w3 { z-index: 1; transform: translateY(-34px) scale(.9); background: linear-gradient(135deg, #1B1638, #26204D); opacity: .75; }
.wcard .tiny { color: rgba(255, 255, 255, .78); }
.wcard b { font-size: 20px; }
.wcard-v { font-size: clamp(28px, 4vw, 38px) !important; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wcard-logo { display: grid; place-items: center; padding: 6px 8px; border-radius: 10px; background: var(--vc-midnight); border: 1px solid rgba(255, 255, 255, .12); }
.wcard-logo .brand-icon { height: 24px; }
.wcard-logo .brand-icon.on-light { display: none !important; }
.wcard-logo .brand-icon.on-dark { display: block !important; }
.wallet-stack:hover .w2, .wallet-stack:focus .w2 { transform: translateY(-46px) scale(.96) rotate(-2deg); }
.wallet-stack:hover .w3, .wallet-stack:focus .w3 { transform: translateY(-84px) scale(.92) rotate(2deg); }
.wallet-stack:hover .w1, .wallet-stack:focus .w1 { transform: translateY(6px); }
.wallet-stack.mini { height: 200px; max-width: 340px; width: 100%; justify-self: end; }
.wallet-stack.mini .wcard { height: 150px; }
.b-wallet:hover .wallet-stack.mini .w2 { transform: translateY(-36px) scale(.96) rotate(-2deg); }
.b-wallet:hover .wallet-stack.mini .w3 { transform: translateY(-66px) scale(.92) rotate(2deg); }
.tx-list { display: grid; gap: 8px; }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: border-color var(--dur-2), transform var(--dur-2) var(--ease-out); }
.tx:hover { border-color: var(--accent-line); transform: translateX(2px); }
.tx-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.tx-ic svg { width: 16px; height: 16px; }
.tx-ic.in { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.tx-ic.out { background: var(--accent-soft); color: var(--link); }
.tx-amt { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-strong); }
.tx-amt.pos { color: var(--success); }

/* ───── metric cards ───── */
.metrics { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .metrics { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.metric { padding: 18px; display: grid; gap: 6px; align-content: start; color: inherit; min-width: 0; }
.metric-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--link); margin-bottom: 6px; }
.metric-ic svg { width: 17px; height: 17px; }
.metric-l { color: var(--muted); font-size: 13px; font-weight: 500; }
.metric-v { font-size: clamp(24px, 3vw, 30px); font-weight: 800; color: var(--text-strong); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-wallet { grid-column: 1 / -1; background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface) 70%); border-color: var(--accent-line); }
@media (min-width: 1100px) { .metric-wallet { grid-column: auto; } }
.metric-wallet .metric-v { font-size: clamp(28px, 4vw, 38px); }
.shortcuts .card { transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2); }
.list-item { transition: border-color var(--dur-2), transform var(--dur-2) var(--ease-out); }
a.list-item:hover { transform: translateX(2px); }

/* ───── morph select ───── */
.field { display: grid; gap: 6px; }
.field-label { font-weight: 500; font-size: var(--fs-sm); color: var(--text-strong); }
.morph { position: relative; }
.morph-trigger { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-sunken); color: var(--text-strong); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--dur-2), box-shadow var(--dur-2); }
.morph-trigger:hover { border-color: var(--muted); }
.morph-trigger:focus-visible, .morph.open .morph-trigger { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.morph-val { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.morph-label { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.morph-sub { display: block; font-size: 12px; color: var(--muted); }
.morph-chev svg { width: 18px; height: 18px; color: var(--muted); transition: transform var(--dur-3) var(--ease-out); }
.morph.open .morph-chev svg { transform: rotate(180deg); }
.morph-panel { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); border-radius: 14px; border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(18px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .75);
  transform-origin: top center; transform: scaleY(.6) translateY(-8px); opacity: 0; clip-path: inset(0 0 60% 0 round 14px); transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2), clip-path var(--dur-3) var(--ease-out); overflow: hidden; }
.morph.open .morph-panel { transform: none; opacity: 1; clip-path: inset(0 0 0 0 round 14px); }
.morph-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.morph-search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.morph-search input { border: 0; background: transparent; box-shadow: none !important; padding: 2px 0; min-height: 0; }
.morph-list { max-height: 300px; overflow-y: auto; padding: 6px; }
.morph-group { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 8px 4px; }
.morph-opt { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; cursor: pointer; }
.morph-opt.act, .morph-opt:hover { background: var(--accent-soft); }
.morph-tick svg { width: 16px; height: 16px; color: var(--link); }
.morph-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.summary-card .mono-badge { width: 40px; height: 40px; }

/* ───── data grid ───── */
.table-wrap { max-height: none; }
table[data-grid] thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
th .sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
th .sort:focus-visible { outline: 2px solid var(--focus); border-radius: 4px; }
.sort-ic svg { width: 12px; height: 12px; opacity: 0; transition: opacity var(--dur-1), transform var(--dur-2); }
th:hover .sort-ic svg, th[aria-sort="ascending"] .sort-ic svg, th[aria-sort="descending"] .sort-ic svg { opacity: 1; }
th[aria-sort="ascending"] .sort-ic svg { transform: rotate(180deg); }
th[aria-sort="ascending"], th[aria-sort="descending"] { color: var(--text-strong); }
.grid-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.grid-filter { position: relative; display: flex; align-items: center; max-width: 280px; flex: 1; }
.grid-filter svg { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--muted); }
.grid-filter input { padding-left: 32px; min-height: 38px; font-size: 14px; }
tbody tr { transition: background-color var(--dur-1); }

/* ───── final CTA, auth, misc ───── */
.final-cta { position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 7vw, 80px) 20px; border-radius: 28px; border: 1px solid var(--accent-line); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); }
.final-cta h2 { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -.035em; margin: 10px 0 12px; }
.final-cta .lead { margin: 0 auto 26px; }
.final-glow { position: absolute; left: 50%; top: -40%; width: 70%; height: 90%; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); filter: blur(20px); pointer-events: none; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .6; transform: translateX(-50%) scale(1.08); } }
.final-cta > *:not(.final-glow) { position: relative; }
.center-row { justify-content: center; }
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--dur-3); background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%); }
.spot:hover::before { opacity: 1; }
.auth-wrap { position: relative; }
.auth-glow { position: absolute; left: 50%; top: 10%; width: min(520px, 90vw); height: 320px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent); pointer-events: none; }
.auth-card { position: relative; }
.price-panel { overflow: visible; }
.back { display: inline-flex; gap: 6px; }

/* ───── reduced motion: keep everything visible and still ───── */
@media (prefers-reduced-motion: reduce) {
  .motion [data-reveal] { opacity: 1 !important; transform: none !important; }
  .final-glow, .hero h1 .accent, .caret, .ring-anim, .stage-beam, .spark, .globe-halo, .orbit-stage { animation: none !important; }
  .chart .line { stroke-dashoffset: 0 !important; }
  .chart .area { opacity: 1 !important; }
}
@media (max-width: 520px) { .top .cmdk-btn { display: none; } }
.split > * { min-width: 0; }
.split { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) 360px; } }
.section-head.center-head { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
#mk-grid, .cat-group .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.b-wallet { align-content: center; }
.chart-card .chart svg { height: 210px; }

/* ═════════ v2 premium layer: glass, globe hero, animated borders, hover depth, scroll effects ═════════ */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* deep dark stage for the homepage + aurora that drifts with scroll */
[data-theme="dark"] { --bg: #000000; }
html[data-theme="dark"] body { background: #000000; }
.aurora { position: fixed; inset: -20vh 0; z-index: -1; pointer-events: none; contain: strict; opacity: 0; transition: opacity .6s;
  background: radial-gradient(38% 32% at 76% 14%, rgba(135, 60, 255, .22), transparent 70%), radial-gradient(34% 30% at 8% 46%, rgba(91, 60, 196, .2), transparent 70%), radial-gradient(40% 30% at 68% 86%, rgba(167, 139, 250, .12), transparent 70%);
  translate: 0 calc(var(--sp, 0) * -16vh); will-change: translate; }
html.home .aurora { opacity: .55; }
[data-theme="light"] .aurora { filter: saturate(.7); }
html.home[data-theme="light"] .aurora { opacity: .45; }

/* scroll progress */
.scroll-bar { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 80; pointer-events: none; transform-origin: 0 50%; scale: var(--sp, 0) 1;
  background: linear-gradient(90deg, var(--vc-deep-purple), var(--accent), var(--vc-lavender)); box-shadow: 0 0 12px var(--glow); }

/* cursor spotlight (desktop, homepage) */
.cursor-light { position: fixed; left: 0; top: 0; width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(closest-side, rgba(135, 60, 255, .11), rgba(135, 60, 255, .035) 55%, transparent); will-change: translate; }
html.home .cursor-light.on { opacity: 1; }
[data-theme="light"] .cursor-light { background: radial-gradient(closest-side, rgba(135, 60, 255, .07), transparent); }

/* glass surfaces */
[data-theme="dark"] .glow-card, [data-theme="dark"] .glass, [data-theme="dark"] .final-cta {
  background: linear-gradient(155deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02) 38%, rgba(255, 255, 255, .012)), color-mix(in srgb, var(--surface) 52%, transparent);
  border-color: rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 60px -36px rgba(0, 0, 0, .9); }
[data-theme="dark"] .glass, [data-theme="dark"] .final-cta { backdrop-filter: blur(18px) saturate(1.35); -webkit-backdrop-filter: blur(18px) saturate(1.35); }
[data-theme="dark"] .final-cta { background: linear-gradient(180deg, rgba(135, 60, 255, .16), rgba(255, 255, 255, .02) 60%), color-mix(in srgb, var(--surface) 45%, transparent); border-color: rgba(167, 139, 250, .25); }
[data-theme="light"] .glow-card, [data-theme="light"] .glass { background: linear-gradient(155deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .78)); box-shadow: inset 0 1px 0 #fff, 0 20px 50px -34px rgba(40, 20, 90, .35); }

/* animated borders */
.ring-anim { position: absolute !important; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2; opacity: .5; transition: opacity var(--dur-3);
  background: conic-gradient(from var(--a), transparent 0 58%, color-mix(in srgb, var(--accent) 85%, transparent) 72%, var(--vc-lavender) 80%, transparent 90%);
  -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);
  animation: ringSpin 6s linear infinite; animation-play-state: paused; }
.ring-anim[data-live] { animation-play-state: running; }
.ring-anim.slow { animation-duration: 11s; opacity: .8; }
:hover > .ring-anim, :focus-visible > .ring-anim { opacity: 1; }
@keyframes ringSpin { to { --a: 360deg; } }
.btn.has-ring { position: relative; overflow: visible; }
.btn .ring-anim { inset: -1px; padding: 1.5px; opacity: .9; background: conic-gradient(from var(--a), transparent 0 55%, rgba(255, 255, 255, .95) 75%, transparent 92%); animation-duration: 3.2s; }
.glow-card > .ring-anim, .glow-card > .ring-anim[data-live] { opacity: .3; animation-play-state: paused; } .glow-card:hover > .ring-anim, .glow-card:focus-visible > .ring-anim { opacity: 1; animation-play-state: running; }

/* hover depth */
.grid.g2, .grid.g3, .grid.g4, .plat-grid, .bento, .metrics, #mk-grid { perspective: 1200px; }
.motion .glow-card { rotate: var(--tilt, 0 0 1 0deg); transition: rotate .55s var(--ease-out), translate var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-2); }
.motion .glow-card:hover { transition-duration: .18s, var(--dur-3), var(--dur-3), var(--dur-2); }
[data-theme="dark"] .glow-card:hover { border-color: rgba(167, 139, 250, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 34px 70px -34px rgba(0, 0, 0, .95), 0 20px 50px -30px var(--glow); }
.glow-card .mono-badge, .glow-card .bento-ic, .glow-card .metric-ic, .glow-card .tile-go { transition: translate .3s var(--ease-out), transform var(--dur-3) var(--ease-spring), background-color var(--dur-2), color var(--dur-2); }
.glow-card:hover .mono-badge, .glow-card:hover .bento-ic, .glow-card:hover .metric-ic { translate: calc(var(--px, 0) * 12px) calc(var(--py, 0) * 12px); }
.glow-card:hover h3, .glow-card:hover > b { translate: calc(var(--px, 0) * 5px) calc(var(--py, 0) * 5px); transition: translate .3s var(--ease-out); }

/* ───── globe hero ───── */
.hero { min-height: min(82vh, 780px); display: grid; align-items: center; }
.hero-glow { background: radial-gradient(520px 420px at 76% 42%, rgba(135, 60, 255, .2), transparent 70%), radial-gradient(500px 300px at 12% 0%, rgba(91, 60, 196, .2), transparent 70%); }
.hero-grid-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(167, 139, 250, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 139, 250, .07) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask: radial-gradient(70% 60% at 62% 42%, #000, transparent 75%); mask: radial-gradient(70% 60% at 62% 42%, #000, transparent 75%); translate: 0 calc(var(--xp, 0) * 90px); }
[data-theme="light"] .hero-grid-bg { background-image: linear-gradient(rgba(91, 60, 196, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 60, 196, .08) 1px, transparent 1px); }
.hero-copy { translate: 0 calc(var(--xp, 0) * -90px); opacity: calc(1 - var(--xp, 0) * 1.15); }
.hero-visual { perspective: 1400px; }

.orbit-stage { --orb: 64px; position: relative; width: min(100%, 560px); aspect-ratio: 1; margin: 0 auto; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform var(--dur-4) var(--ease-out);
  scale: calc(1 + var(--xp, 0) * .22); translate: 0 calc(var(--xp, 0) * 70px); }
@media (max-width: 560px) { .orbit-stage { --orb: 46px; width: min(100%, 400px); } .hero { min-height: 0; } }
.stage-beam { position: absolute; left: 50%; top: -42%; width: 130%; height: 125%; translate: -50% 0; pointer-events: none; transform-origin: 50% 0; filter: blur(10px);
  background: conic-gradient(from 180deg at 50% 0%, transparent 158deg, rgba(167, 139, 250, .14) 171deg, rgba(135, 60, 255, .3) 180deg, rgba(167, 139, 250, .14) 189deg, transparent 202deg);
  -webkit-mask: linear-gradient(#000 40%, transparent 92%); mask: linear-gradient(#000 40%, transparent 92%); animation: beam 9s ease-in-out infinite alternate; }
@keyframes beam { from { rotate: -7deg; } to { rotate: 7deg; } }
[data-theme="light"] .stage-beam { opacity: .5; }
.globe-halo { position: absolute; inset: 14%; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(135, 60, 255, .45), rgba(91, 60, 196, .18) 60%, transparent); filter: blur(28px); animation: halo 6s ease-in-out infinite; }
@keyframes halo { 50% { opacity: .65; scale: 1.06; } }
.orbit-rings { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.orbit-rings ellipse { fill: none; stroke: url(#ringG); stroke-width: 2.5; stroke-dasharray: 4 9; stroke-linecap: round; animation: dash 30s linear infinite; }
.orbit-rings ellipse + ellipse { animation-direction: reverse; }
@keyframes dash { to { stroke-dashoffset: -600; } }
.globe { position: absolute; left: 22%; top: 22%; width: 56%; height: 56%; z-index: 2; overflow: visible; border-radius: 50%; box-shadow: 0 0 60px -6px rgba(135, 60, 255, .45), 0 40px 60px -30px rgba(0, 0, 0, .8); }
.globe-lat ellipse { fill: none; stroke: rgba(167, 139, 250, .22); stroke-width: .6; }
.globe-mer ellipse { fill: none; stroke: rgba(196, 181, 253, .32); stroke-width: .6; }
.globe-dots circle { fill: #C4B5FD; }
.globe-dots circle.hot { fill: #fff; stroke: rgba(135, 60, 255, .7); stroke-width: 0; animation: ping 2.6s ease-out infinite; }
.globe-dots circle.hot:nth-child(3n) { animation-delay: .9s; } .globe-dots circle.hot:nth-child(3n+1) { animation-delay: 1.7s; }
@keyframes ping { 0% { stroke-width: 0; stroke-opacity: .9; } 70% { stroke-width: 12; stroke-opacity: 0; } 100% { stroke-width: 0; stroke-opacity: 0; } }
.orbs { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.orb { position: absolute; left: 50%; top: 50%; width: var(--orb); height: var(--orb); margin: calc(var(--orb) / -2) 0 0 calc(var(--orb) / -2); border-radius: 50%;
  display: grid; place-items: center; pointer-events: auto; color: var(--c); text-decoration: none !important; will-change: transform;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .28), transparent 42%), radial-gradient(circle at 50% 110%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%), rgba(22, 18, 46, .5);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 30px -8px color-mix(in srgb, var(--c) 55%, transparent), 0 0 0 6px color-mix(in srgb, var(--c) 6%, transparent);
  transition: scale var(--dur-3) var(--ease-spring), box-shadow var(--dur-3); }
.orb b { font: 800 calc(var(--orb) * .27)/1 var(--font); letter-spacing: .02em; text-shadow: 0 0 14px color-mix(in srgb, var(--c) 70%, transparent); }
.orb img { width: 52%; height: 52%; object-fit: contain; }
.orb:hover, .orb:focus-visible { scale: 1.18; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 40px -6px color-mix(in srgb, var(--c) 75%, transparent), 0 0 0 8px color-mix(in srgb, var(--c) 12%, transparent); }
.orb .ring-anim { opacity: .9; animation-duration: 4s; background: conic-gradient(from var(--a), transparent 0 50%, color-mix(in srgb, var(--c) 90%, white) 75%, transparent 95%); }
.spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #E9DDFF; box-shadow: 0 0 10px 2px rgba(167, 139, 250, .7); animation: twinkle 3.2s ease-in-out infinite; z-index: 1; }
.spark.s1 { left: 12%; top: 18%; } .spark.s2 { left: 86%; top: 26%; animation-delay: .8s; } .spark.s3 { left: 78%; top: 84%; animation-delay: 1.6s; } .spark.s4 { left: 18%; top: 76%; animation-delay: 2.3s; }
@keyframes twinkle { 50% { opacity: .15; scale: .5; } }

/* ───── scroll-driven section motion (values default to the final state) ───── */
.motion .plat-grid { translate: 0 calc((1 - var(--p, 1)) * 60px); scale: calc(.92 + var(--p, 1) * .08); opacity: calc(.25 + var(--p, 1) * .75); }
.motion .market { translate: 0 calc((1 - var(--p, 1)) * 50px); }
.bento-stage { perspective: 1600px; }
.motion .bento { transform-origin: 50% 100%; rotate: x calc((1 - var(--p, 1)) * 24deg); scale: calc(.9 + var(--p, 1) * .1); }
.motion .journey .journey-line i { transform: none !important; transition: scale .12s linear; scale: 1 var(--p, 1); }
@media (min-width: 860px) { .motion .journey .journey-line i { scale: var(--p, 1) 1; } }
.motion .final-cta { scale: calc(.9 + var(--p, 1) * .1); box-shadow: 0 0 calc(var(--p, 1) * 90px) calc(var(--p, 1) * -20px) var(--glow); }

@media (prefers-reduced-motion: reduce) {
  .orbit-stage, .hero-copy, .hero-grid-bg { translate: none !important; scale: none !important; opacity: 1 !important; }
  .orbit-rings ellipse, .globe-dots circle.hot { animation: none !important; }
}
