/*
 * Shadow Division - Master Style Sheet
 * Production-ready modern sci-fi styles
 */

/* ==========================================================================
   1. VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
    /* Theme Colors */
    --color-bg: #0F1115;
    --color-card: #1A1F29;
    --color-card-hover: #222936;
    --color-primary: #00AEEF;
    --color-primary-glow: rgba(0, 174, 239, 0.25);
    --color-danger: #FF3D3D;
    --color-danger-glow: rgba(255, 61, 61, 0.25);
    --color-success: #39FF88;
    --color-success-glow: rgba(57, 255, 136, 0.25);
    --color-text: #FFFFFF;
    --color-gray: #B5B5B5;
    --color-dark-gray: #4A515E;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-active: rgba(0, 174, 239, 0.6);

    /* Fonts */
    --font-heading: 'Orbitron', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', Courier New, monospace;

    /* Spacing & Layout */
    --max-width: 1200px;
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe {
    border: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Typography Scales */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.font-mono { font-family: var(--font-mono); }
.font-title { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

.accent-text { color: var(--color-primary); }
.accent-gradient {
    background: linear-gradient(135deg, #FFFFFF 30%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-white { color: #FFFFFF; }
.text-gray { color: var(--color-gray); }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }
.text-accent { color: var(--color-primary); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0B0C0E;
}
::-webkit-scrollbar-thumb {
    background: var(--color-card);
    border: 2px solid #0B0C0E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ==========================================================================
   3. REUSABLE UTILITIES & LAYOUTS
   ========================================================================== */
.section-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 24px;
}

.grid {
    display: grid;
    gap: 30px;
}
.grid-2-cols { grid-template-columns: repeat(2, 1fr); }
.grid-3-cols { grid-template-columns: repeat(3, 1fr); }
.grid-4-cols { grid-template-columns: repeat(4, 1fr); }

.align-center { align-items: center; }
.gap-medium { gap: 40px; }
.gap-large { gap: 60px; }

.section-intro {
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.section-sub {
    color: var(--color-gray);
    font-size: 1.1rem;
}

/* Common Card Outlines */
.border-cyan { border: 1px solid rgba(0, 174, 239, 0.2); }
.border-red { border: 1px solid rgba(255, 61, 61, 0.2); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 14px 28px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000000;
    box-shadow: 0 0 15px var(--color-primary-glow);
}
.btn-primary:hover {
    background-color: #FFFFFF;
    color: #000000;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}
.btn-secondary:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-tertiary {
    background-color: rgba(26, 31, 41, 0.7);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: inset 0 0 10px rgba(0, 174, 239, 0.1);
}
.btn-tertiary:hover {
    background-color: var(--color-primary);
    color: #000000;
    box-shadow: 0 0 20px var(--color-primary-glow);
    transform: translateY(-2px);
}

.btn-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.btn-sub {
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.8;
}

.btn-main {
    font-size: 1rem;
    font-weight: 900;
}

/* ==========================================================================
   4. PRELOADER & EFFECTS
   ========================================================================== */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--transition-normal), visibility 0.6s var(--transition-normal);
}

.preloader-scanner {
    width: 320px;
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.preloader-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 2px;
}

.preloader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    transition: width 0.1s ease-out;
}

.preloader-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-gray);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Fade Out State */
.preloader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ==========================================================================
   5. HEADER NAVIGATION
   ========================================================================== */
.studio-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: var(--transition-normal);
}

.studio-header.scrolled {
    height: 70px;
    background-color: rgba(11, 12, 14, 0.95);
    border-bottom-color: rgba(0, 174, 239, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.studio-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

.logo-icon {
    color: var(--color-primary);
    font-size: 1.4rem;
}

.logo-text .highlight {
    color: var(--color-primary);
}

/* Navbar links */
.studio-navbar .nav-list {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    transition: var(--transition-fast);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: #FFFFFF;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}

.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #FFFFFF;
    margin: 5px 0;
    transition: var(--transition-normal);
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle at 50% 50%, rgba(26, 31, 41, 0.4) 0%, rgba(15, 17, 21, 1) 90%);
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 174, 239, 0.03) 0%, rgba(0, 174, 239, 0) 70%);
    border: 1px solid rgba(0, 174, 239, 0.05);
    border-radius: 50%;
}

.radar-sweep::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(0, 174, 239, 0.12) 0deg, rgba(0, 174, 239, 0) 90deg);
    animation: radar-rotate 8s linear infinite;
}

@keyframes radar-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stars-particle-emitter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.01) 1px, transparent 1px),
        radial-gradient(circle at 75% 40%, rgba(255,255,255,0.02) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 400px 400px;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 40px 24px;
    text-align: center;
}

.hero-faction-badge {
    margin-bottom: 24px;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    background-color: rgba(0, 174, 239, 0.1);
    border: 1px solid rgba(0, 174, 239, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.0;
    margin-bottom: 24px;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-gray);
    margin-bottom: 48px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-status-ticker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(26, 31, 41, 0.6);
    border: 1px solid var(--color-border);
    padding: 8px 18px;
    border-radius: 4px;
}

.ticker-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-success);
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(57, 255, 136, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(57, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(57, 255, 136, 0); }
}

.ticker-text {
    font-size: 0.75rem;
    color: var(--color-gray);
    letter-spacing: 0.05em;
}

/* Mouse Scroll Prompt */
.hero-scroll-prompt {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.mouse-icon {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    margin: 0 auto 10px auto;
    position: relative;
}

.wheel {
    display: block;
    width: 4px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.6s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--color-gray);
}

/* ==========================================================================
   7. ABOUT LORE SECTION
   ========================================================================== */
.about-section {
    background-color: #0F1115;
    position: relative;
}

.about-visual {
    perspective: 1000px;
}

.cinematic-frame {
    background-color: #0B0D11;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.noise-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    z-index: 2;
    pointer-events: none;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(0, 174, 239, 0.4);
    box-shadow: 0 0 10px var(--color-primary);
    z-index: 3;
    animation: scan-vertical 6s linear infinite;
}

@keyframes scan-vertical {
    0% { top: 0%; }
    100% { top: 100%; }
}

.terminal-header {
    background-color: rgba(26, 31, 41, 0.8);
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.terminal-dot.red { background-color: var(--color-danger); }
.terminal-dot.yellow { background-color: #FFB300; }
.terminal-dot.green { background-color: var(--color-success); }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-gray);
    margin-left: 8px;
    letter-spacing: 0.05em;
}

.terminal-code {
    padding: 24px;
    font-size: 0.75rem;
    color: var(--color-gray);
    white-space: pre-wrap;
    line-height: 1.8;
    overflow-x: auto;
}

.lead-text {
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.5;
}

.body-text {
    color: var(--color-gray);
    margin-bottom: 30px;
}

.about-lore-footer {
    border-left: 3px solid var(--color-primary);
    padding-left: 20px;
    margin-top: 40px;
}

.lore-quote {
    font-style: italic;
    color: #FFFFFF;
    font-size: 1rem;
    margin-bottom: 10px;
}

.lore-author {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray);
}

/* ==========================================================================
   8. GAMEPLAY PROTOCOLS
   ========================================================================== */
.gameplay-section {
    background-color: #12151B;
}

.gameplay-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    padding: 40px 32px;
    border-radius: 4px;
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gameplay-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 4px;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0);
    transition: var(--transition-normal);
}

.gameplay-card:hover {
    transform: translateY(-8px);
    background-color: var(--color-card-hover);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

#card-protocol-1:hover { border-color: var(--color-primary); }
#card-protocol-2:hover { border-color: var(--color-danger); }
#card-protocol-3:hover { border-color: var(--color-success); }

.card-icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.card-desc {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.card-bento-indicator {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
    text-transform: uppercase;
}

/* ==========================================================================
   9. FEATURES SECTION
   ========================================================================== */
.features-section {
    background-color: #0F1115;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.feature-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    padding: 30px 24px;
    border-radius: 4px;
    transition: var(--transition-normal);
}

.feature-card:hover {
    background-color: var(--color-card-hover);
    border-color: var(--color-primary-glow);
    transform: scale(1.02);
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    color: #FFFFFF;
}

.feature-text {
    font-size: 0.8rem;
    color: var(--color-gray);
    line-height: 1.5;
}

/* ==========================================================================
   10. SCREENSHOT GALLERY & LIGHTBOX
   ========================================================================== */
.gallery-section {
    background-color: #0B0D10;
}

.gallery-carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-track-container {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: #000;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 30px 24px 20px 24px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(26, 31, 41, 0.85);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition-fast);
}

.carousel-control:hover {
    background-color: var(--color-primary);
    color: #000000;
    border-color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.carousel-control.prev { left: -70px; }
.carousel-control.next { right: -70px; }

/* Indicators */
.carousel-indicators {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.indicator-dot {
    width: 32px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.indicator-dot.active {
    background-color: var(--color-primary);
    width: 48px;
    box-shadow: 0 0 8px var(--color-primary);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 13, 16, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--color-primary);
}

.lightbox-content {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.lightbox-content img {
    max-height: 80vh;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.lightbox-caption-text {
    margin-top: 15px;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--color-gray);
}

/* ==========================================================================
   11. FACTIONS INTEL
   ========================================================================== */
.characters-section {
    background-color: #0F1115;
}

.faction-panel {
    background-color: var(--color-card);
    border-radius: 4px;
    padding: 40px;
    transition: var(--transition-normal);
}

.faction-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.faction-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
}

.faction-icon {
    font-size: 2.2rem;
}

.faction-name {
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.faction-tagline {
    font-size: 0.85rem;
    color: var(--color-gray);
}

.faction-capabilities li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 18px;
    color: var(--color-gray);
    font-size: 0.95rem;
}

.faction-capabilities li::before {
    content: '➔';
    position: absolute;
    left: 0;
    color: var(--color-gray);
}

.faction-panel.loyalty li::before {
    content: '✓';
    color: var(--color-primary);
}

.faction-panel.rogue li::before {
    content: '✗';
    color: var(--color-danger);
}

/* ==========================================================================
   12. SECTOR INTELLIGENCE MAPS
   ========================================================================== */
.maps-section {
    background-color: #12151B;
}

.map-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.map-tab-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    padding: 10px 18px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.map-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.map-tab-btn.active {
    color: #FFFFFF;
}

.map-tab-btn.active::after {
    width: 100%;
}

.map-panel-content {
    transition: opacity 0.4s ease;
}

.map-panel-content[hidden] {
    display: none !important;
}

.panel-sector-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.panel-sector-desc {
    color: var(--color-gray);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.sector-checkpoints li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--color-gray);
}

.sector-checkpoints i {
    margin-top: 4px;
}

/* Compass blueprint radar visual */
.map-blueprint-visual {
    background-color: #0B0D11;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blueprint-radar {
    width: 260px;
    height: 260px;
    border: 1px solid rgba(0, 174, 239, 0.15);
    border-radius: 50%;
    position: relative;
}

.blueprint-radar::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 160px; height: 160px;
    border: 1px dashed rgba(0, 174, 239, 0.1);
    border-radius: 50%;
}

.blueprint-radar::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    border: 1px solid rgba(0, 174, 239, 0.05);
    border-radius: 50%;
}

.blueprint-sweep {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(0, 174, 239, 0.1) 0deg, rgba(0, 174, 239, 0) 90deg);
    animation: radar-rotate 4s linear infinite;
}

/* Radar nodes representing sectors */
.blueprint-radar .node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.blueprint-radar .node::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border: 1px solid inherit;
    border-radius: 50%;
    animation: pulse-node 1.5s infinite;
}

@keyframes pulse-node {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.node-label {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    color: var(--color-gray);
    pointer-events: none;
    white-space: nowrap;
}

.blueprint-radar .node.hub {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.blueprint-radar .node.reactor {
    bottom: 40px; left: 40px;
    background-color: var(--color-danger);
    border: 1px solid var(--color-danger);
}

.blueprint-radar .node.mainframe {
    top: 40px; right: 40px;
    background-color: var(--color-success);
    border: 1px solid var(--color-success);
}

.blueprint-radar .node.active {
    box-shadow: 0 0 15px currentColor;
}

/* ==========================================================================
   13. BATTLE PASS PROGRESSION
   ========================================================================== */
.battlepass-section {
    background-color: #0F1115;
}

.tier-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: 4px;
    text-align: center;
    position: relative;
    transition: var(--transition-normal);
}

.tier-card:hover {
    transform: translateY(-5px);
    background-color: var(--color-card-hover);
}

.tier-card.premium {
    border-color: rgba(0, 174, 239, 0.2);
}
.tier-card.premium:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(0, 174, 239, 0.15);
}

.tier-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    background-color: rgba(255,255,255,0.05);
    color: #FFFFFF;
    padding: 4px 8px;
    border-radius: 2px;
}

.tier-skin-preview {
    font-size: 3rem;
    color: var(--color-gray);
    margin: 40px 0 24px 0;
}

.tier-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.tier-type {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-gray);
    letter-spacing: 0.1em;
}

.tier-type.premium {
    color: var(--color-primary);
}

.battlepass-cta-bar {
    margin-top: 50px;
    border-top: 1px dashed var(--color-border);
    padding-top: 30px;
}

.pass-info-text {
    font-size: 0.95rem;
}

/* ==========================================================================
   14. CINEMATIC VIDEO TRAILER
   ========================================================================== */
.trailer-section {
    background-color: #0B0D10;
}

.video-container-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.responsive-video-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.responsive-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   15. DOWNLOAD PLATFORMS
   ========================================================================== */
.download-section {
    background-color: #12151B;
}

.specifications-panel {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: 4px;
    margin-top: 40px;
}

.panel-heading {
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 10px 0;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.specs-table td:first-child {
    color: var(--color-gray);
    font-weight: 500;
}

.specs-table td:last-child {
    color: #FFFFFF;
    text-align: right;
    font-weight: 700;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.download-action-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.badge-button-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-badge-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 14px 28px;
    width: 100%;
    background-color: var(--color-card);
    border: 1px solid rgba(255,255,255,0.1);
    color: #FFFFFF;
    border-radius: 4px;
}

.download-badge-btn:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
    box-shadow: 0 10px 25px rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.download-badge-btn .badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.download-badge-btn .badge-text .sub {
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.8;
}

.download-badge-btn .badge-text .main {
    font-size: 1.1rem;
    font-weight: 900;
    font-family: var(--font-heading);
}

.qr-code-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: rgba(26, 31, 41, 0.4);
    border: 1px solid var(--color-border);
    padding: 24px;
    border-radius: 4px;
}

.qr-code-placeholder {
    background-color: #FFFFFF;
    color: #000000;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.qr-title {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    color: #FFFFFF;
}

.qr-desc {
    font-size: 0.75rem;
    color: var(--color-gray);
    line-height: 1.4;
}

/* ==========================================================================
   16. FAQ ACCORDIONS
   ========================================================================== */
.faq-section {
    background-color: #0F1115;
}

.faq-accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(255,255,255,0.15);
}

.faq-trigger {
    background: none;
    border: none;
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    text-align: left;
    color: #FFFFFF;
}

.faq-trigger:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.faq-title {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.faq-toggle-icon {
    font-size: 0.8rem;
    color: var(--color-gray);
    transition: transform var(--transition-fast);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 24px;
}

.faq-answer-text {
    font-size: 0.85rem;
    color: var(--color-gray);
    padding-bottom: 24px;
    line-height: 1.6;
}

.inline-link {
    text-decoration: underline;
}

/* FAQ Active state toggle */
.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
    color: var(--color-primary);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust dynamically via JS if content is larger */
}

/* ==========================================================================
   17. SUPPORT HUB & GENERAL INNER PAGES FORM STYLING
   ========================================================================== */
.inner-page-hero {
    padding: 140px 24px 60px 24px;
    background: radial-gradient(circle at 50% 100%, rgba(26, 31, 41, 0.6) 0%, rgba(15, 17, 21, 1) 100%);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.form-container {
    max-width: 650px;
    margin: 0 auto;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background-color: #0F1115;
    border: 1px solid rgba(255,255,255,0.1);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-help {
    display: block;
    font-size: 0.75rem;
    color: var(--color-gray);
    margin-top: 6px;
}

.validation-error {
    border-color: var(--color-danger);
}
.validation-error-msg {
    color: var(--color-danger);
    font-size: 0.75rem;
    margin-top: 6px;
}

.success-message-overlay {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: 24px;
    text-shadow: 0 0 20px var(--color-success-glow);
}

/* Support Options Cards */
.support-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.support-option-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    padding: 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: left;
}

.support-option-card:hover {
    background-color: var(--color-card-hover);
    border-color: var(--color-primary);
}

.support-option-card.active {
    border-color: var(--color-primary);
    background-color: rgba(0, 174, 239, 0.05);
}

.support-opt-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.support-opt-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.support-opt-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.support-opt-desc {
    font-size: 0.8rem;
    color: var(--color-gray);
    line-height: 1.4;
}

/* ==========================================================================
   18. LEGAL DOCUMENTS & RICH TEXT STYLING
   ========================================================================== */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px;
}

.legal-content-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    padding: 48px;
    border-radius: 4px;
}

.legal-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-gray);
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
    text-transform: uppercase;
}

.rich-text h3 {
    font-size: 1.2rem;
    margin: 35px 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: 3px solid var(--color-primary);
    padding-left: 12px;
}

.rich-text p {
    color: var(--color-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.rich-text ul {
    margin: 15px 0 25px 20px;
    list-style-type: square;
}

.rich-text li {
    color: var(--color-gray);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* ==========================================================================
   19. STUDIO FOOTER
   ========================================================================== */
.studio-footer {
    background-color: #0A0C0E;
    border-top: 1px solid var(--color-border);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px 40px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

.brand-bio {
    color: var(--color-gray);
    font-size: 0.85rem;
    line-height: 1.6;
}

.social-links-wrapper {
    display: flex;
    gap: 12px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.social-icon-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #000000;
    box-shadow: 0 0 10px var(--color-primary-glow);
    transform: translateY(-2px);
}

.column-title {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 0.85rem;
    color: var(--color-gray);
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.copyright-text {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.disclaimer-text {
    font-size: 0.65rem;
    color: var(--color-dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   20. RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* Large screens and Desktops (up to 1200px) */
@media screen and (max-width: 1200px) {
    .carousel-control.prev { left: 15px; }
    .carousel-control.next { right: 15px; }
}

/* Tablets (landscape and portrait - up to 992px) */
@media screen and (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile & Small Tablets (up to 768px) */
@media screen and (max-width: 768px) {
    /* Header toggle */
    .mobile-nav-toggle {
        display: block;
    }

    .studio-navbar {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(15, 17, 21, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--color-border);
        padding: 40px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .studio-navbar.open {
        opacity: 1;
        visibility: visible;
    }

    .studio-navbar .nav-list {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .nav-link {
        font-size: 1rem;
    }

    .header-cta {
        display: none; /* Hide top CTA on small screen mobile */
    }

    /* Grids to single columns */
    .grid-2-cols, .grid-3-cols, .grid-4-cols {
        grid-template-columns: 1fr;
    }

    .gap-large {
        gap: 40px;
    }

    .section-container {
        padding: 60px 20px;
    }

    /* Specific elements */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-visual {
        margin-top: 20px;
    }

    .carousel-slide img {
        height: 300px;
    }

    .map-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .map-tab-btn::after {
        display: none;
    }

    .map-tab-btn.active {
        background-color: var(--color-card);
        color: var(--color-primary);
        border-left: 2px solid var(--color-primary);
    }

    .map-blueprint-visual {
        height: 300px;
    }

    .blueprint-radar {
        width: 220px;
        height: 220px;
    }

    .blueprint-radar .node.reactor { bottom: 30px; left: 30px; }
    .blueprint-radar .node.mainframe { top: 30px; right: 30px; }

    .support-cards-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 24px;
    }

    .legal-content-card {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Small mobile (up to 480px) */
@media screen and (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .carousel-slide img {
        height: 220px;
    }

    .badge-button-grid {
        flex-direction: column;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-ctas .btn {
        width: 100%;
    }
}

