/* Cryonix Hub
   One stylesheet for every page. Geist for copy, Geist Mono for anything the machine
   produced (loadstrings, keys, prices, counters, section labels).
   Near-black, one accent: the ice blue of the Cryonix box. Green only means "live". */

:root {
    --void: #050608;
    --ink: #08090c;
    --surface: #0c0e12;
    --surface-2: #12151a;
    --surface-3: #191d24;

    --line: rgba(255, 255, 255, .07);
    --line-strong: rgba(255, 255, 255, .13);

    --ice: #5cc8ff;
    --ice-deep: #1f9dff;
    --ice-pale: #d9f1ff;
    --ice-dim: rgba(92, 200, 255, .12);
    --ice-line: rgba(92, 200, 255, .34);

    --live: #34d399;
    --live-dim: rgba(52, 211, 153, .12);
    --down: #f87171;
    --discord: #5865f2;

    --text: #f3f5f7;
    --muted: #9aa1ab;
    --faint: #858c96;
    --ghost: #6f7680;

    --sans: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'Geist Mono', ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, monospace;

    --gap: clamp(3.25rem, 7vw, 5.5rem);
    --pad: clamp(1.15rem, 4vw, 2rem);
    --shell: 1180px;
    --nav-h: 60px;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100svh;
    background: var(--void);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -.011em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

::selection { background: var(--ice); color: #000; }
img { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }

* { scrollbar-width: thin; scrollbar-color: rgba(92, 200, 255, .28) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(92, 200, 255, .22); border: 3px solid transparent; background-clip: content-box; border-radius: 99px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(92, 200, 255, .45); background-clip: content-box; }

code, kbd { font-family: var(--mono); }
code { font-size: .88em; color: var(--ice-pale); }
kbd {
    padding: 2px 7px;
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .04);
    font-size: 11.5px;
    color: var(--text);
}

.cx-ico { flex: none; display: inline-block; vertical-align: -.14em; }

/* ------------------------------------------------------------ atmosphere
   Two slow ice-blue masses, a faint grid under the hero, film grain. All CSS. */
.cx-atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; contain: strict; }

.cx-atmos::before,
.cx-atmos::after { content: ''; position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }

.cx-atmos::before {
    width: min(78vw, 900px);
    aspect-ratio: 1;
    top: -32vh;
    left: 50%;
    background: radial-gradient(circle, rgba(92, 200, 255, .12) 0%, rgba(31, 157, 255, .045) 45%, transparent 70%);
    animation: cx-drift-a 26s ease-in-out infinite;
}

.cx-atmos::after {
    width: min(60vw, 680px);
    aspect-ratio: 1;
    top: 42vh;
    left: 8%;
    background: radial-gradient(circle, rgba(92, 200, 255, .06) 0%, transparent 68%);
    animation: cx-drift-b 34s ease-in-out infinite;
}

.cx-atmos > i { position: absolute; inset: 0; display: block; }

.cx-atmos > i:first-child {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 76px 76px;
    -webkit-mask-image: radial-gradient(ellipse 100% 62% at 50% 0%, #000 8%, transparent 72%);
    mask-image: radial-gradient(ellipse 100% 62% at 50% 0%, #000 8%, transparent 72%);
}

.cx-atmos > i:last-child {
    opacity: .3;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

@keyframes cx-drift-a {
    0%, 100% { transform: translate(-50%, 0) scale(1); }
    50% { transform: translate(-42%, 5vh) scale(1.12); }
}

@keyframes cx-drift-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(14vw, -7vh) scale(.88); }
}

/* ----------------------------------------------------------------- shell */
.cx-page { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100svh; overflow-x: clip; }

.cx-shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.cx-shell--tight { max-width: 860px; }

main.cx-main { flex: 1 0 auto; padding-top: calc(var(--nav-h) + 12px); padding-bottom: var(--gap); }

section { position: relative; }

.cx-section { padding-top: var(--gap); }
.cx-section--tight { padding-top: clamp(2rem, 4.5vw, 3rem); }
.cx-hero { padding-top: clamp(3.5rem, 9vw, 6rem); }

.cx-skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: .6rem 1rem; border-radius: 10px; background: var(--ice); color: #021420; }
.cx-skip:focus { left: 8px; }

/* -------------------------------------------------------------- typography */
.cx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    margin: 0 0 1.15rem;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ice);
}

.cx-eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .55; }

/* One headline, two weights: the light half names the category, the heavy half the thing. */
.cx-display {
    margin: 0;
    font-weight: 250;
    font-size: clamp(2.5rem, 7.2vw, 5.25rem);
    line-height: .93;
    letter-spacing: -.045em;
    color: var(--text);
    text-wrap: balance;
}

.cx-display b { font-weight: 800; letter-spacing: -.05em; }

.cx-display em,
.cx-grad {
    font-style: normal;
    font-weight: 800;
    background: linear-gradient(96deg, var(--ice-pale) 0%, var(--ice) 42%, var(--ice-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cx-display--sm { font-size: clamp(1.85rem, 4.4vw, 3rem); line-height: .98; }
.cx-display--xs { font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.05; letter-spacing: -.038em; }

.cx-lede {
    margin: 1.35rem 0 0;
    max-width: 54ch;
    color: var(--muted);
    font-size: clamp(.95rem, 1.5vw, 1.075rem);
    line-height: 1.62;
    text-wrap: pretty;
}

.cx-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cx-dim { color: var(--muted); }
.cx-faint { color: var(--faint); }
.cx-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.cx-link { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ice-line); }
.cx-link:hover { text-decoration-color: var(--ice); }

/* Labelled hairline: names what the next block of the page contains. */
.cx-rule { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

.cx-rule > span {
    flex: none;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--faint);
}

.cx-rule::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }

.cx-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.cx-head > p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------------------------- nav */
.cx-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 90;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(5, 6, 8, 0);
    border-bottom: 1px solid transparent;
    transition: background .35s var(--ease), border-color .35s var(--ease);
}

.cx-nav[data-stuck] {
    background: rgba(6, 7, 10, .72);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line);
}

.cx-nav__inner { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; gap: 1rem; }

.cx-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.cx-brand img { width: 30px; height: 30px; object-fit: contain; transition: transform .5s var(--ease); }
.cx-brand:hover img { transform: rotate(-8deg) scale(1.08); }
.cx-brand span { font-size: 14.5px; font-weight: 650; letter-spacing: -.03em; }

.cx-nav__links { display: none; align-items: center; gap: 2px; margin-inline: auto; }

.cx-nav__link {
    position: relative;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
}

.cx-nav__link:hover,
.cx-nav__link[aria-current] { color: var(--text); }

.cx-nav__link[aria-current]::after {
    content: '';
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 1px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--ice);
    box-shadow: 0 0 10px rgba(92, 200, 255, .7);
}

.cx-nav__end { flex: none; display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.cx-nav .cx-nav__key { background: transparent; color: var(--muted); }
.cx-nav .cx-nav__key:hover { color: var(--text); }

.cx-burger {
    width: 40px;
    height: 40px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    cursor: pointer;
    padding: 0;
}

.cx-burger i { display: block; width: 15px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.cx-burger[aria-expanded="true"] i:first-child { transform: translateY(3.25px) rotate(45deg); }
.cx-burger[aria-expanded="true"] i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (min-width: 900px) {
    .cx-nav__links { display: flex; }
    .cx-nav .cx-nav__key, .cx-burger { display: none; }
}

@media (max-width: 419px) { .cx-nav .cx-nav__key { display: none; } }

/* Scroll progress hairline under the bar; browsers without scroll timelines never show it. */
.cx-nav__progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 1.5px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--ice-deep), var(--ice), var(--ice-pale));
}

@supports (animation-timeline: scroll()) {
    .cx-nav__progress { animation: cx-progress linear; animation-timeline: scroll(root block); }
}

@keyframes cx-progress { to { transform: scaleX(1); } }

.cx-sheet {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    z-index: 89;
    padding: .75rem var(--pad) 1.15rem;
    background: rgba(7, 8, 11, .96);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
}

.cx-sheet[data-open] { transform: none; opacity: 1; visibility: visible; }

.cx-sheet a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    min-height: 46px;
    border-radius: 11px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
}

.cx-sheet a:active { background: rgba(255, 255, 255, .05); }
.cx-sheet a[aria-current] { color: var(--text); background: rgba(92, 200, 255, .07); box-shadow: inset 2px 0 0 var(--ice); }
.cx-sheet a::after { content: '\2192'; font-family: var(--mono); color: var(--ghost); }

@media (min-width: 900px) { .cx-sheet { display: none; } }

/* --------------------------------------------------------------- surfaces */
.cx-panel {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, .028) 0%, rgba(255, 255, 255, 0) 42%), var(--surface);
    overflow: hidden;
    isolation: isolate;
}

.cx-panel--pad { padding: clamp(1.25rem, 3vw, 2rem); }

/* Specular sheen that follows the pointer; --mx/--my are written on pointermove. */
.cx-spot::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity .35s var(--ease);
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(92, 200, 255, .12), transparent 62%);
}

.cx-spot::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    padding: 1px;
    opacity: 0;
    transition: opacity .35s var(--ease);
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(92, 200, 255, .55), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@media (hover: hover) {
    .cx-spot:hover::before,
    .cx-spot:hover::after { opacity: 1; }
}

.cx-lift { transition: translate .45s var(--ease), border-color .35s, box-shadow .45s var(--ease); }

@media (hover: hover) {
    .cx-lift:hover {
        translate: 0 -4px;
        border-color: var(--ice-line);
        box-shadow: 0 22px 50px -22px rgba(0, 0, 0, .85), 0 0 0 1px rgba(92, 200, 255, .07);
    }
}

.cx-tile { border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, .022); padding: clamp(1.05rem, 2.4vw, 1.4rem); }

/* --------------------------------------------------------------- buttons */
.cx-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    min-height: 46px;
    padding: 0 1.35rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -.005em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    overflow: hidden;
    transition: transform .3s var(--ease), background .25s, border-color .25s, box-shadow .3s;
}

.cx-btn:hover { background: rgba(255, 255, 255, .075); border-color: var(--ice-line); }
.cx-btn:active { transform: scale(.975); }
.cx-btn[disabled], .cx-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.cx-btn--ice {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ice-pale) 0%, var(--ice) 40%, var(--ice-deep) 100%);
    color: #02131f;
    font-weight: 700;
    box-shadow: 0 10px 30px -12px rgba(92, 200, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.cx-btn--ice:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #f1faff 0%, var(--ice-pale) 40%, var(--ice) 100%);
    box-shadow: 0 16px 42px -12px rgba(92, 200, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .55);
}

/* The one gloss the system allows: a single light sweep on hover. */
.cx-btn--ice::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
    transform: translateX(-120%);
}

@media (hover: hover) {
    .cx-btn--ice:hover::after { transform: translateX(120%); transition: transform .75s var(--ease); }
}

.cx-btn--discord { border-color: transparent; background: var(--discord); color: #fff; font-weight: 700; box-shadow: 0 10px 30px -14px rgba(88, 101, 242, .9); }
.cx-btn--discord:hover { background: #4854d4; border-color: transparent; }
.cx-btn--quiet { background: transparent; border-color: var(--line); color: var(--muted); }
.cx-btn--quiet:hover { color: var(--text); }
/* Magnetic: JS writes --dx/--dy from the pointer, CSS does the moving. */
.cx-magnetic { transform: translate3d(var(--dx, 0), var(--dy, 0), 0); }
.cx-magnetic:active { transform: translate3d(var(--dx, 0), var(--dy, 0), 0) scale(.975); }

.cx-btn--lg { min-height: 52px; padding: 0 1.75rem; font-size: 14.5px; }
.cx-btn--sm { min-height: 40px; padding: 0 .95rem; font-size: 12.5px; }
.cx-btn--block { width: 100%; }

/* ---------------------------------------------------------------- badges */
.cx-badge {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: 4px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.cx-badge--ice { border-color: var(--ice-line); background: var(--ice-dim); color: var(--ice); }
.cx-badge--live { border-color: rgba(52, 211, 153, .3); background: var(--live-dim); color: var(--live); }

.cx-dot { position: relative; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--live); }
.cx-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: cx-ping 2s cubic-bezier(0, 0, .2, 1) infinite; }

@keyframes cx-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* --------------------------------------------------------------- console
   The loadstring is the product's front door, so pages open with the real command. */
.cx-console {
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    background: linear-gradient(180deg, #0e1014 0%, #090a0d 100%);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05);
    overflow: hidden;
    transition: border-color .25s;
}

.cx-console.is-direct { border-color: var(--ice-line); }

.cx-console__bar { display: flex; align-items: center; gap: .6rem; padding: 9px 12px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .022); }

.cx-console__dots { display: flex; gap: 5px; flex: none; }
.cx-console__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.cx-console__dots i:first-child { background: rgba(92, 200, 255, .55); }

.cx-console__title {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cx-console__toggle { display: flex; flex: none; gap: 2px; margin-left: auto; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }

.cx-console__opt {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: 5px 10px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--faint);
    font: 600 10px/1 var(--mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s, background .2s;
}

.cx-console__opt:hover { color: var(--text); }
.cx-console__opt[aria-pressed="true"] { color: var(--text); background: rgba(255, 255, 255, .08); }
.cx-console__opt--direct[aria-pressed="true"] { color: var(--ice); background: var(--ice-dim); }

.cx-console__body { display: flex; align-items: stretch; flex-wrap: wrap; }

.cx-console__code {
    flex: 1 1 260px;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: 1rem 1.1rem;
    font-family: var(--mono);
    font-size: clamp(11.5px, 2.4vw, 13.5px);
    line-height: 1.55;
    color: #d6dae0;
    overflow-x: auto;
}

.cx-console__code > span:first-child { flex: none; color: var(--ice); user-select: none; }
.cx-console__code code { font: inherit; color: inherit; white-space: pre; }
.cx-console__code .t-fn { color: var(--ice-pale); }
.cx-console__code .t-str { color: #7ee2b8; }
.cx-console__code .t-pun { color: #6b717b; }

.cx-console__copy { flex: none; align-self: center; margin: 10px 10px 10px 0; min-height: 44px; }

@media (max-width: 559px) {
    .cx-console__copy { margin: 0 10px 10px; width: calc(100% - 20px); }
}

@media (max-width: 419px) { .cx-console__dots { display: none; } }

.cx-caret { display: inline-block; margin-left: .55rem; width: 7px; height: 1.05em; vertical-align: -.16em; background: var(--ice); animation: cx-blink 1.15s steps(2, start) infinite; }

@keyframes cx-blink { to { opacity: 0; } }

/* ----------------------------------------------------------------- stats */
.cx-stat { display: flex; flex-direction: column; gap: .35rem; padding: clamp(1.1rem, 2.6vw, 1.5rem); border-radius: var(--r-md); background: rgba(255, 255, 255, .02); }

.cx-stat__value {
    font-family: var(--mono);
    font-size: clamp(1.6rem, 4.2vw, 2.35rem);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.cx-stat__label { font-size: 13px; font-weight: 550; color: var(--text); }
.cx-stat__note { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ghost); }

.cx-status { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin-bottom: 1.5rem; }

/* ----------------------------------------------------------------- grids */
.cx-grid { display: grid; gap: clamp(.75rem, 1.6vw, 1rem); }
.cx-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cx-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 152px), 1fr)); }
.cx-grid--steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.cx-grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); }

.cx-feature__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--ice-dim);
    border: 1px solid var(--ice-line);
    color: var(--ice);
    margin-bottom: .9rem;
}

.cx-feature h3 { margin: 0 0 .45rem; font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.cx-feature p { margin: 0; font-size: 13.5px; color: var(--muted); }

.cx-step__no { display: block; margin-bottom: .9rem; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--ice); }

/* ------------------------------------------------------------ game cards */
.cx-game {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    overflow: hidden;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    isolation: isolate;
    scroll-margin-top: calc(var(--nav-h) + 24px);
}

.cx-game__shell { display: block; position: relative; aspect-ratio: 16 / 9; background: #0a0b0e; overflow: hidden; }

/* Shimmer until Roblox answers; removed the moment the thumbnail loads. */
.cx-game__shell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 34%, rgba(255, 255, 255, .05) 50%, transparent 66%);
    transform: translateX(-100%);
    animation: cx-shimmer 1.6s ease-in-out infinite;
}

@keyframes cx-shimmer { 100% { transform: translateX(100%); } }

.cx-game__img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.01); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.cx-game.is-ready .cx-game__shell::after,
.no-js .cx-game__shell::after { display: none; }
.cx-game.is-ready .cx-game__img { opacity: 1; }

@media (hover: hover) {
    .cx-game:hover .cx-game__img { transform: scale(1.06); }
}

.cx-game__img.is-fallback,
.cx-game.is-ready .cx-game__img.is-fallback { object-fit: contain; padding: 2rem; opacity: .28; }

.cx-game__meta { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border-top: 1px solid var(--line); }
.cx-game__name { flex: 1; min-width: 0; font-size: 13px; font-weight: 550; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Just the green dot: every game runs on the same key. */
.cx-game__state { flex: none; display: inline-flex; align-items: center; padding-right: 2px; }

.cx-game__sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: 0 .85rem .7rem;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ghost);
}

.cx-game__sub > span:last-child { color: var(--faint); transition: color .2s; }
.cx-game:hover .cx-game__sub > span:last-child { color: var(--ice); }

/* ----------------------------------------------------------------- forms */
.cx-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: rgba(0, 0, 0, .45);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.cx-input:focus { outline: none; border-color: var(--ice-line); background-color: rgba(0, 0, 0, .6); box-shadow: 0 0 0 3px rgba(92, 200, 255, .1); }

select.cx-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%);
    background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}

select.cx-input option { background: var(--surface-2); color: var(--text); }

/* ------------------------------------------------------------------ list */
.cx-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.cx-list li { display: flex; align-items: flex-start; gap: .7rem; font-size: 14px; color: var(--muted); }
.cx-list li > .cx-ico { margin-top: .32em; color: var(--ice); }
.cx-list li b { color: var(--text); font-weight: 600; }
.cx-list--quiet li > .cx-ico { color: var(--faint); }

/* --------------------------------------------------------------- reveals */
.cx-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s var(--ease-out) calc(var(--i, 0) * 65ms), transform .8s var(--ease-out) calc(var(--i, 0) * 65ms);
}

.cx-reveal.is-in,
.no-js .cx-reveal { opacity: 1; transform: none; }

/* .cx-reveal sets its own transition; a card that is both keeps the hover timings too. */
.cx-reveal.cx-lift { transition: opacity .8s var(--ease-out) calc(var(--i, 0) * 65ms), transform .8s var(--ease-out) calc(var(--i, 0) * 65ms), translate .45s var(--ease), border-color .35s, box-shadow .45s var(--ease); }

/* Hero headline: each line wipes up from behind a mask. */
.cx-rise { clip-path: inset(-30% -20% -10% -20%); }
.cx-rise > * { display: block; animation: cx-rise .95s var(--ease-out) both; animation-delay: calc(.06s + var(--i, 0) * .09s); }

@keyframes cx-rise {
    from { opacity: 0; transform: translateY(115%) rotate(1.5deg); }
    to { opacity: 1; transform: none; }
}

.cx-fade { animation: cx-fade .9s var(--ease-out) both; animation-delay: calc(.2s + var(--i, 0) * .09s); }

@keyframes cx-fade {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- footer */
.cx-footer { flex: none; border-top: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3rem); background: linear-gradient(180deg, transparent, rgba(92, 200, 255, .02)); }
.cx-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.cx-footer__brand { display: flex; align-items: center; gap: .6rem; font-size: 13px; font-weight: 600; text-decoration: none; }
.cx-footer__brand img { width: 26px; height: 26px; object-fit: contain; }
.cx-footer__links { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin-left: auto; }
.cx-footer__links a { font-size: 12.5px; color: var(--faint); text-decoration: none; transition: color .2s; }
.cx-footer__links a:hover { color: var(--ice); }

.cx-footer__fine {
    width: 100%;
    margin: 0;
    padding-top: 1.15rem;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.7;
    letter-spacing: .02em;
    color: var(--ghost);
}

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

/* ============================================================== home hero */
.cx-home-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); padding-top: clamp(3rem, 8vw, 5.5rem); }

@media (min-width: 900px) {
    .cx-home-hero { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(2rem, 6vw, 4.5rem); }
}

.cx-home-hero__console { margin-top: clamp(1.75rem, 4vw, 2.5rem); max-width: 720px; }
.cx-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }

/* Copy stays above the showcase niche, which reaches past the art column. */
.cx-home-hero > :first-child, .cx-prem-hero > :first-child { position: relative; z-index: 1; }

@media (max-width: 479px) {
    .cx-actions > .cx-btn { flex: 1 1 auto; }
    .cx-actions > .cx-btn--ice { flex: 1 1 100%; }
}

/* ============================================================== showcase
   The boxed product under one cold light. The render ships on its own near-black
   backdrop, so the edges are feathered and a pool of that same colour sits behind it. */
.cx-showcase { position: relative; width: min(100%, 400px); aspect-ratio: 860 / 1025; justify-self: center; perspective: 1100px; }

.cx-home-hero .cx-showcase { width: min(78vw, 340px); }

@media (min-width: 900px) {
    .cx-home-hero .cx-showcase { width: clamp(280px, 28vw, 380px); }
}

.cx-showcase::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 46%;
    z-index: 0;
    width: 165%;
    height: 132%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: radial-gradient(closest-side, #0d1116 58%, rgba(13, 17, 22, .8) 74%, transparent);
}

.cx-showcase__stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    isolation: isolate;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 90%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 90%, transparent);
    mask-composite: intersect;
    transition: transform .6s var(--ease-out);
    animation: cx-box-float 7s ease-in-out 2s infinite;
}

.cx-showcase__box { display: block; width: 100%; height: 100%; animation: cx-box-surface 1.3s cubic-bezier(.2, .7, .2, 1) .35s both; }

/* color-dodge lifts only what is already bright: light catching the chrome edges. */
.cx-showcase__glint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: color-dodge;
    opacity: 0;
    background: linear-gradient(104deg, transparent 38%, rgba(140, 170, 200, .6) 50%, transparent 62%) no-repeat;
    background-size: 250% 100%;
    background-position: calc(var(--gx, 0px) + 83.333%) 0;
    transition: opacity .4s ease;
    animation: cx-glint 1.5s cubic-bezier(.45, 0, .2, 1) 1.35s backwards;
}

.cx-showcase__sheen {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: color-dodge;
    background: linear-gradient(104deg, transparent 40%, rgba(140, 170, 200, .5) 50%, transparent 60%) no-repeat;
    background-size: 250% 100%;
    background-position: 100% 0;
    animation: cx-sheen 8s cubic-bezier(.45, 0, .2, 1) 4.5s infinite;
}

.cx-showcase__beam {
    position: absolute;
    left: 50%;
    top: -16%;
    z-index: 2;
    width: 120%;
    height: 100%;
    transform: translateX(-50%);
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(20px);
    animation: cx-light-on 1.1s cubic-bezier(.2, .7, .2, 1) .1s both, cx-beam 9s ease-in-out 2.5s infinite;
}

.cx-showcase__beam::before {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(42% 0, 58% 0, 94% 100%, 6% 100%);
    background: linear-gradient(180deg, rgba(200, 228, 250, .16), rgba(200, 228, 250, .05) 52%, transparent 86%);
}

.cx-showcase__floor {
    position: absolute;
    left: 50%;
    top: 86%;
    z-index: 0;
    width: 130%;
    height: 22%;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(50% 50% at 50% 50%, rgba(92, 200, 255, .1), transparent 72%);
    animation: cx-light-on 1.2s cubic-bezier(.2, .7, .2, 1) .4s both, cx-floor 7s ease-in-out 2s infinite;
}

.cx-showcase__dust { position: absolute; left: 50%; top: -16%; z-index: 2; width: 108%; height: 96%; transform: translateX(-50%); pointer-events: none; }

.cx-showcase__dust i {
    position: absolute;
    left: var(--l);
    bottom: 0;
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: rgba(217, 241, 255, .9);
    box-shadow: 0 0 6px rgba(217, 241, 255, .55);
    opacity: 0;
    animation: cx-mote var(--t) linear var(--w) infinite;
}

@media (hover: hover) {
    .cx-showcase:hover .cx-showcase__stage { transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(-3px); }
    .cx-showcase:hover .cx-showcase__glint { opacity: .9; }
}

@keyframes cx-glint { from { opacity: 1; background-position: 100% 0; } to { opacity: 1; background-position: 0% 0; } }
@keyframes cx-light-on { from { opacity: 0; } 55% { opacity: .8; } to { opacity: 1; } }
@keyframes cx-box-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes cx-floor { 0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); } 50% { opacity: .7; transform: translateX(-50%) scale(.9, .85); } }
@keyframes cx-beam { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@keyframes cx-sheen { 0% { background-position: 100% 0; } 24%, 100% { background-position: 0% 0; } }
@keyframes cx-mote { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 18%, 78% { opacity: var(--o); } 100% { opacity: 0; transform: translate3d(var(--dx), -340px, 0); } }
@keyframes cx-box-surface { from { opacity: 0; filter: brightness(.2); transform: translateY(10px) scale(.975); } 30% { opacity: 1; } to { opacity: 1; filter: brightness(1); transform: none; } }

/* ================================================================ get key */
.cx-routes { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(.85rem, 2vw, 1.15rem); }

@media (min-width: 900px) {
    .cx-routes { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
}

.cx-route { display: flex; flex-direction: column; padding: clamp(1.4rem, 3.4vw, 2rem); }

.cx-route--premium {
    border-color: var(--ice-line);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(92, 200, 255, .12), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 40%),
        var(--surface);
    box-shadow: 0 0 0 1px rgba(92, 200, 255, .07), 0 34px 70px -40px rgba(92, 200, 255, .45);
}

.cx-route__head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.35rem; }
.cx-route__head img { width: 30px; height: 30px; object-fit: contain; }
.cx-route__title { margin: 0; font-size: clamp(1.1rem, 2.6vw, 1.35rem); font-weight: 650; letter-spacing: -.032em; }
.cx-route__title .cx-grad { font-weight: inherit; }
.cx-route__foot { margin-top: auto; padding-top: 1.75rem; display: grid; gap: .6rem; }
.cx-route__fine { margin: 0; text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ghost); }

.cx-notice {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 0;
    padding: .5rem .5rem .5rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.cx-notes { margin: 0; padding: 0; list-style: none; display: grid; }
.cx-notes li { padding: .95rem 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.cx-notes li:first-child { border-top: 0; padding-top: 0; }
.cx-notes b { color: var(--text); font-weight: 600; }

.cx-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); }

@media (min-width: 900px) {
    .cx-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ================================================================ dialog */
.cx-dialog {
    width: min(92vw, 820px);
    max-height: min(88vh, 860px);
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    background: linear-gradient(160deg, #12151a 0%, #090a0d 100%);
    color: var(--text);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .7);
    overscroll-behavior: contain;
}

html:has(dialog[open]) { overflow: hidden; }

.cx-dialog::backdrop { background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cx-dialog[open] { animation: cx-pop .3s var(--ease-out) both; }

@keyframes cx-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }

.cx-dialog__inner { padding: clamp(1.25rem, 3vw, 2rem); }
.cx-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.cx-dialog__head h2 { margin: 0; }
.cx-dialog__head h2 + p { margin: .6rem 0 0; font-size: 13.5px; color: var(--muted); max-width: 60ch; }

.cx-dialog__close {
    flex: none;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: none;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

.cx-dialog__close:hover { color: var(--text); border-color: var(--ice-line); }

.cx-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .75rem; }
.cx-group { padding: 1rem 1.05rem; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, .022); }
.cx-group h3 { margin: 0 0 .7rem; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ice); }
.cx-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.cx-group li { font-size: 13px; color: var(--muted); }

.cx-keys { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.cx-keys > span { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.cx-keys kbd { text-transform: none; letter-spacing: 0; }
.cx-dialog__notes { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: .45rem; font-size: 13px; color: var(--faint); }
.cx-dialog__foot { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

/* =============================================================== premium */
.cx-prem-hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 3rem); padding-top: clamp(3rem, 8vw, 5rem); }

@media (min-width: 1000px) {
    .cx-prem-hero { grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); }
}

@media (max-width: 999px) {
    .cx-prem-hero > :first-child { text-align: center; }
    .cx-prem-hero .cx-lede, .cx-perks, .cx-metrics { margin-inline: auto; }
    .cx-perk, .cx-metrics { text-align: left; }
}

@media (max-width: 767px) {
    .cx-prem-hero .cx-showcase { width: min(76vw, 320px); }
}

.cx-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 500; color: var(--text); }
.cx-chip img { width: 16px; height: 16px; object-fit: contain; }

.cx-prem-title { margin: 1.5rem 0 0; font-size: clamp(2.6rem, 6.4vw, 3.75rem); font-weight: 600; line-height: .98; letter-spacing: -.055em; }

/* The one line that has to feel expensive: a slow silver pass over white. */
.cx-shiny {
    background: linear-gradient(110deg, #fff 40%, #9fc4e2 48%, #fff 56%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: cx-shiny 6s linear infinite;
}

@keyframes cx-shiny { from { background-position: 200% 0; } to { background-position: -80% 0; } }

.cx-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .6rem; max-width: 500px; margin-top: 1.5rem; }

/* Metallic frame: the fill is clipped to the padding box, the light edge to the border box. */
.cx-perk {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    background:
        linear-gradient(160deg, #15181d, #0f1115 62%) padding-box,
        linear-gradient(135deg, rgba(217, 241, 255, .6), rgba(217, 241, 255, .08) 42%, rgba(217, 241, 255, .32)) border-box;
    box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .8);
}

.cx-perk__icon { flex: 0 0 30px; display: grid; place-items: center; height: 30px; border-radius: 9px; color: #05080b; background: linear-gradient(135deg, var(--ice-pale), var(--ice)); }
.cx-perk strong { display: block; font-size: 13.5px; font-weight: 650; line-height: 1.25; letter-spacing: -.012em; }
.cx-perk div > span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }

.cx-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; max-width: 500px; margin-top: 1.5rem; padding: 13px 0; border-block: 1px solid var(--line); }
.cx-metrics strong { display: block; font-family: var(--mono); font-size: 21px; font-weight: 600; letter-spacing: -.04em; line-height: 1.2; }
.cx-metrics span { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--faint); }

.cx-compare { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: rgba(255, 255, 255, .02); }
.cx-compare__top { padding: 14px 18px; }
.cx-compare__top h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.cx-compare__top p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.cx-compare__row { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); align-items: center; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); font-size: 13px; }
.cx-compare__row strong { font-weight: 600; }
.cx-compare__head { background: rgba(255, 255, 255, .035); font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--faint); }
.cx-compare__head span:last-child { color: var(--ice); }
.cx-compare__free { color: var(--muted); }
.cx-compare__prem { color: var(--ice); font-weight: 600; }

@media (max-width: 639px) {
    .cx-compare__row { grid-template-columns: 1fr; gap: 5px; }
    .cx-compare__head { display: none; }
    .cx-compare__free::before, .cx-compare__prem::before { content: attr(data-label) ': '; font-weight: 500; color: var(--faint); }
}

/* The pricing panel is the page's one lit surface: a wide standing glow plus the pointer sheen. */
.cx-pricing { border-radius: 18px; box-shadow: 0 32px 90px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .015); }

.cx-pricing.cx-spot::before {
    opacity: 1;
    background:
        radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(92, 200, 255, .1), transparent 68%),
        radial-gradient(600px 300px at 12% 0%, rgba(92, 200, 255, .14), transparent 70%),
        radial-gradient(520px 320px at 88% 110%, rgba(92, 200, 255, .08), transparent 72%);
}

.cx-pricing__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px clamp(1.25rem, 3vw, 1.75rem); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.cx-pricing__head > span:first-child { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cx-pricing__head > span:last-child { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--live); }

@media (max-width: 639px) {
    .cx-pricing__head > span:last-child { display: none; }
}

.cx-pricing__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 2.5rem); padding: clamp(1.75rem, 4vw, 2.25rem) clamp(1.25rem, 3vw, 1.75rem); }

@media (min-width: 1000px) {
    .cx-pricing__grid { grid-template-columns: 1fr minmax(320px, 380px) 1fr; }
}

@media (max-width: 999px) {
    .cx-pricing__grid > .cx-pay { order: -1; }
}

.cx-pricing h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.cx-pricing h2 + p { margin: .6rem 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

.cx-figures { display: grid; gap: .75rem; margin-top: 1.25rem; }
.cx-figures div { display: flex; align-items: baseline; gap: .75rem; }
.cx-figures strong { flex: none; font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: -.03em; color: var(--ice); }
.cx-figures span { font-size: 12.5px; color: var(--muted); }

.cx-pay {
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(92, 200, 255, .16);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012) 52%, rgba(92, 200, 255, .035));
    box-shadow: 0 20px 45px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .02);
}

@media (max-width: 767px) {
    .cx-pay { padding: 12px; border-radius: 16px; }
}

.cx-pay__eyebrow { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 11px; font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.cx-plans { display: grid; gap: 12px; }

.cx-plan {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    min-height: 76px;
    padding: 16px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface-2);
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, transform .12s;
}

.cx-plan:hover { border-color: rgba(255, 255, 255, .22); }
.cx-plan:active { transform: scale(.995); }

/* Selected plan: a gradient painted into the border box and slid. The first layer must stay
   opaque, since it is what hides the gradient everywhere except the 1px ring. */
.cx-plan[aria-checked="true"] {
    border-color: transparent;
    background-image:
        linear-gradient(110deg, #0f2a3d, #12171d 58%, #12151a),
        linear-gradient(90deg, rgba(92, 200, 255, .25) 0%, var(--ice) 25%, rgba(92, 200, 255, .25) 50%, var(--ice) 75%, rgba(92, 200, 255, .25) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 200% 100%;
    animation: cx-star 5s linear infinite;
}

@keyframes cx-star { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 100% 0; } }

.cx-plan__body { flex: 1; min-width: 0; }
.cx-plan__name { display: flex; align-items: center; gap: .5rem; font-size: 14px; font-weight: 650; letter-spacing: -.015em; }
.cx-plan__sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.cx-plan__tag { padding: 2px 7px; border-radius: 999px; background: var(--ice); color: #02131f; font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cx-plan__price { flex: none; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.cx-plan__price strong { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.cx-plan__price span { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); }

.cx-pay__ticks { display: grid; gap: 6px; margin: 14px 2px; }
.cx-pay__ticks span { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.cx-pay__ticks .cx-ico { color: var(--live); }
.cx-pay__note { margin: 10px 2px 0; text-align: center; font-size: 11px; line-height: 1.5; color: var(--faint); }

/* Checkout button: squared to match the plan rows, with a light pass every few seconds. */
.cx-pay__btn { min-height: 48px; border-radius: 12px; }
.cx-pay__btn::after { animation: cx-sweep 5s ease-in-out infinite; }

@keyframes cx-sweep { 0%, 74% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

.cx-rail { position: relative; display: grid; gap: 1rem; margin-top: 1.25rem; padding-left: 18px; }
.cx-rail::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: linear-gradient(var(--ice), rgba(92, 200, 255, .06)); }
.cx-rail div { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); transition: transform .22s ease, color .22s ease; }
.cx-rail .cx-ico { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; padding: 4px; border: 1px solid var(--ice-line); border-radius: 999px; background: var(--ice-dim); color: var(--ice); }

@media (hover: hover) {
    .cx-rail div:hover { transform: translateX(4px); color: var(--text); }
}

.cx-faq-title { margin: 0 0 1rem; font-size: 18px; font-weight: 600; letter-spacing: -.02em; text-align: center; }
.cx-faq { display: grid; gap: 8px; }
.cx-faq details { border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.cx-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; padding: 14px 16px; font-size: 13.5px; font-weight: 650; }
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq summary::after { content: '+'; flex: none; color: var(--ice); font-family: var(--mono); font-size: 16px; line-height: 1; }
.cx-faq details[open] summary::after { content: '\2212'; }
.cx-faq details p { margin: 0; padding: 0 16px 15px; font-size: 13px; line-height: 1.6; color: var(--muted); }

.cx-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.25rem; }
.cx-trust span { display: inline-flex; align-items: center; gap: .6rem; font-size: 12.5px; font-weight: 500; color: var(--text); }
.cx-trust .cx-ico { color: var(--ice); }
/* ================================================================= legal */
.cx-legal { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); padding-top: clamp(2.5rem, 6vw, 4rem); }
.cx-legal__aside { display: none; }

@media (min-width: 1000px) {
    .cx-legal { grid-template-columns: 232px minmax(0, 1fr); align-items: start; }
    .cx-legal__aside { display: block; position: sticky; top: calc(var(--nav-h) + 20px); max-height: calc(100svh - var(--nav-h) - 40px); overflow-y: auto; }
}

.cx-legal__stamp { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.5rem; }

.cx-summary { max-width: 860px; margin-top: clamp(1.75rem, 4vw, 2.5rem); padding: clamp(1.15rem, 3vw, 1.6rem); border: 1px solid var(--ice-line); border-radius: var(--r-md); background: linear-gradient(160deg, rgba(92, 200, 255, .07), transparent 65%); }
.cx-summary h2 { margin: 0 0 .9rem; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ice); }
.cx-summary ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; }
.cx-summary li { font-size: 14px; color: var(--muted); }
.cx-summary li::marker { color: var(--ice-line); }
.cx-summary strong { color: var(--text); font-weight: 600; }
.cx-summary p { margin: .9rem 0 0; font-size: 12px; color: var(--ghost); }

.cx-toc { display: grid; gap: 1px; align-content: start; }
.cx-toc__title { margin: 0 0 .6rem; padding-left: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.cx-toc a { display: block; padding: 7px 12px; border-left: 1px solid var(--line); font-size: 12.5px; color: var(--faint); text-decoration: none; transition: color .2s, border-color .2s; }
.cx-toc a:hover, .cx-toc a.is-active { color: var(--text); border-left-color: var(--ice); }

.cx-prose { color: var(--muted); font-size: 15px; line-height: 1.75; }
.cx-prose h2 { margin: 0 0 .85rem; font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 650; letter-spacing: -.028em; color: var(--text); text-wrap: balance; }
.cx-prose p { margin: 0 0 .9rem; }
.cx-prose p:last-child { margin-bottom: 0; }
.cx-prose ul { margin: 0 0 .9rem; padding-left: 1.15rem; display: grid; gap: .55rem; }
.cx-prose ul:last-child { margin-bottom: 0; }
.cx-prose li::marker { color: var(--ice-line); }
.cx-prose strong { color: var(--text); font-weight: 600; }
.cx-prose a:not(.cx-btn) { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ice-line); }
.cx-prose a:not(.cx-btn):hover { text-decoration-color: var(--ice); }

/* Numbered sections: the number sits in the margin in mono, the heading stays clean. */
.cx-clause { display: grid; grid-template-columns: 1fr; gap: .5rem 1.5rem; padding-block: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 12px); }
.cx-clause:first-child { border-top: 0; padding-top: 0; }
.cx-clause__no { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--ice); padding-top: .3rem; }

@media (min-width: 800px) {
    .cx-clause { grid-template-columns: 68px 1fr; }
    .cx-clause__no { grid-row: span 2; }
}
/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .cx-reveal { opacity: 1; transform: none; }
    .cx-magnetic { transform: none; }
    .cx-shiny { background: none; color: #fff; }
}
