:root {
    --ink: #dfffea;
    --muted: #7d9c88;
    --green: #51ff8b;
    --green-bright: #97ffb9;
    --green-dark: #183c27;
    --line: rgba(118, 255, 162, 0.16);
    --panel: rgba(8, 20, 13, 0.78);
    --bg: #040906;
    --danger: #ff9f68;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color-scheme: dark;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 50% -20%, rgba(53, 174, 94, 0.17), transparent 38rem),
        linear-gradient(180deg, #07110c 0%, var(--bg) 50%, #030704 100%);
    font-family: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
    line-height: 1.5;
}

body::before {
    position: fixed;
    z-index: 20;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.22;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 3px,
        rgba(0, 0, 0, 0.26) 4px
    );
}

a {
    color: var(--green);
    text-underline-offset: 0.25em;
}

.grid {
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    opacity: 0.24;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.ambient {
    position: fixed;
    z-index: 0;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.11;
    background: var(--green);
}

.ambient-one {
    top: 5rem;
    left: -12rem;
}

.ambient-two {
    top: 36rem;
    right: -14rem;
}

.shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    display: flex;
    gap: 20px;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    padding: 9px;
    border: 1px solid var(--green);
    box-shadow: inset 0 0 18px rgba(81, 255, 139, 0.1), 0 0 22px rgba(81, 255, 139, 0.08);
}

.brand-mark i {
    display: block;
    width: 4px;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.brand-mark i:nth-child(1) { height: 9px; }
.brand-mark i:nth-child(2) { height: 20px; }
.brand-mark i:nth-child(3) { height: 14px; }

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    letter-spacing: 0.13em;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.18em;
}

.live {
    display: flex;
    min-width: 0;
    align-items: center;
    flex: 0 1 auto;
    gap: 10px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.14em;
}

.live span:last-child {
    overflow-wrap: anywhere;
}

.live-dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: pulse 1.8s ease-in-out infinite;
}

.hero {
    padding: 92px 0 68px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 38px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.18em;
}

.eyebrow span {
    color: var(--green);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: clamp(40px, 8vw, 110px);
    align-items: end;
}

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

.hero h1,
.legal-card h1 {
    margin-bottom: 28px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(58px, 8.4vw, 112px);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.hero h1 em {
    color: transparent;
    font-style: normal;
    -webkit-text-stroke: 1.5px var(--green);
    filter: drop-shadow(0 0 14px rgba(81, 255, 139, 0.18));
}

.lede {
    max-width: 650px;
    margin-bottom: 0;
    color: #9bb5a3;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
}

.clock-module {
    position: relative;
    padding: 26px 28px 24px;
    overflow: hidden;
    border: 1px solid rgba(81, 255, 139, 0.34);
    background:
        linear-gradient(135deg, rgba(81, 255, 139, 0.07), transparent 50%),
        rgba(4, 13, 8, 0.9);
    box-shadow: inset 0 0 45px rgba(81, 255, 139, 0.05), 0 18px 60px rgba(0, 0, 0, 0.24);
}

.clock-module::after {
    position: absolute;
    top: 0;
    left: -40%;
    width: 30%;
    height: 100%;
    content: "";
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(81, 255, 139, 0.08), transparent);
    animation: scan 5s ease-in-out infinite;
}

.clock-label,
.clock-footer {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.14em;
}

.clock-label > span,
.clock-footer > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

#clock {
    display: block;
    margin: 14px 0 12px;
    color: var(--green-bright);
    font-family: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
    font-size: clamp(43px, 5.7vw, 70px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.08em;
    text-shadow: 0 0 18px rgba(81, 255, 139, 0.3);
}

.signal-bars {
    display: flex;
    height: 15px;
    align-items: end;
    gap: 2px;
}

.signal-bars i {
    display: block;
    width: 3px;
    background: var(--green);
}

.signal-bars i:nth-child(1) { height: 4px; }
.signal-bars i:nth-child(2) { height: 7px; }
.signal-bars i:nth-child(3) { height: 11px; }
.signal-bars i:nth-child(4) { height: 15px; }

.notice {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding: 17px 20px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: rgba(9, 25, 15, 0.5);
    font-size: 11px;
}

.notice p {
    margin: 0;
}

.notice-icon {
    display: grid;
    flex: 0 0 25px;
    height: 25px;
    place-items: center;
    border: 1px solid var(--green-dark);
    border-radius: 50%;
    color: var(--green);
}

.capture-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 27px 30px;
    border: 1px solid rgba(81, 255, 139, 0.32);
    background: linear-gradient(90deg, rgba(38, 107, 59, 0.19), rgba(7, 17, 11, 0.86));
    box-shadow: inset 3px 0 0 var(--green);
}

.capture-main span,
.capture-main strong,
.record-id span,
.record-id code {
    display: block;
}

.capture-main,
.record-id {
    min-width: 0;
}

.capture-kicker,
.record-id span {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.16em;
}

.capture-main strong {
    margin-bottom: 4px;
    color: var(--green-bright);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
}

#capture-detail {
    color: var(--muted);
    font-size: 11px;
}

.record-id {
    max-width: 340px;
    text-align: right;
}

.record-id code {
    overflow: hidden;
    color: var(--green);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.capture-error .capture-panel {
    border-color: rgba(255, 159, 104, 0.35);
    box-shadow: inset 3px 0 0 var(--danger);
}

.capture-error .capture-main strong {
    color: var(--danger);
}

.data-section {
    padding-top: 88px;
}

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

.section-heading > div {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 17px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.section-number,
.section-tag {
    color: var(--green);
    font-size: 10px;
    letter-spacing: 0.13em;
}

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

.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.metrics-featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
    min-width: 0;
    min-height: 126px;
    padding: 23px 22px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    transition: border-color 180ms ease, background 180ms ease;
}

.metric:hover {
    border-color: rgba(81, 255, 139, 0.42);
    background: rgba(15, 37, 23, 0.88);
}

.metric span,
.metric strong {
    display: block;
}

.metric span {
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.14em;
}

.metric strong {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
}

.metric-featured-item strong {
    color: var(--green-bright);
    font-size: 17px;
}

.metric.loading strong {
    width: 62%;
    height: 17px;
    background: linear-gradient(90deg, var(--green-dark), rgba(81, 255, 139, 0.25), var(--green-dark));
    background-size: 200% 100%;
    animation: shimmer 1.8s linear infinite;
}

.headers-section {
    padding-bottom: 32px;
}

details {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

summary {
    display: flex;
    gap: 18px;
    padding: 25px 4px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
}

summary::-webkit-details-marker {
    display: none;
}

summary b {
    margin-right: 13px;
    color: var(--green);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
}

summary > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.summary-action {
    flex: 0 0 auto;
    color: var(--muted);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    letter-spacing: 0.13em;
}

details[open] .summary-action {
    color: var(--green);
}

.headers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 28px;
}

.headers-grid .metric {
    min-height: auto;
}

footer {
    display: flex;
    gap: 28px;
    min-height: 150px;
    align-items: center;
    justify-content: space-between;
    margin-top: 72px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.12em;
}

footer strong,
footer span {
    display: block;
}

footer strong {
    margin-bottom: 5px;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

footer p {
    margin: 0;
}

.noscript {
    position: fixed;
    z-index: 30;
    right: 20px;
    bottom: 20px;
    left: 20px;
    padding: 15px;
    border: 1px solid var(--danger);
    color: #ffe0d0;
    background: #28140b;
    text-align: center;
}

.legal-shell {
    max-width: 900px;
    padding: 70px 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 32px;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-decoration: none;
}

.legal-card {
    padding: clamp(28px, 7vw, 72px);
    border: 1px solid var(--line);
    background: rgba(6, 17, 10, 0.88);
}

.legal-card h1 {
    margin-top: 50px;
    font-size: clamp(48px, 8vw, 78px);
}

.legal-card h2 {
    margin-top: 44px;
    margin-bottom: 12px;
    color: var(--green);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
}

.legal-card p {
    color: #9bb5a3;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.75;
}

.legal-card .legal-note {
    margin-top: 52px;
    padding: 20px;
    border-left: 2px solid var(--green);
    background: rgba(81, 255, 139, 0.06);
    font-size: 13px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes scan {
    0%, 25% { left: -40%; }
    75%, 100% { left: 120%; }
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .clock-module {
        max-width: 560px;
    }

    .metrics,
    .metrics-featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .shell {
        width: min(100% - 24px, 1180px);
    }

    .topbar {
        min-height: 74px;
    }

    .brand small {
        display: none;
    }

    .live {
        max-width: min(145px, 48%);
        justify-content: flex-end;
        text-align: right;
    }

    .hero {
        padding: 64px 0 46px;
    }

    .hero h1 {
        font-size: clamp(52px, 18vw, 78px);
    }

    .clock-module {
        padding: 22px 20px;
    }

    #clock {
        font-size: clamp(42px, 14vw, 62px);
    }

    .notice {
        align-items: flex-start;
    }

    .capture-panel {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }

    .record-id {
        max-width: 100%;
        text-align: left;
    }

    .metrics,
    .metrics-featured,
    .headers-grid {
        grid-template-columns: 1fr;
    }

    .metric {
        min-height: 105px;
    }

    .section-tag {
        display: none;
    }

    summary {
        align-items: flex-start;
        font-size: 16px;
    }

    footer {
        display: block;
        min-height: 0;
        padding: 38px 0;
    }

    footer p {
        margin-top: 18px;
    }
}
