:root {
    --bd-blue: #0a4ea3;
    --bd-blue-dark: #063f83;
    --bd-cyan: #1e9bd7;
    --ink: #102033;
    --muted: #64748b;
    --line: #dbe7f4;
    --panel: #ffffff;
    --online: #18a058;
    --maintenance: #f59e0b;
    --unavailable: #dc2626;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(10, 78, 163, 0.12), rgba(255, 255, 255, 0) 45%),
        linear-gradient(315deg, rgba(30, 155, 215, 0.13), rgba(255, 255, 255, 0) 42%),
        #f7fbff;
}

.page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 30px 18px;
}

.gateway {
    width: min(1120px, 100%);
    overflow: hidden;
    border: 1px solid rgba(219, 231, 244, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 30px 90px rgba(5, 40, 92, 0.14);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 86px;
    padding: 20px clamp(22px, 4vw, 46px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    width: min(218px, 56vw);
    align-items: center;
    text-decoration: none;
}

.brand img {
    display: block;
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 60, 110, 0.08);
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--unavailable);
    box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.12);
}

.status-dot.online {
    background: var(--online);
    box-shadow: 0 0 0 5px rgba(24, 160, 88, 0.12);
}

.status-dot.maintenance {
    background: var(--maintenance);
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.14);
}

.status-pill strong {
    color: var(--ink);
    font-weight: 800;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    gap: clamp(28px, 5vw, 60px);
    align-items: center;
    padding: clamp(30px, 5vw, 58px);
}

.copy-block {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--bd-blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    max-width: 660px;
    margin: 0;
    color: #092344;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: 0;
}

.lead {
    max-width: 680px;
    margin: 22px 0 0;
    color: #334155;
    font-size: clamp(17px, 1.6vw, 19px);
    line-height: 1.65;
}

.copy {
    max-width: 710px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.test-panel {
    max-width: 690px;
    margin-top: 28px;
    padding: 22px;
    border: 1px solid rgba(191, 213, 238, 0.85);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 18px 44px rgba(10, 78, 163, 0.08);
}

.progress-track {
    width: 100%;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #dceaf8;
}

.progress-bar {
    display: block;
    width: 6%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--bd-blue), var(--bd-cyan));
    box-shadow: 0 0 18px rgba(10, 78, 163, 0.32);
    transition: width 500ms ease;
}

.checks {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.4;
}

.check-item span {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 2px solid #b7cbe1;
    border-radius: 999px;
    background: #fff;
}

.check-item.active {
    color: var(--bd-blue-dark);
    font-weight: 800;
}

.check-item.active span {
    border-color: var(--bd-blue);
    border-top-color: transparent;
    animation: spin 900ms linear infinite;
}

.check-item.done {
    color: #24543a;
}

.check-item.done span {
    border-color: var(--online);
    background: var(--online);
    box-shadow: 0 0 0 4px rgba(24, 160, 88, 0.12);
}

.unavailable-panel {
    margin-top: 24px;
}

.retry-panel {
    max-width: 690px;
}

.countdown-card {
    display: inline-grid;
    min-width: 142px;
    min-height: 118px;
    place-items: center;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #bfd5ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(10, 78, 163, 0.1);
    text-align: center;
}

.countdown-card span {
    color: var(--bd-blue);
    font-size: 50px;
    font-weight: 900;
    line-height: 1;
}

.countdown-card small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.contact-form {
    display: grid;
    max-width: 690px;
    gap: 14px;
    margin-top: 22px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
}

.contact-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #bfd5ee;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 0 14px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input:focus {
    border-color: var(--bd-blue);
    box-shadow: 0 0 0 4px rgba(10, 78, 163, 0.12);
}

.form-message {
    min-height: 22px;
    margin: 0;
    color: var(--bd-blue-dark);
    font-size: 14px;
    font-weight: 700;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

button.button {
    cursor: pointer;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--bd-blue);
    color: #fff;
    box-shadow: 0 14px 28px rgba(10, 78, 163, 0.24);
}

.button-secondary {
    border-color: #bfd5ee;
    background: #fff;
    color: var(--bd-blue-dark);
}

.access-visual {
    position: relative;
    display: grid;
    min-height: 410px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(191, 213, 238, 0.82);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(10, 78, 163, 0.11), rgba(255, 255, 255, 0.78)),
        #f3f8ff;
}

.orbit {
    position: absolute;
    inset: 42px;
    border: 1px solid rgba(10, 78, 163, 0.13);
    border-radius: 999px;
    animation: breathe 3.4s ease-in-out infinite;
}

.orbit span {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--bd-cyan);
    box-shadow: 0 0 0 8px rgba(30, 155, 215, 0.14);
}

.orbit span:nth-child(1) {
    top: 13%;
    left: 18%;
}

.orbit span:nth-child(2) {
    top: 25%;
    right: 12%;
    background: var(--bd-blue);
}

.orbit span:nth-child(3) {
    right: 24%;
    bottom: 12%;
}

.secure-node {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(245px, 76vw);
    min-height: 210px;
    place-items: center;
    padding: 30px;
    border: 1px solid rgba(10, 78, 163, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 26px 70px rgba(10, 78, 163, 0.18);
}

.secure-node img {
    display: block;
    max-width: 178px;
    max-height: 82px;
    object-fit: contain;
}

.lock {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-top: 24px;
    border-radius: 999px;
    background: var(--bd-blue);
    color: #fff;
    box-shadow: 0 16px 34px rgba(10, 78, 163, 0.28);
}

.lock svg {
    width: 30px;
    height: 30px;
}

.lock path,
.lock rect {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.access-meta {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #59708d;
    font-size: 13px;
}

.access-meta strong {
    color: var(--bd-blue-dark);
}

@keyframes breathe {
    0%, 100% {
        transform: scale(0.98);
        opacity: 0.65;
    }

    50% {
        transform: scale(1.03);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 860px) {
    .page {
        align-items: flex-start;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .access-visual {
        min-height: 300px;
    }
}

@media (max-width: 520px) {
    .page {
        padding: 18px 12px;
    }

    .status-pill {
        align-items: flex-start;
        flex-wrap: wrap;
        white-space: normal;
    }

    .test-panel {
        padding: 18px;
    }

    .button {
        width: 100%;
    }
}
