/* ===========================================================
   Tokens
   =========================================================== */
:root {
    --navy-950: #0b1220;
    --blue-600: #2555d9;
    --blue-500: #3b6ff0;
    --blue-100: #e8effe;
    --emerald-500: #10b981;
    --emerald-100: #e3f9f0;
    --slate-900: #0f172a;
    --slate-600: #4b5768;
    --slate-400: #8996a8;
    --slate-200: #e3e8ef;
    --slate-100: #f1f4f9;
    --white: #ffffff;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--slate-100);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 24px;
}

/* ===========================================================
   Ambient background — faint network / blueprint grid
   =========================================================== */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(var(--slate-200) 1px, transparent 1px),
        linear-gradient(90deg, var(--slate-200) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
    mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
    opacity: 0.7;
}

.grid-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 15%, rgba(37, 85, 217, 0.10), transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.08), transparent 45%);
}

/* ===========================================================
   Card
   =========================================================== */
.card {
    position: relative;
    z-index: 1;
    width: 480px;
    max-width: 100%;
    background: var(--white);
    padding: 48px 42px 36px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--slate-200);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 48px -12px rgba(15, 23, 42, 0.14);
}

.logo {
    width: 76px;
    margin-bottom: 28px;
}

/* ===========================================================
   Signature element — success badge with signal pulse
   =========================================================== */
.status-badge {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-badge::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--emerald-500);
    box-shadow: 0 8px 20px -6px rgba(16, 185, 129, 0.55);
}

.check-icon {
    position: relative;
    width: 32px;
    height: 32px;
    color: var(--white);
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--emerald-500);
    animation: pulse 2.2s cubic-bezier(0.3, 0, 0.6, 1) 2;
    opacity: 0;
}

.ring-delay {
    animation-delay: 0.5s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }

    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pulse-ring {
        animation: none;
        display: none;
    }
}

/* ===========================================================
   Copy
   =========================================================== */
h1 {
    margin-top: 24px;
    font-family: var(--font-display);
    color: var(--slate-900);
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin-top: 12px;
    color: var(--slate-600);
    line-height: 1.65;
    font-size: 15px;
}

/* ===========================================================
   Connection log — terminal-style status readout
   =========================================================== */
.log {
    margin-top: 28px;
    background: var(--slate-900);
    border-radius: 12px;
    padding: 18px 20px 16px;
    text-align: left;
}

.log-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8ea0bd;
    margin-bottom: 12px;
}

.log-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.log-list {
    list-style: none;
}

.log-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #e2e8f0;
    padding: 5px 0;
    opacity: 0;
    animation: reveal 0.4s ease forwards;
    animation-delay: calc(0.35s + var(--i) * 0.15s);
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateX(-4px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-list .tag {
    font-size: 10px;
    font-weight: 500;
    color: var(--emerald-500);
    background: rgba(16, 185, 129, 0.14);
    border-radius: 4px;
    padding: 2px 6px;
    letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
    .log-list li {
        animation: none;
        opacity: 1;
    }
}

/* ===========================================================
   CTA
   =========================================================== */
.cta {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--blue-600);
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14.5px;
    border-radius: 10px;
    transition: background .2s ease, transform .2s ease;
}

.cta svg {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.cta:hover {
    background: #1e46bd;
}

.cta:hover svg {
    transform: translateX(3px);
}

.cta:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: 3px;
}

/* ===========================================================
   Footer
   =========================================================== */
footer {
    margin-top: 30px;
    color: var(--slate-400);
    font-size: 12.5px;
}

.dot-sep {
    margin: 0 6px;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 560px) {
    .card {
        padding: 38px 26px 30px;
        border-radius: 16px;
    }

    h1 {
        font-size: 23px;
    }

    .log {
        padding: 16px 16px 14px;
    }
}
