:root {
    --base-black: oklch(1% 0 0);
    --accent-gold: oklch(56.5% 0.1 73.7);
    --accent-mint: oklch(75% 0.19 145);
    --gray-light: oklch(70% 0 0);
    --gray-dark: oklch(25% 0 0);
    --font-mono: 'Space Mono', monospace;
    --gutter: clamp(1rem, 5vw, 3rem);
}

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

body {
    background: var(--base-black);
    font-family: var(--font-mono);
    height: 100dvh;
    padding: var(--gutter);
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.page-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 1440px;
}

/* --- Navigation & Header --- */
.header-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.symbol-text {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.symbol {
    height: 1.5rem;
    filter: invert(48%) sepia(87%) saturate(452%) hue-rotate(6deg);
    opacity: 0;
}

.american-defense {
    color: var(--gray-light);
    font-size: clamp(0.7rem, 0.4rem + 1vw, 1.155rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
    /* FORCE REGULAR WEIGHT FOR H1 */
}

/* --- Button Styling --- */
.request-btn {
    position: relative;
    border: 1px solid var(--accent-gold);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    overflow: hidden;
    border-radius: 4px;
}

.button-bg {
    position: absolute;
    inset: 0;
    display: grid;
    pointer-events: none;
}

.btn-pixel {
    background: var(--accent-gold);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.request-btn.filled .btn-pixel,
.request-btn.mobile-active .btn-pixel {
    transform: scale(1.1);
}

.request-btn.filled .btn-text,
.request-btn.mobile-active .btn-text {
    color: var(--base-black);
}

.request-btn.filled .lock-icon,
.request-btn.mobile-active .lock-icon {
    filter: brightness(0);
}

.lock-icon {
    height: 14px;
    z-index: 2;
    filter: invert(48%) sepia(87%) saturate(452%) hue-rotate(6deg);
    transition: filter 0.3s ease;
}

.btn-text {
    position: relative;
    z-index: 2;
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: bold;
}

/* --- Viewport & Canvas --- */
.viewport-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.image-container {
    position: absolute;
    inset: 0;
    background: url('public/image-bkg.webp') no-repeat center / cover;
    background-color: var(--base-black);
}

#reveal-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    image-rendering: pixelated;
}

.logo-overlay {
    position: absolute;
    top: 0;
    z-index: 20;
    width: 100%;
    pointer-events: none;
    transition: all 1.5s ease;
}

.fortus-logo-container {
    font-weight: 400;
}

/* FORCE REGULAR WEIGHT FOR H2 WRAPPER */
.fortus-logo {
    width: 100%;
    filter: brightness(0) invert(1);
}

.bottom-text-container {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 30;
    background: var(--base-black);
    padding: 1rem 1.5rem 0.5rem 0;
}

.indicator-square {
    width: 12px;
    height: 12px;
    background: var(--accent-mint);
    flex-shrink: 0;
}

.bottom-quote {
    color: var(--gray-light);
    font-size: clamp(0.65rem, 0.9vw, 0.9rem);
    text-transform: uppercase;
    font-weight: 400;
}

/* --- Mobile Orchestration --- */
.mobile-only {
    display: none;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    * {
        cursor: auto;
    }

    #custom-cursor,
    .margin-line,
    .desktop-only {
        display: none !important;
    }

    .nav-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }

    .symbol-text {
        flex-direction: column;
        gap: 0.75rem;
    }

    .american-defense {
        font-size: 0.95rem;
        white-space: normal;
        line-height: 1.4;
        max-width: 300px;
    }

    .mobile-only {
        display: block;
        width: 100%;
    }

    .request-btn {
        width: 100%;
        justify-content: center;
    }

    .bottom-text-container {
        padding-right: 0;
        width: 100%;
    }
}

@media (max-width: 930px) and (orientation: landscape) {
    .logo-overlay {
        width: 80%;
        top: 0;
    }
}

/* Instrumentation */
#custom-cursor {
    position: fixed;
    z-index: 9999;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.crosshair {
    width: 48px;
    height: 48px;
    position: relative;
}

.crosshair::before,
.crosshair::after {
    content: '';
    position: absolute;
    background: var(--gray-light);
}

.crosshair::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

.crosshair::after {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
}

.margin-line {
    position: fixed;
    background: var(--gray-light);
    z-index: 9998;
    pointer-events: none;
}

.vertical {
    width: 1px;
    height: 20px;
}

.horizontal {
    width: 20px;
    height: 1px;
}

.top {
    top: 0;
}

.bottom {
    bottom: 0;
}

.left {
    left: 0;
}

.right {
    right: 0;
}

.dividing-line {
    height: 1px;
    background: var(--gray-dark);
    width: 0%;
    margin-top: 1rem;
}

.anim-expand {
    animation: expandRight 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes expandRight {
    to {
        width: 100%;
    }
}

.typewriter {
    visibility: hidden;
}

.anim-fade {
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
