body {
    background-color: #020812;
    color: #e2e8f0;
    font-size: 17px;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.12) 0%, transparent 65%),
        linear-gradient(rgba(56, 189, 248, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 24px 24px, 24px 24px;
    background-position: center top, center center, center center;
}

/* Readability: lift the faintest micro text and soften body copy contrast */
.text-slate-400 { color: #aeb9c8; }
.text-slate-500 { color: #94a3b8; }
.text-slate-300 { color: #dbe4ee; }

.font-mono.italic,
em { letter-spacing: 0.01em; }

.hero-glass-panel {
    background: linear-gradient(180deg, rgba(3, 15, 30, 0.90) 0%, rgba(2, 11, 23, 0.96) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.hero-video {
    max-width: 800px;
}

.hero-video-frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    background: #020812;
}

.hero-video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.hero-video-link {
    display: inline-block;
    margin-top: 12px;
    color: #aeb9c8;
    font-size: 13px;
}

.hero-video-link:hover,
.hero-video-link:focus-visible {
    color: #38bdf8;
    text-decoration: underline;
}

.ocean-glass-card {
    background: linear-gradient(180deg, rgba(4, 20, 39, 0.82) 0%, rgba(2, 11, 23, 0.92) 100%);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.blueprint-canvas {
    background-color: #010a16;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
    background-size: 14px 14px;
}

/* Calm Monochrome by default; Illuminate on Hover */
.bw-reactive {
    filter: grayscale(100%);
    opacity: 0.92;
    transition: filter 0.35s ease, opacity 0.35s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.bw-reactive:hover,
.bw-reactive:focus-within {
    filter: grayscale(0%);
    opacity: 1;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 15px 35px -8px rgba(14, 165, 233, 0.22);
}

.step-active {
    border-color: rgba(56, 189, 248, 0.8) !important;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.18) 0%, rgba(3, 15, 30, 0.95) 100%) !important;
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.3);
}

.radar-sweep {
    animation: radarRotate 24s linear infinite;
}

@keyframes radarRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Modals are always in full color and non-grayscaled */
#zeroTouchModal, #ingressModal, #entityModal {
    filter: none !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #020812;
}
::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.25);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.45);
}

/* Flow panes used by the deployment stage tabs */
.flow-pane.hidden {
    display: none;
}

/* Readability: roomier cards */
.ocean-glass-card {
    line-height: 1.55;
}

.site-footer {
    margin-top: 3rem;
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.8;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #f8fafc;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.footer-logo sup {
    color: #38bdf8;
    font-size: 12px;
}

.footer-tagline {
    margin: 0.5rem 0 1rem;
    color: #aeb9c8;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-heading {
    margin: 0 0 0.75rem;
    color: #f8fafc;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    min-width: 0;
}

.site-footer a {
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
    overflow-wrap: anywhere;
}

.site-footer a:hover {
    color: #38bdf8;
}

.site-footer a:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 5px;
    border-radius: 3px;
}

.footer-contact > a {
    color: #dbe4ee;
}

.footer-contact .footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    color: #7dd3fc;
}

.footer-contact .footer-cta:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

.footer-standards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-production {
    color: #7dd3fc;
    font-weight: 600;
}

.footer-bottom {
    padding-top: 1rem;
    font-size: 11px;
}

.form-status {
    color: #7dd3fc;
    line-height: 1.7;
}

.form-status[data-state="error"] {
    color: #fda4af;
}

#ingressForm button:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media (max-width: 767px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 479px) {
    .footer-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }
}
