:root {
    color-scheme: dark;
    --ink: #f4f8fb;
    --muted: #9fb0c2;
    --surface: #101d2e;
    --line: rgba(255, 255, 255, 0.1);
    --green: #20d6a6;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #07111f; }

body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background: radial-gradient(circle at 82% 18%, rgba(41, 151, 232, 0.15), transparent 34rem), radial-gradient(circle at 12% 80%, rgba(32, 214, 166, 0.08), transparent 28rem), #07111f;
    font-family: Inter, Aptos, "Segoe UI", sans-serif;
}

a { color: inherit; }
.site-shell { min-height: 100vh; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.brand img { width: 38px; height: 38px; }
.brand strong { font-size: 0.8rem; letter-spacing: 0.13em; }
.topbar nav { display: flex; align-items: center; gap: 24px; }
.topbar nav > a:not(.button) { color: var(--muted); text-decoration: none; }
.identity { max-width: 220px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: center;
    min-height: 620px;
    gap: 8vw;
    padding: 56px 0 80px;
}

.eyebrow { display: block; margin-bottom: 22px; color: var(--green); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 28px; font-size: clamp(2.9rem, 6.2vw, 5.8rem); font-weight: 500; letter-spacing: -0.055em; line-height: 0.98; }
h1 em { color: var(--green); font-style: normal; }

.hero-copy > p, .dashboard-heading > p, .access-panel > p { max-width: 660px; margin-bottom: 34px; color: var(--muted); font-size: 1.12rem; line-height: 1.7; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 650; text-decoration: none; transition: transform 140ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #04130f; background: var(--green); }
.button-secondary { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, 0.04); }

.pulse-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.pulse-visual::before { position: absolute; width: 290px; height: 290px; border-radius: 50%; background: rgba(32, 214, 166, 0.1); box-shadow: 0 0 120px rgba(32, 214, 166, 0.18); content: ""; }
.pulse-visual img { position: relative; width: 210px; filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.35)); }
.pulse-line { position: absolute; right: -10%; left: -10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(32, 214, 166, 0.55), transparent); }

.promise, .dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin-bottom: 72px; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.promise article, .dashboard-grid article { padding: 30px; background: rgba(16, 29, 46, 0.94); }
.promise span, .dashboard-grid span { display: block; margin-bottom: 26px; color: var(--green); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.promise h2 { margin-bottom: 10px; font-size: 1.35rem; }
.promise p, .dashboard-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.dashboard-heading, .access-panel { padding: 100px 0 56px; }
.dashboard-heading h1, .access-panel h1 { max-width: 850px; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.api-identity { display: grid; grid-template-columns: minmax(210px, 0.7fr) minmax(220px, 0.8fr) minmax(300px, 1.5fr); align-items: center; gap: 28px; margin-bottom: 24px; padding: 22px 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16, 29, 46, 0.78); }
.api-identity strong { font-size: 1.05rem; }
.api-identity p { margin: 0; color: var(--muted); line-height: 1.5; }
.api-status { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.api-status::before { width: 9px; height: 9px; border-radius: 50%; content: ""; }
.api-status-online::before { background: var(--green); box-shadow: 0 0 16px rgba(32, 214, 166, 0.8); }
.api-status-offline::before { background: #ffb55e; box-shadow: 0 0 16px rgba(255, 181, 94, 0.55); }
.dashboard-grid { grid-template-columns: repeat(2, 1fr); }
.dashboard-grid strong { display: block; margin-bottom: 10px; font-size: 1.22rem; }
.correlation { font-family: "Cascadia Code", Consolas, monospace; }

#blazor-error-ui { position: fixed; right: 20px; bottom: 20px; left: 20px; z-index: 1000; display: none; padding: 16px 50px 16px 18px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px; color: var(--ink); background: #7b2531; }
#blazor-error-ui .reload { margin-left: 8px; }
#blazor-error-ui .dismiss { position: absolute; top: 13px; right: 18px; cursor: pointer; }

@media (max-width: 760px) {
    .topbar, main { width: min(100% - 32px, 1180px); }
    .topbar { align-items: flex-start; }
    .topbar nav { gap: 12px; }
    .identity, .topbar nav > a:not(.button) { display: none; }
    .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 72px; }
    .pulse-visual { min-height: 280px; }
    .pulse-visual img { width: 160px; }
    .api-identity { grid-template-columns: 1fr; gap: 12px; }
    .promise, .dashboard-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
