:root {
    --bg: #020202;
    --bg-alt: #070707;
    --panel: rgba(14, 14, 14, 0.94);
    --panel-alt: rgba(18, 18, 18, 0.96);
    --border: rgba(255, 255, 255, 0.08);
    --gold: #e1b300;
    --gold-soft: #f3d470;
    --blue: #1d8fff;
    --teal: #3dc7b3;
    --text: #f5f2ea;
    --text-soft: #cfc8b7;
    --muted: #938868;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
    --radius-xl: 26px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --radius-pill: 999px;
    --max-width: 1220px;
    --font-main: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(225, 179, 0, 0.12), transparent 25%),
        radial-gradient(circle at 85% 8%, rgba(29, 143, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #000000 0%, #04060a 42%, #010101 100%);
    color: var(--text);
    font-family: var(--font-main);
}

body {
    min-height: 100vh;
}

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

code {
    font-family: Consolas, "Courier New", monospace;
    color: var(--gold-soft);
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.card {
    background:
        linear-gradient(180deg, rgba(17, 19, 25, 0.98), rgba(10, 10, 10, 0.98)),
        linear-gradient(135deg, rgba(29, 143, 255, 0.04), rgba(225, 179, 0, 0.03));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(0, 0, 0, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.95rem 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #0f0f0f;
    background:
        radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.4), transparent 32%),
        linear-gradient(180deg, rgba(245, 213, 118, 0.98), rgba(225, 179, 0, 0.88));
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(225, 179, 0, 0.16);
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-copy span {
    color: var(--text-soft);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 0.9rem;
}

.site-nav a {
    color: var(--gold);
}

.site-nav a:hover {
    color: #ffffff;
}

.nav-pill {
    padding: 0.55rem 0.92rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(225, 179, 0, 0.34);
    background: linear-gradient(180deg, rgba(225, 179, 0, 0.16), rgba(225, 179, 0, 0.06));
}

.hero {
    padding: 3rem 0 2.25rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.92fr);
    gap: 2rem;
    align-items: stretch;
}

.hero-copy,
.hero-panel,
.table-card,
.channel-card,
.format-card,
.policy-card {
    padding: 1.7rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(225, 179, 0, 0.24);
    color: var(--gold-soft);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 1rem 0 0.8rem;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 0.98;
}

.hero-copy h1 span {
    color: var(--gold-soft);
}

.hero-copy p,
.section-heading p,
.channel-card p,
.format-card p,
.policy-card p,
.panel-copy p,
.panel-copy li,
.metric-card p {
    color: var(--text-soft);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 1.5rem 0 1.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.72rem 1.1rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-weight: 700;
}

.btn-primary {
    color: #121212;
    background: linear-gradient(180deg, rgba(245, 213, 118, 1), rgba(225, 179, 0, 0.9));
    box-shadow: 0 16px 28px rgba(225, 179, 0, 0.18);
}

.btn-secondary {
    color: var(--gold-soft);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(225, 179, 0, 0.24);
}

.btn-inline {
    margin-top: 1rem;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem;
}

.metric-card {
    padding: 1.1rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        linear-gradient(120deg, rgba(225, 179, 0, 0.08), rgba(29, 143, 255, 0.05));
}

.metric-label {
    display: block;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
}

.metric-value {
    display: block;
    margin-top: 0.45rem;
    font-size: 2rem;
    line-height: 1;
}

.hero-panel {
    position: relative;
    overflow: hidden;
}

.panel-topline {
    color: var(--gold-soft);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.panel-visual {
    position: relative;
    min-height: 360px;
    margin-top: 1rem;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(29, 143, 255, 0.2);
    background:
        radial-gradient(circle at 50% 50%, rgba(20, 57, 96, 0.56), transparent 38%),
        radial-gradient(circle at 22% 18%, rgba(225, 179, 0, 0.1), transparent 18%),
        linear-gradient(180deg, rgba(13, 31, 54, 0.96), rgba(8, 11, 18, 0.96));
}

.panel-core,
.panel-node {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-weight: 700;
    z-index: 2;
}

.panel-core {
    inset: 50% auto auto 50%;
    width: 126px;
    height: 126px;
    margin-left: -63px;
    margin-top: -63px;
    color: var(--gold-soft);
    border: 1px solid rgba(245, 213, 118, 0.5);
    background: rgba(14, 14, 14, 0.92);
    box-shadow:
        0 0 0 8px rgba(245, 213, 118, 0.06),
        0 18px 48px rgba(0, 0, 0, 0.42);
}

.panel-node {
    min-width: 98px;
    min-height: 46px;
    padding: 0.55rem 0.8rem;
    font-size: 0.86rem;
    color: #dbe9ff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 18, 32, 0.84);
}

.panel-node-a { top: 44px; left: 50%; margin-left: -50px; }
.panel-node-b { top: 154px; left: 36px; }
.panel-node-c { top: 154px; right: 36px; }
.panel-node-d { bottom: 40px; left: 50%; margin-left: -44px; }

.panel-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    inset: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.ring-a {
    width: 220px;
    height: 220px;
}

.ring-b {
    width: 320px;
    height: 320px;
    border-color: rgba(225, 179, 0, 0.1);
}

.panel-visual::before,
.panel-visual::after {
    content: "";
    position: absolute;
    inset: 50%;
    width: 1px;
    height: 1px;
    z-index: 1;
}

.panel-visual::before {
    box-shadow:
        -110px -95px 0 38px rgba(24, 218, 184, 0),
        0 -120px 0 1px rgba(245, 213, 118, 0.25),
        -120px -10px 0 1px rgba(61, 199, 179, 0.4),
        120px -10px 0 1px rgba(29, 143, 255, 0.4),
        0 120px 0 1px rgba(245, 213, 118, 0.25);
}

.panel-copy ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
}

.section {
    padding: 1.25rem 0 2.25rem;
}

.section-alt {
    background:
        linear-gradient(180deg, rgba(8, 8, 8, 0.7), rgba(4, 4, 4, 0.5)),
        radial-gradient(circle at right center, rgba(225, 179, 0, 0.06), transparent 24%);
}

.section-heading {
    margin-bottom: 1.25rem;
}

.section-heading h2,
.format-card h2,
.policy-card h2,
.channel-card h3 {
    margin: 0.8rem 0 0.6rem;
    font-size: clamp(1.75rem, 2.4vw, 2.5rem);
}

.repo-table {
    width: 100%;
    border-collapse: collapse;
}

.repo-table th,
.repo-table td {
    padding: 1rem 0.85rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.repo-table th {
    color: var(--gold-soft);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.repo-table td {
    color: var(--text-soft);
}

.repo-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.repo-link {
    color: var(--gold-soft);
    font-weight: 700;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.62rem;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.pill-class {
    color: var(--gold-soft);
    border-color: rgba(225, 179, 0, 0.24);
}

.pill-channel {
    color: #d7ebff;
    border-color: rgba(29, 143, 255, 0.26);
}

.channel-grid,
.format-grid,
.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
}

.feature-list {
    margin: 0;
    padding-left: 1.1rem;
}

.feature-list li {
    color: var(--text-soft);
    margin: 0.65rem 0;
}

.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.endpoint-list a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(29, 143, 255, 0.18);
    background: rgba(255, 255, 255, 0.025);
}

.placeholder-cell {
    text-align: center;
    color: var(--muted);
}

.site-footer {
    margin-top: auto;
    padding: 1.4rem 0 1.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.8);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-row strong {
    display: block;
    color: var(--gold);
}

.footer-row span,
.footer-links a {
    color: var(--text-soft);
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .hero-grid,
    .channel-grid,
    .format-grid,
    .policy-grid,
    .metrics {
        grid-template-columns: 1fr 1fr;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header-row,
    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .metrics,
    .channel-grid,
    .format-grid,
    .policy-grid {
        grid-template-columns: 1fr;
    }

    .repo-table,
    .repo-table thead,
    .repo-table tbody,
    .repo-table tr,
    .repo-table th,
    .repo-table td {
        display: block;
        width: 100%;
    }

    .repo-table thead {
        display: none;
    }

    .repo-table tr {
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .repo-table td {
        padding: 0.45rem 0;
        border-bottom: 0;
    }

    .panel-visual {
        min-height: 310px;
    }

    .panel-node-a { top: 30px; }
    .panel-node-b { left: 12px; }
    .panel-node-c { right: 12px; }
}
