:root {
    --bg: #f2f0e8;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --border: rgba(35, 52, 63, 0.12);
    --text: #1d2a32;
    --muted: #61737d;
    --accent: #0d6c74;
    --accent-soft: rgba(13, 108, 116, 0.12);
    --success: #2f7d4d;
    --warning: #a04b1e;
    --paused: #6f5f2c;
    --shadow: 0 24px 60px rgba(29, 42, 50, 0.09);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(13, 108, 116, 0.2), transparent 28rem),
        radial-gradient(circle at left bottom, rgba(160, 75, 30, 0.14), transparent 22rem),
        linear-gradient(180deg, #f7f5ef 0%, var(--bg) 100%);
}

a {
    color: inherit;
}

.page-shell {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0 3rem;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0 1.5rem;
}

.brand {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
}

.hero,
.app-card,
.empty-state {
    border: 1px solid var(--border);
    border-radius: 1.4rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero {
    padding: 2rem;
}

.eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 16ch;
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 5vw, 3.65rem);
    line-height: 1.02;
}

.hero-copy,
.section-copy,
.app-card p,
.app-meta dd,
.hero-note {
    color: var(--muted);
}

.hero-copy {
    max-width: 42rem;
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
    line-height: 1.6;
}

.stats-grid,
.app-grid {
    display: grid;
    gap: 1rem;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    margin-bottom: 1.5rem;
}

.stat-card {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: var(--surface-strong);
    border: 1px solid var(--border);
}

.stat-card__label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.stat-card__value {
    font-size: 1.8rem;
    line-height: 1;
}

.hero-actions,
.section-head,
.app-card__header,
.app-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-head {
    margin: 2rem 0 1rem;
}

.section-head h2 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.section-copy {
    max-width: 28rem;
    margin-bottom: 0;
    text-align: right;
}

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

.app-card,
.empty-state {
    padding: 1.4rem;
}

.app-card__header {
    align-items: flex-start;
    margin-bottom: 1rem;
}

.app-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.badge,
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge--live {
    background: rgba(47, 125, 77, 0.12);
    color: var(--success);
}

.badge--planned {
    background: rgba(13, 108, 116, 0.12);
    color: var(--accent);
}

.badge--paused {
    background: rgba(111, 95, 44, 0.12);
    color: var(--paused);
}

.status-pill--ok {
    background: rgba(47, 125, 77, 0.12);
    color: var(--success);
}

.status-pill--issue {
    background: rgba(160, 75, 30, 0.12);
    color: var(--warning);
}

.status-pill--muted {
    background: rgba(97, 115, 125, 0.12);
    color: var(--muted);
}

.app-meta {
    display: grid;
    gap: 0.9rem;
    margin: 0 0 1.25rem;
}

.app-meta div {
    display: grid;
    gap: 0.2rem;
}

.app-meta dt {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.app-meta dd {
    margin: 0;
    line-height: 1.5;
}

.app-meta dd a {
    color: var(--accent);
    text-decoration: none;
    word-break: break-word;
}

.status-detail {
    margin-left: 0.45rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.app-card__hint {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 1rem;
    border-radius: 0.95rem;
    text-decoration: none;
    font-weight: 700;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    background: var(--text);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(29, 42, 50, 0.16);
}

.button--secondary {
    background: var(--accent-soft);
    color: var(--accent);
}

.empty-state {
    text-align: center;
}

@media (max-width: 760px) {
    .hero,
    .app-card,
    .empty-state {
        padding: 1.25rem;
    }

    .hero-actions,
    .section-head,
    .app-card__header,
    .app-card__footer,
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-copy {
        max-width: none;
        text-align: left;
    }
}
