/* Restores PilotProof's incumbent visual language on the compact core pages. */
body {
    background-color: #010204;
    color: #e2e8f0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
.brand {
    font-family: 'Orbitron', sans-serif;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    letter-spacing: .06em;
}

.brand-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--cyan);
    stroke-width: 2;
}

.nav {
    position: sticky;
    top: 0;
    background: rgba(1, 2, 4, .9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .22);
}

.links {
    gap: clamp(.7rem, 1.35vw, 1.2rem);
    font-weight: 600;
}

.links .book-link {
    color: var(--cyan);
    white-space: nowrap;
}

.links .book-link:hover,
.links .book-link:focus-visible {
    color: #fff;
}

.button,
.card,
.signal,
.notice {
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .35s ease, background-color .35s ease, box-shadow .35s ease;
}

.card,
.signal,
.notice,
.hud-border {
    position: relative;
    background: rgba(10, 15, 22, .68);
    border: 1px solid rgba(0, 240, 255, .1);
    border-radius: .35rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .2);
}

.hud-border::before,
.hud-border::after {
    content: '';
    position: absolute;
    width: .55rem;
    height: .55rem;
    border: 1px solid rgba(0, 240, 255, .65);
    pointer-events: none;
    transform-origin: center;
    transition: transform .35s ease, opacity .35s ease;
}

.hud-border::before {
    top: -1px;
    left: -1px;
    border-right: 0;
    border-bottom: 0;
}

.hud-border::after {
    right: -1px;
    bottom: -1px;
    border-top: 0;
    border-left: 0;
}

.hud-border:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 240, 255, .3);
    box-shadow: 0 22px 55px rgba(0, 240, 255, .07);
}

.hud-border:hover::before,
.hud-border:hover::after {
    transform: scale(1.35);
}

.hero:not(.hero-scroll-scene) {
    position: relative;
    min-height: 38rem;
    display: grid;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    background: #020408 url('/assets/hero-illustration.jpg') center 44% / cover no-repeat;
}

.hero:not(.hero-scroll-scene)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(1, 2, 4, .97) 0%, rgba(1, 2, 4, .86) 46%, rgba(1, 2, 4, .32) 100%), linear-gradient(0deg, #010204 0%, transparent 30%);
}

.hero:not(.hero-scroll-scene)::after {
    content: '';
    position: absolute;
    inset: -30% 0 auto;
    z-index: -1;
    height: 26%;
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, .08), transparent);
    animation: hero-scan 8s linear infinite;
    pointer-events: none;
}

.hero:not(.hero-scroll-scene) .hero-grid {
    width: min(1180px, calc(100% - 2rem));
}

.hero:not(.hero-scroll-scene) .signal {
    backdrop-filter: blur(12px);
}

.footer {
    background: #010203;
    padding: 4rem 0 2rem;
}

.footer-inner {
    align-items: flex-start;
}

.footer-brand {
    max-width: 34rem;
}

.footer-brand p {
    margin-top: .9rem;
    max-width: 44ch;
}

.footer-contact {
    color: var(--cyan) !important;
    text-decoration: none;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .75rem 1.1rem;
    max-width: 32rem;
}

.footer-links a {
    margin: 0;
    text-underline-offset: .3rem;
}

::selection {
    background: rgba(0, 240, 255, .24);
    color: #fff;
}

@keyframes hero-scan {
    from { transform: translateY(0); }
    to { transform: translateY(500%); }
}

@media (max-width: 980px) {
    .links { gap: .75rem; font-size: .92rem; }
    .links .book-link { display: none; }
}

@media (max-width: 780px) {
    .links { font-size: 1rem; }
    .links.open .book-link { display: inline-flex; }
    .hero-scroll-copy h1 {
        max-width: 100%;
        font-size: clamp(2.05rem, 9.4vw, 2.7rem);
        line-height: 1.02;
        overflow-wrap: anywhere;
    }
    .hero:not(.hero-scroll-scene) {
        min-height: 34rem;
        background-position: 62% center;
    }
    .hero:not(.hero-scroll-scene)::before {
        background: linear-gradient(90deg, rgba(1, 2, 4, .96), rgba(1, 2, 4, .68)), linear-gradient(0deg, #010204, transparent 45%);
    }
    .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .hero:not(.hero-scroll-scene)::after { animation: none; display: none; }
    .button,
    .card,
    .signal,
    .notice,
    .hud-border { transition: none; }
}
