:root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #172033;
    --muted: #637083;
    --line: #dce5f2;
    --primary: #1d4ed8;
    --primary-dark: #173c9b;
    --success: #047857;
    --warning: #b45309;
    --info: #0369a1;
    --neutral: #475569;
}

* {
    box-sizing: border-box;
}

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

a {
    color: var(--primary);
}

.topbar {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #ffffff;
    padding: 40px clamp(20px, 5vw, 64px);
}

.topbar h1,
.topbar p {
    margin: 0;
}

.topbar h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.04em;
}

.eyebrow {
    color: #bfdbfe;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px clamp(20px, 5vw, 64px);
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.nav a,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.nav a {
    padding: 8px 14px;
    background: #eef4ff;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 56px;
}

.hero {
    margin-bottom: 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin: 18px 0 28px;
}

.grid--four {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgb(15 23 42 / 8%);
    padding: 22px;
}

.card--link {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card__header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.card h2,
.card h3 {
    margin: 0 0 10px;
}

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

.button {
    align-self: flex-start;
    background: var(--primary);
    color: #ffffff;
    margin-top: auto;
    padding: 10px 16px;
}

.button:hover {
    background: var(--primary-dark);
}

.badge {
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 5px 10px;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge--success {
    background: var(--success);
}

.badge--warning {
    background: var(--warning);
}

.badge--info {
    background: var(--info);
}

.badge--neutral,
.badge--portal,
.badge--tenant,
.badge--module,
.badge--debug {
    background: var(--neutral);
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: minmax(150px, 240px) 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.info-list div:last-child {
    border-bottom: 0;
}

.info-list dt {
    color: var(--muted);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.notice {
    border-radius: 16px;
    font-weight: 700;
    margin-top: 18px;
    padding: 14px 16px;
}

.notice--warning {
    background: #fff7ed;
    color: #9a3412;
}

@media (max-width: 620px) {
    .info-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
