
:root {
    color-scheme: dark;
    --bg: #020503;
    --panel: rgba(3, 10, 6, .88);
    --line: rgba(66, 255, 124, .24);
    --line-strong: rgba(66, 255, 124, .58);
    --green: #42ff7c;
    --green-soft: #9affb6;
    --cyan: #4eead7;
    --amber: #ffc857;
    --red: #ff5c70;
    --muted: #7b9383;
}

* { box-sizing: border-box; }

html, body {
    min-height: 100%;
    margin: 0;
    background: var(--bg);
    color: #eafdef;
    font-family: Consolas, "Courier New", monospace;
}

body {
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 20%, rgba(0, 84, 34, .16), transparent 36%),
        linear-gradient(rgba(14, 255, 90, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 255, 90, .025) 1px, transparent 1px),
        var(--bg);
    background-size: auto, 32px 32px, 32px 32px, auto;
}

.matrix {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .18;
    pointer-events: none;
}

.shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.panel {
    width: min(980px, 100%);
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(3, 13, 7, .94), rgba(0, 3, 1, .88));
    box-shadow: 0 0 80px rgba(0, 255, 94, .07), inset 0 0 55px rgba(0, 255, 94, .025);
    backdrop-filter: blur(8px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
}

.brand__logo {
    width: clamp(96px, 14vw, 150px);
    height: auto;
    filter: drop-shadow(0 0 18px rgba(78, 234, 215, .2));
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--green-soft);
    letter-spacing: .28em;
    font-size: clamp(.72rem, 1.4vw, .92rem);
}

h1 {
    margin: 0;
    color: var(--cyan);
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    line-height: .92;
    letter-spacing: .09em;
    text-shadow: 0 0 24px rgba(78, 234, 215, .18);
}

.subtitle {
    margin: 16px 0 0;
    color: #a9b6ad;
    letter-spacing: .14em;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 34px 0;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border: 1px solid var(--line);
    background: rgba(0, 15, 6, .48);
}

.status-card small {
    display: block;
    color: var(--muted);
    margin-bottom: 5px;
}

.status-card strong {
    color: var(--green);
    letter-spacing: .08em;
}

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

.status-card--pending {
    border-color: rgba(255, 200, 87, .32);
}
.status-card--pending strong { color: var(--amber); }
.status-card--pending .status-dot {
    background: var(--amber);
    box-shadow: 0 0 16px rgba(255, 200, 87, .75);
}

.status-card--error {
    border-color: rgba(255, 92, 112, .36);
}
.status-card--error strong { color: var(--red); }
.status-card--error .status-dot {
    background: var(--red);
    box-shadow: 0 0 16px rgba(255, 92, 112, .8);
}

.terminal {
    min-height: 130px;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 22px;
    border-left: 2px solid var(--green);
    background: rgba(0, 0, 0, .55);
    color: #65b87d;
    font-size: .92rem;
}

.terminal span:last-child { color: var(--green); }

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
}

.health-link,
.console-button {
    width: 100%;
    min-height: 66px;
    padding: 14px 18px;
    border: 1px solid var(--line-strong);
    background: rgba(0, 18, 7, .52);
    color: var(--green);
    font: inherit;
    letter-spacing: .1em;
    text-align: center;
}

.health-link {
    display: grid;
    place-content: center;
    text-decoration: none;
    transition: background .2s ease, box-shadow .2s ease;
}

.health-link:hover,
.health-link:focus-visible {
    background: rgba(0, 50, 20, .58);
    box-shadow: 0 0 20px rgba(66, 255, 124, .14);
    outline: none;
}

.console-button {
    cursor: not-allowed;
    opacity: .68;
}

.health-link span,
.console-button span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .14em;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    color: #526459;
    font-size: .78rem;
}

@keyframes pulse {
    50% { opacity: .35; transform: scale(.78); }
}

@media (max-width: 760px) {
    body { overflow: auto; }
    .brand { align-items: flex-start; }
    .status-grid { grid-template-columns: repeat(2, 1fr); }
    .actions { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .shell { padding: 12px; }
    .panel { padding: 24px; }
    .brand { flex-direction: column; }
    .status-grid { grid-template-columns: 1fr; }
    footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .matrix { display: none; }
    .status-dot { animation: none; }
}
