/* =============================================
   PACIFIC SPIRIT SIM WORKS — Shared Styles
   Brand Palette: #590219 · #04B2D9 · #04C4D9 · #026873 · #F20505
   Fonts: Inter (headings) · Inter (body) · JetBrains Mono (labels)
   ============================================= */

/* --- RESET & VARIABLES --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Dark theme base */
    --dark: #050514;
    --dark-surface: #0a0a20;
    --dark-card: rgba(255,255,255,0.04);
    --dark-border: rgba(255,255,255,0.06);
    --dark-teal: #026873;
    --burgundy: #590219;

    /* Text on dark */
    --text-primary: rgba(255,255,255,0.92);
    --text-secondary: rgba(255,255,255,0.55);
    --text-muted: rgba(255,255,255,0.3);
    --slate: rgba(255,255,255,0.55);
    --mid-gray: rgba(255,255,255,0.4);
    --light-gray: rgba(255,255,255,0.25);

    /* Surfaces */
    --fog: rgba(255,255,255,0.03);
    --warm-white: var(--dark);

    /* Brand accents */
    --cyan: #04B2D9;
    --cyan-light: #04C4D9;
    --red: #F20505;
    --red-light: #ff3333;
    --burgundy-light: #7a1a3a;

    /* Semantic aliases */
    --accent: var(--cyan);
    --accent-light: var(--cyan-light);
    --cta: var(--red);
    --cta-hover: var(--red-light);

    /* Gradients */
    --grad-cta: linear-gradient(135deg, #F20505, #590219);
    --grad-cool: linear-gradient(135deg, #04B2D9, #04C4D9);
    --grad-dark: linear-gradient(160deg, #050514 0%, #0a1628 100%);
    --grad-mixed: linear-gradient(135deg, #04B2D9, #F20505);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-weight: 300;
}

/* Aurora ambient glow — fixed behind all content */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -2;
    background-color: #050514;
    background-image:
        radial-gradient(ellipse at 80% 50%, rgba(200,240,255,0.10) 0%, transparent 40%),
        radial-gradient(circle at 75% 80%, rgba(0,50,200,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 40%, rgba(160,40,180,0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 70%, rgba(120,20,140,0.08) 0%, transparent 45%),
        radial-gradient(circle at 60% 20%, rgba(180,60,200,0.06) 0%, transparent 35%),
        radial-gradient(circle at 40% 0%, rgba(255,255,255,0.04) 0%, transparent 30%);
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
}

/* --- NAV --- */
nav#site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0.6rem 3rem;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(5,5,20,0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04);
    transition: all 0.4s;
}

/* Hero mode: transparent */
nav#site-nav.on-hero {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 1.2rem 3rem;
}
nav#site-nav.on-hero .nav-links a { color: rgba(255,255,255,0.85); }
nav#site-nav.on-hero .nav-links a:hover { color: var(--cyan); }
nav#site-nav.on-hero .nav-links a.active { color: var(--cyan); }

.logo {
    display: flex; flex-direction: row; align-items: center; gap: 0.8rem;
    text-decoration: none;
    transition: all 0.4s;
    line-height: 1;
    padding: 0.3rem 0;
}
.logo-img {
    height: 44px; width: auto;
    filter: none;
    transition: filter 0.4s;
}
.logo-text {
    display: flex; flex-direction: column; gap: 0.1rem;
}
.logo-name-light {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem; font-weight: 300;
    letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    transition: color 0.4s;
}
.logo-name-bold {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: white;
    transition: color 0.4s;
}

.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a {
    color: rgba(255,255,255,0.55); text-decoration: none;
    font-size: 0.75rem; font-weight: 400;
    letter-spacing: 2px; text-transform: uppercase;
    transition: color 0.3s;
    display: flex; align-items: center; gap: 0.4rem;
    font-family: 'Inter', sans-serif;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a.active { color: var(--cyan); }
.nav-links i { width: 13px; height: 13px; opacity: 0.6; }

/* --- SHARED FOOTER --- */
footer.site-footer {
    padding: 3rem; text-align: center;
    background: rgba(5,5,20,0.8);
    border-top: 1px solid rgba(4,178,217,0.15);
}
footer.site-footer p {
    color: rgba(255,255,255,0.3); font-size: 0.72rem;
    letter-spacing: 2px; text-transform: uppercase;
    font-weight: 300;
}
footer.site-footer a {
    color: rgba(255,255,255,0.4); text-decoration: none;
    transition: color 0.3s;
}
footer.site-footer a:hover { color: var(--cyan); }
.footer-logo { margin-bottom: 1.2rem; }
.footer-logo-img { width: 48px; height: 48px; opacity: 0.25; transition: opacity 0.3s; }
.footer-logo-img:hover { opacity: 0.5; }

/* --- TOPOGRAPHIC CONTOUR LINES --- */
.topo {
    position: relative;
}
.topo::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

/* Bottom-left placement */
.topo-bl::after {
    bottom: -80px; left: -100px;
    width: 700px; height: 640px;
}
/* Top-left placement */
.topo-tl::after {
    top: -60px; left: -80px;
    width: 650px; height: 580px;
}
/* Top-right placement */
.topo-tr::after {
    top: -70px; right: -100px; left: auto;
    width: 680px; height: 620px;
}
/* Bottom-right placement */
.topo-br::after {
    bottom: -60px; right: -80px; left: auto;
    width: 650px; height: 580px;
}

/* Organic terrain contour lines — external SVG files */
.topo-cyan::after {
    background-image: url("images/topo-contours.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Dark section — alternate terrain contours */
.topo-cyan-dark::after {
    background-image: url("images/topo-contours-alt.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Mirrored terrain contours */
.topo-teal::after {
    background-image: url("images/topo-contours.svg");
    background-size: contain;
    background-repeat: no-repeat;
    transform: scaleX(-1);
}

/* --- RESPONSIVE TOPO --- */
@media (max-width: 900px) {
    .topo::after { transform: scale(0.75); }
    .topo-teal::after { transform: scale(0.75) scaleX(-1); }
    .topo-bl::after { bottom: -80px; left: -100px; }
    .topo-tl::after { top: -60px; left: -80px; }
    .topo-tr::after { top: -70px; right: -100px; }
    .topo-br::after { bottom: -60px; right: -80px; }
}
@media (max-width: 600px) {
    .topo::after { transform: scale(0.55); opacity: 0.4; }
    .topo-teal::after { transform: scale(0.55) scaleX(-1); opacity: 0.4; }
}

/* --- RESPONSIVE NAV --- */
@media (max-width: 900px) {
    nav#site-nav { padding: 0.8rem 1.5rem; }
    nav#site-nav.on-hero { padding: 1rem 1.5rem; }
    .nav-links { gap: 1.2rem; }
}

/* --- MOBILE NAV TOGGLE --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
}
.nav-toggle svg {
    width: 22px;
    height: 22px;
}
nav#site-nav.on-hero .nav-toggle { color: white; }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        background: rgba(5,5,20,0.95);
        backdrop-filter: blur(20px);
        padding: 1rem 1.5rem;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        font-size: 0.82rem;
        color: rgba(255,255,255,0.7);
    }
    .nav-links a span { display: inline; }
    nav#site-nav.on-hero .nav-links {
        background: rgba(5,5,20,0.95);
    }
    nav#site-nav.on-hero .nav-links a {
        color: rgba(255,255,255,0.8);
        border-bottom-color: rgba(255,255,255,0.06);
    }
}
