/* ==========================================================================
   A9X LABS — HOME / CORE  (third-generation homepage)
   A single dark stage, a living core, bento system map, glow-first UI.
   Self-contained: fonts are self-hosted, no dependency on any other CSS.
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face {
    font-family: "Core UI";
    src: url("../../fonts/inter-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Core AR";
    src: url("../../fonts/cairo-arabic.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Core Mono";
    src: url("../../fonts/jbmono-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* ---------- tokens ---------- */
@property --core-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

:root {
    color-scheme: dark;

    --bg: #03050c;
    --bg-2: #060a16;
    --ink: #eef3ff;
    --ink-2: #a8b6d9;
    --ink-3: #67759b;
    --line: rgba(126, 158, 255, .13);
    --line-2: rgba(126, 158, 255, .32);

    --violet: #7c5cff;
    --violet-hi: #a78bfa;
    --cyan: #22d3ee;
    --magenta: #e879f9;
    --amber: #ffb86b;
    --good: #4ade80;

    --grad: linear-gradient(100deg, #22d3ee 0%, #7c5cff 52%, #e879f9 100%);
    --grad-soft: linear-gradient(100deg, rgba(34, 211, 238, .16), rgba(124, 92, 255, .16) 52%, rgba(232, 121, 249, .16));
    --glow-v: 0 0 60px -12px rgba(124, 92, 255, .65);
    --glow-c: 0 0 60px -12px rgba(34, 211, 238, .5);

    --ui: "Core UI", "Segoe UI", system-ui, sans-serif;
    --mono: "Core Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --expo: cubic-bezier(.16, 1, .3, 1);

    --bar: 76px;
    --r-s: 12px;
    --r-m: 16px;
    --r-l: 24px;
    --r-xl: 30px;
}

html[lang="ar"] {
    --ui: "Core AR", "Core UI", Tahoma, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--bar) + 20px);
}

body {
    margin: 0;
    min-width: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--ui);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
summary {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

::selection {
    background: rgba(124, 92, 255, .35);
    color: #fff;
}

:focus-visible {
    outline: 2px solid #b9a8ff;
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: clamp(20px, 3.6vw, 56px);
}

.icon {
    width: 1em;
    height: 1em;
    flex: none;
}

.mono {
    font-family: var(--mono);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.skip {
    position: fixed;
    inset-inline-start: 14px;
    top: -64px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 12px;
    background: #0b1024;
    border: 1px solid var(--line-2);
    font-size: 14px;
    transition: top .2s var(--ease);
}

.skip:focus {
    top: 14px;
}

/* ==========================================================================
   AMBIENT STAGE (behind everything)
   ========================================================================== */
.stage {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(1100px 560px at 78% -8%, rgba(124, 92, 255, .2), transparent 60%),
        radial-gradient(900px 520px at 4% 6%, rgba(34, 211, 238, .13), transparent 62%),
        radial-gradient(900px 620px at 52% 112%, rgba(232, 121, 249, .12), transparent 64%),
        linear-gradient(180deg, #03050c 0%, #050815 48%, #03050c 100%);
}

.stage__grid {
    position: absolute;
    inset: -1px;
    background-image:
        linear-gradient(rgba(126, 158, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 158, 255, .05) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: radial-gradient(1000px 700px at 50% 20%, #000 20%, transparent 78%);
    mask-image: radial-gradient(1000px 700px at 50% 20%, #000 20%, transparent 78%);
}

.stage__aurora {
    position: absolute;
    inset: -20% -10%;
    background:
        radial-gradient(36% 42% at 24% 32%, rgba(34, 211, 238, .16), transparent 70%),
        radial-gradient(32% 38% at 68% 18%, rgba(124, 92, 255, .22), transparent 70%),
        radial-gradient(30% 36% at 86% 58%, rgba(232, 121, 249, .14), transparent 70%);
    filter: blur(40px);
    animation: aurora 24s ease-in-out infinite alternate;
}

.stage__noise {
    position: absolute;
    inset: 0;
    opacity: .05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.stage__scan {
    position: absolute;
    inset: 0;
    opacity: .35;
    background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(0, 0, 0, .18) 3px 4px);
    mix-blend-mode: multiply;
}

/* pointer aura (JS sets --px/--py; off for reduced motion) */
.pointer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .6s var(--ease);
    background: radial-gradient(420px 420px at var(--px, 50%) var(--py, 30%),
            rgba(124, 92, 255, .12), transparent 68%);
}

.pointer.is-on {
    opacity: 1;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 70;
    transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
    border-bottom: 1px solid transparent;
}

.top::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 1px;
    opacity: 0;
    transition: opacity .4s var(--ease);
    background: linear-gradient(90deg, transparent, rgba(124, 92, 255, .7) 28%,
            rgba(34, 211, 238, .8) 50%, rgba(232, 121, 249, .7) 72%, transparent);
}

.top.is-stuck {
    background: rgba(4, 6, 15, .74);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom-color: rgba(126, 158, 255, .1);
}

.top.is-stuck::after {
    opacity: .8;
}

.top__bar {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    min-height: var(--bar);
}

.top__bar > .brand {
    grid-column: 1;
    justify-self: start;
}

.top__bar > .nav {
    grid-column: 2;
    justify-self: center;
    margin-inline: 0;
}

.top__bar > .top__right {
    grid-column: 3;
    justify-self: end;
}

/* brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: none;
}

.brand__mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
}

.brand .deck-emblem,
.brand__mark .deck-emblem {
    width: 44px;
    height: 38px;
    flex: none;
    filter: drop-shadow(0 0 16px rgba(124, 92, 255, .55));
}

.brand .emblem-orbit,
.brand__mark .emblem-orbit {
    transform-origin: 45px 37px;
    animation: spin 40s linear infinite;
}

.brand__word {
    display: grid;
    line-height: .9;
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: .14em;
}

.brand__word small {
    margin-block-start: 5px;
    font-family: var(--mono);
    font-size: .5rem;
    font-weight: 500;
    letter-spacing: .42em;
    color: var(--ink-3);
}

/* nav capsule */
.nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-inline: auto;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(126, 158, 255, .14);
    background: transparent;
}

.nav a {
    position: relative;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--ink-2);
    transition: color .2s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}

.nav a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, .045);
}

.nav a.is-current {
    color: #fff;
    background: linear-gradient(120deg, rgba(124, 92, 255, .28), rgba(34, 211, 238, .16));
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .35), 0 0 22px -6px rgba(124, 92, 255, .8);
}

/* right cluster */
.top__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-inline: 10px;
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9fe8c9;
    white-space: nowrap;
}

.status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 10px 2px rgba(74, 222, 128, .6);
    animation: blink 2.6s ease-in-out infinite;
}

.clock {
    font-family: var(--mono);
    font-size: .64rem;
    letter-spacing: .1em;
    color: var(--ink-3);
    white-space: nowrap;
}

/* language */
.lang {
    position: relative;
}

.lang summary {
    list-style: none;
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 38px;
    padding-inline: 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .64rem;
    letter-spacing: .08em;
    color: var(--ink-2);
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}

.lang summary::-webkit-details-marker {
    display: none;
}

.lang summary:hover {
    color: var(--ink);
    border-color: var(--line-2);
    background: rgba(255, 255, 255, .04);
}

.lang > div {
    position: absolute;
    inset-block-start: calc(100% + 10px);
    inset-inline-end: 0;
    min-width: 150px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: rgba(7, 10, 22, .97);
    box-shadow: 0 28px 70px -24px #000, 0 0 0 1px rgba(124, 92, 255, .12);
    backdrop-filter: blur(18px);
}

.lang > div a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding-inline: 12px;
    border-radius: 9px;
    font-size: .82rem;
    color: var(--ink-2);
}

.lang > div a:hover {
    background: rgba(124, 92, 255, .16);
    color: #fff;
}

.signin {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding-inline: 14px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-2);
    transition: color .2s;
}

.signin:hover {
    color: #fff;
}

.burger {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink);
    /* L124b: #core-drawer lives inside header.top, so it shares .top's stacking
       context — without this the drawer (z 69) paints over the burger and the
       user can never tap it closed. */
    position: relative;
    z-index: 70;
}

/* mobile drawer */
.drawer {
    position: fixed;
    inset: 0;
    /* L124b: below .top (z 70) so the top bar + burger stay tappable while the
       drawer is open — the burger is the close button and must not be covered. */
    z-index: 69;
    display: grid;
    align-content: start;
    gap: 4px;
    padding: calc(var(--bar) + 16px) 20px 28px;
    background: rgba(3, 5, 12, .97);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .28s var(--ease), transform .34s var(--expo), visibility .3s;
}

.drawer.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.drawer a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding-inline: 6px;
    border-bottom: 1px solid rgba(126, 158, 255, .09);
    font-size: 1.06rem;
    font-weight: 650;
    color: var(--ink-2);
}

.drawer a:hover {
    color: #fff;
}

.drawer__lang {
    display: flex;
    gap: 8px;
    margin-block-start: 14px;
}

.drawer__lang a {
    flex: 1;
    justify-content: center !important;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: .8rem;
    color: var(--ink-2);
}

.drawer .btn {
    margin-block-start: 14px;
    width: 100%;
    justify-content: center;
}

body.lock {
    overflow: hidden;
}

/* ==========================================================================
   BUTTONS — the new plasma system
   ========================================================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding-inline: 22px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    isolation: isolate;
    transition: transform .28s var(--expo), box-shadow .3s var(--ease), color .2s;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: translateY(1px) scale(.995);
}

.btn__label {
    position: relative;
    z-index: 2;
}

.btn__ic {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: transform .35s var(--expo), background .3s;
}

.btn__ic .icon {
    width: 14px;
    height: 14px;
}

/* primary: rotating plasma ring + glass core */
.btn--core {
    color: #fff;
    background: #0a0d1c;
    box-shadow: 0 0 0 1px rgba(167, 139, 250, .2), 0 18px 50px -20px rgba(124, 92, 255, .8);
}

.btn--core::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--core-angle, 0deg),
            #22d3ee 0%, #7c5cff 30%, #e879f9 55%, #7c5cff 80%, #22d3ee 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: btn-spin 5.5s linear infinite;
}

.btn--core::after {
    content: "";
    position: absolute;
    inset: 1.5px;
    z-index: -1;
    border-radius: inherit;
    background:
        radial-gradient(120% 180% at 14% -20%, rgba(124, 92, 255, .55), transparent 58%),
        radial-gradient(100% 160% at 96% 130%, rgba(34, 211, 238, .3), transparent 60%),
        linear-gradient(180deg, #0c1024, #070a16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.btn--core .btn__ic {
    background: var(--grad);
    color: #05070f;
    box-shadow: 0 0 18px -2px rgba(124, 92, 255, .8);
}

.btn--core:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(167, 139, 250, .35), 0 26px 70px -18px rgba(124, 92, 255, 1);
}

.btn--core:hover .btn__ic {
    transform: translateX(3px) rotate(-8deg);
}

[dir="rtl"] .btn--core:hover .btn__ic {
    transform: translateX(-3px) rotate(8deg) scaleX(-1);
}

/* secondary: glass pill with sweeping edge */
.btn--glass {
    color: var(--ink);
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .035);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    overflow: hidden;
}

.btn--glass::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent 30%, rgba(124, 92, 255, .22) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .8s var(--ease);
}

.btn--glass .btn__ic {
    color: #cfd8ff;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
}

.btn--glass:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, .6);
    box-shadow: 0 0 0 1px rgba(167, 139, 250, .2), 0 20px 50px -24px rgba(124, 92, 255, .9);
}

.btn--glass:hover::before {
    transform: translateX(120%);
}

.btn--glass:hover .btn__ic {
    transform: translateX(3px);
}

[dir="rtl"] .btn--glass:hover .btn__ic {
    transform: translateX(-3px) scaleX(-1);
}

/* small variant */
.btn--sm {
    height: 42px;
    padding-inline: 16px;
    font-size: .8rem;
}

.btn--sm .btn__ic {
    width: 24px;
    height: 24px;
}

.btn--wide {
    width: 100%;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(660px, 94svh, 920px);
    padding-block-start: calc(var(--bar) + clamp(18px, 4.4vh, 54px));
    padding-block-end: clamp(14px, 2.6vh, 30px);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    align-items: center;
    gap: clamp(18px, 3.4vw, 56px);
}

.hero__copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

/* load-in stagger (ends visible — content never depends on JS) */
.hero__copy > * {
    animation: rise .9s var(--expo) both;
}

.hero__copy > *:nth-child(1) {
    animation-delay: .05s;
}

.hero__copy > *:nth-child(2) {
    animation-delay: .12s;
}

.hero__copy > *:nth-child(3) {
    animation-delay: .2s;
}

.hero__copy > *:nth-child(4) {
    animation-delay: .28s;
}

.hero__copy > *:nth-child(5) {
    animation-delay: .36s;
}

.hero__copy > *:nth-child(6) {
    animation-delay: .44s;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 8px;
    border-radius: 999px;
    border: 1px solid rgba(124, 92, 255, .32);
    background: linear-gradient(100deg, rgba(124, 92, 255, .16), rgba(34, 211, 238, .08));
    box-shadow: 0 0 30px -10px rgba(124, 92, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #dcd4ff;
}

.kicker b {
    display: inline-grid;
    place-items: center;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--grad);
    color: #05070f;
    font-size: .52rem;
    letter-spacing: .12em;
    font-weight: 700;
}

.kicker .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px 2px rgba(34, 211, 238, .8);
    animation: blink 2.4s ease-in-out infinite;
}

.hero h1 {
    margin-block: clamp(14px, 2.4vh, 24px) 0;
    font-size: clamp(3rem, 6.9vw, 6.1rem);
    font-weight: 900;
    line-height: .94;
    letter-spacing: -.045em;
    text-wrap: balance;
}

html[lang="ar"] .hero h1 {
    line-height: 1.14;
    letter-spacing: -.01em;
    font-weight: 800;
}

.hero h1 span {
    display: block;
}

.hero h1 .grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero__sub {
    margin-block-start: clamp(14px, 2vh, 20px);
    max-width: 34ch;
    font-size: clamp(1.02rem, 1.5vw, 1.3rem);
    font-weight: 650;
    letter-spacing: -.01em;
    color: #dbe6ff;
}

.hero__lede {
    margin-block-start: 10px;
    max-width: 52ch;
    font-size: clamp(.92rem, 1vw, .98rem);
    line-height: 1.8;
    color: var(--ink-2);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-block-start: clamp(20px, 3vh, 30px);
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin-block-start: clamp(20px, 3vh, 30px);
    border-top: 1px solid var(--line);
    padding-block-start: clamp(14px, 2vh, 20px);
}

.hstat {
    display: grid;
    gap: 2px;
    padding-inline: 18px;
    border-inline-start: 1px solid var(--line);
}

.hstat:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
}

.hstat b {
    font-size: 1.34rem;
    font-weight: 800;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    color: #f2f6ff;
}

.hstat b i {
    font-style: normal;
    color: var(--cyan);
}

.hstat small {
    font-family: var(--mono);
    font-size: .56rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #8b99ba;
}

/* system rail under the hero copy — all eight sections at a glance */
.sysrail {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-block-start: clamp(18px, 2.4vh, 26px);
}

.sysrail a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding-inline: 12px;
    border-radius: 999px;
    border: 1px solid rgba(126, 158, 255, .14);
    background: rgba(255, 255, 255, .025);
    font-family: var(--mono);
    font-size: .57rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-2);
    transition: color .2s, border-color .2s, background .2s, box-shadow .25s, transform .25s;
}

.sysrail a .icon {
    width: 13px;
    height: 13px;
    color: var(--violet-hi);
}

.sysrail a:hover {
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(124, 92, 255, .55);
    background: rgba(124, 92, 255, .12);
    box-shadow: 0 10px 26px -12px rgba(124, 92, 255, .9);
}

/* ---------- THE CORE ---------- */
.core {
    position: relative;
    display: grid;
    place-items: center;
    width: min(560px, 100%);
    aspect-ratio: 1;
    margin-inline: auto;
    animation: rise 1.1s var(--expo) both .2s;
}

.core__halo {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(147, 51, 234, .52), rgba(217, 70, 239, .14) 48%, transparent 72%);
    filter: blur(30px);
    animation: breathe 7s ease-in-out infinite;
}

.core__ring {
    position: absolute;
    border-radius: 50%;
    padding: 1px;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.core__ring--a {
    inset: 3%;
    background: conic-gradient(from 0deg, transparent 0 42%, rgba(217, 70, 239, .95) 52%, rgba(147, 51, 234, .95) 60%, transparent 72% 100%);
    animation: spin 16s linear infinite;
}

.core__ring--b {
    inset: 11%;
    background: conic-gradient(from 180deg, transparent 0 46%, rgba(244, 114, 182, .85) 56%, rgba(196, 181, 253, .8) 64%, transparent 76% 100%);
    animation: spin 22s linear infinite reverse;
}

.core__ring--c {
    inset: 19%;
    background: conic-gradient(from 90deg, transparent 0 50%, rgba(147, 51, 234, .85) 60%, rgba(217, 70, 239, .6) 68%, transparent 78% 100%);
    animation: spin 11s linear infinite;
    opacity: .8;
}

.core__sphere {
    position: relative;
    width: 52%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background:
        radial-gradient(circle at 32% 26%, #f8fafc 0%, #c4b5fd 12%, #9333ea 32%, #6d28d9 54%, #2c0f4d 78%, #0a0414 90%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .12),
        0 0 90px 10px rgba(217, 70, 239, .42),
        inset -14px -18px 50px rgba(10, 4, 20, .62),
        inset 10px 12px 30px rgba(248, 250, 252, .2);
    animation: breathe 8s ease-in-out infinite;
}

.core__plasma {
    position: absolute;
    inset: -12%;
    background: conic-gradient(from 200deg,
            rgba(217, 70, 239, .5), transparent 30%, rgba(244, 114, 182, .45) 55%,
            transparent 74%, rgba(147, 51, 234, .55));
    filter: blur(16px);
    mix-blend-mode: screen;
    animation: spin 18s linear infinite;
}

.core__mesh {
    position: absolute;
    inset: 0;
    opacity: .5;
    background-image:
        radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px);
    background-size: 14px 14px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
    mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
    mix-blend-mode: overlay;
}

.core__flare {
    position: absolute;
    inset-block-start: 18%;
    inset-inline-start: 22%;
    width: 26%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, #f8fafc, rgba(244, 114, 182, .35) 42%, rgba(255, 255, 255, 0) 72%);
    filter: blur(4px);
    opacity: .8;
}

.core__node {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 14px 4px rgba(34, 211, 238, .8);
}

.core__node--1 {
    inset-block-start: 12%;
    inset-inline-start: 50%;
    animation: orbit1 14s linear infinite;
}

.core__node--2 {
    inset-block-end: 16%;
    inset-inline-end: 18%;
    box-shadow: 0 0 14px 4px rgba(232, 121, 249, .8);
    animation: orbit2 19s linear infinite;
}

.core__node--3 {
    inset-block-start: 34%;
    inset-inline-start: 8%;
    width: 6px;
    height: 6px;
    box-shadow: 0 0 12px 3px rgba(167, 139, 250, .9);
    animation: float 7s ease-in-out infinite;
}

.core__chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(126, 158, 255, .24);
    background: rgba(7, 10, 22, .82);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07);
    font-family: var(--mono);
    font-size: .54rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #d5e2ff;
    white-space: nowrap;
}

.core__chip .icon {
    width: 14px;
    height: 14px;
    color: #c4b5fd;
}

.core__chip--a {
    inset-block-start: 8%;
    inset-inline-end: 2%;
    animation: float 6.4s ease-in-out infinite;
}

.core__chip--b {
    inset-block-end: 12%;
    inset-inline-start: -2%;
    animation: float 8s ease-in-out infinite .8s;
}

.core__chip--b .icon {
    color: #f472b6;
}

.core__chip b {
    color: #fff;
    font-weight: 600;
}

/* ==========================================================================
   CAPABILITY TICKER
   ========================================================================== */
.ticker {
    position: relative;
    border-block: 1px solid var(--line);
    background: rgba(4, 6, 14, .55);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.ticker:hover .ticker__track {
    animation-play-state: paused;
}

.ticker__track {
    display: flex;
    width: max-content;
    animation: marquee 46s linear infinite;
}

.ticker__track span {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    font-family: var(--mono);
    font-size: .55rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(168, 182, 217, .68);
    white-space: nowrap;
}

.ticker__track span::after {
    content: "◆";
    color: rgba(124, 92, 255, .85);
    font-size: .46rem;
}

[dir="rtl"] .ticker__track {
    animation-name: marquee-rtl;
}

@keyframes marquee {
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes marquee-rtl {
    to {
        transform: translate3d(50%, 0, 0);
    }
}
/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
    position: relative;
    padding-block: clamp(36px, 5.4vh, 68px);
}

.head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-block-end: clamp(20px, 3vh, 32px);
}

.head__index {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-block-end: 12px;
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--violet-hi);
}

.head__index::before {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, var(--violet), transparent);
}

.h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.9rem);
    font-weight: 850;
    line-height: 1.06;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.h2 em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.head > p {
    max-width: 46ch;
    font-size: .92rem;
    line-height: 1.8;
    color: var(--ink-2);
}

/* ==========================================================================
   BENTO
   ========================================================================== */
.bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 168px;
    padding: 18px;
    border-radius: var(--r-m);
    border: 1px solid var(--line);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    overflow: hidden;
    isolation: isolate;
    transition: transform .35s var(--expo), border-color .3s var(--ease), box-shadow .35s var(--ease);
}

/* pointer spotlight (JS sets --mx/--my) */
.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity .3s var(--ease);
    background: radial-gradient(220px 220px at var(--mx, 50%) var(--my, 0%),
            rgba(124, 92, 255, .22), transparent 68%);
}

.tile:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, .5);
    box-shadow: 0 30px 70px -30px rgba(124, 92, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.tile:hover::before {
    opacity: 1;
}

.tile__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-block-end: 12px;
}

.tile__ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: var(--violet-hi);
    background: rgba(124, 92, 255, .12);
    border: 1px solid rgba(124, 92, 255, .26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 22px -8px rgba(124, 92, 255, .8);
    transition: transform .35s var(--expo), color .3s;
}

.tile__ico .icon {
    width: 19px;
    height: 19px;
}

.tile:hover .tile__ico {
    transform: translateY(-2px) rotate(-6deg);
    color: #fff;
}

.tile__num {
    margin-inline-start: auto;
    font-family: var(--mono);
    font-size: .5rem;
    letter-spacing: .2em;
    color: rgba(126, 158, 255, .4);
}

.tile h3 {
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -.015em;
}

.tile p {
    margin-block-start: 5px;
    font-size: .84rem;
    line-height: 1.62;
    color: #b7c4de;
}

.tile__cue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-block-start: auto;
    padding-block-start: 14px;
    font-family: var(--mono);
    font-size: .54rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--cyan);
}

.tile__cue .icon {
    width: 13px;
    height: 13px;
    transition: transform .3s var(--expo);
}

.tile:hover .tile__cue .icon {
    transform: translateX(4px);
}

[dir="rtl"] .tile:hover .tile__cue .icon {
    transform: scaleX(-1) translateX(4px);
}

/* tile spans */
.tile--chat {
    grid-column: span 5;
    grid-row: span 2;
    min-height: 340px;
    border-color: rgba(124, 92, 255, .3);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(124, 92, 255, .2), transparent 56%),
        linear-gradient(165deg, rgba(30, 22, 62, .55), rgba(6, 9, 20, .8));
}

.tile--voice {
    grid-column: span 3;
}

.tile--voice .vis-eq {
    height: 44px;
}

.tile--voice .vis-cast {
    padding-block-start: 8px;
}

.tile--image {
    grid-column: span 4;
}

.tile--video {
    grid-column: span 4;
}

.tile--code {
    grid-column: span 3;
}

.tile--market,
.tile--models,
.tile--workspace,
.tile--showcase {
    grid-column: span 3;
}

.tile--wide {
    grid-column: span 12;
    min-height: 96px;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* mini visuals inside tiles */
.vis {
    margin-block: 12px;
    pointer-events: none;
}

.vis-eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 64px;
}

.vis-cast {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-block-start: auto;
    padding-block-start: 14px;
}

.vis-bubbles {
    display: grid;
    gap: 7px;
    margin-block-start: 2px;
}

.vis-bubble {
    max-width: 90%;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: .72rem;
    line-height: 1.5;
}

.vis-bubble--u {
    margin-inline-start: auto;
    border-end-end-radius: 4px;
    background: linear-gradient(120deg, #dcd4ff, #7c5cff 62%, #22d3ee);
    color: #070a16;
    font-weight: 650;
}

.vis-bubble--a {
    border-end-start-radius: 4px;
    border: 1px solid rgba(126, 158, 255, .16);
    background: rgba(255, 255, 255, .045);
    color: var(--ink-2);
}

.vis-composer {
    margin-block-start: auto;
}

.vis-cast span {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(124, 92, 255, .3);
    background: rgba(124, 92, 255, .1);
    font-family: var(--mono);
    font-size: .46rem;
    letter-spacing: .14em;
    color: #dcd4ff;
}

.vis-eq i {
    flex: 1;
    height: 40%;
    border-radius: 2px;
    background: linear-gradient(180deg, #dcd4ff, #7c5cff 58%, #22d3ee);
    opacity: .85;
    animation: eq 1.4s ease-in-out infinite alternate;
}

.vis-eq i:nth-child(2n) {
    animation-duration: 1s;
    animation-delay: .12s;
}

.vis-eq i:nth-child(3n) {
    animation-duration: 1.7s;
    animation-delay: .26s;
}

.vis-thumbs {
    display: flex;
    gap: 6px;
}

.vis-thumbs img {
    width: 0;
    flex: 1;
    min-width: 0;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    filter: saturate(1.15);
}

.vis-line {
    height: 46px;
    border-radius: 9px;
    border: 1px solid rgba(126, 158, 255, .16);
    background: rgba(0, 0, 0, .3);
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: .55rem;
    color: var(--ink-2);
}

.vis-line b {
    color: var(--cyan);
    font-weight: 500;
}

.vis-play {
    position: relative;
    height: 92px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(126, 158, 255, .16);
    background: url("../a9x-home/earth-cinematic.webp") center 60% / cover no-repeat, #04070f;
    display: grid;
    place-items: center;
}

.vis-play .icon {
    width: 30px;
    height: 30px;
    color: #fff;
    padding: 6px;
    box-sizing: content-box;
    border-radius: 50%;
    background: rgba(124, 92, 255, .3);
    border: 1px solid rgba(220, 212, 255, .5);
    box-shadow: 0 0 0 6px rgba(124, 92, 255, .12), 0 10px 30px -8px rgba(124, 92, 255, .9);
    backdrop-filter: blur(4px);
}

.vis-code {
    border-radius: 9px;
    border: 1px solid rgba(126, 158, 255, .16);
    background: #04070f;
    padding: 9px 10px;
    font-family: var(--mono);
    font-size: .55rem;
    line-height: 1.9;
    color: #b9c6e6;
    overflow: hidden;
}

.vis-code div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vis-code .k {
    color: var(--magenta);
}

.vis-code .f {
    color: var(--cyan);
}

.vis-rows {
    display: grid;
    gap: 5px;
}

.vis-rows span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 7px;
    border: 1px solid rgba(126, 158, 255, .13);
    background: rgba(255, 255, 255, .02);
    font-family: var(--mono);
    font-size: .5rem;
    letter-spacing: .1em;
    color: var(--ink-2);
}

.vis-rows em {
    font-style: normal;
    padding: 1px 5px;
    border-radius: 999px;
    border: 1px solid rgba(255, 184, 107, .3);
    background: rgba(255, 184, 107, .08);
    color: var(--amber);
}

.vis-spark svg {
    width: 100%;
    height: 48px;
}

/* badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: .46rem;
    font-style: normal;
    letter-spacing: .14em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 184, 107, .34);
    background: rgba(255, 184, 107, .08);
    color: var(--amber);
}

.badge--live {
    color: #9fe8c9;
    border-color: rgba(74, 222, 128, .34);
    background: rgba(74, 222, 128, .08);
}

.badge--new {
    color: #c9f7ff;
    border-color: rgba(34, 211, 238, .34);
    background: rgba(34, 211, 238, .08);
}

.tile .badge {
    margin-inline-start: auto;
}

/* ==========================================================================
   PRICING
   ========================================================================== */
.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 22px 20px 20px;
    border-radius: var(--r-l);
    border: 1px solid var(--line);
    background: linear-gradient(170deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    transition: transform .35s var(--expo), border-color .3s, box-shadow .35s;
}

.plan:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, .4);
    box-shadow: 0 30px 70px -34px rgba(124, 92, 255, .8);
}

.plan--feat {
    border-color: transparent;
    background:
        radial-gradient(130% 130% at 100% 0%, rgba(124, 92, 255, .2), transparent 58%),
        linear-gradient(170deg, rgba(42, 28, 84, .55), rgba(6, 9, 20, .82));
    box-shadow: 0 40px 100px -46px rgba(124, 92, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.plan--feat::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--core-angle, 0deg),
            rgba(34, 211, 238, .9), rgba(124, 92, 255, .9) 35%,
            rgba(232, 121, 249, .9) 62%, rgba(34, 211, 238, .9));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: btn-spin 7s linear infinite;
}

.plan__tag {
    font-family: var(--mono);
    font-size: .52rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.plan--feat .plan__tag {
    color: var(--violet-hi);
}

.plan h3 {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.plan__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #f4f7ff;
}

.plan__price b {
    font-size: clamp(1.9rem, 2.6vw, 2.4rem);
    font-weight: 850;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
}

.plan__price i {
    font-style: normal;
    font-size: .78rem;
    color: var(--ink-3);
}

.plan__blurb {
    min-height: 3em;
    font-size: .84rem;
    line-height: 1.7;
    color: var(--ink-2);
}

.plan .btn {
    margin-block-start: auto;
}

.plan__note {
    font-size: .68rem;
    color: var(--ink-3);
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-block: clamp(24px, 4vh, 44px) 0;
    border-radius: clamp(20px, 2.4vw, 30px);
    border: 1px solid rgba(124, 92, 255, .26);
    background:
        radial-gradient(80% 120% at 50% 120%, rgba(124, 92, 255, .35), transparent 62%),
        radial-gradient(60% 90% at 12% 0%, rgba(34, 211, 238, .16), transparent 60%),
        linear-gradient(180deg, rgba(8, 12, 26, .9), rgba(4, 6, 14, .96));
    box-shadow: 0 60px 140px -60px rgba(124, 92, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.final__glow {
    position: absolute;
    inset-inline: 12%;
    bottom: -40%;
    height: 70%;
    background: radial-gradient(circle, rgba(124, 92, 255, .5), transparent 62%);
    filter: blur(40px);
    animation: breathe 6s ease-in-out infinite;
    pointer-events: none;
}

.final__inner {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: clamp(44px, 7vh, 76px) clamp(20px, 4vw, 56px);
    text-align: center;
}

.final h2 {
    max-width: 24ch;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.04em;
    text-wrap: balance;
}

html[lang="ar"] .final h2 {
    line-height: 1.3;
    letter-spacing: -.01em;
}

.final h2 em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.final p {
    max-width: 50ch;
    font-size: .95rem;
    line-height: 1.8;
    color: var(--ink-2);
}

.final__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-block-start: 4px;
}

.honesty {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 14px;
    margin-block-start: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(4, 7, 15, .6);
    font-family: var(--mono);
    font-size: .5rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(168, 182, 217, .75);
    backdrop-filter: blur(8px);
}

.honesty b {
    color: rgba(124, 92, 255, .8);
    font-weight: 500;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot {
    position: relative;
    margin-block-start: clamp(40px, 6vh, 72px);
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(5, 8, 18, .6), rgba(3, 5, 12, .95));
    overflow: hidden;
}

.foot__top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
    gap: clamp(24px, 4vw, 60px);
    padding-block: clamp(36px, 5.5vh, 60px) clamp(22px, 3vh, 34px);
}

.foot__brand p {
    max-width: 32ch;
    margin-block: 13px 14px;
    font-size: .84rem;
    line-height: 1.75;
    color: var(--ink-2);
}

.foot__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-block-end: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(74, 222, 128, .26);
    background: rgba(74, 222, 128, .07);
    font-family: var(--mono);
    font-size: .5rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #9fe8c9;
}

.foot__status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 8px 2px rgba(74, 222, 128, .5);
    animation: blink 2.6s ease-in-out infinite;
}

.foot__group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-block-end: 2px;
    border-bottom: 1px solid var(--line-2);
    font-size: .74rem;
    font-weight: 600;
    color: var(--ink-3);
    transition: color .2s, border-color .2s;
}

.foot__group:hover {
    color: #fff;
    border-color: rgba(124, 92, 255, .6);
}

.foot__nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.foot__nav h3 {
    margin-block-end: 12px;
    font-family: var(--mono);
    font-size: .54rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.foot__nav a {
    display: block;
    padding-block: 5px;
    font-size: .82rem;
    color: var(--ink-2);
    transition: color .2s, transform .2s var(--ease);
}

.foot__nav a:hover {
    color: #fff;
    transform: translateX(2px);
}

[dir="rtl"] .foot__nav a:hover {
    transform: translateX(-2px);
}

.foot__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-block: 16px;
    border-top: 1px solid var(--line);
    font-size: .72rem;
    color: var(--ink-3);
}

.foot__bottom div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.foot__bottom a {
    color: var(--ink-3);
    transition: color .2s;
}

.foot__bottom a:hover {
    color: #fff;
}

.foot__wm {
    display: block;
    margin-block: clamp(2px, 1vh, 10px) -2px;
    font-size: clamp(4.5rem, 16vw, 14rem);
    font-weight: 900;
    line-height: .72;
    letter-spacing: -.07em;
    text-align: center;
    background: linear-gradient(180deg, rgba(124, 92, 255, .22), rgba(124, 92, 255, 0) 78%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    user-select: none;
    pointer-events: none;
}

/* ==========================================================================
   MOTION
   ========================================================================== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes aurora {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }

    to {
        transform: translate3d(3%, 2%, 0) scale(1.08);
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: .9;
    }

    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes orbit1 {
    0% {
        transform: rotate(0deg) translateY(-190px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateY(-190px) rotate(-360deg);
    }
}

@keyframes orbit2 {
    0% {
        transform: rotate(0deg) translateY(170px) rotate(0deg);
    }

    100% {
        transform: rotate(-360deg) translateY(170px) rotate(360deg);
    }
}

@keyframes eq {
    from {
        height: 18%;
        opacity: .5;
    }

    to {
        height: 100%;
        opacity: 1;
    }
}

@keyframes btn-spin {
    to {
        --core-angle: 360deg;
    }
}

/* scroll-driven polish — transform only, never hides content */
@supports (animation-timeline: view()) {
    .rev {
        animation: rev-in linear both;
        animation-timeline: view();
        animation-range: entry 2% entry 40%;
    }

    @keyframes rev-in {
        from {
            transform: translateY(20px);
        }

        to {
            transform: none;
        }
    }
}

@supports (animation-timeline: scroll()) {
    .stage__aurora {
        animation: aurora linear both;
        animation-timeline: scroll(root);
        animation-range: 0 120vh;
    }

    @keyframes aurora {
        from {
            transform: translateY(0) scale(1);
        }

        to {
            transform: translateY(6%) scale(1.1);
        }
    }

    .progress {
        position: fixed;
        inset-block-start: 0;
        inset-inline: 0;
        z-index: 90;
        height: 2px;
        background: var(--grad);
        transform-origin: 0 50%;
        animation: progress linear both;
        animation-timeline: scroll(root);
    }

    [dir="rtl"] .progress {
        transform-origin: 100% 50%;
        background: linear-gradient(260deg, #22d3ee, #7c5cff 52%, #e879f9);
    }

    @keyframes progress {
        from {
            transform: scaleX(0);
        }

        to {
            transform: scaleX(1);
        }
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
    .nav {
        display: none;
    }

    .burger {
        display: inline-grid;
    }

    .top__right {
        margin-inline-start: auto;
    }

    .hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .core {
        width: min(420px, 78vw);
        margin-block-start: 6px;
        order: 2;
    }

    .hero {
        padding-block-start: calc(var(--bar) + 24px);
    }

    .tile--voice,
    .tile--chat,
    .tile--image {
        grid-column: span 6;
        grid-row: auto;
    }

    .tile--video,
    .tile--code {
        grid-column: span 6;
    }

    .tile--market,
    .tile--models,
    .tile--workspace,
    .tile--showcase {
        grid-column: span 6;
    }
}

@media (max-width: 980px) {
    .plans {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
        margin-inline: auto;
    }

    .foot__top {
        grid-template-columns: minmax(0, 1fr);
    }

    .tile--wide {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    :root {
        --bar: 66px;
    }

    .status,
    .clock,
    .signin,
    .lang,
    .top .btn--sm {
        display: none;
    }

    .brand__word {
        font-size: .92rem;
    }

    .brand__mark {
        width: 36px;
        height: 36px;
    }

    .hero h1 {
        font-size: clamp(2.55rem, 12vw, 3.5rem);
    }

    .hero__actions .btn {
        flex: 1 1 100%;
    }

    .hstat {
        padding-inline: 14px;
    }

    .tile--voice,
    .tile--chat,
    .tile--image,
    .tile--video,
    .tile--code,
    .tile--market,
    .tile--models,
    .tile--workspace,
    .tile--showcase {
        grid-column: span 12;
    }

    .tile--chat {
        min-height: 0;
    }

    .core__chip {
        display: none;
    }

    .core__ring--a {
        inset: 1%;
    }

    .core__ring--b {
        inset: 9%;
    }

    .core__ring--c {
        inset: 17%;
    }

    .foot__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .honesty {
        border-radius: 14px;
        line-height: 1.8;
    }
}

@media (max-width: 420px) {
    .hstat {
        padding-inline: 12px;
    }

    .hstat b {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .stage__aurora,
    .stage__noise,
    .ticker__track,
    .core__halo,
    .core__ring,
    .core__sphere,
    .core__plasma,
    .core__node,
    .core__chip,
    .vis-eq i,
    .status i,
    .foot__status i,
    .kicker .dot,
    .final__glow,
    .brand__mark .emblem-orbit,
    .btn--core::before,
    .plan--feat::before,
    .hero__copy > * {
        animation: none !important;
    }

    .vis-eq i {
        height: 62% !important;
        opacity: .8;
    }

    .rev {
        animation: none !important;
        transform: none !important;
    }

    .progress {
        display: none;
    }

    .pointer {
        display: none;
    }

    .tile:hover,
    .plan:hover,
    .btn:hover {
        transform: none !important;
    }

    * {
        transition-duration: .001ms !important;
    }
}

html[data-a9x-motion="reduced"] .ticker__track,
html[data-a9x-motion="reduced"] .stage__aurora,
html[data-a9x-motion="reduced"] .core__halo,
html[data-a9x-motion="reduced"] .core__ring,
html[data-a9x-motion="reduced"] .core__sphere,
html[data-a9x-motion="reduced"] .core__plasma,
html[data-a9x-motion="reduced"] .core__node,
html[data-a9x-motion="reduced"] .core__chip,
html[data-a9x-motion="reduced"] .vis-eq i,
html[data-a9x-motion="reduced"] .btn--core::before,
html[data-a9x-motion="reduced"] .plan--feat::before,
html[data-a9x-motion="reduced"] .hero__copy > *,
html[data-a9x-motion="reduced"] .final__glow {
    animation: none !important;
}

html[data-a9x-motion="reduced"] .pointer {
    display: none;
}


/* tablet landscape (981–1180): the hero stacks — centre the copy so the right
   side never reads as an empty column before the core starts */
@media (min-width: 981px) and (max-width: 1180px) {
    .hero__copy {
        max-width: 760px;
        margin-inline: auto;
        text-align: center;
    }

    .hero__actions,
    .hero__stats,
    .sysrail {
        justify-content: center;
    }

    .hero__sub,
    .hero__lede {
        margin-inline: auto;
    }

    .core {
        margin-block-start: 26px;
    }
}
@media (max-width: 760px) {
    .hero__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 0;
        padding-block-start: 16px;
    }

    .hstat {
        padding-inline: 14px;
        border-inline-start: 1px solid var(--line);
    }

    .hstat:nth-child(odd) {
        padding-inline-start: 0;
        border-inline-start: 0;
    }

    .hstat:nth-child(n + 3) {
        padding-block-start: 12px;
        border-block-start: 1px solid var(--line);
    }
}
/* ==========================================================================
   A9X NEURAL CORE — interactive 3D hero
   (canvas mounted over the approved orbital frame; the static CSS sphere is
   the no-WebGL / pre-init fallback and never depends on JavaScript to show)
   ========================================================================== */
.core[data-neural-core] .core__halo {
    inset: 8%; opacity: .86;
    background: radial-gradient(ellipse at 32% 42%,rgba(12,174,224,.24),transparent 56%),
        radial-gradient(ellipse at 70% 56%,rgba(132,74,232,.32),transparent 63%);
}
.core__brand-fallback > .deck-emblem { width: 74%; height: auto; max-height: 78%; }
.core__stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.core__wordmark {
    position: absolute; z-index: 0; inset-inline: -10%; top: 26%;
    font-size: clamp(108px,21vw,310px); font-weight: 900; line-height: .8; letter-spacing: -.075em;
    text-align: center; color: rgb(147 164 255 / 3%); -webkit-text-stroke: 1px rgb(156 188 255 / 15%);
    mask-image: linear-gradient(165deg,transparent,#000 30%,#000 66%,transparent);
    pointer-events: none; user-select: none;
}
html[data-home-theme="light"] .core__wordmark {
    color: rgb(83 70 152 / 4%); -webkit-text-stroke-color: rgb(68 76 144 / 18%);
}
@media (max-width: 1180px) {
    .core__wordmark { font-size: clamp(100px,34vw,210px); }
    .core.is-open .core__wordmark { top: calc(var(--jewel-height) * .22); }
}

.core__canvas {
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity .9s var(--ease);
}

.core[data-neural="webgl"] .core__canvas {
    display: block;
    opacity: 1;
}

.core__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.core[data-neural="webgl"] .core__fallback {
    display: none;
}

/* the sphere itself is the 3D canvas; this is the keyboard/touch affordance */
.core__hit {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: 52%;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    color: inherit;
    transform: translate(-50%, -50%);
}

.core__hit:focus-visible {
    outline: 2px solid #b9a8ff;
    outline-offset: 10px;
    border-radius: 50%;
}

.core__hint {
    position: absolute;
    left: 50%;
    bottom: -13%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(126, 158, 255, .2);
    background: rgba(7, 10, 22, .74);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    font-family: var(--mono);
    font-size: .54rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #b9c7e6;
    white-space: nowrap;
    transition: opacity .3s var(--ease), transform .35s var(--expo), border-color .2s, color .2s;
}

.core__hint b {
    color: #eef3ff;
    font-weight: 600;
}

.core__hintdot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px 2px rgba(34, 211, 238, .7);
    animation: blink 2.4s ease-in-out infinite;
}

.core__hit:hover .core__hint,
.core__hit:focus-visible .core__hint {
    border-color: rgba(124, 92, 255, .55);
    color: #fff;
    transform: translateX(-50%) translateY(-2px);
}

.core.is-open .core__hint {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
    pointer-events: none;
}

/* connecting lines from the core to the five nodes */
.core__links {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.core__links line {
    stroke: url(#coreLinkGrad);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 5 6;
    opacity: 0;
    transition: opacity .45s ease;
}

.core.is-open .core__links line {
    opacity: .9;
    animation: coreDash 2.6s linear infinite;
}

/* the five studio nodes */
.core__nodes {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.core-node {
    --node-accent: #83e9ff;
    --node-surface: #10192c;
    position: absolute; left: var(--nx); top: var(--ny);
    display: flex; align-items: center; gap: 10px;
    width: clamp(146px, 13vw, 168px); min-height: 62px;
    padding: 9px 11px; box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--node-accent) 38%, var(--node-surface));
    border-radius: 17px;
    background: transparent;
    box-shadow: inset 0 1px 0 #ffffff12, 0 8px 24px -14px #000b;
    opacity: 0; pointer-events: none;
    transform: translate(-50%, -42%) scale(.93);
    transition: transform .36s var(--expo), opacity .22s ease, border-color .2s, box-shadow .2s;
}
.core-node--image { --node-accent: #c5a5ff; }
.core-node--video { --node-accent: #ffa8c3; }
.core-node--voice { --node-accent: #7ce8c3; }
.core-node--code { --node-accent: #ffce89; }
.core.is-open .core-node { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; transition-delay: calc(var(--i) * 35ms), calc(var(--i) * 35ms), 0s, 0s; }
.core-node__ico {
    display: grid; place-items: center; flex: none; width: 34px; height: 37px;
    color: var(--node-accent); border-radius: 11px;
    background: color-mix(in srgb, var(--node-accent) 11%, transparent);
    border: 1px solid color-mix(in srgb, var(--node-accent) 40%, var(--node-surface));
}
.core-node__ico .icon { width: 20px; height: 20px; }
.core-node__meta { display: grid; gap: 3px; min-width: 0; text-align: start; }
.core-node__meta b { font-size: .9rem; line-height: 1.18; font-weight: 720; color: var(--ink); }
.core-node__meta small { font-weight: 500; font-family: inherit; font-size: .74rem; line-height: 1.25; color: var(--ink-2); }
.core-node:focus-visible { outline: 2px solid var(--node-accent); outline-offset: 3px; }
.core.is-open .core-node:is(:hover,:focus-visible) {
    border-color: var(--node-accent);
    box-shadow: 0 5px 24px -9px color-mix(in srgb, var(--node-accent) 55%, transparent);
}
.core__x[hidden] { display: none; }
.core__links { mask-image: radial-gradient(circle,transparent 0 18%, black 28%); }
@media (prefers-reduced-motion:no-preference) {
    html:not([data-a9x-motion="reduced"]) .core.is-open .core-node__ico {
        animation: studio-glimmer 4s ease-in-out calc(var(--i) * -.62s) infinite;
    }
    html:not([data-a9x-motion="reduced"]) .core-node .icon { transition: transform .22s var(--expo); }
    html:not([data-a9x-motion="reduced"]) .core-node:is(:hover,:focus-visible) .icon { transform: scale(1.15) rotate(-5deg); }
    @keyframes studio-glimmer { 50% { box-shadow: 0 0 13px -4px var(--node-accent); } }
}
@media (min-width:1181px) {
    .core__stage { transition: scale .36s var(--expo); }
    .core.is-open .core__stage { scale: .82; }
}
@media (prefers-reduced-motion: reduce) { .core__stage { transition: none; } }
html[data-a9x-motion="reduced"] .core__stage { transition: none; }

/* chips step back while the nodes are open */
.core__chip {
    transition: opacity .3s var(--ease), transform .35s var(--expo);
}

.core.is-open .core__chip {
    opacity: 0;
    transform: scale(.92) translateY(4px);
    pointer-events: none;
}

/* dedicated close control (always visible on mobile, subtle on desktop) */
.core__x {
    position: absolute;
    top: 2%;
    inset-inline-end: 2%;
    z-index: 7;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(126, 158, 255, .22);
    background: rgba(8, 11, 22, .8);
    color: var(--ink-2);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: scale(.9);
    transition: opacity .25s, transform .3s var(--expo), border-color .2s, background .2s, color .2s;
}

.core__x svg {
    width: 14px;
    height: 14px;
}

.core.is-open .core__x {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.core__x:hover {
    color: #fff;
    border-color: rgba(126, 158, 255, .5);
    background: rgba(124, 92, 255, .2);
}

.core__scrim {
    display: none;
}

@keyframes coreDash {
    to {
        stroke-dashoffset: -22;
    }
}

/* Keep the choices beside the jewel in the single-column hero. */
@media (max-width: 1180px) {
    .core { animation: none; }
    .core__links { display: none; }
    .core__nodes { visibility: hidden; }
    .core.is-open {
        --jewel-height: clamp(148px, 45vw, 218px);
        width: min(475px, 100%); aspect-ratio: auto;
        grid-template-columns: minmax(0,1fr); place-items: stretch;
        padding-block-start: var(--jewel-height);
    }
    .core.is-open .core__stage {
        inset: 0 0 auto; margin-inline: auto;
        width: var(--jewel-height); height: var(--jewel-height);
    }
    .core.is-open .core__hit { top: calc(var(--jewel-height) / 2); width: calc(var(--jewel-height) * .65); }
    .core.is-open .core__nodes {
        visibility: visible; position: relative; inset: auto;
        display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px;
    }
    .core.is-open .core-node {
        position: relative; left: auto; top: auto; transform: none;
        width: auto; min-height: 64px; padding: 9px; gap: 8px;
    }
    .core.is-open .core-node--chat { grid-column: 1 / -1; }
    .core.is-open .core-node--chat .core-node__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
    .core__x { top: 8px; inset-inline-end: 2px; }
    .core__hint {
        bottom: -14%;
        font-size: .48rem;
    }

    [hidden] {
        display: none !important;
    }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .core__canvas,
    .core-node,
    .core__x,
    .core__hint,
    .core__chip,
    .core__links line {
        transition: none !important;
        animation: none !important;
    }

    .core.is-open .core__links line {
        animation: none !important;
    }
}

html[data-a9x-motion="reduced"] .core__canvas,
html[data-a9x-motion="reduced"] .core-node,
html[data-a9x-motion="reduced"] .core__x,
html[data-a9x-motion="reduced"] .core__hint,
html[data-a9x-motion="reduced"] .core__chip,
html[data-a9x-motion="reduced"] .core__links line {
    transition: none !important;
    animation: none !important;
}

/* ==========================================================================
   L118 — HEADER v2 · LIVE HEADLINE · ANIMATED CHAT · BUTTON GLOW · LIGHT THEME
   ========================================================================== */

/* ---------- 1. header v2 ---------- */
:root {
    --bar: 80px;
}

.top {
    transition: transform .38s var(--expo), opacity .3s var(--ease),
        background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
}

.top.is-hidden {
    transform: translateY(calc(-100% - 14px));
    opacity: 0;
    pointer-events: none;
}

.top::after {
    opacity: .45;
}

.top.is-stuck::after {
    opacity: 1;
}

.top__bar {
    min-height: var(--bar);
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

/* bigger, living emblem */
.brand {
    gap: 13px;
    padding: 3px 10px 3px 2px;
    border-radius: 16px;
    transition: transform .35s var(--expo);
}

.brand:hover {
    transform: translateY(-1px);
}

.brand__logo {
    position: relative;
    z-index: 0;
    display: grid;
    place-items: center;
    width: 58px;
    height: 52px;
    flex: none;
}

.brand__logo::before {
    content: "";
    position: absolute;
    inset: -5px;
    z-index: -1;
    border-radius: 50%;
    padding: 1.4px;
    background: conic-gradient(from var(--core-angle, 0deg),
            rgba(34, 211, 238, 0), rgba(34, 211, 238, .95) 16%,
            rgba(124, 92, 255, .95) 44%, rgba(232, 121, 249, .9) 68%,
            rgba(34, 211, 238, 0) 82% 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: btn-spin 9s linear infinite;
    opacity: .7;
    transition: opacity .3s;
}

.brand__logo::after {
    content: "";
    position: absolute;
    inset: 4px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, .38), transparent 68%);
    filter: blur(9px);
    animation: breathe 4.8s ease-in-out infinite;
}

.brand:hover .brand__logo::before {
    opacity: 1;
}

.brand .deck-emblem {
    width: 56px;
    height: 47px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 18px rgba(124, 92, 255, .55)) drop-shadow(0 0 6px rgba(34, 211, 238, .35));
    animation: logoFloat 6s ease-in-out infinite;
    transition: filter .3s;
}

.brand:hover .deck-emblem {
    filter: drop-shadow(0 0 26px rgba(124, 92, 255, .85)) drop-shadow(0 0 10px rgba(34, 211, 238, .55));
}

.brand__word {
    font-size: 1.15rem;
    letter-spacing: .16em;
    line-height: .92;
}

.brand__word small {
    margin-block-start: 4px;
    font-size: .52rem;
    letter-spacing: .46em;
}

.brand__word em {
    display: block;
    margin-block-start: 4px;
    font-style: normal;
    font-family: var(--mono);
    font-size: .42rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* active-nav indicator dot */
.nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity .2s;
}

.nav a.is-current::after {
    opacity: 1;
}

/* segmented language switch */
.seg {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
}

.seg a {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 30px;
    padding-inline: 6px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .06em;
    color: var(--ink-3);
    transition: color .2s, background .25s var(--ease), box-shadow .25s;
}

.seg a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, .05);
}

.seg a.is-on {
    color: #fff;
    background: linear-gradient(135deg, rgba(124, 92, 255, .95), rgba(34, 211, 238, .65));
    box-shadow: 0 8px 22px -10px rgba(124, 92, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* theme + icon buttons */
.icon-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
    color: var(--ink-2);
    cursor: pointer;
    transition: color .2s, border-color .2s, background .25s, box-shadow .3s, transform .3s var(--expo);
}

.icon-btn .icon {
    width: 17px;
    height: 17px;
}

.icon-btn:hover {
    color: #fff;
    border-color: var(--line-2);
    background: rgba(124, 92, 255, .16);
    box-shadow: 0 0 26px -8px rgba(124, 92, 255, .95);
    transform: translateY(-1px);
}

.icon-btn:focus-visible {
    outline: 2px solid #b9a8ff;
    outline-offset: 2px;
}

html[data-home-theme="dark"] .theme-toggle .icon:last-of-type,
html[data-home-theme="light"] .theme-toggle .icon:first-of-type {
    display: none;
}

.top__right {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    flex: none;
    min-width: 0;
}

.signin {
    white-space: nowrap;
}

.top__bar > .nav {
    justify-self: center;
}

/* member chip */
.user {
    position: relative;
}

.user summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
    transition: border-color .2s, background .25s, box-shadow .3s;
}

.user summary::-webkit-details-marker {
    display: none;
}

.user summary:hover {
    border-color: var(--line-2);
    background: rgba(124, 92, 255, .12);
}

.user__ava {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #7c5cff, #22d3ee 70%);
    box-shadow: 0 0 18px -4px rgba(124, 92, 255, .95);
}

.user__meta {
    display: grid;
    line-height: 1.1;
    text-align: start;
}

.user__meta b {
    font-size: .72rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: .01em;
}

.user__meta small {
    margin-block-start: 2px;
    font-family: var(--mono);
    font-size: .44rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* L162 (owner: «الايقونه بتاعت الباقه بتاعته وكل حاجة تبعه تبان») — the member
   chip on a9x.org carries the plan tier instead of a generic label. */
.user__meta small.is-plan {
    padding: 2px 7px;
    border: 1px solid rgba(124, 92, 255, .45);
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(124, 92, 255, .12), rgba(34, 211, 238, .1));
    color: #cdb9ff;
    text-shadow: 0 0 8px rgba(124, 92, 255, .45);
    box-shadow: 0 0 12px -6px rgba(124, 92, 255, .8);
    line-height: 1.35;
}
.user__meta small.is-plan.plan-unc {
    border-color: rgba(240, 185, 90, .55);
    background: linear-gradient(120deg, rgba(240, 185, 90, .14), rgba(147, 51, 234, .12));
    color: #ffe6a8;
    text-shadow: 0 0 8px rgba(240, 185, 90, .6);
    box-shadow: 0 0 14px -6px rgba(240, 185, 90, .85);
    animation: homeCorePlanPulse 3.2s ease-in-out infinite;
}
@keyframes homeCorePlanPulse {
    0%, 100% { box-shadow: 0 0 10px -7px rgba(240, 185, 90, .7); }
    50% { box-shadow: 0 0 22px -5px rgba(240, 185, 90, .95); }
}
html[data-home-theme="light"] .user__meta small.is-plan { color: #4b2fb8; }
html[data-home-theme="light"] .user__meta small.is-plan.plan-unc { color: #8a5a08; }

.user__chev .icon {
    width: 13px;
    height: 13px;
    color: var(--ink-3);
    transition: transform .25s var(--expo);
}

.user[open] .user__chev .icon {
    transform: rotate(180deg);
}

.user__menu {
    position: absolute;
    inset-block-start: calc(100% + 10px);
    inset-inline-end: 0;
    z-index: 30;
    display: grid;
    gap: 2px;
    min-width: 224px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--line-2);
    background: rgba(7, 10, 22, .985);
    box-shadow: 0 30px 80px -30px #000, 0 0 0 1px rgba(124, 92, 255, .14);
    backdrop-filter: blur(18px);
}

.user__head {
    padding: 8px 10px 6px;
    font-size: .62rem;
    color: var(--ink-3);
    border-bottom: 1px solid var(--line);
    margin-block-end: 4px;
}

.user__head b {
    color: var(--ink);
    font-weight: 700;
}

.user__menu a,
.user__menu button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 38px;
    padding-inline: 11px;
    border-radius: 9px;
    font-size: .79rem;
    font-weight: 600;
    color: var(--ink-2);
    text-align: start;
    cursor: pointer;
    transition: color .2s, background .2s;
}

.user__menu .icon {
    width: 15px;
    height: 15px;
    color: var(--violet-hi);
}

.user__menu a:hover,
.user__menu button:hover {
    color: #fff;
    background: rgba(124, 92, 255, .16);
}

.user__menu form {
    margin: 4px 0 0;
    padding-block-start: 4px;
    border-top: 1px solid var(--line);
}

.user__menu .user__out {
    color: #ffb1b1;
}

.user__menu .user__out .icon {
    color: #ff9a9a;
}

/* drawer additions */
.drawer__user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 6px 16px;
    margin-block-end: 4px;
    border-bottom: 1px solid var(--line);
}

.drawer__user .user__meta b {
    font-size: .92rem;
    color: var(--ink);
}

.drawer__tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-block-start: 16px;
}

.drawer__tools .seg {
    flex: 1;
}

.drawer__tools .seg a {
    flex: 1;
    height: 34px;
}

.drawer__out {
    margin: 0;
}

.drawer__out button {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding-inline: 13px;
    border-radius: 12px;
    border: 1px solid rgba(255, 122, 122, .3);
    background: rgba(255, 122, 122, .08);
    color: #ffb1b1;
    font-size: .78rem;
    font-weight: 650;
    cursor: pointer;
}

.drawer__out .icon {
    width: 15px;
    height: 15px;
}

/* ---------- 2. live headline ---------- */
.live-title {
    position: relative;
}

.live-title .line {
    display: block;
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
    animation: lineReveal 1s var(--expo) forwards;
}

.live-title .line--b {
    animation-delay: .16s;
}

.live-title .word {
    display: inline-block;
}

:lang(en).live-title .line--a .word {
    /* Leave room inside the animated mask and the gradient for the g and comma. */
    line-height: 1.13;
    padding-block-end: .035em;
}

.live-title .line--a .word {
    background: linear-gradient(100deg,
            #f4f7ff 0%, #f4f7ff 36%, #a9c2ff 46%, #f4f7ff 56%, #f4f7ff 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: titleSheen 6.4s linear infinite;
}

.live-title .line--b .word {
    background: linear-gradient(100deg,
            #22d3ee 0%, #7c5cff 36%, #e879f9 62%, #22d3ee 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: titleFlow 8s linear infinite;
    filter: drop-shadow(0 0 26px rgba(124, 92, 255, .38));
}

.live-title::after {
    content: "";
    position: absolute;
    inset: -10% -3%;
    z-index: 2;
    background: linear-gradient(104deg, transparent 42%, rgba(255, 255, 255, .16) 50%, transparent 58%);
    mix-blend-mode: screen;
    animation: titleSweep 7.5s ease-in-out infinite;
    pointer-events: none;
}

.live-spark {
    position: absolute;
    inset-inline-end: -14px;
    top: 12%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #eaf6ff;
    box-shadow: 0 0 18px 4px rgba(34, 211, 238, .8), 0 0 44px 12px rgba(124, 92, 255, .45);
    animation: sparkPulse 3.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lineReveal {
    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes titleSheen {
    0% {
        background-position: 120% 50%;
    }

    55%,
    100% {
        background-position: -60% 50%;
    }
}

@keyframes titleFlow {
    to {
        background-position: 240% 50%;
    }
}

@keyframes titleSweep {
    0%,
    62% {
        transform: translateX(-70%);
        opacity: 0;
    }

    72% {
        opacity: 1;
    }

    100% {
        transform: translateX(70%);
        opacity: 0;
    }
}

@keyframes sparkPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: .8;
    }

    50% {
        transform: scale(1.6);
        opacity: .35;
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-2.5px) rotate(-1.2deg);
    }
}

/* ---------- 3. living AI Chat preview ---------- */
.vis-chat-live {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    min-height: 0;
}

.vis-chat-live .vis-composer {
    margin-block-start: auto;
}

.chat-step {
    opacity: 0;
    transform: translateY(10px);
    animation-duration: 15s;
    animation-iteration-count: infinite;
    animation-timing-function: var(--ease);
}

.chat-step-1 {
    animation-name: chatStep1;
}

.chat-step-2 {
    animation-name: chatStep2;
}

.chat-step-3 {
    animation-name: chatStep3;
}

.chat-step-4 {
    animation-name: chatStep4;
}

.chat-step-5 {
    animation-name: chatStep5;
}

.chat-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    padding: 8px 11px;
    border-radius: 14px 14px 14px 4px;
    border: 1px solid rgba(124, 92, 255, .24);
    background: rgba(124, 92, 255, .14);
}

.chat-typing i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c9bdf7;
    animation: typingBounce 1s infinite ease-in-out;
}

.chat-typing i:nth-child(2) {
    animation-delay: .14s;
}

.chat-typing i:nth-child(3) {
    animation-delay: .28s;
}

.chat-caret {
    display: inline-block;
    width: 1px;
    height: 13px;
    margin-inline-start: 2px;
    background: var(--cyan);
    animation: caretBlink 1.1s steps(2) infinite;
}

@keyframes chatStep1 {
    0%,
    2% {
        opacity: 0;
        transform: translateY(10px);
    }

    7%,
    94% {
        opacity: 1;
        transform: none;
    }

    100% {
        opacity: 0;
        transform: none;
    }
}

@keyframes chatStep2 {
    0%,
    11% {
        opacity: 0;
        transform: translateY(10px);
    }

    15%,
    94% {
        opacity: 1;
        transform: none;
    }

    100% {
        opacity: 0;
        transform: none;
    }
}

@keyframes chatStep3 {
    0%,
    21% {
        opacity: 0;
        transform: translateY(10px);
    }

    26%,
    94% {
        opacity: 1;
        transform: none;
    }

    100% {
        opacity: 0;
        transform: none;
    }
}

@keyframes chatStep4 {
    0%,
    54% {
        opacity: 0;
        transform: translateY(10px);
    }

    58%,
    94% {
        opacity: 1;
        transform: none;
    }

    100% {
        opacity: 0;
        transform: none;
    }
}

@keyframes chatStep5 {
    0%,
    65% {
        opacity: 0;
        transform: translateY(10px);
    }

    70%,
    94% {
        opacity: 1;
        transform: none;
    }

    100% {
        opacity: 0;
        transform: none;
    }
}

@keyframes typingBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: .45;
    }

    45% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

@keyframes caretBlink {
    50% {
        opacity: 0;
    }
}

/* ---------- 4. glow on every button ---------- */
.btn {
    box-shadow: 0 16px 44px -28px rgba(124, 92, 255, .9);
}

.btn::after {
    content: "";
    position: absolute;
    inset: -38% -14%;
    z-index: -2;
    border-radius: inherit;
    background: radial-gradient(closest-side, rgba(124, 92, 255, .5), transparent 72%);
    filter: blur(18px);
    opacity: .55;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
    pointer-events: none;
}

.btn--glass::after {
    background: radial-gradient(closest-side, rgba(34, 211, 238, .38), transparent 74%);
}

.btn:hover::after,
.btn:focus-visible::after {
    opacity: 1;
    transform: scale(1.06);
}

.btn:hover {
    box-shadow: 0 22px 60px -26px rgba(124, 92, 255, 1);
}

.btn:focus-visible {
    outline: 2px solid #b9a8ff;
    outline-offset: 3px;
}

.btn--core {
    box-shadow: 0 18px 54px -24px rgba(124, 92, 255, .95), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}

.plan .btn {
    width: 100%;
}

/* ---------- 5. light theme ---------- */
html[data-home-theme="light"] {
    color-scheme: light;
    --bg: #f6f4fd;
    --bg-2: #ffffff;
    --ink: #130c2b;
    --ink-2: #4d4669;
    --ink-3: #7d7697;
    --line: rgba(37, 22, 84, .13);
    --line-2: rgba(37, 22, 84, .3);
    --violet: #6d28d9;
    --violet-hi: #7c3aed;
    --cyan: #0891b2;
    --magenta: #c026d3;
    --amber: #b45309;
    --good: #15803d;
    --grad: linear-gradient(100deg, #0891b2 0%, #6d28d9 52%, #c026d3 100%);
    --grad-soft: linear-gradient(100deg, rgba(8, 145, 178, .12), rgba(109, 40, 217, .12) 52%, rgba(192, 38, 211, .12));
    --glow-v: 0 0 60px -16px rgba(109, 40, 217, .28);
    --glow-c: 0 0 60px -16px rgba(8, 145, 178, .22);
}

html[data-home-theme="light"] body {
    background: var(--bg);
    color: var(--ink);
}

html[data-home-theme="light"] .stage {
    background:
        radial-gradient(1100px 560px at 78% -8%, rgba(124, 92, 255, .13), transparent 60%),
        radial-gradient(900px 520px at 4% 6%, rgba(34, 211, 238, .10), transparent 62%),
        radial-gradient(900px 620px at 52% 112%, rgba(232, 121, 249, .10), transparent 64%),
        linear-gradient(180deg, #fbf9ff 0%, #f3effc 48%, #f8f5fe 100%);
}

html[data-home-theme="light"] .stage__grid {
    background-image:
        linear-gradient(rgba(60, 40, 140, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 40, 140, .07) 1px, transparent 1px);
}

html[data-home-theme="light"] .stage__scan {
    opacity: .1;
}

html[data-home-theme="light"] .stage__noise {
    opacity: .03;
}

html[data-home-theme="light"] .pointer {
    opacity: .3;
}

html[data-home-theme="light"] .top.is-stuck {
    background: rgba(251, 249, 255, .8);
    border-bottom-color: rgba(37, 22, 84, .08);
    box-shadow: 0 24px 70px -46px rgba(50, 30, 120, .5);
}

html[data-home-theme="light"] .top::after {
    background: linear-gradient(90deg, transparent, rgba(109, 40, 217, .5) 28%, rgba(8, 145, 178, .6) 50%, rgba(192, 38, 211, .5) 72%, transparent);
}

html[data-home-theme="light"] .nav {
    background: transparent;
    border-color: rgba(37, 22, 84, .1);
    box-shadow: 0 16px 44px -34px rgba(50, 30, 120, .55);
}

html[data-home-theme="light"] .nav a {
    color: #5a5375;
}

html[data-home-theme="light"] .nav a:hover {
    color: #130c2b;
    background: rgba(109, 40, 217, .08);
}

html[data-home-theme="light"] .nav a.is-current {
    color: #fff;
    background: linear-gradient(120deg, #6d28d9, #7c5cff 55%, #0891b2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 12px 30px -14px rgba(109, 40, 217, .8);
}

html[data-home-theme="light"] .brand .deck-emblem {
    filter: drop-shadow(0 0 14px rgba(109, 40, 217, .35));
}

html[data-home-theme="light"] .brand__word em {
    color: #7d7697;
}

html[data-home-theme="light"] .seg {
    background: rgba(255, 255, 255, .72);
    border-color: rgba(37, 22, 84, .12);
}

html[data-home-theme="light"] .seg a {
    color: #6b6488;
}

html[data-home-theme="light"] .seg a:hover {
    color: #130c2b;
    background: rgba(109, 40, 217, .08);
}

html[data-home-theme="light"] .seg a.is-on {
    color: #fff;
    background: linear-gradient(135deg, #6d28d9, #7c5cff 55%, #0891b2);
    box-shadow: 0 8px 22px -10px rgba(109, 40, 217, .85);
}

html[data-home-theme="light"] .icon-btn {
    background: rgba(255, 255, 255, .72);
    border-color: rgba(37, 22, 84, .12);
    color: #4d4669;
}

html[data-home-theme="light"] .icon-btn:hover {
    color: #130c2b;
    background: #fff;
    border-color: rgba(109, 40, 217, .35);
    box-shadow: 0 10px 26px -16px rgba(109, 40, 217, .5);
}

html[data-home-theme="light"] .user summary {
    background: rgba(255, 255, 255, .72);
    border-color: rgba(37, 22, 84, .12);
}

html[data-home-theme="light"] .user summary:hover {
    background: #fff;
    border-color: rgba(109, 40, 217, .3);
}

html[data-home-theme="light"] .user__meta b {
    color: #130c2b;
}

html[data-home-theme="light"] .user__meta small {
    color: #7d7697;
}

html[data-home-theme="light"] .user__menu {
    background: rgba(255, 255, 255, .99);
    border-color: rgba(37, 22, 84, .14);
    box-shadow: 0 30px 80px -40px rgba(50, 30, 120, .5);
}

html[data-home-theme="light"] .user__menu a,
html[data-home-theme="light"] .user__menu button {
    color: #4d4669;
}

html[data-home-theme="light"] .user__menu a:hover,
html[data-home-theme="light"] .user__menu button:hover {
    color: #130c2b;
    background: rgba(109, 40, 217, .08);
}

html[data-home-theme="light"] .signin {
    color: #4d4669;
}

html[data-home-theme="light"] .signin:hover {
    color: #130c2b;
}

html[data-home-theme="light"] .status {
    color: #15803d;
}

html[data-home-theme="light"] .clock {
    color: #7d7697;
}

html[data-home-theme="light"] .kicker {
    background: linear-gradient(100deg, rgba(109, 40, 217, .09), rgba(8, 145, 178, .07));
    border-color: rgba(109, 40, 217, .22);
    color: #5b21b6;
    box-shadow: 0 0 30px -14px rgba(109, 40, 217, .5), inset 0 1px 0 rgba(255, 255, 255, .7);
}

html[data-home-theme="light"] .kicker .dot {
    background: #0891b2;
    box-shadow: 0 0 12px 2px rgba(8, 145, 178, .5);
}

html[data-home-theme="light"] .kicker b {
    background: linear-gradient(100deg, #6d28d9, #c026d3 70%);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(109, 40, 217, .8);
}

html[data-home-theme="light"] .live-title .line--a .word {
    background-image: linear-gradient(100deg, #130c2b 0%, #130c2b 36%, #6d28d9 46%, #130c2b 56%, #130c2b 100%);
}

html[data-home-theme="light"] .live-title .line--b .word {
    filter: drop-shadow(0 0 22px rgba(109, 40, 217, .25));
}

html[data-home-theme="light"] .live-title::after {
    background: linear-gradient(104deg, transparent 42%, rgba(255, 255, 255, .5) 50%, transparent 58%);
    mix-blend-mode: soft-light;
}

html[data-home-theme="light"] .hero__sub {
    color: #241a44;
}

html[data-home-theme="light"] .hero__stats {
    border-top-color: rgba(37, 22, 84, .12);
}

html[data-home-theme="light"] .hstat {
    border-inline-start-color: rgba(37, 22, 84, .12);
}

html[data-home-theme="light"] .hstat b {
    color: #130c2b;
}

html[data-home-theme="light"] .hstat small {
    color: #7d7697;
}

html[data-home-theme="light"] .sysrail a {
    color: #4d4669;
    border-color: rgba(37, 22, 84, .12);
    background: rgba(255, 255, 255, .62);
}

html[data-home-theme="light"] .sysrail a:hover {
    color: #130c2b;
    border-color: rgba(109, 40, 217, .4);
    background: #fff;
    box-shadow: 0 12px 30px -18px rgba(109, 40, 217, .55);
}

html[data-home-theme="light"] .sysrail a .icon {
    color: #6d28d9;
}

html[data-home-theme="light"] .ticker {
    background: rgba(255, 255, 255, .55);
    border-color: rgba(37, 22, 84, .1);
}

html[data-home-theme="light"] .ticker__track span {
    color: #5a5375;
}

html[data-home-theme="light"] .head__index {
    color: #6d28d9;
}

html[data-home-theme="light"] .head>p {
    color: #4d4669;
}

html[data-home-theme="light"] .tile {
    background: #fff;
    border-color: rgba(37, 22, 84, .1);
    box-shadow: 0 26px 60px -48px rgba(50, 30, 120, .5), inset 0 1px 0 #fff;
}

html[data-home-theme="light"] .tile:hover {
    border-color: rgba(109, 40, 217, .35);
    box-shadow: 0 36px 84px -42px rgba(109, 40, 217, .55);
}

html[data-home-theme="light"] .tile:hover::before {
    opacity: 1;
}

html[data-home-theme="light"] .tile h3 {
    color: #130c2b;
}

html[data-home-theme="light"] .tile p {
    color: #4d4669;
}

html[data-home-theme="light"] .tile__num {
    color: rgba(109, 40, 217, .4);
}

html[data-home-theme="light"] .tile__cue {
    color: #6d28d9;
}

html[data-home-theme="light"] .tile .vis {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

html[data-home-theme="light"] .plan {
    background: #fff;
    border-color: rgba(37, 22, 84, .1);
    box-shadow: 0 26px 60px -48px rgba(50, 30, 120, .45), inset 0 1px 0 #fff;
}

html[data-home-theme="light"] .plan:hover {
    border-color: rgba(109, 40, 217, .35);
    box-shadow: 0 34px 80px -44px rgba(109, 40, 217, .5);
}

html[data-home-theme="light"] .plan h3 {
    color: #130c2b;
}

html[data-home-theme="light"] .plan__price {
    color: #130c2b;
}

html[data-home-theme="light"] .plan__blurb {
    color: #4d4669;
}

html[data-home-theme="light"] .plan__tag,
html[data-home-theme="light"] .plan__note {
    color: #7d7697;
}

html[data-home-theme="light"] .plan--feat {
    color: #eef3ff;
    background:
        radial-gradient(130% 130% at 100% 0%, rgba(124, 92, 255, .28), transparent 58%),
        linear-gradient(170deg, rgba(42, 28, 84, .92), rgba(10, 8, 24, .96));
    box-shadow: 0 40px 100px -46px rgba(109, 40, 217, .8), inset 0 1px 0 rgba(255, 255, 255, .1);
}

html[data-home-theme="light"] .plan--feat h3,
html[data-home-theme="light"] .plan--feat .plan__price {
    color: #f7f4ff;
}

html[data-home-theme="light"] .plan--feat .plan__blurb {
    color: #c9c2e6;
}

html[data-home-theme="light"] .plan--feat .plan__tag {
    color: #c4b5fd;
}

html[data-home-theme="light"] .honesty {
    background: rgba(255, 255, 255, .62);
    border-color: rgba(37, 22, 84, .12);
    color: #5a5375;
}

html[data-home-theme="light"] .honesty b {
    color: #6d28d9;
}

html[data-home-theme="light"] .final {
    color: #eef3ff;
}

html[data-home-theme="light"] .final h2 {
    color: #f7f4ff;
}

html[data-home-theme="light"] .final p {
    color: #c9c2e6;
}

html[data-home-theme="light"] .final .honesty {
    background: rgba(4, 7, 15, .55);
    border-color: rgba(126, 158, 255, .18);
    color: rgba(200, 190, 235, .8);
}

html[data-home-theme="light"] .foot {
    background: linear-gradient(180deg, rgba(251, 249, 255, .7), rgba(246, 244, 253, .96));
    border-top-color: rgba(37, 22, 84, .1);
}

html[data-home-theme="light"] .foot__brand p {
    color: #4d4669;
}

html[data-home-theme="light"] .foot__nav h3 {
    color: #7d7697;
}

html[data-home-theme="light"] .foot__nav a {
    color: #4d4669;
}

html[data-home-theme="light"] .foot__group {
    color: #4d4669;
    border-color: rgba(37, 22, 84, .2);
}

html[data-home-theme="light"] .foot__status {
    background: rgba(21, 128, 61, .07);
    border-color: rgba(21, 128, 61, .25);
    color: #15803d;
}

html[data-home-theme="light"] .foot__bottom {
    color: #7d7697;
    border-top-color: rgba(37, 22, 84, .1);
}

html[data-home-theme="light"] .foot__bottom a {
    color: #7d7697;
}

html[data-home-theme="light"] .foot__wm {
    background: linear-gradient(180deg, rgba(109, 40, 217, .18), rgba(109, 40, 217, 0) 78%);
}

html[data-home-theme="light"] .drawer {
    background: rgba(250, 248, 255, .98);
}

html[data-home-theme="light"] .drawer a {
    color: #4d4669;
    border-bottom-color: rgba(37, 22, 84, .08);
}

html[data-home-theme="light"] .drawer a:hover {
    color: #130c2b;
}

html[data-home-theme="light"] .drawer__lang a {
    color: #4d4669;
    border-color: rgba(37, 22, 84, .12);
}

html[data-home-theme="light"] .btn--glass {
    color: #241a44;
    background: rgba(255, 255, 255, .75);
    border-color: rgba(37, 22, 84, .14);
    box-shadow: inset 0 1px 0 #fff, 0 16px 44px -30px rgba(50, 30, 120, .4);
}

/* core chrome + node cards on light */
html[data-home-theme="light"] .core__hint,
html[data-home-theme="light"] .core__chip {
    background: rgba(255, 255, 255, .82);
    border-color: rgba(37, 22, 84, .14);
    color: #3b3357;
    box-shadow: 0 22px 50px -30px rgba(50, 30, 120, .5), inset 0 1px 0 #fff;
}

html[data-home-theme="light"] .core__hint b,
html[data-home-theme="light"] .core__chip b {
    color: #130c2b;
}

html[data-home-theme="light"] .core__chip .icon {
    color: #6d28d9;
}

html[data-home-theme="light"] .core-node { --node-surface: #fbfcff; }
html[data-home-theme="light"] .core-node__ico { color: color-mix(in srgb, var(--node-accent) 32%, #17223e); }
html[data-home-theme="light"] .core-node:focus-visible { outline-color: #5052a5; }

html[data-home-theme="light"] .core__x {
    background: rgba(255, 255, 255, .9);
    border-color: rgba(37, 22, 84, .14);
    color: #4d4669;
}

html[data-home-theme="light"] .core__stage {
    filter: drop-shadow(0 24px 70px rgba(109, 40, 217, .22));
}

html[data-home-theme="light"] .core__stage::before {
    content: "";
    position: absolute;
    inset: 2%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(32, 10, 66, .34) 0%, rgba(32, 10, 66, .14) 44%, transparent 68%);
    filter: blur(6px);
}

/* ---------- 6. reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .brand .deck-emblem,
    .brand__logo::before,
    .brand__logo::after,
    .live-title .line,
    .live-title .line--a .word,
    .live-title .line--b .word,
    .live-title::after,
    .live-spark,
    .chat-step,
    .chat-typing i,
    .chat-caret {
        animation: none !important;
    }

    .live-title .line {
        clip-path: none;
    }

    .chat-step {
        opacity: 1 !important;
        transform: none !important;
    }
}

html[data-a9x-motion="reduced"] .brand .deck-emblem,
html[data-a9x-motion="reduced"] .live-title .line,
html[data-a9x-motion="reduced"] .live-title .line--a .word,
html[data-a9x-motion="reduced"] .live-title .line--b .word,
html[data-a9x-motion="reduced"] .live-title::after,
html[data-a9x-motion="reduced"] .live-spark,
html[data-a9x-motion="reduced"] .chat-step {
    animation: none !important;
}

html[data-a9x-motion="reduced"] .live-title .line {
    clip-path: none;
}

html[data-a9x-motion="reduced"] .chat-step {
    opacity: 1 !important;
    transform: none !important;
}

/* ---------- 7. responsive header ---------- */
@media (max-width: 1320px) {

    .top__right .status,
    .top__right .clock {
        display: none;
    }
}

@media (max-width: 1180px) {
    .top__bar {
        grid-template-columns: auto 1fr auto;
    }

    .top__bar>.nav {
        display: none;
    }
}

@media (max-width: 980px) {
    .user__meta {
        display: none;
    }

    .user summary {
        padding: 4px;
        border-radius: 999px;
    }

    .user__chev {
        display: none;
    }

    .brand__word em {
        display: none;
    }
}

@media (max-width: 760px) {
    :root {
        --bar: 72px;
    }

    .brand__logo {
        width: 48px;
        height: 44px;
    }

    .brand .deck-emblem {
        width: 46px;
        height: 39px;
    }

    .brand__word {
        font-size: 1rem;
    }

    .brand__word small {
        font-size: .46rem;
    }

    .top__right {
        gap: 6px;
    }

    .seg a {
        min-width: 30px;
        height: 28px;
        font-size: .58rem;
    }

    .icon-btn {
        width: 34px;
        height: 34px;
    }

    .top__cta {
        display: none;
    }

    .live-title::after {
        display: none;
    }

    .live-spark {
        display: none;
    }
}

@media (max-width: 430px) {
    .brand__word b {
        font-size: .92rem;
    }

}
/* light: badges, chat mocks, plan buttons */
html[data-home-theme="light"] .badge--live {
    color: #15803d;
    background: rgba(21, 128, 61, .1);
    border-color: rgba(21, 128, 61, .32);
}

html[data-home-theme="light"] .badge--new {
    color: #0e7490;
    background: rgba(8, 145, 178, .1);
    border-color: rgba(8, 145, 178, .32);
}

html[data-home-theme="light"] .vis-bubble--a {
    background: #f7f4ff;
    border-color: rgba(109, 40, 217, .16);
    color: #3b3357;
}

html[data-home-theme="light"] .chat-typing {
    background: rgba(109, 40, 217, .1);
    border-color: rgba(109, 40, 217, .2);
}

html[data-home-theme="light"] .chat-typing i {
    background: #7c3aed;
}

html[data-home-theme="light"] .vis-line,
html[data-home-theme="light"] .vis-composer {
    background: #fff;
    border-color: rgba(37, 22, 84, .14);
    color: #7d7697;
}

html[data-home-theme="light"] .vis-rows span {
    background: #faf8ff;
    border-color: rgba(37, 22, 84, .1);
    color: #4d4669;
}

html[data-home-theme="light"] .vis-rows em {
    color: #15803d;
}

html[data-home-theme="light"] .plan .btn--glass {
    color: #241a44;
    background: #f5f2ff;
    border-color: rgba(37, 22, 84, .16);
    box-shadow: inset 0 1px 0 #fff;
}

html[data-home-theme="light"] .plan .btn--glass:hover {
    background: #fff;
    border-color: rgba(109, 40, 217, .35);
}

html[data-home-theme="light"] .plan--feat .btn--core {
    color: #fff;
}

html[data-home-theme="light"] .core__hintdot {
    background: #0891b2;
    box-shadow: 0 0 10px 2px rgba(8, 145, 178, .5);
}.chat-step-6 {
    animation-name: chatStep6;
}

.chat-step-7 {
    animation-name: chatStep7;
}

.chat-step-8 {
    animation-name: chatStep8;
}

@keyframes chatStep6 {
    0%,
    73% {
        opacity: 0;
        transform: translateY(10px);
    }

    77%,
    97% {
        opacity: 1;
        transform: none;
    }

    100% {
        opacity: 0;
        transform: none;
    }
}

@keyframes chatStep7 {
    0%,
    79% {
        opacity: 0;
        transform: translateY(10px);
    }

    83%,
    97% {
        opacity: 1;
        transform: none;
    }

    100% {
        opacity: 0;
        transform: none;
    }
}

@keyframes chatStep8 {
    0%,
    86% {
        opacity: 0;
        transform: translateY(10px);
    }

    90%,
    97% {
        opacity: 1;
        transform: none;
    }

    100% {
        opacity: 0;
        transform: none;
    }
}

/* ==========================================================================
   L121 — APP STORE / GOOGLE PLAY coming-soon badges (homepage + app page)
   ========================================================================== */
.stores {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.store {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 168px;
    padding: 9px 12px 9px 10px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    overflow: hidden;
    isolation: isolate;
    transition: transform .32s var(--expo), border-color .25s, box-shadow .3s, background .25s;
}

.store::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent 30%, rgba(34, 211, 238, .22) 50%, transparent 70%);
    transform: translateX(-130%);
    animation: storeShimmer 6.5s ease-in-out infinite;
}

.store:nth-child(2)::before {
    animation-delay: 1.4s;
}

.store:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 92, 255, .55);
    background: linear-gradient(160deg, rgba(124, 92, 255, .16), rgba(255, 255, 255, .02));
    box-shadow: 0 18px 44px -20px rgba(124, 92, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.store__ico {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(8, 11, 22, .7);
    color: #eef3ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.store__ico svg {
    width: 19px;
    height: 19px;
}

.store__txt {
    display: grid;
    line-height: 1.15;
    text-align: start;
}

.store__txt small {
    font-family: var(--mono);
    font-size: .46rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.store__txt b {
    margin-block-start: 2px;
    font-size: .8rem;
    font-weight: 750;
    letter-spacing: -.01em;
    color: var(--ink);
}

.store__soon {
    position: absolute;
    top: 6px;
    inset-inline-end: 7px;
    padding: 2px 5px;
    border-radius: 999px;
    background: linear-gradient(100deg, #22d3ee, #7c5cff 70%);
    color: #05070f;
    font-family: var(--mono);
    font-size: .38rem;
    font-weight: 800;
    letter-spacing: .1em;
    animation: soonBlink 3.2s ease-in-out infinite;
}

.stores--foot {
    margin-block: 12px 2px;
}

.foot__soon {
    max-width: 36ch;
    margin-block: 6px 12px;
    font-size: .72rem;
    line-height: 1.6;
    color: var(--ink-3);
}

.final__stores {
    display: grid;
    justify-items: center;
    gap: 7px;
    margin-block-start: 10px;
}

.final__stores .mono {
    font-size: .5rem;
    letter-spacing: .24em;
    color: var(--ink-3);
}

.stores--final .store {
    min-width: 158px;
    padding-block: 7px;
}

@keyframes storeShimmer {
    0%,
    55% {
        transform: translateX(-130%);
        opacity: 0;
    }

    65% {
        opacity: 1;
    }

    100% {
        transform: translateX(130%);
        opacity: 0;
    }
}

@keyframes soonBlink {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(124, 92, 255, .6);
    }

    50% {
        opacity: .55;
        box-shadow: 0 0 4px rgba(124, 92, 255, .25);
    }
}

html[data-home-theme="light"] .store {
    background: rgba(255, 255, 255, .75);
    border-color: rgba(37, 22, 84, .14);
    box-shadow: inset 0 1px 0 #fff, 0 12px 30px -22px rgba(50, 30, 120, .5);
}

html[data-home-theme="light"] .store__ico {
    background: #f4f0ff;
    border-color: rgba(37, 22, 84, .12);
    color: #241a44;
}

html[data-home-theme="light"] .store__txt small {
    color: #7d7697;
}

html[data-home-theme="light"] .store__txt b {
    color: #130c2b;
}

html[data-home-theme="light"] .store:hover {
    border-color: rgba(109, 40, 217, .4);
    background: #fff;
}

html[data-home-theme="light"] .foot__soon,
html[data-home-theme="light"] .final__stores .mono {
    color: #7d7697;
}

@media (prefers-reduced-motion: reduce) {
    .store::before,
    .store__soon {
        animation: none !important;
    }

    .store::before {
        opacity: 0;
    }
}

/* Uncensored offer in the plan comparison. */
.plans .plan--exclusive {
    --offer-accent: #ffcf83;
    border-color: color-mix(in srgb, var(--offer-accent) 37%, transparent);
    background: radial-gradient(90% 70% at 100% 0, rgba(243,175,75,.12), transparent 80%),
        linear-gradient(150deg, rgba(76,57,98,.2), rgba(134,81,146,.06));
}
html[data-home-theme="light"] .plan--exclusive { --offer-accent: #865319; }
.plan__signature, .plan__bonus { display: flex; align-items: center; gap: 7px; color: var(--offer-accent); }
.plan__signature { align-self: flex-start; font-size: .72rem; font-weight: 700; }
.plan__signature .icon, .plan__bonus .icon { width: 16px; height: 16px; }
.plan__bonus { font-size: .8rem; font-weight: 600; }
.plans .plan--exclusive .btn { border: 1px solid color-mix(in srgb, var(--offer-accent) 50%, transparent); color: var(--ink); background: color-mix(in srgb, var(--offer-accent) 10%, transparent); box-shadow: none; }
.plans .plan--exclusive .btn:focus-visible { outline: 2px solid var(--offer-accent); outline-offset: 3px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .plan--exclusive .plan__signature .icon { transition: transform .22s ease; }
    .plan--exclusive:is(:hover,:focus-within) .plan__signature .icon { transform: rotate(18deg); }
}

/* ═══════════════════════════════════════════════════════════════
   L161f — UNCENSORED MEMBER SKIN (server-driven: body.a9x-unc)
   The home burns gold over violet for uncensored members: tokens
   retinted + aurora / pointer / topbar / primary-btn recolored.
   ═══════════════════════════════════════════════════════════════ */
body.a9x-unc {
    --bg: #070410;
    --bg-2: #0b0716;
    --line: rgba(247, 181, 56, .14);
    --line-2: rgba(247, 181, 56, .34);
    --violet: #9333ea;
    --violet-hi: #c084fc;
    --cyan: #f7b538;
    --magenta: #c084fc;
    --grad: linear-gradient(100deg, #f7b538 0%, #9333ea 52%, #c084fc 100%);
    --grad-soft: linear-gradient(100deg, rgba(247, 181, 56, .16), rgba(147, 51, 234, .16) 52%, rgba(192, 132, 252, .16));
    --glow-v: 0 0 60px -12px rgba(247, 181, 56, .6);
    --glow-c: 0 0 60px -12px rgba(147, 51, 234, .45);
}
body.a9x-unc .stage__aurora {
    background:
        radial-gradient(36% 42% at 24% 32%, rgba(247, 181, 56, .17), transparent 70%),
        radial-gradient(32% 38% at 68% 18%, rgba(147, 51, 234, .25), transparent 70%),
        radial-gradient(30% 36% at 86% 58%, rgba(192, 132, 252, .16), transparent 70%);
}
body.a9x-unc .pointer {
    background: radial-gradient(420px 420px at var(--px, 50%) var(--py, 30%),
            rgba(247, 181, 56, .12), transparent 68%);
}
body.a9x-unc .top.is-stuck { background: rgba(8, 5, 14, .74); border-bottom-color: rgba(247, 181, 56, .1); }
body.a9x-unc .top::after {
    background: linear-gradient(90deg, transparent, rgba(247, 181, 56, .7) 28%,
            rgba(192, 132, 252, .8) 50%, rgba(247, 181, 56, .7) 72%, transparent);
}
body.a9x-unc .btn--core {
    box-shadow: 0 0 0 1px rgba(247, 181, 56, .25), 0 18px 50px -20px rgba(147, 51, 234, .7);
}
body.a9x-unc .btn--core::before {
    background: conic-gradient(from var(--core-angle, 0deg),
            #f7b538 0%, #9333ea 30%, #c084fc 55%, #9333ea 80%, #f7b538 100%);
}
body.a9x-unc .btn--core::after {
    background:
        radial-gradient(120% 180% at 14% -20%, rgba(247, 181, 56, .5), transparent 58%),
        radial-gradient(100% 160% at 96% 130%, rgba(147, 51, 234, .3), transparent 60%),
        linear-gradient(180deg, #140f26, #0b0716);
}
body.a9x-unc ::selection { background: rgba(247, 181, 56, .32); }
html[data-home-theme="light"] body.a9x-unc .btn--core { color: #241703; }
/* Public navigation shares its theme tokens with the landing and preview pages. */
@media (max-width: 760px) {
    .btn.btn--core { overflow: clip; }
    html[data-home-theme="light"] body.a9x-unc .btn--core .btn__label { color: #f5f7ff; }
}
/* Keep the same drawer controls throughout its existing compact navigation breakpoint. */
@media (max-width: 1180px) {
    .top .burger { width: 44px; height: 44px; flex: none; }
    .top .burger[aria-expanded="true"] svg { display: none; }
    .top .burger[aria-expanded="true"]::before {
        content: "×"; font: 25px/1 system-ui; color: var(--ink);
    }
    #core-drawer {
        inset: 0; box-sizing: border-box; height: 100dvh; max-width: 100%;
        display: grid; grid-template-columns: minmax(0,1fr);
        align-content: start; row-gap: 12px; overscroll-behavior: contain;
        padding: max(17px,env(safe-area-inset-top)) max(17px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(17px,env(safe-area-inset-left));
        color: var(--ink); background: radial-gradient(ellipse at 15% 0,rgba(101,93,219,.16),transparent 50%),#090d17;
    }
    .top:has(#core-drawer.is-open) .burger { position: fixed; top: max(17px,env(safe-area-inset-top)); inset-inline-end: 17px; z-index: 72; }
    #core-drawer .drawer__identity {
        display: flex; align-items: center; gap: 11px; min-height: 48px; padding-inline-end: 54px;
    }
    .drawer__identity .user__ava, .drawer__identity .drawer__mark {
        display: grid; place-items: center; width: 42px; height: 42px; flex: none;
        border-radius: 14px; border: 1px solid #607994; background: linear-gradient(140deg,#214557,#322747);
        color: #effaff; font-size: 17px;
    }
    .drawer__who { min-width: 0; display: grid; gap: 2px; }
    .drawer__who b { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
    .drawer__who small { color: var(--ink-2); font-size: 12px; }
    #core-drawer .drawer__workspace .btn__label { color: #f5f7ff; }
    #core-drawer .drawer__workspace {
        overflow: clip;
        justify-content: space-between; min-height: 48px; margin: 0; padding-inline: 16px;
        border-radius: 14px; text-align: start;
    }
    #core-drawer .drawer__links {
        display: grid; padding: 3px 12px; background: rgba(119,151,187,.06);
        border: 1px solid var(--line); border-radius: 16px;
    }
    #core-drawer .drawer__links a {
        display: grid; grid-template-columns: 20px minmax(0,1fr) 16px; gap: 12px;
        align-items: center; min-height: 45px; padding: 6px 2px;
        color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4;
    }
    #core-drawer .drawer__links a:last-child { border-bottom: 0; }
    #core-drawer .drawer__links svg:first-child { width: 18px; height: 18px; color: #8fcde6; }
    #core-drawer .drawer__links svg:last-child { width: 15px; opacity: .62; }
    [dir="rtl"] #core-drawer .drawer__links svg:last-child,
    [dir="rtl"] #core-drawer .btn__ic { transform: scaleX(-1); }
    #core-drawer .drawer__tools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; }
    .drawer__locale { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
    .drawer__locale > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
    #core-drawer .seg { display: inline-flex; flex: none; position: relative; padding: 2px; height: auto; border-radius: 12px; }
    #core-drawer .seg a {
        display: inline-flex; justify-content: center; align-items: center;
        min-width: 69px; min-height: 44px; height: auto; padding: 5px 10px;
        font: inherit; font-size: 14px; font-weight: 650; line-height: 1.2; letter-spacing: normal;
        border: 0; border-radius: 10px; color: var(--ink-2);
    }
    #core-drawer .seg .is-on { color: white; background: linear-gradient(120deg,#514597,#205b7b); }
    #core-drawer .drawer__theme, #core-drawer .drawer__login, #core-drawer .drawer__out button {
        width: 100%; min-height: 44px; height: auto; display: flex; align-items: center;
        justify-content: center; gap: 8px; padding: 8px; border: 1px solid var(--line);
        border-radius: 12px; background: rgba(119,151,187,.06); color: var(--ink-2); font-size: 13px;
    }
    #core-drawer .drawer__theme svg { position: static; width: 16px; height: 16px; transform: none; }
    #core-drawer .drawer__theme svg:nth-of-type(2) { display: none; }
    html[data-home-theme="light"] #core-drawer { background: radial-gradient(ellipse at 0 0,#e9e8ff,transparent 50%),#f8faff; }
    html[data-home-theme="light"] #core-drawer .drawer__links svg:first-child { color: #346681; }
    html[data-home-theme="light"] #core-drawer .drawer__theme svg:first-child { display: none; }
    html[data-home-theme="light"] #core-drawer .drawer__theme svg:nth-of-type(2) { display: block; opacity: 1; }
}

.hero__copy :is(.mh-price-link,.mh-phone-copy,.mh-studio-preview) { display: none; }
.activity-preview:not([hidden]) { display: block; position: relative; margin-block: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(110deg,rgba(69,156,203,.075),rgba(153,112,225,.04)); }
.activity-preview__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-block-end: 13px; }
.activity-preview__head h2 { margin: 0; color: var(--ink); font-size: .84rem; font-weight: 700; }
.activity-preview__head small { color: var(--ink-2); font-size: .74rem; }
.activity-preview dl { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0; }
.activity-preview dt { display: flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: .75rem; }
.activity-preview dt .icon { width: 14px; height: 14px; color: var(--cyan); }
.activity-preview dd { margin: 4px 0 0; color: var(--ink); font-size: clamp(.84rem,1.1vw,1rem); font-variant-numeric: tabular-nums; font-weight: 720; white-space: nowrap; }
@media (max-width: 620px) { .activity-preview dl { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; } }
.top .home-join {
    display: inline-flex; position: relative; isolation: isolate; overflow: hidden;
    align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding-inline: 8px 13px;
    border: 1px solid #a6c9ff; border-radius: 999px; color: #121735;
    background: linear-gradient(112deg,#92f1ed 0%,#b6e2ff 42%,#c2b4ff 86%);
    box-shadow: inset 0 1px 0 #fff9, 0 3px 18px -9px #74baff;
    font-size: .86rem; font-weight: 750; white-space: nowrap;
}
.home-join__spark {
    display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%;
    background: #152540; color: #baf8ff;
}
.home-join::before {
    content: ""; position: absolute; z-index: -1; inset: -50% auto -50% -38%; width: 28%; pointer-events: none;
    background: linear-gradient(90deg,transparent,#fffc,transparent); transform: skewX(-18deg);
}
.top .home-join:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.home-join > .icon { width: 14px; }
[dir="rtl"] .home-join > .icon { rotate: 180deg; }
@media (prefers-reduced-motion: no-preference) {
    html:not([data-a9x-motion="reduced"]) .home-join:is(:hover,:focus-visible)::before { animation: join-light .75s ease-out; }
    html:not([data-a9x-motion="reduced"]) .home-join > .icon { transition: translate .2s ease; }
    html:not([data-a9x-motion="reduced"]) .home-join:is(:hover,:focus-visible) > .icon { translate: 2px; }
    html[dir="rtl"]:not([data-a9x-motion="reduced"]) .home-join:is(:hover,:focus-visible) > .icon { translate: -2px; }
}
@keyframes join-light { to { transform: translateX(650%) skewX(-18deg); } }
.home-join .icon { width: 16px; height: 16px; }
.top .user__ava { flex: none; overflow: hidden; }
.top .user__ava img { width: 100%; height: 100%; object-fit: cover; }
.top .user__head { display: grid; gap: 3px; }
.top .user__head bdi { color: var(--ink-2); }
.top [data-desktop-preferences]:empty { display: none; }
.top [data-home-preferences] .home-language, .top #core-drawer .home-language {
    position: relative; isolation: isolate; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 0;
    height: auto; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px;
    background: color-mix(in srgb,var(--ink) 6%,transparent);
}
.top [data-home-preferences] .home-language::before {
    content: ""; position: absolute; z-index: -1; inset-block: 3px; left: 3px; width: calc(50% - 3px);
    border-radius: inherit; background: linear-gradient(115deg,#a8f2ff,#cec3ff);
    box-shadow: inset 0 1px 0 #fff9,0 2px 8px #11142a38; pointer-events: none;
    transition: transform .25s cubic-bezier(.22,.7,.23,1);
}
.top [data-home-preferences] .home-language[data-language="ar"]::before { transform: translateX(100%); }
.top [data-home-preferences] .home-language a,
.top #core-drawer [data-home-preferences] .home-language a {
    display: grid; place-items: center; min-width: 62px; height: auto; min-height: 38px;
    padding: 0 10px; font: 650 .8rem/1.2 var(--sans,sans-serif); letter-spacing: normal;
    border: 0; border-radius: 999px; color: var(--ink-2); background: transparent; box-shadow: none;
}
.top [data-home-preferences] .home-language a.is-on,
.top #core-drawer [data-home-preferences] .home-language a.is-on { color: #17223d; background: transparent; }
.top [data-home-preferences] .home-language a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width:1180px) {
    .top #core-drawer [data-home-preferences] .home-language a { min-height: 44px; min-width: 74px; }
}
@media (prefers-reduced-motion: reduce) { .top [data-home-preferences] .home-language::before { transition: none; } }
@media (prefers-reduced-motion: no-preference) {
    html:not([data-a9x-motion="reduced"]) .home-language.did-switch[data-language="ar"]::before { animation: home-switch-right .28s ease-out; }
    html:not([data-a9x-motion="reduced"]) .home-language.did-switch[data-language="en"]::before { animation: home-switch-left .28s ease-out; }
    @keyframes home-switch-right { from { transform: translateX(0); } to { transform: translateX(100%); } }
    @keyframes home-switch-left { from { transform: translateX(100%); } to { transform: translateX(0); } }
}
.top .drawer__login { display: flex; justify-content: center; align-items: center; min-height: 44px; color: var(--ink); }
@media (min-width: 1181px) {
    [data-desktop-preferences] .drawer__tools { display: flex; align-items: center; gap: 6px; margin: 0; }
    [data-desktop-preferences] :is(.drawer__theme span,#drawerLanguage) { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
    [data-desktop-preferences] .drawer__locale a { font-size: .72rem; min-height: 36px; padding-inline: 9px; }
}
@media (max-width: 1180px) {
    .top .top__right { grid-column: -2/-1; }
    .top .user { display: block; }
    .top .user summary { min-height: 44px; padding: 3px 8px; border-radius: 20px; gap: 7px; }
    .top .user__meta { display: grid; max-width: clamp(60px,24vw,140px); }
    .top .user__meta b, .top .user__meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
    .top .user__menu a, .top .user__menu button { min-height: 44px; }
    .top #core-drawer .drawer__theme { grid-column: 1/-1; }
}
@media (prefers-reduced-motion: no-preference) {
    html:not([data-a9x-motion="reduced"]) .home-join__spark .icon { animation: join-spark 1.1s ease-out 2 alternate; }
    @keyframes join-spark { from { transform: scale(.86) rotate(-12deg); } to { transform: scale(1.12) rotate(8deg); } }
}
@media (max-width: 760px) {
    .hero__copy .mh-desktop-copy { display: none; }
    .hero__copy .mh-phone-copy { display: inline; }
    .hero__actions .btn.mh-price-link { display: inline-flex; }
    .hero__actions { gap: 8px; }
    .hero__actions .btn { min-height: 46px; }
    .hero__copy .mh-studio-preview {
        display: block; margin-top: 16px; text-align: start; min-width: 0;
        border: 1px solid var(--line); border-radius: 15px; color: var(--ink);
        background: linear-gradient(120deg,rgba(90,129,172,.12),rgba(132,96,180,.07));
    }
    .mh-studio-preview summary { display: grid; grid-template-columns: 62px minmax(0,1fr) 18px; align-items: center; gap: 10px; min-height: 62px; padding: 8px 12px 8px 8px; cursor: pointer; list-style: none; }
    .mh-studio-preview summary::-webkit-details-marker { display: none; }
    .mh-studio-preview summary img { display: block; width: 62px; height: 46px; object-fit: cover; border-radius: 8px; }
    .mh-studio-preview summary strong, .mh-studio-preview summary small { display: block; }
    .mh-studio-preview summary strong { font-size: 14px; }
    .mh-studio-preview summary small { color: var(--ink-2); font-size: 12px; margin-top: 3px; }
    .mh-studio-preview[open] summary > svg { transform: rotate(45deg); }
    .mh-studio-preview figure { margin: 0; padding: 4px 10px 8px; }
    .mh-studio-preview figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
    .mh-studio-preview figcaption { display: flex; flex-wrap: wrap; gap: 4px 16px; }
    .mh-studio-preview figcaption a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-size: 13px; font-weight: 650; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
}

@media (max-width: 760px) {
    .mh-studio-preview figure + figure { border-block-start: 1px solid var(--line); padding-top: 10px; }
    .mh-studio-preview video, .mh-studio-preview audio { display: block; width: 100%; max-width: 100%; border-radius: 10px; }
    .mh-studio-preview video, .mh-studio-preview figure img { aspect-ratio: 16 / 9; object-fit: cover; }
    .mh-studio-preview .mh-sample { padding: 14px; background: transparent; }
    .mh-studio-preview .mh-sample figcaption { align-items: center; gap: 8px; margin-block-end: 7px; font-size: 14px; font-weight: 650; }
    .mh-sample figcaption svg { color: var(--cyan); }
    .mh-sample__controls:not([hidden]) { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 12px; }
    .mh-sample audio[hidden], .mh-sample__pause, .mh-sample__silent,
    .mh-sample.is-playing .mh-sample__play, .mh-sample__mute[aria-pressed="true"] .mh-sample__waves { display: none; }
    .mh-sample.is-playing .mh-sample__pause, .mh-sample__mute[aria-pressed="true"] .mh-sample__silent { display: inline; }
    .mh-sample__controls button { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; cursor: pointer; border-radius: 50%; background: transparent; color: var(--ink); border: 0; }
    .mh-sample__controls .mh-sample__toggle { color: var(--cyan); border: 1px solid currentColor; background: color-mix(in srgb, var(--cyan) 8%, transparent); }
    .mh-sample__controls :focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
    .mh-sample__timeline { min-width: 0; }
    .mh-sample__timeline input { width: 100%; display: block; height: 30px; margin: 0; accent-color: var(--cyan); cursor: pointer; background: transparent; }
    .mh-sample__time { display: flex; justify-content: space-between; color: var(--ink-2); font: 600 11px/1.3 ui-monospace, monospace; font-variant-numeric: tabular-nums; }
}

.privacy-glass {
    position: fixed;
    inset-inline-start: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 40;
    box-sizing: border-box;
    width: max-content;
    max-width: min(232px, calc(100vw - 28px));
    padding: 12px 16px 9px;
    border: 1px solid rgb(178 215 255 / .32);
    border-radius: 17px;
    color: #f4f8ff;
    background: linear-gradient(125deg, rgb(45 65 94 / .85), rgb(23 22 46 / .88));
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px rgb(255 255 255 / .13), 0 5px 22px rgb(0 0 0 / .22);
}
.privacy-glass h2 { margin: 0; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.35; }
.privacy-glass p { margin: 3px 0 5px; color: #dae5f4; font-size: 12px; line-height: 1.45; }
.privacy-glass form { display: flex; align-items: center; gap: 14px; }
.privacy-glass button, .privacy-glass a { display: inline-flex; align-items: center; min-height: 32px; font: inherit; font-size: 12px; }
.privacy-glass button { cursor: pointer; padding: 0 15px; border: 0; border-radius: 20px; background: linear-gradient(110deg, #a5ecf4, #d5c4ff); color: #121a30; font-weight: 750; }
.privacy-glass a { color: #ecf2ff; text-decoration: underline; text-underline-offset: 3px; }
.privacy-glass :focus-visible { outline: 2px solid #a0f5ff; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
    html:not([data-a9x-motion="reduced"]) .privacy-glass { animation: privacy-in .32s ease-out backwards; }
    @keyframes privacy-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
