:root {
    --background: #f3f5f7;
    --surface: #ffffff;
    --surface-muted: #eef1f4;
    --sidebar: #13191f;
    --sidebar-muted: #8e9aa5;
    --text: #17202a;
    --text-muted: #65717c;
    --border: #dfe4e8;
    --accent: #d95b35;
    --accent-dark: #ae3f20;
    --success: #3b9c70;
    --shadow: 0 18px 45px rgba(24, 34, 44, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.application-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 28px 22px;
    background: var(--sidebar);
    color: #ffffff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 44px;
}

.brand-symbol {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 21px;
    letter-spacing: -0.03em;
}

.brand small {
    margin-top: 3px;
    color: var(--sidebar-muted);
    font-size: 11px;
}

.navigation {
    display: grid;
    gap: 8px;
}

.navigation a {
    padding: 13px 15px;
    border-radius: 11px;
    color: #bac3ca;
    font-size: 14px;
    font-weight: 600;
    transition:
        background 150ms ease,
        color 150ms ease;
}

.navigation a:hover,
.navigation a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.navigation a.active {
    box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-footer {
    display: grid;
    gap: 4px;
    margin-top: auto;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--sidebar-muted);
}

.sidebar-footer span {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.sidebar-footer small {
    font-size: 11px;
}

.main-content {
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: 0 42px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
}

.topbar strong,
.topbar small {
    display: block;
}

.topbar strong {
    font-size: 15px;
}

.topbar small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
}

.environment-badge {
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff1ec;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 42px;
}

.hero-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 250px;
    padding: 44px;
    overflow: hidden;
    border-radius: var(--radius);
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(217, 91, 53, 0.28),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #182129,
            #222e38
        );
    color: #ffffff;
    box-shadow: var(--shadow);
}

.eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-panel h1,
.information-panel h2 {
    margin: 0;
    letter-spacing: -0.04em;
}

.hero-panel h1 {
    max-width: 750px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1;
}

.hero-panel p {
    max-width: 680px;
    margin: 20px 0 0;
    color: #bdc7ce;
    font-size: 17px;
    line-height: 1.7;
}

.brand-mark {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 38px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
    font-size: 55px;
    font-weight: 900;
    letter-spacing: -0.08em;
    transform: rotate(-6deg);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.status-indicator {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(59, 156, 112, 0.12);
}

.status-card small,
.status-card strong {
    display: block;
}

.status-card small {
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
}

.status-card strong {
    font-size: 14px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.module-card {
    position: relative;
    min-height: 220px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.module-number {
    position: absolute;
    top: 18px;
    right: 22px;
    color: #e7eaed;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.module-card h2 {
    position: relative;
    margin: 50px 0 8px;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.module-card p {
    color: var(--text-muted);
    font-size: 13px;
}

.module-link {
    position: absolute;
    bottom: 26px;
    left: 28px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.information-panel {
    margin-top: 32px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.information-panel h2 {
    font-size: 28px;
}

.information-panel p {
    max-width: 800px;
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .application-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .application-shell {
        display: block;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar-footer {
        display: none;
    }

    .topbar {
        padding: 0 20px;
    }

    .content {
        padding: 20px;
    }

    .hero-panel {
        padding: 30px;
    }

    .brand-mark {
        display: none;
    }

    .status-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }
}
