:root {
    color-scheme: dark;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: #071019;
    color: #eef6ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top right,
            rgba(55, 130, 246, 0.18),
            transparent 34%
        ),
        #071019;
}

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 28px;
}

.hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

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

h1 {
    margin-bottom: 8px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1;
    letter-spacing: -0.04em;
}

h2 {
    margin-bottom: 0;
    font-size: 26px;
}

.eyebrow {
    margin-bottom: 10px;
    color: #6fa9ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.subtitle {
    margin-bottom: 0;
    color: #92a6ba;
    font-size: 16px;
}

.badge {
    padding: 9px 13px;
    border: 1px solid #294056;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-loading {
    color: #ffce6f;
}

.badge-ok {
    color: #62e6a4;
    border-color: rgba(98, 230, 164, 0.4);
}

.badge-error {
    color: #ff7f8d;
    border-color: rgba(255, 127, 141, 0.4);
}

.summary-grid,
.timeframe-grid {
    display: grid;
    gap: 14px;
}

.summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 38px;
}

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

.card,
.timeframe-card {
    border: 1px solid #1e3244;
    border-radius: 16px;
    background: rgba(13, 27, 39, 0.86);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.card {
    min-height: 112px;
    padding: 20px;
}

.label {
    display: block;
    margin-bottom: 12px;
    color: #8296aa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.card strong {
    font-size: 23px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 16px;
}

.timeframe-card {
    padding: 22px;
}

.timeframe-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.timeframe-title h3 {
    margin: 0;
    font-size: 27px;
}

.direction {
    color: #a9bed1;
    font-size: 13px;
    font-weight: 800;
}

.sequence {
    min-height: 48px;
    margin-bottom: 20px;
    padding: 12px;
    overflow-wrap: anywhere;
    border-radius: 10px;
    background: #08131d;
    color: #6fa9ff;
    font-family: monospace;
    line-height: 1.5;
}

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.metric {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.metric span {
    display: block;
    margin-bottom: 5px;
    color: #8094a7;
    font-size: 11px;
    text-transform: uppercase;
}

.metric strong {
    font-size: 17px;
}

footer {
    padding-top: 34px;
    color: #64788b;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 820px) {
    .summary-grid,
    .timeframe-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column;
    }
}
