:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --text: #151b2d;
    --muted: #667085;
    --border: #e4e7ec;
    --accent: #151b2d;
    --accent-contrast: #ffffff;
    --ok: #12b76a;
    --danger: #b42318;
    --danger-bg: #fef3f2;
    --success-bg: #ecfdf3;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

body { min-height: 100vh; }

a { color: inherit; }

.site-header {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: white;
    font-size: 14px;
    font-weight: 900;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-user {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.text-link {
    text-decoration: none;
    font-weight: 700;
}

.btn {
    border: 1px solid transparent;
    border-radius: 12px;
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-contrast);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border-color: var(--border);
}

.btn-large {
    min-height: 52px;
    padding-inline: 22px;
}

.btn-full { width: 100%; }

.landing {
    width: min(1240px, calc(100% - 40px));
    margin: 28px auto 80px;
}

.hero {
    background: white;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: clamp(36px, 7vw, 86px);
    box-shadow: 0 25px 80px rgba(16,24,40,.07);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .15em;
}

.hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(46px, 8vw, 88px);
    line-height: .98;
    letter-spacing: -.065em;
}

.lead {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.microcopy {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.preview-section {
    margin-top: 52px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 20px;
}

.section-head h2 {
    margin: 0;
    letter-spacing: -.035em;
    font-size: clamp(28px, 4vw, 42px);
}

.module-badge {
    border: 1px solid var(--border);
    background: white;
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.room-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.room-card,
.info-card,
.next-module {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
}

.room-card h3 {
    margin: 18px 0 8px;
    font-size: 21px;
    letter-spacing: -.025em;
}

.room-card p {
    color: var(--muted);
    line-height: 1.55;
}

.room-type {
    font-size: 13px;
    font-weight: 800;
}

.muted-card { opacity: .82; }

.footer {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 34px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.auth-shell {
    width: min(480px, 100%);
}

.auth-brand {
    margin-bottom: 18px;
}

.auth-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(26px, 5vw, 40px);
    box-shadow: 0 25px 80px rgba(16,24,40,.08);
}

.auth-card h1 {
    margin: 0;
    font-size: 42px;
    letter-spacing: -.05em;
}

.auth-intro {
    color: var(--muted);
    line-height: 1.55;
    margin: 10px 0 28px;
}

label {
    display: block;
    margin: 18px 0 8px;
    font-weight: 800;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    min-height: 50px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    padding: 0 14px;
    font: inherit;
    outline: none;
    background: #fff;
}

input:focus {
    border-color: #98a2b3;
    box-shadow: 0 0 0 4px rgba(152,162,179,.13);
}

form small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    line-height: 1.4;
}

.auth-card form .btn {
    margin-top: 24px;
}

.auth-switch {
    margin: 24px 0 0;
    text-align: center;
    color: var(--muted);
}

.auth-switch a {
    color: var(--text);
    font-weight: 800;
}

.alert {
    border-radius: 12px;
    padding: 13px 15px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    background: white;
}

.alert-error {
    color: var(--danger);
    border-color: #fecdca;
    background: var(--danger-bg);
}

.alert-success {
    color: #027a48;
    border-color: #abefc6;
    background: var(--success-bg);
}

.dashboard-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 36px auto 80px;
}

.dashboard-hero {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(28px, 5vw, 54px);
}

.dashboard-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 66px);
    letter-spacing: -.055em;
}

.dashboard-hero p:last-child {
    color: var(--muted);
    font-size: 17px;
}

.dashboard-grid {
    margin-top: 18px;
}

.info-card {
    min-height: 130px;
}

.info-label {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
}

.info-card strong {
    font-size: 20px;
    word-break: break-word;
}

.next-module {
    margin-top: 18px;
}

.next-module span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.next-module h2 {
    margin: 8px 0;
}

.next-module p {
    margin: 0;
    color: var(--muted);
}

.inline-form {
    margin: 0;
}

@media (max-width: 760px) {
    .site-header,
    .landing,
    .footer,
    .dashboard-shell {
        width: min(100% - 24px, 1240px);
    }

    .site-header {
        min-height: 72px;
    }

    .brand > span:last-child {
        display: none;
    }

    .room-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}
