:root {
    --bg: #050505;
    --bg-soft: #101010;
    --panel: rgba(10, 10, 10, 0.82);
    --panel-strong: rgba(16, 16, 16, 0.94);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #fafafa;
    --muted: #b9b9b9;
    --accent: rgb(165, 180, 252);
    --accent-strong: rgb(199, 210, 254);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

img { max-width: 100%; height: auto; }
main, section, aside, .card, .grid > * { min-width: 0; }
input, textarea, select { max-width: 100%; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 4px; }
#linkCode, #expiresAt, #hwidState, #userName { overflow-wrap: anywhere; }

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top, rgba(165, 180, 252, 0.18), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(165, 180, 252, 0.12), transparent 22%),
        linear-gradient(180deg, #111111 0%, #070707 42%, #030303 100%);
    color: var(--text);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(165, 180, 252, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(165, 180, 252, 0.08) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
    opacity: 0.2;
    pointer-events: none;
}

h1, h2, h3, h4, .brand-wordmark {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    letter-spacing: -0.03em;
}

nav,
footer {
    background: rgba(7, 9, 13, 0.74);
    backdrop-filter: blur(18px);
}

.brand-wordmark {
    letter-spacing: -0.05em;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.45rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
    text-decoration: none;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #050608;
    background: linear-gradient(135deg, rgb(199, 210, 254), rgb(165, 180, 252));
    border-color: rgba(165, 180, 252, 0.7);
    box-shadow: 0 16px 38px rgba(165, 180, 252, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 20px 44px rgba(165, 180, 252, 0.38);
}

.btn-secondary {
    background: rgba(165, 180, 252, 0.08);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(165, 180, 252, 0.14);
    border-color: rgba(165, 180, 252, 0.35);
}

.card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(165, 180, 252, 0.08), rgba(165, 180, 252, 0.03)),
        var(--panel);
    backdrop-filter: blur(14px);
    border-radius: 1.5rem;
    padding: 1.6rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
        background: radial-gradient(circle at top left, rgba(165, 180, 252, 0.16), transparent 36%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(165, 180, 252, 0.35);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.hero-shell {
    padding-top: 6rem;
    padding-bottom: 7rem;
}

.hero-grid {
    background:
        radial-gradient(700px circle at 50% 8%, rgba(165, 180, 252, 0.18), transparent 55%),
        radial-gradient(600px circle at 85% 14%, rgba(165, 180, 252, 0.12), transparent 50%),
        repeating-linear-gradient(
            to right,
            rgba(165, 180, 252, 0.08) 0px,
            rgba(165, 180, 252, 0.08) 1px,
            transparent 1px,
            transparent 96px
        ),
        repeating-linear-gradient(
            to bottom,
            rgba(165, 180, 252, 0.06) 0px,
            rgba(165, 180, 252, 0.06) 1px,
            transparent 1px,
            transparent 96px
        );
    opacity: 0.6;
}

.hero-frame {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero-frame-solo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 22rem;
    padding: 2rem 0;
}

.hero-solo-title {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    font-size: clamp(4.2rem, 9vw, 7.6rem);
    line-height: 0.92;
    letter-spacing: -0.07em;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-transform: none;
}

.hero-solo-title span {
    display: block;
    margin-top: 0.45rem;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 0.96;
    letter-spacing: -0.035em;
    word-spacing: 0.06em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.92);
    text-stroke: 1.5px rgba(255, 255, 255, 0.92);
}

.hero-frame::after {
    content: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(165, 180, 252, 0.08);
    color: #f3f4f6;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
}

.eyebrow::before,
.status-pill::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgb(165, 180, 252);
    box-shadow: 0 0 0 6px rgba(165, 180, 252, 0.18);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hero-metric {
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.hero-metric strong {
    display: block;
    font-size: 1rem;
    color: var(--text);
}

.hero-metric span {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.15rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-page main,
.panel-page main {
    position: relative;
}

.auth-page main::before,
.panel-page main::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 50%;
    width: min(60vw, 40rem);
    height: min(60vw, 40rem);
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 62%);
    filter: blur(24px);
    pointer-events: none;
}

.auth-page .card,
.panel-page .card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
        var(--panel-strong);
}

input,
textarea {
    background: rgba(6, 8, 12, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    border-radius: 1rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus,
textarea:focus {
    border-color: rgba(255, 255, 255, 0.34) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-1px);
}

section[id],
header[id] {
    scroll-margin-top: 6rem;
}

.download-cta {
    min-width: 15rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
    font-size: 0.8rem;
}

.module-showcase {
    overflow: hidden;
}

.module-kicker {
    display: inline-block;
    color: #dcdcdc;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.module-title {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    font-size: clamp(3.2rem, 8vw, 6.9rem);
    line-height: 0.94;
    letter-spacing: -0.07em;
    font-weight: 700;
    color: #ffffff;
    margin-top: 1.5rem;
}

.module-subtitle {
    max-width: 52rem;
    color: #bdbdbd;
    font-size: 1.05rem;
    margin-top: 1.6rem;
}

.marquee-stack {
    margin-top: 3.75rem;
    display: grid;
    gap: 1rem;
}

.marquee-row {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 0.9rem;
    animation: modules-scroll 34s linear infinite;
}

.marquee-row.reverse .marquee-track {
    animation-direction: reverse;
    animation-duration: 38s;
}

.marquee-row.slower .marquee-track {
    animation-duration: 42s;
}

.module-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: max-content;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #ffffff;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.module-pill-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #8e8e8e;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@keyframes modules-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 0.45rem));
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInUp 700ms ease forwards;
}

::selection {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #090b10;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .module-title {
        font-size: clamp(2.8rem, 10vw, 5.2rem);
    }
}

@media (max-width: 768px) {
    .hero-shell {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .hero-frame {
        padding: 0;
        border-radius: 0;
    }

    .hero-frame-solo {
        min-height: 17rem;
        padding: 1.5rem 0;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    button, .btn, nav a { min-height: 44px; }
    nav.fixed {
        position: sticky;
        top: 0;
        padding-top: env(safe-area-inset-top, 0px);
    }
    nav > div > .h-16 {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        gap: .5rem;
        padding-top: .6rem;
        padding-bottom: .6rem;
    }
    nav > div > .h-16 > .flex {
        min-width: 0;
        flex-wrap: wrap;
        gap: .35rem;
    }
    nav a, nav button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: .82rem;
        padding-left: .75rem;
        padding-right: .75rem;
        margin-left: 0;
    }
    nav .hidden { display: none; }
    nav .brand-wordmark { font-size: 1.35rem; margin-left: .5rem; }
    nav img { width: 32px; height: 32px; }
    nav a.flex-shrink-0 { padding: 0; }
    .auth-page main, .panel-page main {
        padding-top: 1.75rem;
        padding-bottom: 2.5rem;
        min-height: auto;
    }
    .auth-page main { flex: 1; align-items: flex-start; }
    .hero-shell { padding-top: 1rem; padding-bottom: 2.5rem; }
    .hero-shell > .relative { padding-top: 1.5rem; }
    .hero-frame-solo { min-height: 13rem; }
    .hero-solo-title { font-size: clamp(2.8rem, 12vw, 5.2rem); line-height: 1.05; }
    .hero-solo-title span {
        font-size: clamp(1.65rem, 7vw, 2.8rem);
        line-height: 1.15;
        -webkit-text-stroke-width: 1px;
    }
    section.py-20, section.py-24 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .card { padding: 1.1rem; border-radius: 1.1rem; }
    .card:hover { transform: none; }
    h1.text-3xl, h2.text-3xl, h2.text-4xl { font-size: 1.8rem; line-height: 1.2; }
    h2.mb-16, h2.mb-12 { margin-bottom: 1.5rem; }
    .module-title { font-size: clamp(2.5rem, 12vw, 4rem); line-height: 1; margin-top: 1rem; }
    .module-subtitle { font-size: .95rem; line-height: 1.65; }
    .marquee-stack { margin-top: 1.75rem; gap: .65rem; }
    .marquee-row { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
    .marquee-track { animation: none; gap: .6rem; padding-bottom: .5rem; }
    .module-pill { font-size: .85rem; padding: .7rem .8rem; }
    input, textarea, select { font-size: 16px !important; min-height: 48px; }
    .download-cta { min-width: 0; }
    #launcherStatus { text-align: left; line-height: 1.6; }
    .panel-page aside .justify-between { flex-wrap: wrap; gap: .5rem; }
    .panel-page aside .justify-between > span:last-child { max-width: 100%; overflow-wrap: anywhere; }
    .panel-page .grid { gap: 1rem; }
    .panel-page .mt-10 { margin-top: 1.5rem; }
    footer { padding-bottom: env(safe-area-inset-bottom, 0px); }
    footer a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
