html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

:root {
    --ink: #0A1420;
    --panel: #0F1D30;
    --line: #1E3958;
    --line-soft: #16283F;
    --accent: #5B92D6;
    --accent-soft: #2F5C96;
    --text: #EBEEF3;
    --muted: #7D8FA9;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--ink);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* ---------- background grid + contour ---------- */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 85%);
    z-index: 0;
    pointer-events: none;
}

.contour-svg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: .5;
}

    .contour-svg path {
        fill: none;
        stroke: var(--accent);
        stroke-width: 1;
        opacity: .16;
    }

        .contour-svg path:nth-child(3n) {
            opacity: .28;
            stroke: var(--line);
        }

/* ---------- layout ---------- */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px clamp(20px,5vw,64px) 0;
}

.wordmark {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

    .wordmark strong {
        color: var(--text);
        font-family: 'Space Grotesk', sans-serif;
        font-weight: 600;
        letter-spacing: .02em;
        font-size: 15px;
        text-transform: none;
    }

/* state-outline mark, header slot */
.state-mark {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .9;
}

    .state-mark img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        /* your outline mark's own navy/blue should already match the palette — no tint needed */
    }

.coords {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--muted);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 20px;
}

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    opacity: 0;
    animation: rise .7s ease forwards .1s;
}

/* ---------- central logo placeholder ---------- */
.logo-slot {
    width: min(300px, 68vw);
    margin-bottom: 40px;
    padding: 28px 34px;
/*    background: #98A3B3;*/
    /*border-radius: 14px;
    box-sizing: border-box;
    box-shadow: 0 24px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.04);*/
    opacity: 0;
    animation: rise .7s ease forwards .25s;
}

    .logo-slot img {
        width: 100%;
        height: auto;
        display: block;
    }

h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.05;
    margin: 0 0 18px;
    opacity: 0;
    animation: rise .7s ease forwards .38s;
}

    h1 em {
        font-style: normal;
        color: var(--accent);
    }

.sub {
    max-width: 520px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 44px;
    opacity: 0;
    animation: rise .7s ease forwards .5s;
}

/* ---------- notify form ---------- */
.notify {
    display: flex;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--panel);
    opacity: 0;
    animation: rise .7s ease forwards .62s;
}

    .notify input {
        flex: 1;
        background: transparent;
        border: none;
        outline: none;
        padding: 15px 16px;
        color: var(--text);
        font-family: 'IBM Plex Mono', monospace;
        font-size: 13px;
    }

        .notify input::placeholder {
            color: var(--muted);
        }

    .notify button {
        border: none;
        background: var(--accent-soft);
        color: #F2F6FC;
        font-family: 'Space Grotesk', sans-serif;
        font-weight: 600;
        font-size: 14px;
        padding: 0 22px;
        cursor: pointer;
        transition: background .18s ease;
    }

        .notify button:hover {
            background: var(--accent);
        }

        .notify button:focus-visible,
        .notify input:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: -2px;
        }

.status {
    margin-top: 14px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    height: 16px;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px clamp(20px,5vw,64px) 32px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    border-top: 1px solid var(--line-soft);
}

    footer a {
        color: var(--muted);
        text-decoration: none;
    }

        footer a:hover {
            color: var(--accent);
        }

        footer a:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .eyebrow, .logo-slot, h1, .sub, .notify {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

@media (max-width:520px) {
    .notify {
        flex-direction: column;
        border-radius: 10px;
    }

        .notify button {
            padding: 14px;
        }

    footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
