/* ==========================================================================
   1. PREMIUM DESIGN SYSTEM VARIABLES & FOUNDATION
   ========================================================================== */

:root {
    --bg-main: #060913;         /* Deep Cyber Gray */
    --bg-alt: #0B1120;          /* Secondary Premium Dark Card Fill */
    --border-color: #1E293B;    /* Slate Gray Structural Accents */
    --accent-blue: #00E5FF;     /* Quantum Blue Core Focus Glow */
    --accent-glow: rgba(0, 229, 255, 0.15);
    --text-pure: #FFFFFF;       /* Pure White Typography Headers */
    --text-muted: #94A3B8;      /* Soft Data Reading Paragraphs */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-pure);
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   2. HIGH-PERFORMANCE ON-SCROLL ANIMATION STATES
   ========================================================================== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* Activated state controlled natively by Intersection Observer */
.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Ambient Backing Glow Lights */
.ambient-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.04) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
    filter: blur(80px);
}
.glow-1 { top: -20%; left: -20%; }
.glow-2 { bottom: -20%; right: -20%; }

.cyber-grid-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(30, 41, 59, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(30, 41, 59, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Reusable UI Components */
.section-tag {
    color: var(--accent-blue);
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    display: block;
    margin-bottom: 16px;
    font-weight: 500;
}

.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   3. MOBILE-OPTIMIZED HEADER NAVIGATION
   ========================================================================== */

.global-header {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 80px;
    background: rgba(6, 9, 19, 0.7);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 1100;
}

.brand-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 6px;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}
.nav-item:hover { color: var(--accent-blue); }

.btn-nav-action {
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}
.btn-nav-action:hover {
    background: var(--accent-blue);
    color: var(--bg-main);
    box-shadow: 0 0 15px var(--accent-blue);
}

/* Mobile Hamburger Menu Icon Layout */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
    padding: 8px;
}

.hamburger-bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-pure);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   4. MANIFESTO (HERO) SECTION
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    padding: 160px 6% 100px 6%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content { max-width: 880px; }

.hero-logo-frame {
    width: 90px;
    height: 90px;
    margin: 0 auto 36px auto;
}

.hero-logo-large {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 36px;
    letter-spacing: -1px;
}

.manifesto-paragraph {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 28px;
    text-align: justify;
    text-justify: inter-word;
}

.btn-primary-glow {
    display: inline-block;
    padding: 16px 36px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, rgba(0, 229, 255, 0.02) 100%);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 24px;
    transition: var(--transition-smooth);
}
.btn-primary-glow:hover {
    background: var(--accent-blue);
    color: var(--bg-main);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.35);
    transform: translateY(-2px);
}

/* ==========================================================================
   5. THE VECTOR PILLARS GRID
   ========================================================================== */

.vector-section { padding: 120px 6%; }

.section-title-block { max-width: 750px; margin-bottom: 80px; }

.section-title-block h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    font-weight: 700;
}

.section-title-block p { color: var(--text-muted); font-size: 1.05rem; }
.section-title-block.centered { margin: 0 auto 80px auto; text-align: center; }

.vector-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.pipeline-card {
    background: linear-gradient(145deg, rgba(11, 17, 32, 0.6) 0%, rgba(6, 9, 19, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.pipeline-card:hover {
    border-color: rgba(0, 229, 255, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.phase-header { margin-bottom: 28px; }
.phase-number { color: var(--accent-blue); font-size: 0.75rem; display: block; margin-bottom: 6px; }
.phase-header h3 { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; }

.phase-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 48px;
}

.phase-footer {
    border-top: 1px solid rgba(30, 41, 59, 0.4);
    padding-top: 20px;
}
.mini-card-logo { width: 24px; height: 24px; border-radius: 4px; opacity: 0.5; }

/* ==========================================================================
   6. DEEP DIVE STRUCTURAL TWO-COLUMN LAYOUTS
   ========================================================================== */

.deep-dive-section { padding: 140px 6%; }
.deep-dive-section.bg-alt { background-color: var(--bg-alt); }

.grid-two-column {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 100px;
    align-items: center;
}

.grid-two-column.reverse { direction: rtl; }
.grid-two-column.reverse .text-content-column { direction: ltr; }

.section-intro { font-size: 1.15rem; color: #E2E8F0; margin-bottom: 44px; }
.spec-block { margin-bottom: 36px; }
.spec-block h4 { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 12px; }
.spec-block p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.65; }

/* Code Terminal Elements */
.terminal-mockup {
    background: #04060C;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #080C16;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-header .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #EF4444; } .dot.y { background: #F59E0B; } .dot.g { background: #10B981; }
.terminal-header .title { color: var(--text-muted); font-size: 0.75rem; margin-left: 10px; }

.terminal-body { padding: 28px; font-size: 0.88rem; }
.code-line { margin-bottom: 10px; color: #94A3B8; }
.keyword { color: #F43F5E; } .string { color: var(--accent-blue); } .comment { color: #475569; } .success { color: #10B981; }

/* Creative Blueprint Framework Frames */
.glass-blueprint-frame {
    height: 420px;
    border: 1px solid rgba(0, 229, 255, 0.15);
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.02) 0%, transparent 80%);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blueprint-mesh {
    position: absolute;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 0);
    background-size: 20px 20px;
}
.blueprint-center-logo { width: 70px; height: 70px; border-radius: 12px; z-index: 2; opacity: 0.7; }
.hud-data-tag { position: absolute; bottom: 16px; left: 16px; font-size: 0.7rem; color: var(--text-muted); }

/* Mobility Chassis Container Rendering */
.mobility-chassis-wrapper {
    height: 420px;
    background: linear-gradient(to bottom, #0A1121 0%, #040712 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chassis-core-img { width: 90px; height: 90px; border-radius: 16px; opacity: 0.8; z-index: 2; }

.laser-scanner-line {
    position: absolute;
    width: 90%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    box-shadow: 0 0 20px var(--accent-blue);
    animation: scannerScan 4s infinite linear;
}

@keyframes scannerScan {
    0% { transform: translateY(-160px); }
    50% { transform: translateY(160px); }
    100% { transform: translateY(-160px); }
}

.hud-status { position: absolute; top: 16px; right: 16px; font-size: 0.7rem; color: var(--accent-blue); }

/* ==========================================================================
   7. TECH ARCHITECTURAL SYSTEM TABLE
   ========================================================================== */

.stack-section { padding: 120px 6%; }

.table-container {
    max-width: 1140px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(11, 17, 32, 0.4);
    backdrop-filter: blur(10px);
}

.stack-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.95rem; }
.stack-table th, .stack-table td { padding: 28px 36px; border-bottom: 1px solid var(--border-color); }

.stack-table th {
    background: #040712;
    font-family: var(--font-heading);
    color: var(--text-pure);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.stack-table tr:last-child td { border-bottom: none; }
.layer-title { color: var(--accent-blue); font-weight: 700; width: 25%; }

/* ==========================================================================
   8. CORE COLLECTIVE CAROUSEL SLIDER ENGINE
   ========================================================================== */

.collective-carousel-section { padding: 120px 6%; }

.carousel-master-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    background: linear-gradient(145deg, #0A0F1D 0%, #040711 100%);
    border-radius: 16px;
    padding: 56px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.carousel-window { overflow: hidden; width: 100%; }
.carousel-slider-track { display: flex; transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1); width: 100%; }
.carousel-slide { min-width: 100%; opacity: 0; transition: opacity 0.4s ease; }
.carousel-slide.active { opacity: 1; }

.slide-flex-layout { display: flex; gap: 56px; align-items: center; }

.member-image-frame {
    position: relative;
    width: 300px; height: 350px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.member-photo { width: 100%; height: 100%; object-fit: cover; }

.glowing-corner-tag {
    position: absolute; bottom: 16px; right: 16px;
    width: 8px; height: 8px; background-color: var(--accent-blue);
    border-radius: 50%; box-shadow: 0 0 10px var(--accent-blue);
}

.member-badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 30px;
    font-size: 0.75rem;
    color: var(--accent-blue);
    background: rgba(0, 229, 255, 0.03);
    margin-bottom: 20px;
}

.member-info-frame h3 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 18px; font-weight: 700; }
.member-bio { color: var(--text-muted); line-height: 1.75; font-size: 1rem; }

.carousel-navigation-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 40px; border-top: 1px solid rgba(30, 41, 59, 0.6); padding-top: 28px;
}

.carousel-arrow-buttons { display: flex; gap: 14px; }

.nav-arrow-btn {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-pure);
    width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
    font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
    transition: var(--transition-smooth);
}
.nav-arrow-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: rgba(0, 229, 255, 0.02); }
.slide-numeric-index { font-size: 0.85rem; color: var(--text-muted); }

/* ==========================================================================
   9. RECRUITMENT GATEWAY PORTAL BOX
   ========================================================================== */

.gate-section { padding: 120px 6%; display: flex; justify-content: center; }

.premium-gate-box {
    max-width: 1140px; width: 100%;
    background: linear-gradient(145deg, #0B1222 0%, #050813 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px; padding: 72px;
    position: relative; overflow: hidden;
}

.gate-light-leak {
    position: absolute; top: -10%; right: -10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.premium-gate-box h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700; margin-bottom: 20px; line-height: 1.15;
}

.gate-subtext { color: var(--text-muted); max-width: 720px; margin-bottom: 56px; font-size: 1.05rem; }

.gate-tracks-flex { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.gate-track-pill {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    padding: 12px 24px; border-radius: 30px;
}
.gate-track-pill h6 { font-family: var(--font-heading); font-size: 0.95rem; color: #E2E8F0; font-weight: 500; }

.gate-action-area { border-top: 1px solid rgba(30, 41, 59, 0.6); padding-top: 48px; }

.btn-terminal-trigger {
    background: transparent; border: 1px solid var(--accent-blue); color: var(--accent-blue);
    padding: 18px 44px; font-family: var(--font-mono); font-size: 0.9rem;
    font-weight: 700; cursor: pointer; border-radius: 4px;
    letter-spacing: 1px; transition: var(--transition-smooth);
}
.btn-terminal-trigger:hover { background: var(--accent-blue); color: var(--bg-main); box-shadow: 0 0 25px var(--accent-blue); }

/* Footer Elements */
.global-footer { padding: 48px 6%; border-top: 1px solid var(--border-color); text-align: center; font-size: 0.75rem; color: var(--text-muted); letter-spacing: 1px; }

/* ==========================================================================
   10. MOBILE ARCHITECTURAL BREAKPOINT MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

@media (max-width: 1024px) {
    .grid-two-column, .grid-two-column.reverse { grid-template-columns: 1fr; gap: 56px; }
    .grid-two-column.reverse { direction: ltr; }
    .slide-flex-layout { gap: 40px; }
}

@media (max-width: 768px) {
    /* Mobile Drawer Expansion Mechanics via JS targeting */
    .mobile-nav-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 80px; left: 0; width: 100%; height: calc(100vh - 80px);
        background: #060913;
        flex-direction: column; justify-content: center; gap: 40px;
        transform: translateY(-100%); opacity: 0; pointer-events: none;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
    }
    
    /* State injected dynamically on toggle click */
    .global-header.nav-menu-open .nav-links {
        transform: translateY(0); opacity: 1; pointer-events: auto;
    }

    .global-header.nav-menu-open .hamburger-bar:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }
    .global-header.nav-menu-open .hamburger-bar:nth-child(2) {
        transform: translateY(-4px) rotate(-45deg);
    }

    .hero-section { padding-top: 140px; }
    .manifesto-paragraph { text-align: left; }
    
    .slide-flex-layout { flex-direction: column; align-items: flex-start; gap: 28px; }
    .member-image-frame { width: 100%; height: 300px; }
    
    .carousel-master-wrapper { padding: 32px; }
    .premium-gate-box { padding: 40px 24px; }
    .stack-table th, .stack-table td { padding: 20px; }
    .layer-title { width: 35%; }
}