body.gateway-page {
    --gateway-shell-width: 1160px;
    --gateway-panel-bg: rgba(255, 255, 255, 0.62);
    --gateway-panel-bg-strong: rgba(255, 255, 255, 0.78);
    --gateway-panel-border: rgba(15, 23, 42, 0.08);
    --gateway-shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
    --gateway-shadow-soft: 0 16px 38px rgba(15, 23, 42, 0.06);
    --gateway-pointer-x: 50vw;
    --gateway-pointer-y: 36vh;
    --gateway-pointer-opacity: 0;
    --gateway-blackhole-scale: 0.84;
    --gateway-blackhole-opacity: 0;
    --gateway-countdown-color-a: hsl(198 88% 54%);
    --gateway-countdown-color-b: hsl(278 84% 63%);
    --gateway-countdown-color-c: hsl(38 96% 58%);
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
    color: #081120;
    cursor: none;
}

body.gateway-page #floating-preference-switchers,
body.gateway-page .ud-floating-preferences {
    display: none !important;
}

body.gateway-page::before {
    display: none;
}

body.gateway-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: calc(0.2 + (var(--gateway-pointer-opacity) * 0.7));
    background:
        radial-gradient(circle 260px at var(--gateway-pointer-x) var(--gateway-pointer-y), rgba(56, 189, 248, 0.16), transparent 58%),
        radial-gradient(circle 180px at calc(var(--gateway-pointer-x) + 92px) calc(var(--gateway-pointer-y) - 34px), rgba(244, 114, 182, 0.14), transparent 62%),
        radial-gradient(circle 140px at calc(var(--gateway-pointer-x) - 108px) calc(var(--gateway-pointer-y) + 40px), rgba(251, 191, 36, 0.16), transparent 65%);
    filter: blur(16px);
}

body.gateway-page a,
body.gateway-page button,
body.gateway-page select,
body.gateway-page input,
body.gateway-page textarea,
body.gateway-page .btn {
    cursor: none;
}

.gateway-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gateway-blackhole {
    position: fixed;
    left: var(--gateway-pointer-x);
    top: var(--gateway-pointer-y);
    z-index: 4;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    pointer-events: none;
    opacity: var(--gateway-blackhole-opacity);
    transform: translate(-50%, -50%) scale(var(--gateway-blackhole-scale));
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.98) 0 25%, rgba(3, 6, 17, 0.96) 26%, rgba(3, 6, 17, 0.84) 40%, rgba(3, 6, 17, 0.22) 55%, rgba(3, 6, 17, 0) 72%);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.08),
        0 0 34px rgba(15, 23, 42, 0.18),
        0 0 90px rgba(56, 189, 248, 0.18);
    transition: opacity 180ms ease, transform 180ms ease;
    mix-blend-mode: multiply;
}

.gateway-blackhole::before,
.gateway-blackhole::after {
    content: "";
    position: absolute;
    inset: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.gateway-blackhole::before {
    width: 138px;
    height: 138px;
    background:
        conic-gradient(from 0deg, rgba(56, 189, 248, 0.34), rgba(168, 85, 247, 0.22), rgba(244, 114, 182, 0.34), rgba(251, 191, 36, 0.22), rgba(56, 189, 248, 0.34));
    filter: blur(12px);
    opacity: 0.85;
}

.gateway-blackhole::after {
    width: 74px;
    height: 74px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.08),
        0 0 26px rgba(255, 255, 255, 0.1);
}

.gateway {
    position: relative;
    z-index: 2;
    isolation: isolate;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 44px 24px 72px;
}

.gateway-card.ud-card {
    width: min(var(--gateway-shell-width), 100%);
    padding: clamp(34px, 5vw, 62px);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.gateway-card::before {
    content: "";
    position: absolute;
    inset: -90px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
    background:
        radial-gradient(circle 240px at var(--gateway-pointer-x) var(--gateway-pointer-y), rgba(56, 189, 248, 0.16), transparent 64%),
        radial-gradient(circle 180px at calc(var(--gateway-pointer-x) - 120px) calc(var(--gateway-pointer-y) + 44px), rgba(244, 114, 182, 0.12), transparent 62%),
        radial-gradient(circle 200px at calc(var(--gateway-pointer-x) + 150px) calc(var(--gateway-pointer-y) - 48px), rgba(251, 191, 36, 0.12), transparent 62%);
    filter: blur(24px);
}

.gateway-card > * {
    position: relative;
    z-index: 1;
}

.hero {
    max-width: 860px;
    margin: 0 auto;
    font-size: clamp(46px, 7vw, 96px);
    line-height: 0.9;
    letter-spacing: -0.08em;
    color: #060c18;
    text-shadow:
        0 0 12px rgba(56, 189, 248, 0.08),
        0 0 38px rgba(244, 114, 182, 0.06);
}

.subtitle {
    max-width: 760px;
    margin: 20px auto 34px;
    color: rgba(8, 17, 32, 0.76);
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.75;
}

.gateway-sink-word {
    --sink-translate-x: 0px;
    --sink-translate-y: 0px;
    --sink-tail-x: 0px;
    --sink-tail-y: 0px;
    --sink-squeeze: 0;
    --sink-stretch: 0;
    --sink-skew: 0deg;
    --sink-blur: 0px;
    --sink-shadow-x: 0px;
    position: relative;
    display: inline-block;
    padding-inline: 0.04em;
    isolation: isolate;
    will-change: transform, filter, letter-spacing;
    transition: transform 120ms ease, filter 120ms ease, letter-spacing 120ms ease, opacity 120ms ease;
}

.gateway-sink-word::after {
    content: attr(data-word);
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    color: rgba(8, 17, 32, 0.16);
    pointer-events: none;
    transform:
        translate(var(--sink-tail-x), var(--sink-tail-y))
        scaleX(calc(1 + (var(--sink-stretch) * 0.42)))
        scaleY(calc(1 - (var(--sink-squeeze) * 0.2)));
    filter: blur(calc(8px + var(--sink-blur)));
    transition: opacity 120ms ease, transform 120ms ease, filter 120ms ease;
    mix-blend-mode: multiply;
}

.gateway-sink-word.is-being-swallowed {
    opacity: 0.42;
    letter-spacing: calc(-0.02em - (var(--sink-squeeze) * 0.12em));
    transform:
        translate(var(--sink-translate-x), var(--sink-translate-y))
        scaleX(calc(1 - var(--sink-squeeze)))
        scaleY(calc(1 + var(--sink-stretch)))
        skewX(var(--sink-skew));
    filter:
        blur(var(--sink-blur))
        drop-shadow(var(--sink-shadow-x) 0 14px rgba(8, 17, 32, 0.16));
}

.gateway-sink-word.is-being-swallowed::after {
    opacity: 0.48;
}

.gateway-launch-notice {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 18px;
    margin: 0 0 28px;
}

.gateway-launch-copy,
.gateway-countdown-card,
.role-card {
    border-radius: 28px;
    border: 1px solid var(--gateway-panel-border);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), var(--gateway-panel-bg));
    box-shadow: var(--gateway-shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.gateway-launch-copy,
.gateway-countdown-card {
    padding: 22px 24px;
}

.gateway-launch-kicker {
    margin: 0 0 10px;
    color: rgba(99, 102, 241, 0.94);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.gateway-launch-copy h2 {
    margin: 0;
    font-size: clamp(23px, 3.2vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    color: #081120;
}

.gateway-launch-copy p:last-child {
    margin: 12px 0 0;
    color: rgba(8, 17, 32, 0.7);
    line-height: 1.8;
    font-size: 14px;
}

.gateway-countdown-card {
    display: grid;
    gap: 8px;
    align-content: start;
    justify-items: center;
    text-align: center;
    background:
        radial-gradient(circle at 84% 14%, rgba(56, 189, 248, 0.18), transparent 25%),
        radial-gradient(circle at 94% 0%, rgba(251, 191, 36, 0.16), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), var(--gateway-panel-bg-strong));
}

.gateway-countdown-label {
    color: rgba(8, 17, 32, 0.46);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.gateway-countdown-value {
    display: inline-block;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 0.95;
    letter-spacing: -0.08em;
    color: transparent;
    background:
        linear-gradient(135deg, var(--gateway-countdown-color-a), var(--gateway-countdown-color-b) 52%, var(--gateway-countdown-color-c));
    background-clip: text;
    -webkit-background-clip: text;
    filter:
        drop-shadow(0 8px 18px rgba(56, 189, 248, 0.16))
        drop-shadow(0 0 16px rgba(168, 85, 247, 0.1));
    transition: filter 220ms ease, transform 220ms ease, letter-spacing 220ms ease;
}

.gateway-countdown-value.is-message-mode {
    max-width: 320px;
    font-size: clamp(18px, 2.1vw, 28px);
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-wrap: balance;
    transform: scale(1.015);
    filter:
        drop-shadow(0 10px 24px rgba(244, 114, 182, 0.2))
        drop-shadow(0 0 20px rgba(251, 191, 36, 0.18));
}

.gateway-countdown-note {
    color: rgba(8, 17, 32, 0.62);
    line-height: 1.75;
    font-size: 12px;
}

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

.role-card {
    padding: 22px;
    text-align: left;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.role-card:hover,
.role-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.22);
    box-shadow: var(--gateway-shadow);
}

.card h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #09111f;
}

.card p {
    margin: 0 0 18px;
    color: rgba(8, 17, 32, 0.68);
    line-height: 1.72;
    font-size: 13px;
}

.gateway .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 122px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: #081120;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.gateway .btn.primary {
    background: linear-gradient(135deg, #081120, #16284a);
    color: #ffffff;
    border-color: transparent;
}

.trust {
    margin: 28px 0 0;
    color: rgba(8, 17, 32, 0.48);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .gateway {
        padding: 28px 18px 54px;
    }

    .gateway-launch-notice,
    .cards {
        grid-template-columns: 1fr;
    }

    .gateway-countdown-card {
        justify-items: center;
        text-align: center;
    }

    .role-card,
    .gateway-launch-copy {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero {
        font-size: clamp(34px, 12vw, 56px);
    }

    .subtitle {
        font-size: 15px;
    }

    .gateway-card.ud-card {
        padding: 24px 12px 30px;
    }

    .gateway-launch-copy,
    .gateway-countdown-card,
    .role-card {
        border-radius: 22px;
    }
}

@media (pointer: coarse) {
    body.gateway-page,
    body.gateway-page a,
    body.gateway-page button,
    body.gateway-page .btn {
        cursor: auto;
    }

    body.gateway-page::after {
        opacity: 0.24;
    }

    .gateway-blackhole {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gateway-blackhole,
    .role-card {
        transition: none;
    }

    .role-card:hover,
    .role-card:focus-within {
        transform: none;
    }
}
