@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&display=swap');

:root {
    color-scheme: dark;
    --bg: #050505;
    --panel: rgba(18, 18, 18, .86);
    --line: rgba(255, 255, 255, .12);
    --text: #fff;
    --muted: #b9bdc7;
    --red: #ef1020;
    --green: #22c55e;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 85% 10%, rgba(239, 16, 32, .22), transparent 32rem),
        linear-gradient(135deg, #050505, #111 55%, #050505);
    color: var(--text);
    font-family: "Barlow", Inter, Arial, sans-serif;
    font-size: 15px;
}

a { color: inherit; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem clamp(1rem, 3vw, 3rem);
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(16px);
}

.brand {
    text-decoration: none;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.brand span { color: var(--red); }

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
    font-size: .88rem;
}

nav a { text-decoration: none; }

main {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(1.4rem, 3.5vw, 3.2rem) 0;
}

.landing {
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
    align-items: center;
    gap: 2rem;
}

.hero {
    border: 1px solid var(--line);
    border-left: 6px solid var(--red);
    border-radius: 22px;
    padding: clamp(1.7rem, 4vw, 3rem);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .62)),
        var(--panel);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.hero h1, .auth-card h1, .install-card h1 {
    margin: .2rem 0 1rem;
    font-size: clamp(2rem, 4.8vw, 4.2rem);
    line-height: .95;
    text-transform: uppercase;
    letter-spacing: -.04em;
}

.hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.55;
}

.eyebrow {
    color: var(--red);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .72rem 1.15rem;
    border: 0;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary {
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--line);
}

.button.small {
    min-height: 34px;
    padding: .45rem .9rem;
    font-size: .86rem;
}

.panel, .card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.panel {
    padding: 1.35rem;
    display: grid;
    gap: .6rem;
}

.panel span {
    width: max-content;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: var(--green);
    font-size: .75rem;
    font-weight: 900;
}

.panel strong {
    font-size: 1.85rem;
    text-transform: uppercase;
}

.panel small, .muted {
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.card {
    padding: 1.15rem;
}

.card h2 {
    margin-top: 0;
}

.stat span {
    display: block;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
}

.stat strong {
    display: block;
    margin-top: .6rem;
    font-size: 2.1rem;
}

.auth-card, .install-card {
    width: min(620px, 100%);
    margin: 0 auto;
}

.install {
    display: grid;
    place-items: center;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid h2 {
    margin: 1rem 0 0;
    font-size: 1rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .16em;
}

label {
    display: grid;
    gap: .4rem;
    color: var(--muted);
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    padding: .8rem 1rem;
    font: inherit;
}

.notice {
    margin: 1rem 0;
    padding: .9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.notice.error {
    background: rgba(239, 16, 32, .12);
    border-color: rgba(239, 16, 32, .42);
}

.notice.success {
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .42);
}

@media (max-width: 800px) {
    .landing, .grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        width: 100%;
        justify-content: space-between;
    }
}
