:root {
    color-scheme: dark;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        sans-serif;
    font-size: 16px;
    color: #eef0fa;
    background: #0b101c;
    --muted: #aab4c9;
    --line: #2b344b;
    --accent: #b3a5ff;
}

* {
    box-sizing: border-box;
}
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at 15% 15%, #25204055, transparent 50%);
}
a {
    color: var(--accent);
    text-underline-offset: 4px;
}
a:hover {
    color: #ded7ff;
}
button,
input {
    font: inherit;
}
button,
a {
    -webkit-tap-highlight-color: transparent;
}
:focus-visible {
    outline: 3px solid #b3a5ff;
    outline-offset: 4px;
}
.site-header,
.site-footer {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-header {
    min-height: 100px;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f5f4ff;
    text-decoration: none;
    white-space: nowrap;
}
.brand-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #7f71c3;
    border-radius: 12px;
    color: #d4cbff;
    font-size: 1.1rem;
    letter-spacing: -2px;
    padding-right: 2px;
    background: #8a6cf51a;
}
nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.9rem;
}
nav a {
    color: #c3cadd;
    text-decoration: none;
}
.inline-form {
    margin: 0;
}
.page {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 64px 0 80px;
    flex: 1;
}
.site-footer {
    padding: 24px 0;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--muted);
}
h1,
h2 {
    line-height: 1.15;
    letter-spacing: -0.04em;
}
h1 {
    font-size: clamp(2rem, 5vw, 3.7rem);
    margin: 18px 0;
}
h2 {
    font-size: 1.55rem;
    margin: 14px 0;
}
p {
    line-height: 1.7;
}
.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
}
.lead {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #b9c2d8;
    max-width: 40ch;
}
.muted {
    color: var(--muted);
}
.small {
    font-size: 0.84rem;
}
.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 480px;
}
.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
}
.hero .button {
    margin-top: 20px;
}
.feature-panel {
    padding: 38px;
    border: 1px solid #3e375b;
    border-radius: 24px;
    background: linear-gradient(140deg, #28243f, #131b2b);
}
.feature-panel h2 {
    font-size: 2rem;
    margin: 24px 0;
}
.feature-row {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid #ffffff12;
}
.feature-row p {
    margin: 4px 0 0;
    font-size: 0.87rem;
    color: var(--muted);
}
.feature-number {
    font-size: 0.75rem;
    color: #a394e4;
    padding-top: 3px;
}
.badge,
.step {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #c6baff;
}
.badge {
    border: 1px solid #a089f147;
    background: #a089f112;
    padding: 7px 11px;
    border-radius: 99px;
}
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 100px;
    padding-top: 24px;
}
.auth-intro h1 {
    font-size: clamp(3rem, 6vw, 5rem);
}
.card {
    border: 1px solid var(--line);
    background: #141c2c;
    border-radius: 20px;
    padding: 32px;
}
.auth-card {
    width: 100%;
    max-width: 470px;
}
.auth-card h1,
.enrollment-card h1 {
    font-size: 2rem;
}
.auth-card h2 {
    margin-top: 14px;
    margin-bottom: 30px;
}
.centered {
    margin: 0 auto;
}
.enrollment-card {
    max-width: 650px;
}
form {
    margin-top: 20px;
}
label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 20px 0 9px;
    color: #dce1ef;
}
input:not([type='hidden']) {
    display: block;
    width: 100%;
    min-height: 48px;
    border: 1px solid #3c4660;
    border-radius: 9px;
    background: #0c1423;
    color: #f6f7ff;
    padding: 11px 13px;
}
input:hover {
    border-color: #6b7190;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    min-height: 46px;
    padding: 12px 20px;
    background: #b6a5ff;
    color: #19112e;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
}
.button:hover {
    background: #d1c6ff;
    color: #19112e;
}
form .button {
    margin-top: 24px;
}
.full {
    width: 100%;
}
.secondary {
    background: #a090ea15;
    color: #d9d1ff;
    border-color: #8674cc66;
}
.secondary-link {
    display: block;
    font-size: 0.9rem;
    margin-top: 22px;
}
.text-button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.text-button:hover {
    color: white;
}
.cancel-form {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.code-input {
    letter-spacing: 0.12em;
    font-family: ui-monospace, monospace;
}
.qr-container {
    background: white;
    border-radius: 14px;
    width: fit-content;
    margin: 28px auto;
    padding: 8px;
}
.qr-container img {
    display: block;
    max-width: 100%;
    height: auto;
}
details {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
}
summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--accent);
}
.secret-key {
    overflow-wrap: anywhere;
    font-size: 1rem;
    letter-spacing: 0.06em;
}
.recovery-list {
    padding-left: 26px;
    font-size: 0.84rem;
    line-height: 2.5;
    overflow-wrap: anywhere;
}
.notice {
    border-left: 3px solid var(--accent);
    padding: 14px 18px;
    background: #a493e914;
    border-radius: 0 9px 9px 0;
    font-size: 0.9rem;
    line-height: 1.7;
}
.success {
    border-color: #80d5b7;
    background: #80d5b714;
}
.page-heading {
    margin-bottom: 36px;
}
.page-heading .secondary-link {
    margin: 0 0 28px;
}
.dashboard-grid,
.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.stack {
    display: grid;
    gap: 24px;
}
.module-placeholder {
    border-style: dashed;
    background: transparent;
}

@media (max-width: 780px) {
    .hero,
    .auth-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        min-height: auto;
    }
    .auth-intro h1 br {
        display: none;
    }
    .auth-intro h1 {
        font-size: 3rem;
    }
    .auth-card {
        max-width: none;
    }
    .dashboard-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }
    .page {
        padding: 36px 0 48px;
    }
    .feature-panel {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .site-header,
    .site-footer,
    .page {
        width: calc(100% - 32px);
    }
    .site-header {
        min-height: 84px;
        flex-wrap: wrap;
        padding: 16px 0;
        gap: 16px;
    }
    nav {
        gap: 14px;
        font-size: 0.8rem;
    }
    .card {
        padding: 24px 20px;
    }
    .site-footer {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }
    .recovery-list {
        font-size: 0.72rem;
    }
}
