/* ============================================
   IU:R Global Design System
   Shared across all pages
   ============================================ */

/* === DESIGN TOKENS === */
:root {
    --bg-deep: #050508;
    --bg-dark: #0a0a0f;
    --bg-card: #0e0e14;
    --bg-surface: #12121a;
    --primary: #ff3d00;
    --primary-light: #ff6d00;
    --primary-glow: rgba(255, 61, 0, 0.4);
    --primary-subtle: rgba(255, 61, 0, 0.08);
    --accent-blue: #1a2a4a;
    --accent-blue-glow: rgba(26, 42, 74, 0.4);
    --discord: #5865F2;
    --text: rgba(255, 255, 255, 0.92);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-dim: rgba(255, 255, 255, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-primary: rgba(255, 61, 0, 0.2);
    --nav-height: 64px;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Oswald', sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scrollbar-width: none;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-deep);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* === ATMOSPHERE === */

/* Subtle radial glow at top of page */
body::before {
    content: '';
    position: fixed;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(ellipse at center,
            rgba(255, 61, 0, 0.03) 0%,
            rgba(26, 42, 74, 0.02) 40%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   NAVBAR — Fixed, transparent → solid
   ============================================ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 9999;
    background: transparent;
    transition: background 0.4s var(--transition-smooth),
        box-shadow 0.4s var(--transition-smooth),
        border-color 0.4s var(--transition-smooth);
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
}

.site-nav.scrolled {
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--primary);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 2px 20px rgba(255, 61, 0, 0.35), 0 0 8px rgba(255, 61, 0, 0.2);
}

.nav-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 61, 0, 0.3);
}

.nav-logo span {
    color: var(--primary);
    font-style: italic;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-links a.active {
    color: var(--primary);
}

/* Download CTA in nav */
.nav-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
    padding: 8px 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 0 15px var(--primary-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s var(--transition-smooth);
    animation: navDownloadPulse 3s ease-in-out infinite;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-download-btn:hover {
    color: #fff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 25px rgba(255, 61, 0, 0.6), 0 6px 20px rgba(0, 0, 0, 0.4);
}

@keyframes navDownloadPulse {

    0%,
    100% {
        box-shadow: 0 0 12px var(--primary-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 22px rgba(255, 61, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary);
    margin: 4px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.nav-mobile-overlay {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9998;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.nav-mobile-overlay.open {
    display: flex;
}

.nav-mobile-overlay a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 24px;
    transition: color 0.2s ease;
}

.nav-mobile-overlay a:hover,
.nav-mobile-overlay a.active {
    color: var(--primary);
}

.nav-mobile-overlay .nav-download-btn {
    font-size: 1.4rem;
    padding: 14px 36px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-download-desktop {
        display: none;
    }

    .nav-toggle {
        display: block;
    }
}

/* ============================================
   SHARED PAGE HERO HEADER
   ============================================ */
.page-hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 50px;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent, var(--bg-dark));
    pointer-events: none;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-hero h1 span {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

/* ============================================
   SHARED FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border-subtle);
    padding: 30px 0;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.footer-brand span {
    color: var(--primary);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ============================================
   SECTION UTILITIES
   ============================================ */

/* Fade-in on scroll (add via JS or IntersectionObserver) */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition-smooth),
        transform 0.8s var(--transition-smooth);
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section gradient divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
    border: none;
    margin: 0;
}

/* Headlight streak divider */
.headlight-divider {
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 61, 0, 0.05) 20%,
            rgba(255, 61, 0, 0.3) 45%,
            var(--primary) 50%,
            rgba(255, 61, 0, 0.3) 55%,
            rgba(255, 61, 0, 0.05) 80%,
            transparent 100%);
    border: none;
    margin: 0;
    box-shadow: 0 0 15px rgba(255, 61, 0, 0.15);
}

/* Common card style */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: var(--border-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 61, 0, 0.15);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: rgba(255, 61, 0, 0.25);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

.back-to-top.visible {
    display: flex;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .page-hero {
        padding-top: calc(var(--nav-height) + 40px);
        padding-bottom: 30px;
    }
}