
:root {
    --bg: #0b0b0d;
    --panel: #121215;
    --panel-soft: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.1);
    --text: #f5f5f5;
    --muted: #a1a1aa;
    --accent: #f97316;
    --accent-soft: rgba(249,115,22,0.16);
    --success: #22c55e;
    --shadow: 0 18px 45px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.page-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(249,115,22,0.14), transparent 25%),
        radial-gradient(circle at top right, rgba(220,38,38,0.12), transparent 30%),
        var(--bg);
}

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

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.72), rgba(0,0,0,0.84)),
        radial-gradient(circle at top right, rgba(249,115,22,0.22), transparent 30%);
}

.hero-inner, .footer-inner { position: relative; z-index: 1; }

.topbar {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0 16px;
}

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

.brand h1 {
    margin: 2px 0 0;
    font-size: clamp(1.2rem, 3vw, 1.9rem);
}

.brand-badge {
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--accent-soft);
    border: 1px solid rgba(249,115,22,0.3);
    color: #fdba74;
    font-weight: 700;
    min-width: 56px;
    text-align: center;
}

.eyebrow {
    margin: 0;
    color: #fdba74;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 700;
}

.hero-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: 1.3fr 0.8fr;
    padding: 24px 0 52px;
}

.hero-copy h2 {
    margin: 10px 0 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.02;
    max-width: 12ch;
}

.lede {
    max-width: 62ch;
    color: #d4d4d8;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 18px;
}

.cta-row, .nav-actions, .stacked-buttons, .server-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-row { margin-top: 22px; }
.server-chip-row { margin-top: 18px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    border-color: rgba(249,115,22,0.35);
}

.button.primary {
    background: var(--accent);
    color: #09090b;
    border-color: transparent;
    font-weight: 700;
}

.button.ghost {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}

.button.full {
    width: 100%;
}

.chip {
    display: inline-flex;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: #e4e4e7;
    font-size: 0.92rem;
}

.hero-panel, .card, .panel-card, .mini-card {
    backdrop-filter: blur(12px);
}

.hero-panel {
    display: grid;
    gap: 16px;
}

.panel-card, .mini-card, .card {
    background: rgba(8,8,10,0.75);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.panel-card {
    padding: 22px;
}

.panel-label, .card-label {
    color: var(--muted);
    font-size: 0.92rem;
}

.panel-value {
    margin-top: 8px;
    font-size: 1.55rem;
    font-weight: 800;
    word-break: break-word;
}

.panel-meta {
    margin-top: 10px;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}

.mini-card {
    padding: 18px;
}

.mini-label {
    color: var(--muted);
    font-size: 0.88rem;
}

.mini-value {
    margin-top: 8px;
    font-size: 1.45rem;
    font-weight: 800;
}

.mini-value.small {
    font-size: 1rem;
    line-height: 1.5;
}

.section {
    padding: 42px 0 0;
}

.section-head {
    display: flex;
    gap: 18px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-head.compact {
    margin-bottom: 12px;
}

.section-head h3, .section-head h4, .card h3, .card h4 {
    margin: 6px 0 0;
}

.section-note, .muted {
    color: var(--muted);
}

.cards-3, .cards-2, .split-grid {
    display: grid;
    gap: 18px;
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.split-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    padding: 24px;
}

.big-number {
    margin: 12px 0 10px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
}

.big-number.text-wrap {
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.25;
}

.progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin: 14px 0 12px;
}

.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fb923c, var(--accent));
}

.chart-card { padding-bottom: 18px; }
.history-chart {
    width: 100%;
    height: 280px;
    display: block;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.chart-legend {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--muted);
    margin-top: 12px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

th, td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-align: left;
}

th { color: var(--muted); font-weight: 600; }
tbody tr:hover { background: rgba(255,255,255,0.02); }

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

.clean-list {
    display: grid;
    gap: 12px;
    padding-left: 18px;
    color: #e4e4e7;
}

.footer {
    margin-top: 46px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.28);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 28px;
}

@media (max-width: 980px) {
    .hero-grid,
    .cards-3,
    .cards-2,
    .split-grid {
        grid-template-columns: 1fr;
    }

    .topbar,
    .section-head,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 640px) {
    .container { width: min(100% - 22px, 1200px); }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-grid { padding-bottom: 30px; }
    .button { width: 100%; }
    .nav-actions, .cta-row, .stacked-buttons { width: 100%; }
}


.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.06);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: #e4e4e7;
}

.legal-shell {
    padding: 42px 0;
}

.legal-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: rgba(8,8,10,0.82);
    box-shadow: var(--shadow);
}

.legal-card h1 {
    margin: 10px 0 6px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.legal-meta {
    display: grid;
    gap: 10px;
    padding: 16px 0 18px;
    color: #e4e4e7;
}

.legal-content {
    line-height: 1.8;
    color: #e4e4e7;
    white-space: normal;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 18px;
}

.legal-actions {
    margin-top: 22px;
}

@media (max-width: 980px) {
    .footer-links {
        width: 100%;
    }
}
