:root {
    --bg: #05070a;
    --bg-top: #080b0f;

    --panel: rgba(12, 18, 24, 0.82);
    --panel-hover: rgba(16, 23, 31, 0.96);

    --text: #f4f7f9;
    --muted: #83929c;

    --accent: #3545b0;
    --accent-soft: rgba(53, 69, 176, 0.18);
    --accent-border: rgba(53, 69, 176, 0.52);

    --border: rgba(255, 255, 255, 0.08);
}


/* --------------------------------------------------------------------------
   RESET
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    background: var(--bg);
}

body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px;

    background:
        radial-gradient(
            circle at 50% 8%,
            rgba(53, 69, 176, 0.17),
            transparent 34%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(53, 69, 176, 0.07),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            var(--bg-top) 0%,
            var(--bg) 100%
        );

    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* --------------------------------------------------------------------------
   EINSTEIN
   -------------------------------------------------------------------------- */

.einstein {
    width: min(100%, 1100px);
}


/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */

.einstein-header {
    margin-bottom: 64px;
}

.einstein-label {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 18px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.einstein-label::before {
    content: "";

    width: 46px;
    height: 3px;

    flex: 0 0 46px;

    border-radius: 999px;

    background: var(--accent);
}

h1 {
    margin: 0;

    font-size: clamp(64px, 12vw, 150px);
    line-height: 0.85;
    letter-spacing: -0.065em;
    font-weight: 800;
}

.tagline {
    max-width: 820px;

    margin: 28px 0 0;

    color: var(--muted);

    font-size: clamp(18px, 2.4vw, 26px);
    line-height: 1.45;
}

.tagline strong {
    color: var(--text);
    font-weight: 550;
}


/* --------------------------------------------------------------------------
   MODULES
   -------------------------------------------------------------------------- */

.modules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.module {
    position: relative;

    min-height: 230px;

    padding: 28px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow: hidden;

    background: var(--panel);

    border: 1px solid var(--border);
    border-radius: 18px;

    color: inherit;
    text-decoration: none;

    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.module::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: var(--accent);

    opacity: 0;

    transition: opacity 180ms ease;
}

.module::after {
    content: "";

    position: absolute;
    right: -55px;
    bottom: -85px;

    width: 210px;
    height: 210px;

    border-radius: 50%;

    background: var(--accent-soft);

    filter: blur(38px);

    opacity: 0;

    transition: opacity 180ms ease;
}

.module:hover,
.module:focus-visible {
    transform: translateY(-4px);

    background: var(--panel-hover);

    border-color: var(--accent-border);
}

.module:hover::before,
.module:hover::after,
.module:focus-visible::before,
.module:focus-visible::after {
    opacity: 1;
}

.module:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.module-index {
    position: relative;
    z-index: 1;

    color: var(--muted);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.module-bottom {
    position: relative;
    z-index: 1;
}

.module h2 {
    margin: 0 0 8px;

    font-size: 28px;
    font-weight: 680;
}

.module p {
    margin: 0;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.5;
}

.module.arcade {
    border-color: var(--accent-border);
}

.module.arcade::before {
    opacity: 1;
}


/* --------------------------------------------------------------------------
   STATUS LINE
   -------------------------------------------------------------------------- */

.status-line {
    margin-top: 26px;

    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--muted);

    font-size: 13px;
}

.status-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 12px rgba(53, 69, 176, 0.95);
}


/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

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

    .module {
        min-height: 180px;
    }
}

@media (max-width: 760px) {
    body {
        align-items: flex-start;

        padding: 48px 20px;
    }

    .einstein-header {
        margin-bottom: 40px;
    }

    .einstein-label {
        letter-spacing: 0.18em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .module,
    .module::before,
    .module::after {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   LIVE STATUS MODULE
   -------------------------------------------------------------------------- */

.module-live-status {
    width: fit-content;
    max-width: 100%;

    margin-top: 17px;
    padding: 6px 9px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.module-live-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;

    border-radius: 50%;
    background: #7f8c96;
}

.status-module[data-live-status="operational"] {
    border-color: rgba(70, 185, 133, 0.32);
}

.status-module[data-live-status="operational"] .module-live-status {
    color: #70cfa2;
    border-color: rgba(70, 185, 133, 0.28);
    background: rgba(70, 185, 133, 0.055);
}

.status-module[data-live-status="operational"] .module-live-dot {
    background: #46b985;
    box-shadow: 0 0 10px rgba(70, 185, 133, 0.7);
}

.status-module[data-live-status="degraded"],
.status-module[data-live-status="maintenance"],
.status-module[data-live-status="unknown"] {
    border-color: rgba(213, 174, 61, 0.34);
}

.status-module[data-live-status="degraded"] .module-live-status,
.status-module[data-live-status="maintenance"] .module-live-status,
.status-module[data-live-status="unknown"] .module-live-status {
    color: #dcc267;
    border-color: rgba(213, 174, 61, 0.3);
    background: rgba(213, 174, 61, 0.055);
}

.status-module[data-live-status="degraded"] .module-live-dot,
.status-module[data-live-status="maintenance"] .module-live-dot,
.status-module[data-live-status="unknown"] .module-live-dot {
    background: #d5ae3d;
    box-shadow: 0 0 10px rgba(213, 174, 61, 0.68);
}

.status-module[data-live-status="outage"] {
    border-color: rgba(220, 90, 103, 0.42);
}

.status-module[data-live-status="outage"] .module-live-status {
    color: #e67984;
    border-color: rgba(220, 90, 103, 0.34);
    background: rgba(220, 90, 103, 0.06);
}

.status-module[data-live-status="outage"] .module-live-dot {
    background: #dc5a67;
    box-shadow: 0 0 10px rgba(220, 90, 103, 0.7);
}
