:root {
    --bg: #070911;
    --bg-2: #0b0f19;
    --card: #10131d;
    --purple: #8b5cf6;
    --purple-bright: #a855f7;
    --text: #ffffff;
    --muted: #a1a1aa;
    --border: rgba(168, 85, 247, .25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.xerian-public,
body.public-auth {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 76% 10%, rgba(139, 92, 246, .18), transparent 35%),
        radial-gradient(circle at 20% 40%, rgba(168, 85, 247, .10), transparent 30%),
        linear-gradient(180deg, #05070d 0, var(--bg) 48%, #05070d 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.xerian-public::before,
body.public-auth::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .2;
    background-image:
        linear-gradient(rgba(168, 85, 247, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, .08) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: linear-gradient(180deg, #000, transparent 78%);
    pointer-events: none;
}

a {
    color: inherit;
}

.xerian-navbar {
    background: rgba(7, 9, 17, .74);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: blur(18px);
}

.brand-x {
    color: var(--purple);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: .82;
    text-shadow: 0 0 24px rgba(168, 85, 247, .8);
}

.brand-x-large {
    font-size: 5.5rem;
}

.brand-word {
    color: #fff;
    font-weight: 800;
    letter-spacing: .28rem;
    text-transform: uppercase;
}

.xerian-navbar .navbar-nav .nav-link {
    color: #d4d4d8;
    margin: 0 .55rem;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.xerian-navbar .navbar-nav .nav-link:hover,
.xerian-navbar .navbar-nav .nav-link.active {
    color: #fff;
}

.btn-purple {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .15);
    background: linear-gradient(135deg, var(--purple), #6d28d9);
    box-shadow: 0 0 28px rgba(139, 92, 246, .35);
    font-weight: 800;
}

.btn-purple:hover,
.btn-purple:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 38px rgba(139, 92, 246, .55);
}

.btn-outline-purple {
    color: #fff;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    font-weight: 800;
}

.btn-outline-purple:hover,
.btn-outline-purple:focus {
    color: #fff;
    border-color: var(--purple);
    background: rgba(139, 92, 246, .15);
}

.login-drawer {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    z-index: 1040;
    display: none;
    pointer-events: none;
}

.login-open .login-drawer,
.login-drawer:target {
    display: block;
}

.login-card {
    width: min(420px, 100%);
    padding: 24px;
    position: relative;
    pointer-events: auto;
}

.login-card h2,
.auth-card h1 {
    color: #fff;
    font-weight: 900;
}

.auth-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.auth-form label {
    display: grid;
    gap: 7px;
    color: #d8d8df;
    font-size: .86rem;
    font-weight: 800;
}

.auth-form input {
    min-height: 50px;
    width: 100%;
    padding: 12px 14px;
    color: #fff;
    border: 1px solid rgba(168, 85, 247, .28);
    border-radius: 12px;
    outline: none;
    background: rgba(7, 9, 17, .82);
}

.auth-form input:focus {
    border-color: var(--purple-bright);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, .20);
}

.auth-alert {
    margin-bottom: 12px;
    padding: 11px 12px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    font-weight: 800;
}

.auth-alert-error {
    color: #ffd2d7;
    background: rgba(185, 61, 53, .18);
}

.auth-alert-warning {
    color: #ffe4a6;
    background: rgba(215, 173, 85, .18);
}

.auth-alert-success {
    color: #d8ffe9;
    background: rgba(22, 163, 74, .16);
}

.hero {
    min-height: 760px;
    padding-top: 118px;
    position: relative;
    overflow: visible;
}

.eyebrow {
    color: var(--purple-bright);
    font-size: .85rem;
    font-weight: 900;
    letter-spacing: .06rem;
    text-transform: uppercase;
}

h1 {
    color: #fff;
    max-width: 680px;
    font-size: clamp(2.85rem, 4.8vw, 4.55rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
}

.gradient-text {
    color: var(--purple-bright);
    text-shadow: 0 0 24px rgba(168, 85, 247, .5);
}

.lead,
.muted {
    color: var(--muted);
}

.lead {
    max-width: 520px;
    line-height: 1.65;
}

.building-scene {
    min-height: 590px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-building-img {
    width: min(880px, 124%);
    max-width: none;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    margin-right: -36px;
    filter: drop-shadow(0 0 28px rgba(168, 85, 247, .24)) drop-shadow(0 34px 60px rgba(0, 0, 0, .48));
}

.building-ground {
    position: absolute;
    left: 4%;
    right: 0;
    bottom: 0;
    height: 116px;
    background:
        radial-gradient(ellipse at 54% 38%, rgba(168, 85, 247, .48), transparent 58%),
        linear-gradient(90deg, transparent, rgba(168, 85, 247, .22), transparent);
    filter: blur(2px);
}

.building-ground::before,
.building-ground::after {
    content: "";
    position: absolute;
    bottom: 34px;
    width: 34%;
    height: 2px;
    background: rgba(168, 85, 247, .36);
    box-shadow: 0 0 18px rgba(168, 85, 247, .5);
}

.building-ground::before {
    left: 3%;
    transform: rotate(-4deg);
}

.building-ground::after {
    right: 2%;
    transform: rotate(5deg);
}

.glass-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    backdrop-filter: blur(20px);
}

.feature-ribbon {
    margin-top: 18px;
    position: relative;
    z-index: 5;
}

.feature-ribbon h6 {
    color: #fff;
    margin-bottom: 6px;
    font-size: .85rem;
    font-weight: 900;
    text-transform: uppercase;
}

.icon-box {
    color: var(--purple-bright);
    font-size: 2.25rem;
    text-shadow: 0 0 22px rgba(168, 85, 247, .55);
}

.section {
    padding: 90px 0;
}

.section-panel {
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(16, 19, 29, .9), rgba(8, 11, 19, .9));
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.check-list {
    display: grid;
    gap: 10px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    content: "\F26A";
    position: absolute;
    left: 0;
    top: .05em;
    color: var(--purple-bright);
    font-family: "bootstrap-icons";
}

.hub-render-img {
    width: min(440px, 82vw);
    height: auto;
    display: block;
    margin: 0 auto 0 -34px;
    filter: drop-shadow(0 0 22px rgba(168, 85, 247, .28)) drop-shadow(0 24px 42px rgba(0, 0, 0, .44));
}

.stat-card {
    min-height: 120px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px 14px;
    align-items: center;
    padding: 22px;
}

.stat-card .icon-box {
    grid-row: 1 / span 2;
    font-size: 2rem;
}

.stat-card h3 {
    grid-column: 2;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

.stat-card p {
    grid-column: 2;
    margin: 0;
    line-height: 1.35;
}

.feature-card {
    height: 100%;
    padding: 38px 28px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.feature-card h5,
.timeline-item h6,
footer h6 {
    color: #fff;
    font-weight: 900;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, .65);
    box-shadow: 0 0 38px rgba(168, 85, 247, .16);
}

.timeline-line {
    position: relative;
}

.timeline-line::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 42px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.timeline-item {
    position: relative;
    z-index: 2;
}

.timeline-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    color: var(--purple-bright);
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #0b0e17;
    box-shadow: 0 0 25px rgba(168, 85, 247, .2);
    font-size: 2rem;
}

.cta {
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        radial-gradient(circle at 15% 50%, rgba(168, 85, 247, .30), transparent 20%),
        linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(255, 255, 255, .02));
}

footer {
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, .06);
}

footer a {
    display: block;
    margin-bottom: .55rem;
    color: var(--muted);
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

.public-auth {
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-card {
    width: min(470px, 100%);
    padding: 30px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    text-decoration: none;
}

@media (max-width: 991px) {
    .hero {
        min-height: auto;
        padding-top: 112px;
    }

    .building-scene {
        min-height: 380px;
        margin-top: 32px;
    }

    .hero-building-img {
        width: min(720px, 112%);
        margin-right: 0;
    }

    .feature-ribbon {
        margin-top: 36px;
    }

    .timeline-line::before {
        display: none;
    }

    .login-drawer {
        top: 78px;
    }
}

@media (max-width: 575px) {
    .brand-word {
        letter-spacing: .18rem;
    }

    h1 {
        font-size: clamp(2.7rem, 14vw, 4.2rem);
    }

    .building-scene {
        min-height: 310px;
    }
}
