* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #edf2f5;
    color: #132232;

    --navy-950: #071827;
    --navy-900: #0f1b2d;
    --navy-800: #132b43;
    --slate-700: #3a4656;
    --slate-500: #697780;
    --cloud: #f7f9fb;
    --silver: #e6e9ee;
    --teal: #2d8c8c;
    --teal-soft: #dff1f1;
    --red: #c23b34;
    --green: #198754;
    --amber: #c59a18;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 42px 28px;
    background:
        radial-gradient(circle at 12% 10%, rgba(45, 140, 140, 0.13), transparent 28%),
        radial-gradient(circle at 92% 16%, rgba(194, 59, 52, 0.07), transparent 22%),
        linear-gradient(145deg, #f8fafb 0%, #e8eef2 58%, #edf2f5 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        linear-gradient(45deg, transparent 46%, rgba(15, 27, 45, 0.06) 47%, rgba(15, 27, 45, 0.06) 53%, transparent 54%),
        linear-gradient(-45deg, transparent 46%, rgba(45, 140, 140, 0.05) 47%, rgba(45, 140, 140, 0.05) 53%, transparent 54%);
    background-size: 48px 48px;
}

.container {
    position: relative;
    width: min(960px, 100%);
    padding: 44px 48px 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.965);
    border: 1px solid rgba(19, 43, 67, 0.10);
    border-radius: 28px;
    box-shadow:
        0 28px 90px rgba(7, 24, 39, 0.15),
        0 2px 8px rgba(7, 24, 39, 0.06);
}

.container::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--navy-900), var(--teal), var(--red), var(--teal), var(--navy-900));
}

.corner-geometry {
    position: absolute;
    width: 340px;
    height: 340px;
    top: -150px;
    right: -130px;
    opacity: 0.08;
    transform: rotate(45deg);
    background:
        linear-gradient(90deg, var(--navy-900) 0 18%, transparent 18% 32%, var(--teal) 32% 45%, transparent 45% 60%, var(--navy-900) 60% 76%, transparent 76%),
        linear-gradient(var(--navy-900) 0 18%, transparent 18% 32%, var(--teal) 32% 45%, transparent 45% 60%, var(--navy-900) 60% 76%, transparent 76%);
    border: 16px solid var(--navy-900);
}

.brand-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.brand-mark {
    width: 82px;
    height: 82px;
    flex: 0 0 auto;
    filter: drop-shadow(0 10px 18px rgba(15, 27, 45, 0.12));
}

.brand-copy {
    min-width: 0;
}

.eyebrow {
    margin-bottom: 5px;
    color: var(--slate-700);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(2.6rem, 6vw, 4.45rem);
    line-height: 0.92;
    letter-spacing: 0.05em;
}

.brand-subtitle {
    margin: 7px 0 0;
    color: var(--teal);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.environment-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    margin-top: 4px;
    padding: 9px 13px;
    color: #ffffff;
    background: var(--navy-900);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(15, 27, 45, 0.15);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.environment-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(45, 140, 140, 0.20);
}

.weave-divider {
    position: relative;
    z-index: 1;
    height: 36px;
    margin: 26px 0 10px;
    overflow: hidden;
}

.weave-divider img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
}

.intro {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 12px 0 30px;
    color: #5b6871;
    font-size: 1rem;
    line-height: 1.65;
}

.system-status {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 1px solid #d7dee3;
    border-radius: 18px;
    background: #f7f9fa;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.system-status:hover {
    transform: translateY(-1px);
}

.status-orb {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #8c99a2;
    box-shadow: 0 0 0 8px rgba(140, 153, 162, 0.12);
}

.system-status--online {
    border-color: rgba(25, 135, 84, 0.34);
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.11), rgba(45, 140, 140, 0.035));
    box-shadow: 0 18px 45px rgba(25, 135, 84, 0.10);
}

.system-status--online .status-orb {
    background: var(--green);
    box-shadow: 0 0 0 8px rgba(25, 135, 84, 0.13), 0 0 26px rgba(25, 135, 84, 0.65);
}

.system-status--online .status-orb::after {
    content: '';
    position: absolute;
    inset: -9px;
    border: 2px solid rgba(25, 135, 84, 0.35);
    border-radius: 50%;
    animation: pulse 1.8s ease-out infinite;
}

.system-status--setup {
    border-color: #d8c98c;
    background: #fffdf4;
}

.system-status--setup .status-orb {
    background: var(--amber);
    box-shadow: 0 0 0 8px rgba(197, 154, 24, 0.13);
}

.system-status--warning,
.system-status--offline {
    border-color: #dfb3b3;
    background: linear-gradient(135deg, #fff7f7, #fffafa);
}

.system-status--warning .status-orb,
.system-status--offline .status-orb {
    background: var(--red);
    box-shadow: 0 0 0 8px rgba(194, 59, 52, 0.12);
}

.status-copy {
    display: grid;
    gap: 5px;
}

.status-label {
    color: #64727c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#status-title {
    color: var(--navy-950);
    font-size: 1.42rem;
}

#status-detail {
    color: #62717b;
    line-height: 1.45;
}

.service-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.service-card {
    position: relative;
    min-height: 88px;
    padding: 18px 18px 16px;
    overflow: hidden;
    border: 1px solid #e0e5e8;
    border-radius: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow: 0 8px 22px rgba(19, 43, 67, 0.04);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--navy-800), var(--teal));
    opacity: 0.8;
}

.service-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--slate-500);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.service-card strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--navy-950);
    font-size: 0.98rem;
}

.status-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 15px;
}

.last-checked {
    min-height: 1em;
    margin: 0;
    color: #7a8790;
    font-size: 0.76rem;
}

.stack-label {
    color: #93a0a9;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

@keyframes pulse {
    0% {
        transform: scale(0.75);
        opacity: 0.85;
    }
    80%, 100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body {
        padding: 18px;
    }

    .container {
        padding: 34px 22px 26px;
        border-radius: 22px;
    }

    .brand-header {
        display: grid;
    }

    .brand-mark {
        width: 68px;
        height: 68px;
    }

    .environment-chip {
        justify-self: start;
        margin-top: 0;
    }

    .status-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 560px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 470px) {
    .brand-lockup {
        align-items: flex-start;
        gap: 14px;
    }

    .brand-mark {
        width: 56px;
        height: 56px;
    }

    h1 {
        font-size: 2.35rem;
    }

    .brand-subtitle {
        font-size: 0.72rem;
    }

    .system-status {
        align-items: flex-start;
        padding: 20px;
    }
}
