/* ==========================================================================
   Mixer landing page
   Hand-written, no framework. Sections top to bottom match the markup in
   views/index-draft.ejs; interactions live in public/js/landing.js.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --bg: #060608;
    --text: #f5f5f7;
    --muted: #9b9ba8;
    --dim: #6c6c79;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);

    --violet: #8b6cff;
    --violet-2: #c2b1ff;
    --violet-deep: #5b3df5;
    --yellow: #edd33f;
    --green: #4ade80;
    --red: #ff6b6b;

    --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

    --ease: cubic-bezier(.2, .8, .2, 1);
    --container: 1200px;
    --pad: 20px;   /* the container's side padding */
}

/* Registered so the card spotlight and the video border can transition. */
@property --ga { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(139, 108, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 8px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.container.narrow { max-width: 960px; }
@media (min-width: 768px) { :root { --pad: 40px; } }

.muted { color: var(--muted); }
.up { color: var(--green); }
.down { color: var(--red); }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.045em; line-height: 1.02; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); text-wrap: balance; }

/* Accent: the same typeface, lit in violet. One per heading. */
em {
    font-style: normal;
    font-weight: inherit;
    letter-spacing: inherit;
    padding-bottom: .06em;
    background: linear-gradient(180deg, #e2dbff 5%, #9b82ff 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow > span:not(.live-dot) {
    display: inline-grid;
    place-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    color: var(--violet-2);
    background: rgba(139, 108, 255, .1);
    box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .3);
    font-variant-numeric: tabular-nums;
}
.eyebrow.center { display: flex; justify-content: center; }

.lead {
    margin: 24px 0 0;
    max-width: 34em;
    font-size: clamp(1.05rem, 1.35vw, 1.18rem);
    line-height: 1.65;
    color: var(--muted);
    text-wrap: pretty;
}
.center .lead, .cta .lead, .hero-sub { text-wrap: balance; }

.text-link {
    color: var(--violet-2);
    font-weight: 500;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .4s var(--ease);
}
.text-link:hover { background-size: 100% 1px; }

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    font-weight: 500;
    white-space: nowrap;
    transition: transform .4s var(--ease), background .3s, box-shadow .3s, color .3s;
}
.btn-lg { height: 52px; padding: 0 26px; font-size: 15.5px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-xs { height: 32px; padding: 0 14px; font-size: 13px; }

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #a086ff 0%, #6c48ff 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .3),
        0 0 0 1px rgba(139, 108, 255, .55),
        0 12px 32px -12px rgba(124, 88, 255, .9);
}
/* A sheen that sweeps across on hover. Sits under the label. */
.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
    transform: translateX(-130%);
    transition: transform .9s var(--ease);
}
.btn-primary:hover::after { transform: translateX(130%); }
.btn-primary:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .3),
        0 0 0 1px rgba(160, 134, 255, .8),
        0 16px 44px -10px rgba(124, 88, 255, 1);
}

.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.btn-outline { color: var(--violet-2); background: rgba(139, 108, 255, .08); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .45); }
.btn-outline:hover { background: rgba(139, 108, 255, .16); }

.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-arrow { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Magnetic buttons follow the cursor a little (offsets set in JS). */
.magnetic { transform: translate(var(--tx, 0px), var(--ty, 0px)); }
.magnetic:active { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(.97); }

.play-mini {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text);
}
.play-mini::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 6px;
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent var(--bg);
}

/* ---------- Shared bits ---------- */
.live-dot {
    position: relative;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}
.live-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--green);
    animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
.live-dot.small { width: 6px; height: 6px; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--muted);
    background: rgba(255, 255, 255, .04);
    box-shadow: inset 0 0 0 1px var(--line);
}

.badge {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--muted);
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: color .4s, background .4s, box-shadow .4s;
}
.badge.live { color: #bbf7d0; background: rgba(74, 222, 128, .1); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .4); }
.badge.warn { color: #fde68a; background: rgba(237, 211, 63, .1); box-shadow: inset 0 0 0 1px rgba(237, 211, 63, .4); }
.badge.done { color: #ddd6fe; background: rgba(139, 108, 255, .15); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .5); }

.tk {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    color: #0b0b10;
    background: var(--c);
    box-shadow: 0 0 18px -3px var(--c);
}

.mc-logo {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #a086ff, #5b3df5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 20px -8px rgba(124, 88, 255, .9);
}
.mc-logo.cat { background: linear-gradient(135deg, #f472b6, #edd33f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 20px -8px rgba(244, 114, 182, .8); }
.mc-name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.mc-sub { font-size: 12.5px; color: var(--muted); }

/* Allocation bar: segment widths come from --w. */
.mc-alloc { display: flex; gap: 2px; height: 8px; border-radius: 99px; overflow: hidden; }
.mc-alloc i { flex: 0 1 var(--w); background: var(--c); transition: flex-basis .6s var(--ease); }

.chips-sm { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-sm button,
.cat-chips button {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--muted);
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: color .3s, background .3s, box-shadow .3s;
}
.chips-sm button:hover,
.cat-chips button:hover { color: var(--text); }
.chips-sm button[aria-checked="true"],
.cat-chips button[aria-checked="true"] {
    color: #fff;
    background: rgba(139, 108, 255, .22);
    box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .65);
}

/* Custom range input; --fill and --c are set per input. */
.range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 22px;
    background: transparent;
    cursor: pointer;
    --c: var(--violet);
}
.range::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--c) var(--fill, 50%), rgba(255, 255, 255, .09) var(--fill, 50%));
}
.range::-moz-range-track {
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--c) var(--fill, 50%), rgba(255, 255, 255, .09) var(--fill, 50%));
}
.range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent), 0 2px 8px rgba(0, 0, 0, .5);
    transition: transform .2s var(--ease);
}
.range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent), 0 2px 8px rgba(0, 0, 0, .5);
}
.range:active::-webkit-slider-thumb { transform: scale(1.2); }

/* Panels: soft glass with a cursor-following spotlight (--mx/--my from JS). */
.panel,
.screen {
    position: relative;
    border-radius: 24px;
    padding: 24px;
    background:
        radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 108, 255, calc(var(--ga) * .09)), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
    box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .8);
    transition: --ga .5s;
}
.glow-card:hover { --ga: 1; }
/* The rim light: a masked ring that only shows near the cursor. */
.glow-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(170, 146, 255, .75), transparent 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .5s;
}
.glow-card:hover::before { opacity: 1; }

.panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

/* Segmented control with a sliding thumb. */
.seg {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    box-shadow: inset 0 0 0 1px var(--line);
}
.seg button {
    position: relative;
    z-index: 1;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--muted);
    transition: color .3s;
}
.seg button[aria-selected="true"] { color: var(--text); }
.seg-thumb {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    border-radius: 999px;
    background: rgba(139, 108, 255, .24);
    box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .55);
    transition: transform .5s var(--ease);
}
.seg.right .seg-thumb { transform: translateX(100%); }

@keyframes spin { to { transform: rotate(360deg); } }
.spin {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .15);
    border-top-color: var(--violet-2);
    animation: spin .8s linear infinite;
}

/* ---------- Scroll reveal ----------
   Only when JS is running, so the page is fully visible without it. JS
   removes [data-reveal] once an element is in, handing it back to its own
   transitions. */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(6px);
    transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease);
    transition-delay: var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- Scroll-linked motion ----------
   JS sets --t (0 -> 1) from the scroll position; see scrollFx in landing.js.
   Without JS, or with reduced motion, --t is never set and everything sits
   at its final state. */
.sw {
    display: inline-block;
    opacity: calc(.12 + .88 * var(--t, 1));
    transform: translateY(calc((1 - var(--t, 1)) * .34em));
    filter: blur(calc((1 - var(--t, 1)) * 7px));
}
.persp { perspective: 1800px; }
.tilt-in {
    transform-origin: 50% 100%;
    rotate: x calc((1 - var(--t, 1)) * 22deg);
    scale: calc(.92 + .08 * var(--t, 1));
}
.zoom-in { scale: calc(.9 + .1 * var(--t, 1)); }
.hero-copy, .core { will-change: transform; }

/* ---------- Progress bar + ambient background ---------- */
.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 2px; pointer-events: none; }
.progress span {
    display: block;
    height: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--violet), var(--yellow));
}

.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; }
.a1 { top: -38vmax; left: -18vmax; background: radial-gradient(closest-side, rgba(111, 75, 255, .22), transparent); animation: drift1 28s ease-in-out infinite alternate; }
.a2 { top: -30vmax; right: -28vmax; background: radial-gradient(closest-side, rgba(237, 211, 63, .07), transparent); animation: drift2 34s ease-in-out infinite alternate; }
.a3 { bottom: -45vmax; left: 10vmax; background: radial-gradient(closest-side, rgba(139, 108, 255, .10), transparent); animation: drift3 40s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vmax, 14vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(18vmax, -10vmax) scale(1.2); } }

.grain {
    position: absolute;
    inset: -50%;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 7s steps(8) infinite;
}
@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-3%, 2%); }
    50% { transform: translate(2%, -3%); }
    75% { transform: translate(-2%, -1%); }
}

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.scrolled,
.nav.menu-open {
    background: rgba(6, 6, 8, .72);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border-color: var(--line);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (min-width: 768px) { .nav-inner { padding: 0 32px; } }

.brand { display: inline-flex; }
.logo { width: 118px; height: 26px; }

.nav-links {
    position: relative;
    display: none;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    box-shadow: inset 0 0 0 1px var(--line);
}
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-links a {
    position: relative;
    z-index: 1;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--muted);
    transition: color .3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 0;
    border-radius: 999px;
    opacity: 0;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s;
}

.nav-cta { display: flex; align-items: center; gap: 10px; }
.icon-link {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: var(--muted);
    transition: color .3s, background .3s;
}
.icon-link:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

.nav-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--line-2);
}
.nav-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .4s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
@media (min-width: 960px) { .nav-toggle { display: none; } }
@media (max-width: 420px) { .nav-cta .icon-link { display: none; } }

.mobile-menu { display: grid; padding: 4px 20px 20px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    color: var(--muted);
    animation: rise .5s var(--ease) both;
}
.mobile-menu a:hover { color: var(--text); }
@media (min-width: 960px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
@keyframes rise { from { opacity: 0; translate: 0 18px; filter: blur(8px); } }

.hero { position: relative; padding: 124px 0 24px; overflow-x: clip; }
@media (min-width: 1080px) {
    .hero { display: flex; align-items: center; min-height: min(100svh, 960px); padding: 112px 0 40px; }
    .hero > .container { width: 100%; }
}

/* One bloom behind the core, one faint one behind the headline. */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}
.hero::before {
    top: 4%;
    right: -12%;
    width: min(1000px, 130vw);
    aspect-ratio: 1;
    background: radial-gradient(closest-side, rgba(124, 88, 255, .26), rgba(124, 88, 255, .06) 55%, transparent);
}
.hero::after {
    top: -18%;
    left: -20%;
    width: min(760px, 110vw);
    aspect-ratio: 1;
    background: radial-gradient(closest-side, rgba(237, 211, 63, .06), transparent);
}

.hero-inner { display: grid; gap: 12px; align-items: center; }
@media (min-width: 1080px) { .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .95fr); gap: 24px; } }

.hero-copy { position: relative; z-index: 2; text-align: center; }
@media (min-width: 1080px) { .hero-copy { text-align: left; } }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 6px 6px 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #d8fbe4;
    background: rgba(74, 222, 128, .07);
    box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .3);
    transition: background .3s, box-shadow .3s;
    animation: rise .9s var(--ease) .05s both;
}
.pill:hover { background: rgba(74, 222, 128, .12); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .55); }
.pill-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
}
.pill-arrow { transition: transform .4s var(--ease); }
.pill:hover .pill-arrow { transform: translateX(3px); }

.hero-title {
    margin: 0;
    font-size: clamp(3rem, 9.4vw, 5.1rem);
    font-weight: 600;
    letter-spacing: -.06em;
    line-height: .95;
}
.hero-title .line { display: block; padding-bottom: .04em; }
@media (min-width: 1080px) { .hero-title { font-size: clamp(4.2rem, 5.3vw, 5.4rem); } .hero-title .line { white-space: nowrap; } }
.hero-title .w {
    display: inline-block;
    animation: wordIn 1.1s var(--ease) both;
    animation-delay: calc(var(--i) * 90ms + 150ms);
}
/* Words are filled with a soft top-lit gradient, like brushed metal. */
.hero-title span.w {
    background: linear-gradient(180deg, #ffffff 35%, #b9b7c9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* The accent line carries a slow sheen across it. */
.hero-title em.w {
    padding-right: .04em;
    background: linear-gradient(100deg, #a08bff 0%, #d9d0ff 18%, #ffffff 26%, #d9d0ff 34%, #8b6cff 60%, #a08bff 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: wordIn 1.1s var(--ease) both, sheen 9s linear 1.6s infinite;
    animation-delay: calc(var(--i) * 90ms + 150ms), 1.6s;
}
@keyframes wordIn { from { opacity: 0; translate: 0 .3em; filter: blur(14px); } }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: -160% 0; } }

.hero-sub {
    max-width: 34rem;
    margin: 28px auto 0;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    color: var(--muted);
    animation: rise 1s var(--ease) .55s both;
}
@media (min-width: 1080px) { .hero-sub { margin-left: 0; } }

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 38px;
}
.hero .hero-cta { animation: rise 1s var(--ease) .7s both; }
@media (min-width: 1080px) { .hero .hero-cta { justify-content: flex-start; } }

/* The mixer core (drawn in canvas by landing.js). */
.core {
    position: relative;
    width: 100%;
    max-width: 680px;
    aspect-ratio: 4 / 5;           /* phones: disk on top, readout underneath */
    margin: 0 auto;
    cursor: grab;
    touch-action: pan-y;           /* vertical swipes still scroll the page */
    -webkit-user-select: none;
    user-select: none;
    animation: rise 1.4s var(--ease) .35s both;
}
.core.dragging { cursor: grabbing; }
@media (min-width: 640px) { .core { aspect-ratio: 10 / 9; } }
.core-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* The GPU particle layer adds light to whatever is beneath it. */
.core-gl { mix-blend-mode: screen; pointer-events: none; }

.core-tip {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    border-radius: 14px;
    white-space: nowrap;
    pointer-events: none;
    background: rgba(18, 17, 27, .86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 16px 40px -12px rgba(0, 0, 0, .9);
    opacity: 0;
    translate: -50% calc(-100% - 16px);
    scale: .92;
    transition: opacity .2s, scale .25s var(--ease);
}
.core-tip.show { opacity: 1; scale: 1; }
.core-tip img { width: 32px; height: 32px; border-radius: 9px; }
.core-tip img.round { border-radius: 50%; }
.core-tip b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.core-tip small { display: block; font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--muted); }

.core-hint {
    position: absolute;
    top: 3%;
    right: 2%;
    margin: 0;
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--dim);
    pointer-events: none;
    animation: rise 1s var(--ease) 1.8s both;
}

/* A dot grid that only shows around the cursor. */
.hero-spot {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 108, 255, .10), transparent 70%),
        radial-gradient(circle, rgba(255, 255, 255, .16) 1px, transparent 1.6px) 0 0 / 26px 26px;
    -webkit-mask-image: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), #000 10%, transparent 75%);
    mask-image: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), #000 10%, transparent 75%);
    opacity: 0;
    transition: opacity .6s var(--ease);
}
.hero.lit .hero-spot { opacity: 1; }

/* Live activity that pops in whenever capital lands in the core. */
.core-feed {
    position: absolute;
    right: 0;
    bottom: 3%;
    z-index: 2;
    display: none;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
    width: 232px;
    pointer-events: none;
}
@media (min-width: 640px) { .core-feed { display: flex; } }
.feed-row {
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
    background: rgba(16, 15, 24, .7);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 12px 30px -12px rgba(0, 0, 0, .8);
    animation: feedIn .7s var(--ease) both;
    transition: opacity .45s, translate .45s var(--ease), filter .45s;
}
.feed-row:nth-child(2) { opacity: .7; }
.feed-row:nth-child(3) { opacity: .4; }
.feed-row.out { opacity: 0; translate: 0 -10px; filter: blur(4px); }
.feed-row img { flex: none; width: 20px; height: 20px; border-radius: 6px; }
.feed-row img.round { border-radius: 50%; }
.feed-row span { overflow: hidden; text-overflow: ellipsis; }
.feed-row b { font-weight: 600; color: var(--text); }
.feed-row i { font-style: normal; font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--green); }
.feed-row i.dn { color: var(--red); }
@keyframes feedIn { from { opacity: 0; translate: 0 16px; scale: .92; filter: blur(6px); } }

/* A live readout of the basket the core is "mixing". */
.readout {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: min(310px, 86%);
    margin: 0 auto;
    padding: 14px 14px 8px;
    border-radius: 18px;
    background: rgba(16, 15, 24, .74);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -24px rgba(0, 0, 0, .9);
    animation: rise 1s var(--ease) 1.1s both, bob 7s ease-in-out 2.1s infinite;
}
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (min-width: 1080px) { .readout { right: auto; left: -4%; bottom: 2%; margin: 0; } }
.ro-head { display: flex; align-items: center; gap: 10px; }
.ro-logos { display: flex; flex: none; }
.ro-logos img { width: 24px; height: 24px; margin-left: -8px; border-radius: 7px; box-shadow: 0 0 0 2px #13121b; }
.ro-logos img:first-child { margin-left: 0; }
.ro-logos img[src*="/tokens/"] { border-radius: 50%; }
.ro-id { min-width: 0; }
.ro-id b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.ro-id span { display: block; overflow: hidden; font-variant-numeric: tabular-nums; font-size: 11px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.ro-px { margin-left: auto; text-align: right; }
.ro-px .num { display: block; font-size: 15px; letter-spacing: -.01em; }
.ro-px .chg { display: block; font-size: 12px; }
.ro-chart { position: relative; height: 70px; margin: 10px -2px 0; }
.ro-chart svg { width: 100%; height: 100%; }
.ro-live {
    position: absolute;
    top: -2px;
    left: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-variant-numeric: tabular-nums;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.ro-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.flash-up { animation: flashUp .9s var(--ease); }
.flash-down { animation: flashDown .9s var(--ease); }
@keyframes flashUp { from { color: #86efac; text-shadow: 0 0 14px rgba(74, 222, 128, .9); } }
@keyframes flashDown { from { color: #fca5a5; text-shadow: 0 0 14px rgba(255, 107, 107, .9); } }

/* ---------- Ticker: one slim row of trending tokens ---------- */
.ticker {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: clamp(40px, 5vw, 64px);
    z-index: 3;   /* the hero's core slides behind it on scroll */
    border-block: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(139, 108, 255, .06), rgba(255, 255, 255, .012) 30%, rgba(255, 255, 255, .012) 70%, rgba(139, 108, 255, .06)),
        var(--bg);
}
.ticker-label {
    position: relative;
    z-index: 2;
    display: flex;
    flex: none;
    align-items: center;
    gap: 9px;
    align-self: stretch;
    padding: 0 18px 0 max(16px, calc(50% - var(--container) / 2 + var(--pad)));
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text);
    box-shadow: 1px 0 0 var(--line);
}
@media (max-width: 640px) { .ticker-label { padding-right: 12px; } .ticker-label .label-text { display: none; } }
.lane {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 94%, transparent);
}
/* JS moves the track (speed reacts to scrolling). Without JS it is a static row. */
.lane-track { display: flex; gap: 8px; width: max-content; padding: 11px 0; will-change: transform; }
.tt-chip {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
    background: rgba(255, 255, 255, .03);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background .4s, box-shadow .4s;
}
.tt-chip:hover { background: rgba(139, 108, 255, .12); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .45); }
.tt-chip img { width: 24px; height: 24px; border-radius: 50%; background: #15131f; }
.tt-chip.stock img { border-radius: 7px; }
.tt-chip b { font-weight: 600; letter-spacing: -.01em; }
.tt-chip .num { color: var(--muted); font-weight: 500; }
.tt-chip .chg { font-variant-numeric: tabular-nums; font-size: 11px; }
.tt-chip .tag {
    padding: 1px 7px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
    font-size: 10px;
    color: #ddd6fe;
    box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .45);
}
.chg.up { color: var(--green); }
.chg.dn { color: var(--red); }

/* ---------- Facts ---------- */
.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 24px;
    margin-top: clamp(80px, 10vw, 128px);
}
@media (min-width: 880px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { position: relative; padding-top: 22px; border-top: 1px solid var(--line-2); }
.fact::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--violet), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.6s var(--ease) .3s;
}
.fact.seen::before { transform: scaleX(1); }
.fact > b {
    display: block;
    font-size: clamp(2.1rem, 3.8vw, 3rem);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.fact > span { display: block; margin-top: 12px; font-size: 14.5px; color: var(--muted); }

/* Slot-machine digits (built in JS from [data-roll]). */
.reel { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: bottom; }
.reel-strip {
    display: flex;
    flex-direction: column;
    transition: transform 1.8s cubic-bezier(.2, .9, .1, 1);
    transition-delay: calc(var(--i) * 90ms + 200ms);
}
.reel-strip > span { display: block; height: 1.1em; line-height: 1.1em; text-align: center; }
.rolled .reel-strip { transform: translateY(calc(var(--n) * -1.1em)); }
.reel-ch { display: inline-block; line-height: 1.1em; vertical-align: bottom; white-space: pre; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(104px, 13vw, 176px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(52px, 6vw, 80px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.split { display: grid; gap: clamp(52px, 7vw, 104px); align-items: center; }
@media (min-width: 980px) {
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
    .split.reverse { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
    .split.reverse .copy { order: 2; }
}

/* ---------- 01 Mixers ---------- */
.points { list-style: none; display: grid; gap: 26px; margin: 44px 0 0; padding: 0; }
.points li { display: flex; align-items: flex-start; gap: 16px; }
.pt-ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--violet-2);
    background: rgba(139, 108, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .25);
    transition: transform .5s var(--ease), background .3s;
}
.points li:hover .pt-ico { transform: rotate(-8deg) scale(1.06); background: rgba(139, 108, 255, .16); }
.pt-ico svg { width: 20px; height: 20px; }
.points b { display: block; margin-bottom: 3px; font-weight: 500; }
.points p { margin: 0; font-size: 15px; color: var(--muted); }

.blend-chart { position: relative; height: clamp(250px, 26vw, 300px); }
.blend-chart svg { width: 100%; height: 100%; overflow: visible; }
.bl-grid line { stroke: rgba(255, 255, 255, .045); }
.bl-base { stroke: rgba(255, 255, 255, .16); stroke-dasharray: 3 5; }
/* Lines start hidden as well as undrawn: a round cap paints a dot even on a
   zero-length dash, which left a stray bead where each line would begin. */
.bl-line {
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: 0;
    transition: stroke-dashoffset 1.8s var(--ease), opacity .6s, stroke-width .3s;
}
.blend.drawn .bl-line { stroke-dashoffset: 0; opacity: 1; }
.blend.mixer-view .bl-line { opacity: .13; }
.blend.hl-dim .bl-line:not(.hl) { opacity: .1; }
.blend .bl-line.hl, .blend.mixer-view .bl-line.hl { opacity: 1; stroke-width: 2.6; }
.bl-mix {
    fill: none;
    stroke: url(#mixGrad);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    filter: drop-shadow(0 0 10px rgba(139, 108, 255, .7));
    opacity: 0;
    transition: stroke-dashoffset 1.9s var(--ease), opacity .3s;
}
.blend.mixer-view .bl-mix { stroke-dashoffset: 0; opacity: 1; }
.bl-area { opacity: 0; transition: opacity 1.2s var(--ease) .5s; }
.blend.mixer-view .bl-area { opacity: 1; }
.blend-end {
    position: absolute;
    translate: -100% -140%;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: #fff;
    background: var(--violet-deep);
    box-shadow: 0 8px 24px -8px rgba(124, 88, 255, 1);
    opacity: 0;
    scale: .8;
    transition: opacity .5s var(--ease) 1.4s, scale .5s var(--ease) 1.4s;
}
.blend.mixer-view .blend-end { opacity: 1; scale: 1; }

.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.lg {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    background: rgba(255, 255, 255, .03);
    box-shadow: inset 0 0 0 1px var(--line);
    cursor: default;
    transition: background .3s, opacity .4s, box-shadow .3s;
}
.lg:hover { background: rgba(255, 255, 255, .07); }
.lg > i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.lg > b { font-weight: 500; color: var(--muted); }
.lg > small { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lg.mix { background: rgba(139, 108, 255, .12); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .5); }
.blend:not(.mixer-view) .lg.mix { opacity: .4; }

/* ---------- 03 Create ---------- */
.builder { display: grid; gap: 24px; }
@media (min-width: 980px) { .builder { grid-template-columns: 330px minmax(0, 1fr); gap: 48px; align-items: start; } }

.steps { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.step {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    text-align: left;
    overflow: hidden;
    transition: background .4s, box-shadow .4s;
}
.step:hover { background: rgba(255, 255, 255, .025); }
.step[aria-selected="true"] { background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); }
.step-n {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: color .4s, background .4s, box-shadow .4s;
}
.step.done .step-n { color: var(--violet-2); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .5); }
.step[aria-selected="true"] .step-n { color: #fff; background: var(--violet); box-shadow: 0 0 22px -2px rgba(139, 108, 255, .9); }
.step-t b { display: block; font-weight: 500; color: var(--muted); transition: color .3s; }
.step[aria-selected="true"] .step-t b { color: var(--text); }
.step-t small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--dim); }
.step-bar {
    position: absolute;
    right: 18px;
    bottom: 0;
    left: 18px;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, .05);
    opacity: 0;
    transition: opacity .3s;
}
.step[aria-selected="true"] .step-bar { opacity: 1; }
.step-bar i {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--violet), var(--violet-2));
    transform: scaleX(0);
    transform-origin: left;
}
.builder.auto .step[aria-selected="true"] .step-bar i { animation: fillbar 6.5s linear forwards; }
.builder.manual .step[aria-selected="true"] .step-bar i { transform: scaleX(1); }
@keyframes fillbar { to { transform: scaleX(1); } }

@media (max-width: 979px) {
    .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .step { grid-template-columns: 1fr; justify-items: center; gap: 8px; padding: 12px 6px 14px; text-align: center; }
    .step-t b { font-size: 12.5px; line-height: 1.3; }
    .step-t small { display: none; }
    .step-bar { left: 10px; right: 10px; }
}

.screen {
    padding: 0;
    min-height: 470px;
    overflow: hidden;
    background:
        radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 108, 255, calc(var(--ga) * .08)), transparent 45%),
        linear-gradient(180deg, rgba(22, 20, 33, .92), rgba(11, 11, 16, .92));
    box-shadow: inset 0 0 0 1px var(--line), 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 150px -60px rgba(139, 108, 255, .55);
}
.screen-top { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.url {
    flex: 1;
    max-width: 340px;
    margin: 0 auto;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    text-align: center;
    color: var(--dim);
    background: rgba(255, 255, 255, .04);
}
.view { position: relative; padding: 24px; animation: viewIn .6s var(--ease); }
@media (min-width: 640px) { .view { padding: 28px; } }
@keyframes viewIn { from { opacity: 0; translate: 0 12px; filter: blur(4px); } }
.view-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.view-head b { font-size: 17px; font-weight: 500; }
.counter { font-size: 12.5px; color: var(--muted); }
.hint { margin: 16px 0 0; font-size: 12.5px; color: var(--dim); transition: color .3s; }
.hint.warn { color: var(--yellow); }

/* Two columns of rows on phones; a 5 x 2 grid of tiles once there's room. */
.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pick {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 36px 10px 10px;
    border-radius: 14px;
    text-align: left;
    background: rgba(255, 255, 255, .025);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background .3s, box-shadow .3s, transform .35s var(--ease);
}
.pick > span:nth-child(2) { min-width: 0; }
.pick-s, .pick-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 700px) {
    .pick-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
    .pick { flex-direction: column; align-items: flex-start; padding: 12px; }
    .pick .check { top: 12px; translate: 0 0; }
}
.pick:hover { background: rgba(255, 255, 255, .05); transform: translateY(-2px); }
.pick[aria-pressed="true"] {
    background: color-mix(in srgb, var(--c) 12%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 10px 26px -14px var(--c);
}
.pick .tk { width: 28px; height: 28px; }
.pick-s { display: block; font-size: 13.5px; font-weight: 500; }
.pick-n { display: block; font-size: 11.5px; color: var(--muted); }
.check {
    position: absolute;
    top: 50%;
    right: 12px;
    translate: 0 -50%;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--line-2);
    transition: background .3s, box-shadow .3s;
}
.check svg { width: 12px; height: 12px; color: #0b0b10; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s var(--ease); }
.pick[aria-pressed="true"] .check { background: var(--c); box-shadow: none; }
.pick[aria-pressed="true"] .check svg { opacity: 1; transform: none; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }

.weights { display: grid; gap: 28px; align-items: center; }
@media (min-width: 640px) { .weights { grid-template-columns: minmax(0, 1fr) 180px; } }
.weight-rows { display: grid; gap: 14px; }
.wr { display: grid; grid-template-columns: 76px minmax(0, 1fr) 44px; align-items: center; gap: 12px; font-size: 13.5px; animation: viewIn .5s var(--ease) both; }
.wr-s { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.wr-s i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.wr-v { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.donut-wrap { position: relative; width: 180px; height: 180px; margin: 0 auto; }
.donut { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.donut-track { fill: none; stroke: rgba(255, 255, 255, .05); stroke-width: 14; }
.donut-seg, .donut-dead {
    fill: none;
    stroke-width: 14;
    cursor: pointer;
    transition: stroke-dasharray .7s var(--ease), stroke-dashoffset .7s var(--ease), stroke-width .3s var(--ease);
}
.donut-seg:hover { stroke-width: 19; }
.donut-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-label b { display: block; font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.donut-label span { font-size: 12px; color: var(--muted); }

.form-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 12px; }
.view label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.view input[type="text"],
.view input[type="search"],
.view textarea {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 14.5px;
    color: var(--text);
    background: rgba(255, 255, 255, .03);
    box-shadow: inset 0 0 0 1px var(--line-2);
    resize: none;
    transition: box-shadow .3s, background .3s;
}
.view input[type="text"]:focus,
.view input[type="search"]:focus,
.view textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, .05);
    box-shadow: inset 0 0 0 1px var(--violet), 0 0 0 4px rgba(139, 108, 255, .16);
}
#mxTicker { text-transform: uppercase; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.thesis-label textarea { line-height: 1.55; }

.deploy-card { padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.dc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dc-name { font-weight: 600; }
.dc-sub { font-size: 12.5px; color: var(--muted); }
.checklist { list-style: none; display: grid; gap: 14px; margin: 24px 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--dim); transition: color .4s; }
.checklist li > i {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--line-2);
    transition: background .4s, box-shadow .4s;
}
.checklist li.run,
.checklist li.ok { color: var(--text); }
.checklist li.run > i::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--violet-2);
    animation: spin .8s linear infinite;
}
.checklist li.ok > i { background: var(--green); box-shadow: 0 0 16px -2px rgba(74, 222, 128, .8); animation: pop .5s var(--ease); }
.checklist li.ok > i::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    width: 5px;
    height: 9px;
    border: solid #052e16;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
@keyframes pop { from { scale: .4; } 60% { scale: 1.15; } }
.deploy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.burst { position: absolute; width: 0; height: 0; pointer-events: none; }
.burst i {
    position: absolute;
    width: 6px;
    height: 6px;
    margin: -3px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 10px var(--c);
    animation: burst 1s var(--ease) forwards;
}
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }

/* Builder: search, logo tiles, launch cost. */
.search { position: relative; display: block; margin-bottom: 14px; }
.search svg { position: absolute; top: 50%; left: 14px; width: 16px; height: 16px; color: var(--dim); translate: 0 -50%; pointer-events: none; }
.view .search input { padding-left: 40px; }
.view input[type="search"]::-webkit-search-decoration,
.view input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.pick[hidden] { display: none; }
.pick-empty {
    grid-column: 1 / -1;
    padding: 22px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    text-align: center;
    color: var(--muted);
    box-shadow: inset 0 0 0 1px var(--line-2);
}
.tk.img { overflow: hidden; background: #15131f; }
.tk.img img { width: 100%; height: 100%; object-fit: cover; }
.tk.sq { border-radius: 8px; }

.cost { display: grid; gap: 1px; margin-top: 16px; overflow: hidden; border-radius: 14px; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.cost-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 8px 14px;
    font-size: 13.5px;
    background: #111019;
}
.view .cost-row { display: flex; font-size: 13.5px; color: var(--text); }
.cost-row small { margin-left: 6px; font-variant-numeric: tabular-nums; font-size: 11px; color: var(--dim); }
.sol-input {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 0 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: box-shadow .3s;
}
.sol-input:focus-within { box-shadow: inset 0 0 0 1px var(--violet), 0 0 0 4px rgba(139, 108, 255, .16); }
.sol-input.bad { box-shadow: inset 0 0 0 1px var(--yellow); }
.sol-input input {
    width: 72px;
    padding: 7px 8px;
    border: 0;
    font: inherit;
    font-weight: 600;
    text-align: right;
    color: var(--text);
    background: transparent;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}
.sol-input input:focus { outline: none; }
.sol-input input::-webkit-outer-spin-button,
.sol-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sol-input span { font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--muted); }
#buyHint { margin-top: 10px; }

/* ---------- 04 Remix ---------- */
.qa { list-style: none; margin: 44px 0 0; padding: 0; }
.qa li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.qa li:first-child { border-top: 1px solid var(--line); }
.qa span { color: var(--muted); }
.qa b {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.025em;
    transition: color .3s, transform .4s var(--ease);
}
.qa li:hover b { color: var(--violet-2); transform: translateX(-6px); }

.remix-panel .panel-head { margin-bottom: 6px; }
.tree { position: relative; height: 250px; margin: 6px 0 18px; }
.tree-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tree-links path {
    fill: none;
    stroke: rgba(255, 255, 255, .16);
    stroke-width: 1.5;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.2s var(--ease), stroke .3s, stroke-width .3s;
}
.tree.in .tree-links path { stroke-dashoffset: 0; }
.tree-links path.hl { stroke: var(--violet-2); stroke-width: 2.2; }
.tree-links path.you { stroke: rgba(237, 211, 63, .6); }

.node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 12.5px;
    line-height: 1.3;
    white-space: nowrap;
    background: rgba(19, 18, 28, .96);
    box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 30px -14px rgba(0, 0, 0, .9);
    translate: -50% -50%;
    opacity: 0;
    scale: .6;
    cursor: default;
    transition: opacity .6s var(--ease), scale .6s var(--ease), background .3s, box-shadow .3s;
    transition-delay: var(--dl, 0ms);
}
.tree.in .node { opacity: 1; scale: 1; }
.node b { font-weight: 600; letter-spacing: .01em; }
.node span { font-size: 11px; color: var(--muted); }
.node.root { box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .65), 0 0 44px -12px rgba(139, 108, 255, .9); }
.node.you { box-shadow: inset 0 0 0 1px rgba(237, 211, 63, .75), 0 0 44px -12px rgba(237, 211, 63, .8); }
.node.hl { background: rgba(58, 44, 110, .96); box-shadow: inset 0 0 0 1px var(--violet-2), 0 0 30px -8px rgba(139, 108, 255, .9); }
.node.pop { animation: nodePop .8s var(--ease); }
@keyframes nodePop { from { opacity: 0; scale: .3; } 60% { scale: 1.12; } }
@media (max-width: 520px) {
    .node { padding: 6px 8px; font-size: 11px; }
    .node span { display: none; }
}

.board { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto 62px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13.5px;
    background: rgba(255, 255, 255, .02);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background .3s, box-shadow .3s;
}
.row:hover, .row.hl { background: rgba(139, 108, 255, .1); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .4); }
.row.you { box-shadow: inset 0 0 0 1px rgba(237, 211, 63, .45); }
.row.enter { animation: rowIn .7s var(--ease); }
@keyframes rowIn { from { opacity: 0; translate: 0 -10px; } }
.rk { color: var(--dim); font-variant-numeric: tabular-nums; }
.who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who b { font-weight: 600; }
.who span { margin-left: 6px; font-size: 12px; color: var(--muted); }
.kind { padding: 2px 8px; border-radius: 999px; font-size: 11px; white-space: nowrap; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.kind.orig { color: #ddd6fe; box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .5); }
.ret { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .row { grid-template-columns: 18px minmax(0, 1fr) 58px; } .kind { display: none; } }

/* Illustrative meme Mixers built from the trending list. */
.baskets { margin-top: clamp(72px, 9vw, 112px); }
.baskets-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 28px; }
.baskets-head > div:first-child { max-width: 620px; }
.baskets-head h3 { margin: 0 0 10px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -.035em; }
.baskets-head p { margin: 0; font-size: 15px; color: var(--muted); }
.rail-controls { display: flex; align-items: center; gap: 14px; }
.rail-arrows { display: flex; gap: 8px; }
.rail-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    color: var(--text);
    background: rgba(255, 255, 255, .04);
    box-shadow: inset 0 0 0 1px var(--line-2);
    cursor: pointer;
    transition: background .3s, opacity .3s, transform .3s var(--ease);
}
.rail-btn svg { width: 17px; height: 17px; }
.rail-btn:hover { background: rgba(139, 108, 255, .16); }
.rail-btn:active { transform: scale(.94); }
.rail-btn[disabled] { opacity: .3; cursor: default; }
@media (max-width: 640px) { .rail-arrows { display: none; } }

/* Full-bleed rail whose first card lines up with the page content. */
.basket-rail {
    /* Where the page content starts. 50% rather than 100vw, which counts the
       scrollbar on desktop Windows and would push this a few pixels right. */
    --edge: max(var(--pad), calc(50% - var(--container) / 2 + var(--pad)));
    display: flex;
    gap: 14px;
    padding: 6px var(--edge) 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--edge);
    scrollbar-width: none;
    cursor: grab;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 max(12px, calc(var(--edge) - 40px)), #000 calc(100% - max(12px, calc(var(--edge) - 40px))), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 max(12px, calc(var(--edge) - 40px)), #000 calc(100% - max(12px, calc(var(--edge) - 40px))), transparent);
}
.basket-rail::-webkit-scrollbar { display: none; }
.basket-rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.basket-rail.dragging * { pointer-events: none; }
.basket-rail:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.basket-rail .mm-card { flex: none; width: min(292px, 80vw); }
.basket-rail .mm-card[hidden] { display: none; }
.mm-card.fast .mm-window { color: #fff; background: linear-gradient(135deg, rgba(139, 108, 255, .5), rgba(91, 61, 245, .35)); box-shadow: inset 0 0 0 1px rgba(179, 160, 255, .6), 0 0 20px -4px rgba(139, 108, 255, .7); }
.mm-hypo .live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: 1px; }
.mm-card { display: flex; flex-direction: column; gap: 18px; padding: 20px; scroll-snap-align: start; }
.mm-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mm-window {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    color: #ddd6fe;
    background: rgba(139, 108, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .4);
}
.mm-window svg { width: 13px; height: 13px; }
.mm-hypo { font-variant-numeric: tabular-nums; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.mm-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mm-id b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.mm-id div span { display: block; font-variant-numeric: tabular-nums; font-size: 11px; color: var(--dim); }
.mm-logos { display: flex; flex: none; }
.mm-logos img {
    width: 30px;
    height: 30px;
    margin-left: -10px;
    border-radius: 50%;
    background: #15131f;
    box-shadow: 0 0 0 2px #100f17;
    transition: margin .5s var(--ease);
}
.mm-logos img:first-child { margin-left: 0; }
.mm-card:hover .mm-logos img:not(:first-child) { margin-left: -4px; }
.mm-sir b { display: block; font-size: clamp(2rem, 3.2vw, 2.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -.045em; }
.mm-sir b.up { color: var(--green); text-shadow: 0 0 28px rgba(74, 222, 128, .28); }
.mm-sir b.dn { color: var(--red); }
.mm-sir span { font-size: 12.5px; color: var(--muted); }
.mm-legs { display: grid; gap: 8px; margin: auto 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); }
.mm-legs li { display: grid; grid-template-columns: 18px 64px 1fr 54px; align-items: center; gap: 8px; font-size: 12.5px; }
.mm-legs img { width: 18px; height: 18px; border-radius: 50%; background: #15131f; }
.mm-legs .sym { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.mm-legs .bar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.mm-legs .bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s var(--ease) calc(.25s + var(--k, 0) * .09s);
}
.mm-legs .bar i.up { background: linear-gradient(90deg, rgba(74, 222, 128, .35), var(--green)); }
.mm-legs .bar i.dn { background: linear-gradient(90deg, rgba(255, 107, 107, .35), var(--red)); }
.mm-card.seen .mm-legs .bar i,
.no-js .mm-legs .bar i { transform: scaleX(var(--w)); }
.mm-legs .chg { font-variant-numeric: tabular-nums; font-size: 11.5px; text-align: right; }
.baskets-cta { margin-top: 18px; text-align: center; }

/* ---------- 05 Fees ---------- */
.flow {
    position: relative;
    display: grid;
    gap: 56px;
    margin-top: 56px;
    padding: 36px 24px;
    border-radius: 28px;
    background:
        radial-gradient(60% 80% at 50% 50%, rgba(124, 88, 255, .10), transparent 70%),
        rgba(255, 255, 255, .02);
    box-shadow: inset 0 0 0 1px var(--line);
}
@media (min-width: 900px) {
    .flow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 88px; padding: 56px 48px; }
}
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fn { position: relative; z-index: 1; }
.fn-k { font-size: 13px; color: var(--muted); }
.fn-k b { font-variant-numeric: tabular-nums; font-weight: 500; font-size: 12px; color: var(--text); }
.fn-sub { font-size: 12.5px; color: var(--dim); }
.fn-sub b { font-weight: 500; color: var(--muted); }

.flow-rail { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 2; }
.flow-dash { fill: none; stroke-width: 1.5; stroke-dasharray: 2 9; stroke-linecap: round; animation: current 1.2s linear infinite; }
.flow-dash.in { stroke: rgba(255, 255, 255, .28); }
.flow-dash.creator { stroke: rgba(179, 160, 255, .55); }
.flow-dash.platform { stroke: rgba(220, 220, 232, .35); }
@keyframes current { to { stroke-dashoffset: -11; } }
.flow-dot circle { fill: #fff; }
.flow-dot .halo { opacity: .22; }
.flow-dot.in circle { fill: #e9e3ff; }
.flow-dot.creator circle { fill: #b3a0ff; }
.flow-dot.creator .halo { opacity: .35; }
.flow-dot.platform circle { fill: #e4e4ec; }

/* Trades */
.fn-trades { width: 100%; max-width: 320px; justify-self: center; }
@media (min-width: 900px) { .fn-trades { justify-self: start; } }
.tape { display: grid; gap: 6px; height: 188px; margin: 12px 0 0; padding: 0; list-style: none; overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.tape li {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    height: 41px;
    padding: 0 14px 0 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    box-shadow: inset 0 0 0 1px var(--line);
    animation: tapeIn .6s var(--ease) both;
}
@keyframes tapeIn { from { opacity: 0; translate: 0 -14px; filter: blur(4px); } }
.tape .side { padding: 3px 0; border-radius: 7px; font-size: 11px; font-weight: 600; text-align: center; }
.tape .side.buy { color: #86efac; background: rgba(74, 222, 128, .1); }
.tape .side.sell { color: #fca5a5; background: rgba(255, 107, 107, .1); }
.tape b { font-size: 14px; font-weight: 500; }
.tape i { font-style: normal; font-size: 11.5px; font-variant-numeric: tabular-nums; color: #c4b5fd; }

/* The Mixer in the middle */
.fn-mixer { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.fn-orb {
    position: relative;
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #b9a6ff, #5a3df0 48%, #170d3d);
    box-shadow: 0 0 0 1px rgba(220, 210, 255, .3), 0 0 60px rgba(124, 88, 255, .55), 0 0 140px rgba(124, 88, 255, .25);
}
.fn-orb svg { width: 46px; height: 40px; fill: #fff; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .6)); }
.fn-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 65%, rgba(200, 185, 255, .9) 90%, transparent);
    -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
    mask: radial-gradient(closest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
    animation: spin 3.2s linear infinite;
}
.fn-orb.hit { animation: orbHit .6s var(--ease); }
@keyframes orbHit { 30% { scale: 1.1; box-shadow: 0 0 0 1px rgba(230, 220, 255, .6), 0 0 90px rgba(150, 120, 255, .9), 0 0 180px rgba(124, 88, 255, .45); } }
.fn-pct {
    font-size: 44px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.05em;
    background: linear-gradient(180deg, #fff, #b3a0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.fn-mixer .fn-sub { margin-top: 6px; }

/* Where the fee lands */
.fn-outs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .fn-outs { grid-template-columns: 1fr; gap: 20px; max-width: 280px; } }
.fn-out {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow .5s var(--ease), background .5s var(--ease);
}
.fn-out.creator { background: linear-gradient(160deg, rgba(139, 108, 255, .16), rgba(139, 108, 255, .03)); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .35); }
.fn-out b { margin: 4px 0 2px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -.035em; }
.fn-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 2px 8px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    color: var(--muted);
    box-shadow: inset 0 0 0 1px var(--line-2);
}
.fn-out.creator .fn-tag { color: #ddd6fe; box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .5); }
.fn-out.hit { animation: outHit .7s var(--ease); }
.fn-out.creator.hit { animation-name: outHitV; }
@keyframes outHit { 25% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 0 36px rgba(255, 255, 255, .08); } }
@keyframes outHitV { 25% { box-shadow: inset 0 0 0 1px rgba(179, 160, 255, .9), 0 0 44px rgba(139, 108, 255, .35); } }

/* Earnings, as a sentence */
.earn { max-width: 720px; margin: 64px auto 0; text-align: center; }
.earn-line { margin: 0 0 28px; font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.35; letter-spacing: -.03em; color: var(--muted); text-wrap: balance; }
.earn-line b { font-weight: 600; color: var(--text); }
.earn-hi { background: linear-gradient(100deg, #fff, #b3a0ff); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.earn-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--dim); }
.earn .fine b { font-weight: 600; color: var(--muted); }
.fine { margin: 0; padding-top: 22px; font-size: 12.5px; color: var(--dim); }

/* ---------- 02 Meme ---------- */
.timeline { position: relative; list-style: none; margin: 44px 0 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 18px; padding-bottom: 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before,
.timeline li::after {
    content: "";
    position: absolute;
    top: 26px;
    bottom: 2px;
    left: 9.25px;
    width: 1.5px;
    border-radius: 2px;
}
.timeline li::before { background: var(--line-2); }
.timeline li::after {
    background: linear-gradient(var(--violet), var(--yellow));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .8s var(--ease);
}
.timeline li.done::after { transform: scaleY(1); }
.timeline li:last-child::before,
.timeline li:last-child::after { display: none; }
.timeline li > i {
    position: relative;
    z-index: 1;
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: inset 0 0 0 1.5px var(--line-2);
    transition: background .4s, box-shadow .4s;
}
.timeline li.active > i {
    background: radial-gradient(circle, var(--violet) 0 4px, var(--bg) 5px);
    box-shadow: inset 0 0 0 1.5px var(--violet), 0 0 0 6px rgba(139, 108, 255, .16);
}
.timeline li.done > i { background: var(--violet); box-shadow: 0 0 18px -2px rgba(139, 108, 255, .9); }
.timeline b { display: block; font-weight: 500; }
.timeline span { display: block; font-size: 15px; color: var(--muted); }

/* The meme Mixer film: launch, trade, deadline, settle. */
.life { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 22px; overflow: hidden; }
.life-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.life-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.life-id b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
@media (max-width: 480px) {
    .life { padding: 18px; }
    .life-id .mm-logos img:nth-child(n+3) { display: none; }
    .life-foot p { font-size: 12px; }
}
.life-id div span { display: block; font-size: 12.5px; color: var(--muted); }
.life-phase {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    transition: color .4s, background .4s, box-shadow .4s;
    --pc: 179, 160, 255;
    color: rgb(var(--pc));
    background: rgba(var(--pc), .1);
    box-shadow: inset 0 0 0 1px rgba(var(--pc), .4);
}
.life-phase i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.life-phase[data-phase="live"] { --pc: 74, 222, 128; }
.life-phase[data-phase="live"] i { animation: blink 1.2s ease-in-out infinite; }
.life-phase[data-phase="closed"] { --pc: 255, 120, 120; animation: pop .45s var(--ease); }
.life-phase[data-phase="settling"] i { animation: blink .6s ease-in-out infinite; }
.life-phase[data-phase="settled"] { --pc: 134, 239, 172; animation: pop .45s var(--ease); }

.life-stage { position: relative; height: 170px; margin: 0 -4px; }
.life-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.life-line { filter: drop-shadow(0 0 6px rgba(139, 108, 255, .8)); }
.life-dl { stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; stroke-dasharray: 4 5; transition: stroke .4s; }
.life.is-closed .life-dl { stroke: rgba(255, 120, 120, .9); stroke-dasharray: none; filter: drop-shadow(0 0 6px rgba(255, 107, 107, .9)); }
.life-closed { opacity: 0; transition: opacity .6s; }
.life-label { position: absolute; bottom: -20px; font-size: 11.5px; color: var(--dim); }
.life-label.start { left: 0; }
.life-label.end { right: 0; }
.life.is-closed .life-label.end { color: #fca5a5; }
.life-head-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(139, 108, 255, .35), 0 0 18px rgba(179, 160, 255, .9);
}
.life-clock {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    translate: -50% 0;
    padding: 3px 8px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    background: rgba(16, 15, 24, .9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.life.is-closed .life-clock { color: #fca5a5; box-shadow: inset 0 0 0 1px rgba(255, 120, 120, .5); }
.life-fx { position: absolute; inset: 0; pointer-events: none; }
.life-pop {
    position: absolute;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    translate: -50% 18px;
    animation: lifePop 1.6s var(--ease) forwards;
}
.life-pop.low { animation-name: lifePopLow; }
.life-pop.buy { color: #bbf7d0; background: rgba(74, 222, 128, .14); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .45); }
.life-pop.sell { color: #fecaca; background: rgba(255, 107, 107, .14); box-shadow: inset 0 0 0 1px rgba(255, 107, 107, .45); }
.life-pop.join { color: #ddd6fe; background: rgba(139, 108, 255, .18); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .55); }
.life-pop.reject {
    color: #fff;
    background: rgba(255, 107, 107, .3);
    box-shadow: inset 0 0 0 1px rgba(255, 120, 120, .8);
    translate: -110% -50%;
    animation: lifeReject 1.6s var(--ease) forwards;
}
@keyframes lifePop {
    0% { opacity: 0; transform: translateY(0) scale(.8); }
    15% { opacity: 1; transform: translateY(-26px) scale(1); }
    75% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-46px); }
}
@keyframes lifePopLow {
    0% { opacity: 0; transform: translateY(0) scale(.8); }
    15% { opacity: 1; transform: translateY(14px) scale(1); }
    75% { opacity: 1; }
    100% { opacity: 0; transform: translateY(30px); }
}
@keyframes lifeReject {
    0% { opacity: 0; transform: translateX(-60px); }
    30% { opacity: 1; transform: translateX(0); }
    38% { transform: translateX(-14px); }
    46% { transform: translateX(-4px); }
    54% { transform: translateX(-10px); }
    85% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-10px); }
}

.life-holders { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.lh {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto auto;
    grid-template-areas: "av w v st" "av u v st";
    align-items: center;
    column-gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background .4s, box-shadow .4s, opacity .5s, translate .5s var(--ease);
}
/* A seat for the holder who buys in partway: empty and dashed until they do. */
.lh.later:not(.in) { background: transparent; box-shadow: none; outline: 1px dashed rgba(255, 255, 255, .14); outline-offset: -1px; }
.lh.later:not(.in) > * { opacity: 0; }
.lh.later::after {
    content: "Open to anyone until the deadline";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--dim);
    transition: opacity .3s;
}
.lh.later.in::after { opacity: 0; }
.lh.later.in { animation: seatIn .6s var(--ease); }
.lh.later > * { transition: opacity .4s .1s; }
@keyframes seatIn { from { box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .8), 0 0 24px rgba(139, 108, 255, .4); } }
.lh-av { grid-area: av; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--h) 80% 70%), hsl(calc(var(--h) + 60) 70% 45%)); }
.lh-w { grid-area: w; font-size: 13px; font-weight: 500; }
.lh-u { grid-area: u; font-size: 11.5px; color: var(--dim); }
.lh-v { grid-area: v; font-size: 13.5px; }
.lh-st { grid-area: st; display: inline-flex; align-items: center; gap: 5px; min-width: 64px; justify-content: flex-end; font-size: 12px; color: var(--muted); }
.lh-st svg { width: 13px; height: 13px; }
.lh.selling { box-shadow: inset 0 0 0 1px rgba(179, 160, 255, .5); }
.lh.selling .lh-st { color: var(--text); }
.lh.paid { background: rgba(74, 222, 128, .07); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .35); }
.lh.paid .lh-v { color: #86efac; animation: pop .5s var(--ease); }
.lh.paid .lh-st { color: #bbf7d0; font-weight: 600; }
.life-coin { position: absolute; top: 0; left: 0; z-index: 3; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 12px rgba(167, 139, 250, .9); }

.life-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.life-foot p { margin: 0; font-size: 13px; color: var(--muted); }
.life-foot p b { color: #bbf7d0; font-weight: 600; }

/* ---------- 06 Video ---------- */
.video-frame {
    position: relative;
    padding: 1px;
    border-radius: 26px;
    background: conic-gradient(from var(--ang), transparent 0deg, rgba(139, 108, 255, .9) 60deg, rgba(237, 211, 63, .75) 120deg, transparent 180deg, transparent 360deg), var(--line);
    animation: spinAng 7s linear infinite;
}
.video-frame::after {
    content: "";
    position: absolute;
    inset: 12% 8%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(124, 88, 255, .45), transparent);
    filter: blur(50px);
    pointer-events: none;
}
@keyframes spinAng { to { --ang: 360deg; } }
.video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 25px;
    background: #0b0b10;
}
.video img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease), filter .6s; }
.video:hover img { transform: scale(1.06); filter: brightness(.8); }
.video-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 6, 8, .05), rgba(6, 6, 8, .5)); }
.play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    color: #0b0b10;
    background: #fff;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7);
    translate: -50% -50%;
    transition: scale .5s var(--ease);
}
.play svg { width: 30px; height: 30px; margin-left: 4px; }
.play::before,
.play::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7);
    animation: ripple 2.6s var(--ease) infinite;
}
.play::after { animation-delay: 1.3s; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.video:hover .play { scale: 1.08; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { margin: 22px 0 0; text-align: center; font-size: 14px; }
.video-link a { color: var(--muted); transition: color .3s; }
.video-link a:hover { color: var(--text); }

/* ---------- CTA ---------- */
.cta-wrap { padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 80px); }
.cta {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 10vw, 128px) 24px;
    border-radius: 32px;
    text-align: center;
    background:
        radial-gradient(ellipse 75% 70% at 50% 0%, rgba(124, 88, 255, .3), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
    box-shadow: inset 0 0 0 1px var(--line);
}
.cta h2 { font-size: clamp(2.7rem, 6.4vw, 5rem); }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .hero-cta { margin-top: 38px; }
.cta .fine { padding-top: 24px; }
.cta-rings { position: absolute; top: 0; left: 50%; pointer-events: none; }
.cta-rings i {
    position: absolute;
    top: 0;
    left: 0;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    border: 1px solid rgba(139, 108, 255, .28);
    translate: -50% -50%;
    opacity: 0;
    animation: ringOut 7.5s ease-out infinite;
}
.cta-rings i:nth-child(2) { animation-delay: 2.5s; }
.cta-rings i:nth-child(3) { animation-delay: 5s; }
@keyframes ringOut { 0% { scale: .25; opacity: 0; } 20% { opacity: 1; } 100% { scale: 1.2; opacity: 0; } }

/* ---------- 07 FAQ ---------- */
.faq { align-items: start; }
@media (min-width: 980px) {
    .faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
    .faq-copy { position: sticky; top: 132px; }
}
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 24px 0;
    text-align: left;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    font-weight: 500;
    letter-spacing: -.01em;
    transition: color .3s;
}
.acc-q:hover { color: var(--violet-2); }
.plus {
    position: relative;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: transform .6s var(--ease), background .3s, box-shadow .3s;
}
.plus::before,
.plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    translate: -50% -50%;
}
.plus::after { rotate: 90deg; transition: rotate .6s var(--ease); }
.acc-item.open .plus { transform: rotate(180deg); background: rgba(139, 108, 255, .2); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .55); }
.acc-item.open .plus::after { rotate: 0deg; }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc-item.open .acc-a { grid-template-rows: 1fr; }
.acc-a > div { overflow: hidden; visibility: hidden; transition: visibility 0s .55s; }
.acc-item.open .acc-a > div { visibility: visible; transition-delay: 0s; }
.acc-a p {
    margin: 0;
    padding: 0 52px 26px 0;
    line-height: 1.7;
    color: var(--muted);
    opacity: 0;
    translate: 0 -8px;
    transition: opacity .4s, translate .5s var(--ease);
}
.acc-item.open .acc-a p { opacity: 1; translate: 0 0; transition-delay: .12s; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; padding-top: 88px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 48px; }
@media (min-width: 880px) { .footer-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); } }
.footer-brand .logo { width: 127px; height: 28px; }
.footer-brand p { max-width: 24rem; margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols h3 { margin-bottom: 14px; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.footer-cols a { display: block; padding: 4px 0; font-size: 14px; color: var(--muted); transition: color .3s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 64px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--dim);
}
/* Giant wordmark in a faint fill; a spotlight lights it up under the cursor.
   A fill rather than -webkit-text-stroke: stroking a variable font traces
   its overlapping contours, which drew stray lines through the x and e. */
.wordmark {
    margin-top: 32px;
    font-size: clamp(6rem, 27vw, 23rem);
    font-weight: 600;
    letter-spacing: -.075em;
    line-height: .78;
    text-align: center;
    color: transparent;
    background:
        radial-gradient(440px circle at var(--fx, 50%) var(--fy, 130%), rgba(214, 200, 255, .9), rgba(139, 108, 255, .35) 40%, transparent 70%),
        linear-gradient(180deg, rgba(139, 108, 255, .16), rgba(139, 108, 255, .03) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
    translate: 0 14%;
}

/* ---------- Reduced motion ----------
   The page still lives, gently (JS slows the ambient loops). What goes is the
   large motion: things rising and unblurring into place, the drifting
   background, the floating card, and all scroll-linked movement (which JS
   never starts). Entrances become plain fades. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-reveal] { transform: none; filter: none; transition-property: opacity; }
    .a1, .a2, .a3 { animation: none; }
    .hero-title .w, .hero-title em.w { animation-name: fadeIn; }
    .hero-title em.w { animation: fadeIn 1.1s var(--ease) both, sheen 9s linear 1.6s infinite; }
    .readout { animation: fadeIn 1s var(--ease) 1.1s both; }
    .pill, .hero-sub, .hero .hero-cta, .core { animation-name: fadeIn; }
    .core-hint { display: none; }
}
@keyframes fadeIn { from { opacity: 0; } }
