:root {
    --carbon: #0b0b0e;
    --carbon-light: #121318;
    --yellow: #f5c400;
    --yellow-glow: #ffd84a;
    --steel: #e9e9ec;
    --muted: #8b8e9c;
    --danger: #ff3b3b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    color: var(--steel);
    background: var(--carbon);
    min-height: 100vh;
    overflow-x: hidden;
}

.page-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 216, 74, 0.15), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(255, 216, 74, 0.12), transparent 40%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 50%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 6px);
    z-index: -2;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 6vw 12px;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-mark {
    font-family: "Bebas Neue", sans-serif;
    font-size: 32px;
    letter-spacing: 4px;
    color: var(--yellow);
}

.brand-sub {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
}

.site-actions {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--carbon);
    background: var(--yellow);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 196, 0, 0.25);
}

.btn.primary {
    background: linear-gradient(120deg, var(--yellow), var(--yellow-glow));
}

.btn.ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--steel);
}

main {
    padding: 20px 6vw 60px;
}

.hero {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    min-height: 70vh;
}

.hero-media {
    position: relative;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.2), rgba(11, 11, 14, 0.85));
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 12px;
    color: var(--yellow);
}

.hero h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 0.95;
    margin: 0;
}

.hero p {
    color: var(--muted);
    font-size: 18px;
    max-width: 520px;
    margin: 0;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    padding-top: 12px;
}

.hero-stats div {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px 16px;
}

.stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--yellow);
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
}

.grid-section {
    margin-top: 48px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    padding: 22px;
    background: var(--carbon-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card h3 {
    margin-top: 0;
    color: var(--yellow);
}

.card p {
    color: var(--muted);
    margin-bottom: 0;
}

.cta-strip {
    margin-top: 46px;
    padding: 24px 28px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(120deg, rgba(255, 216, 74, 0.18), rgba(18, 19, 24, 0.9));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 26px;
}

.cta-sub {
    color: var(--muted);
}

.auth {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-panel {
    background: var(--carbon-light);
    border-radius: 22px;
    padding: 32px;
    width: min(460px, 92vw);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.auth-panel h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 36px;
    margin-top: 0;
}

.auth-panel p {
    color: var(--muted);
}

.auth-form p {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.auth-form input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #0f1014;
    color: var(--steel);
}

.demo-users {
    margin-top: 24px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.demo-users h2 {
    margin: 0 0 12px;
    font-size: 18px;
    color: var(--yellow);
}

.demo-users ul {
    margin: 0 0 12px;
    padding-left: 18px;
    color: var(--steel);
}

.demo-users li {
    margin-bottom: 6px;
}

.demo-users span {
    color: var(--yellow-glow);
    font-weight: 600;
}

.demo-note {
    color: var(--muted);
    font-size: 14px;
}

.hub {
    margin-top: 24px;
}

.hub h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 44px;
    margin-bottom: 8px;
}

.hub-sub {
    color: var(--muted);
    margin-bottom: 24px;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.hub-card {
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: var(--steel);
    transition: transform 0.2s ease, border 0.2s ease;
}

.hub-card span {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--yellow);
}

.hub-card em {
    color: var(--muted);
    font-style: normal;
}

.hub-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 216, 74, 0.5);
}

.cabinet {
    margin-top: 24px;
}

.cabinet h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 42px;
}

.cabinet-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.cabinet-lead {
    color: var(--muted);
    max-width: 520px;
}

.cabinet-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--yellow);
    margin-bottom: 12px;
}

.cabinet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.cabinet-card {
    padding: 22px;
    border-radius: 18px;
    background: var(--carbon-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cabinet-card h3 {
    margin-top: 0;
    color: var(--yellow);
}

.cabinet-card p {
    color: var(--muted);
}

.metric {
    margin-top: 12px;
    font-weight: 600;
    color: var(--yellow);
}

.cabinet--client .cabinet-card {
    border-color: rgba(255, 216, 74, 0.25);
}

.cabinet--manager .cabinet-card {
    border-color: rgba(108, 214, 255, 0.25);
}

.cabinet--admin .cabinet-card {
    border-color: rgba(255, 88, 141, 0.25);
}

.cabinet--export .cabinet-card {
    border-color: rgba(118, 255, 162, 0.25);
}

.cabinet-log {
    margin-top: 28px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cabinet-log h2 {
    margin-top: 0;
    font-size: 22px;
    color: var(--yellow);
}

.dev-log {
    background: #0f1014;
    color: var(--steel);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 520px;
    overflow: auto;
    display: grid;
    gap: 14px;
}

.log-entry {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.log-date {
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 8px;
    font-size: 14px;
}

.log-list {
    margin: 0;
    padding-left: 18px;
    color: var(--steel);
    font-size: 13px;
    line-height: 1.5;
}

.log-list li {
    margin-bottom: 6px;
}

.log-empty {
    color: var(--muted);
    font-size: 14px;
}

.site-footer {
    padding: 28px 6vw 40px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-meta {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
}

@media (max-width: 720px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hero {
        min-height: auto;
    }
}
