@font-face {
    font-family: "Biennale";
    src: url("/branding/font/biennale%20(fixed)/biennale-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Biennale";
    src: url("/branding/font/biennale%20(fixed)/biennale-medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: "Biennale";
    src: url("/branding/font/biennale%20(fixed)/biennale-bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
}

:root {
    --brand-blue: #0073e6;
    --brand-blue-deep: #08438c;
    --brand-cyan: #0eb7c1;
    --ink: #10223a;
    --ink-soft: #5e6d84;
    --surface: #ffffff;
    --line: rgba(16, 34, 58, 0.12);
    --shadow: 0 12px 30px rgba(17, 44, 84, 0.1);
    --success: #0b885f;
    --danger: #bd434d;
    --warning: #b57a17;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Biennale", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(14, 183, 193, 0.16), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(0, 115, 230, 0.14), transparent 25%),
        linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
}

.page-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.topbar,
.section-head,
.chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar {
    margin-bottom: 28px;
}

.brand-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    min-width: 0;
}

.brand-logo {
    width: clamp(140px, 20vw, 220px);
    height: auto;
}

.brand-divider {
    width: 1px;
    height: 36px;
    background: rgba(16, 34, 58, 0.15);
}

.partner-logo {
    max-width: 180px;
    max-height: 48px;
    object-fit: contain;
}

.refresh-button {
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
    box-shadow: 0 10px 24px rgba(0, 115, 230, 0.2);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.refresh-button:hover,
.refresh-button:focus-visible {
    box-shadow: 0 14px 28px rgba(0, 115, 230, 0.24);
    transform: translateY(-1px);
}

.refresh-button:disabled {
    cursor: wait;
    opacity: 0.75;
}

.content-shell {
    display: grid;
    gap: 28px;
}

.hero-panel,
.charts-section {
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, #ffffff, #f2f7fd);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--brand-blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-head h2 {
    margin: 0;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

.hero-copy h1 {
    font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.hero-text {
    max-width: 64ch;
    margin: 18px 0 24px;
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.metric-card,
.chart-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.metric-card {
    min-width: 0;
    padding: 16px 18px;
}

.metric-label,
.visual-overline,
.detail-label,
.repo-label,
.versions-label {
    display: block;
    color: var(--ink-soft);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.metric-value {
    display: block;
    margin-top: 10px;
    font-size: 1.15rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.support-text {
    margin: 22px 0 0;
    color: var(--ink-soft);
}

.hero-visual {
    display: flex;
    align-items: stretch;
}

.visual-card {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(0, 115, 230, 0.15), transparent 32%),
        linear-gradient(180deg, #10223a, #08438c);
    box-shadow: var(--shadow);
}

.visual-card img {
    width: clamp(84px, 11vw, 120px);
    height: auto;
    filter: brightness(0) invert(1);
}

.visual-card p,
.visual-card strong {
    margin: 0;
}

.visual-card strong {
    display: block;
    margin: 8px 0 12px;
    font-size: 1.4rem;
}

.charts-section {
    padding: 28px;
    background: #ffffff;
}

.section-head {
    align-items: end;
    margin-bottom: 22px;
}

.registry-badge {
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--brand-blue-deep);
    background: rgba(0, 115, 230, 0.1);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.message-banner {
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(181, 122, 23, 0.18);
    border-radius: 20px;
    color: #7a5812;
    background: #fff4e0;
    overflow-wrap: anywhere;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 18px;
}

.chart-card {
    position: relative;
    display: grid;
    min-width: 0;
    gap: 16px;
    padding: 22px;
    overflow: hidden;
}

.chart-card::after {
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 115, 230, 0.12), transparent 70%);
    content: "";
}

.chart-card.error::before,
.chart-card.empty::before,
.chart-card.ready::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 24px 0 0 24px;
    content: "";
}

.chart-card.ready::before {
    background: linear-gradient(180deg, var(--success), var(--brand-cyan));
}

.chart-card.empty::before {
    background: linear-gradient(180deg, var(--warning), #e5ad53);
}

.chart-card.error::before {
    background: linear-gradient(180deg, var(--danger), #d4717a);
}

.chart-head {
    align-items: start;
}

.chart-head > div,
.chart-details,
.detail-row {
    min-width: 0;
}

.chart-head h3 {
    margin: 4px 0 0;
    font-size: 1.25rem;
}

.status-pill {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-pill.ready {
    color: var(--success);
    background: rgba(11, 136, 95, 0.12);
}

.status-pill.empty {
    color: var(--warning);
    background: rgba(181, 122, 23, 0.12);
}

.status-pill.error {
    color: var(--danger);
    background: rgba(189, 67, 77, 0.12);
}

.latest-version {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    letter-spacing: -0.04em;
    line-height: 1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.chart-details {
    display: grid;
    gap: 10px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.repo-path,
.command-snippet {
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--ink);
    background: rgba(16, 34, 58, 0.06);
    font-family: "Cascadia Code", "Consolas", monospace;
    font-size: 0.92rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.versions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.version-chip {
    min-width: 0;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(16, 34, 58, 0.08);
    border-radius: 14px;
    background: #ffffff;
}

.version-chip strong,
.version-chip span {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.version-chip span {
    margin-top: 6px;
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.repo-label,
.error-text,
.empty-text,
.noscript-note {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.error-text,
.empty-text,
.noscript-note {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.6;
}

@media (max-width: 980px) {
    .hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .visual-card {
        min-height: 180px;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: 18px 14px 32px;
    }

    .topbar,
    .section-head,
    .chart-head {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-panel,
    .charts-section {
        padding: 20px;
        border-radius: 24px;
    }

    .refresh-button {
        width: 100%;
    }

    .status-pill {
        align-self: flex-start;
    }
}
