:root {
    color-scheme: dark;
    --night: #030a0f;
    --panel: rgba(5, 17, 24, 0.93);
    --cyan: #57d9ff;
    --cyan-soft: rgba(87, 217, 255, 0.28);
    --amber: #d69a45;
    --green: #75e89a;
    --text: #e6eef2;
    --muted: #91a5af;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
    background:
        linear-gradient(115deg, rgba(133, 71, 22, 0.15), transparent 28%),
        linear-gradient(245deg, rgba(25, 112, 148, 0.16), transparent 34%),
        #02070b url("assets/sd-blackened-steel-v2.png") center / 720px repeat;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 35%, rgba(59, 179, 221, 0.09), transparent 32%),
        repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,0.012) 4px);
    mix-blend-mode: screen;
}

.aurora {
    position: fixed;
    inset: -35%;
    pointer-events: none;
    background: conic-gradient(from 120deg, transparent, rgba(57, 179, 221, 0.07), transparent 32%, rgba(201, 127, 42, 0.06), transparent 66%);
    filter: blur(90px);
    animation: drift 18s ease-in-out infinite alternate;
}

.site-shell {
    position: relative;
    width: min(1680px, calc(100% - 28px));
    min-height: calc(100vh - 28px);
    margin: 14px auto;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(139, 171, 183, 0.38);
    box-shadow: 0 0 0 3px rgba(3, 10, 15, 0.8), 0 18px 70px #000, inset 0 0 55px rgba(59, 194, 238, 0.035);
    background: rgba(2, 10, 15, 0.68);
}

.site-shell::before,
.site-shell::after {
    content: "";
    position: absolute;
    z-index: 3;
    width: 92px;
    height: 92px;
    pointer-events: none;
    opacity: 0.65;
    background: url("assets/sd-nordic-corner-v2.svg") left top / contain no-repeat;
}

.site-shell::before { top: -4px; left: -4px; }
.site-shell::after { right: -4px; bottom: -4px; transform: rotate(180deg); }

.brand-banner {
    position: relative;
    border-bottom: 1px solid rgba(214, 154, 69, 0.48);
    background:
        radial-gradient(circle at 50% 45%, rgba(65, 148, 177, 0.11), transparent 58%),
        linear-gradient(90deg, rgba(90, 50, 18, 0.12), transparent 30% 70%, rgba(19, 92, 119, 0.12)),
        #03080b url("assets/sd-blackened-steel-v2.png") center / 700px repeat;
    overflow: hidden;
}

.brand-banner::before {
    content: "";
    position: absolute;
    inset: -16px;
    z-index: 0;
    background: url("assets/speed-dream-banner.png") center / cover no-repeat;
    filter: blur(12px) brightness(0.34) saturate(0.8);
    opacity: 0.82;
    transform: scale(1.035);
}

.brand-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 45px #000, inset 0 -20px 35px rgba(1, 9, 14, 0.55);
    z-index: 2;
    pointer-events: none;
}

.brand-banner img {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 980px);
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-inline: 1px solid rgba(105, 145, 158, 0.22);
    box-shadow: 0 0 55px rgba(0, 0, 0, 0.82);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.maintenance-panel {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
    padding: clamp(32px, 4.5vw, 62px) clamp(22px, 5vw, 70px);
    text-align: center;
    position: relative;
    isolation: isolate;
    border: 1px solid rgba(91, 154, 177, 0.42);
    background:
        linear-gradient(145deg, rgba(14, 39, 50, 0.72), rgba(3, 11, 16, 0.92) 48%, rgba(25, 18, 11, 0.86)),
        url("assets/sd-forged-grain.svg");
    box-shadow: 0 22px 70px rgba(0,0,0,0.62), inset 0 0 44px rgba(62, 183, 222, 0.05), 0 0 24px rgba(53, 182, 226, 0.08);
}

.maintenance-panel::before,
.maintenance-panel::after {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(214, 154, 69, 0.16);
}

.maintenance-panel::after {
    inset: -1px;
    background: linear-gradient(90deg, var(--amber), var(--cyan), var(--amber)) top / 100% 1px no-repeat;
    opacity: 0.62;
}

.rune {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    transform: rotate(45deg);
    border: 1px solid rgba(86, 220, 255, 0.75);
    background: rgba(3, 18, 25, 0.9);
    box-shadow: 0 0 0 5px rgba(55, 170, 207, 0.07), 0 0 28px rgba(53, 202, 248, 0.28), inset 0 0 15px rgba(53, 202, 248, 0.18);
}

.rune span {
    transform: rotate(-45deg);
    color: #bcefff;
    font: 34px Georgia, serif;
    text-shadow: 0 0 12px var(--cyan);
}

.eyebrow {
    margin: 0 0 11px;
    color: var(--amber);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.25rem, 5vw, 4.2rem);
    font-weight: 400;
    letter-spacing: 0.055em;
    line-height: 1.04;
    text-shadow: 0 4px 22px #000, 0 0 24px rgba(126, 217, 244, 0.15);
}

.lead {
    max-width: 700px;
    margin: 25px auto 0;
    color: #b8c8cf;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.75;
}

.forge-line {
    position: relative;
    height: 2px;
    max-width: 580px;
    margin: 35px auto;
    overflow: hidden;
    background: linear-gradient(90deg, transparent, rgba(116, 167, 183, 0.4), transparent);
}

.forge-line span {
    position: absolute;
    inset: 0 auto 0 -28%;
    width: 28%;
    background: linear-gradient(90deg, transparent, #fff, var(--cyan), transparent);
    box-shadow: 0 0 18px var(--cyan);
    animation: forge 3.6s ease-in-out infinite;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.status-card {
    min-height: 88px;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    border: 1px solid rgba(100, 142, 156, 0.25);
    background: rgba(1, 9, 13, 0.72);
    box-shadow: inset 0 1px rgba(255,255,255,0.025);
}

.status-card b,
.status-card small { display: block; }
.status-card b { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.status-card small { margin-top: 5px; color: var(--muted); line-height: 1.3; }

.status-light {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 7px currentColor, 0 0 18px currentColor;
}

.status-light.cyan { color: var(--cyan); }
.status-light.green { color: var(--green); }
.status-light.amber { color: var(--amber); }

.return-note {
    margin: 30px 0 0;
    color: #d6e5eb;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

footer {
    min-height: 60px;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #71858e;
    border-top: 1px solid rgba(128, 158, 170, 0.22);
    background: rgba(4, 12, 17, 0.88);
    font-size: 0.76rem;
    letter-spacing: 0.05em;
}

.footer-runes { color: var(--amber); letter-spacing: 0.45em; }

@keyframes forge {
    0% { left: -28%; opacity: 0; }
    15%, 70% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes drift {
    from { transform: translate3d(-2%, -1%, 0) rotate(-4deg); }
    to { transform: translate3d(3%, 2%, 0) rotate(4deg); }
}

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

@media (max-width: 760px) {
    .site-shell { width: calc(100% - 12px); min-height: calc(100vh - 12px); margin: 6px auto; }
    .brand-banner img {
        min-height: 0;
        object-fit: contain;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .maintenance-panel { width: calc(100% - 18px); margin: 28px auto; }
    .status-grid { grid-template-columns: 1fr; }
    footer { flex-direction: column; text-align: center; }
}
