/* ==========================================
   CSS VARIABLES - CYBER RED INTELLIGENCE SYSTEM
   ========================================== */
   :root {
    /* Color System - Aggressive Red/Black Theme */
    --bg-base: #070202;
    --bg-sec: #0c0303;
    --surf-1: #140505;
    --surf-2: #1f0808;
    
    --accent-red: #ff2a2a;
    --red-glow: rgba(255, 42, 42, 0.4);
    --red-dim: rgba(255, 42, 42, 0.1);
    
    --accent-orange: #ff6a00;
    --accent-alert: #ffcc00; /* Yellow for warnings/status */
    
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: rgba(255, 42, 42, 0.15); /* Red tinted borders */
    
    /* Typography */
    --font-sans: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Layout/Effects */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --z-modal: 9000;
    --z-nav: 1000;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) var(--bg-sec);
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-sec); }
::-webkit-scrollbar-thumb { background: var(--surf-2); border-radius: 4px; border: 1px solid var(--red-dim); }

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; outline: none; cursor: pointer; }
button { font-family: inherit; border: none; background: none; outline: none; cursor: pointer; }
ul { list-style: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 10; }
.section { padding: 8rem 0; position: relative; }
.full-screen-section { min-height: 100vh; display: flex; align-items: center; padding: 6rem 0; }
.mt-lg { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }

/* Typography Utility */
.accent-red { color: var(--accent-red); }
.accent-alert { color: var(--accent-alert); }
.accent-orange { color: var(--accent-orange); }
.glow-text { text-shadow: 0 0 20px var(--red-glow); }

.sys-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-red);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--red-dim);
    border-left: 2px solid var(--accent-red);
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; text-transform: uppercase; }
.section-desc { color: var(--text-muted); font-size: 1.125rem; max-width: 600px; }

/* ==========================================
   SYSTEM LOADER
   ========================================== */
#sys-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-base);
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
.loader-content { text-align: center; font-family: var(--font-mono); }
.loader-bar { width: 200px; height: 2px; background: var(--surf-2); margin: 1rem auto; overflow: hidden; position: relative; }
.loader-progress { width: 40%; height: 100%; background: var(--accent-red); animation: scanX 1s ease-in-out infinite alternate; }
.sys-text { font-size: 0.75rem; color: var(--accent-red); letter-spacing: 0.2em; }

@keyframes scanX { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* ==========================================
   BACKGROUND SYSTEM
   ========================================== */
.bg-system { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.bg-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.bg-gradient { background: radial-gradient(circle at 50% 0%, var(--bg-sec) 0%, var(--bg-base) 100%); }
.bg-grid {
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px; opacity: 0.15; perspective: 1000px; transform: rotateX(60deg) scale(2.5) translateY(-20%);
    mask-image: linear-gradient(to bottom, transparent, black 40%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 40%, transparent 90%);
}
.bg-radial { background: radial-gradient(circle at 80% 20%, rgba(255, 42, 42, 0.03) 0%, transparent 40%), radial-gradient(circle at 20% 80%, rgba(255, 106, 0, 0.03) 0%, transparent 40%); }

/* Investigation Thread Signature */
.inv-thread-container { position: absolute; left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); opacity: 0.5; }
.inv-thread-line { width: 100%; height: 0%; background: linear-gradient(to bottom, transparent, var(--accent-red), var(--accent-orange), transparent); filter: drop-shadow(0 0 8px var(--accent-red)); transition: height 0.5s ease-out; }

/* ==========================================
   SCROLL NAV
   ========================================== */
.scroll-indicator { position: fixed; right: 2rem; top: 50%; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; gap: 1rem; }
.scroll-dot { width: 6px; height: 6px; background: var(--surf-2); border-radius: 50%; position: relative; transition: var(--transition); cursor: pointer; }
.scroll-dot::before {
    content: attr(data-tooltip); position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); opacity: 0; pointer-events: none; transition: var(--transition);
    white-space: nowrap; padding: 0.2rem 0.5rem; background: var(--surf-1); border: 1px solid var(--border); border-radius: 2px;
}
.scroll-dot.active { background: var(--accent-red); box-shadow: 0 0 10px var(--accent-red); height: 16px; border-radius: 4px; }
.scroll-dot.active::before { opacity: 1; color: var(--accent-red); border-color: var(--red-dim); }
@media (max-width: 1200px) { .scroll-indicator { display: none; } }

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar { position: fixed; top: 0; width: 100%; z-index: var(--z-nav); background: rgba(7, 2, 2, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); transition: var(--transition); height: 70px; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo-img { height: 24px; filter: drop-shadow(0 0 8px var(--red-dim)); }
.logo-fallback { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.1em; color: var(--text-main); }
.nav-content { display: flex; align-items: center; gap: 3rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.1em; position: relative; }
.nav-links a:hover { color: var(--accent-red); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--accent-red); transition: var(--transition); }
.nav-links a:hover::after { width: 100%; }

.sys-status { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.65rem; padding: 0.3rem 0.6rem; border: 1px solid var(--border); border-radius: 2px; background: var(--surf-1); }
.status-dot { width: 6px; height: 6px; background: var(--accent-alert); border-radius: 50%; box-shadow: 0 0 8px var(--accent-alert); animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; }
.mobile-menu-toggle .bar { width: 24px; height: 2px; background: var(--text-main); transition: var(--transition); }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 0.875rem 2rem;
    font-family: var(--font-mono); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.05em;
    position: relative; overflow: hidden; transition: var(--transition); border-radius: 2px;
}
.btn-primary { background: var(--red-dim); border: 1px solid var(--accent-red); color: var(--accent-red); text-shadow: 0 0 8px rgba(255,42,42,0.5); }
.btn-primary:hover { background: var(--accent-red); color: var(--bg-base); text-shadow: none; box-shadow: 0 0 20px var(--red-glow); }
.btn-secondary { background: var(--surf-1); border: 1px solid var(--border); color: var(--text-main); }
.btn-secondary:hover { border-color: var(--accent-red); background: var(--surf-2); color: var(--accent-red); }
.btn-full { width: 100%; }

/* Scanline effect in buttons */
.btn-scanline { position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transform: skewX(-20deg); transition: 0s; }
.btn-primary:hover .btn-scanline { left: 200%; transition: 0.6s ease-in-out; }

/* ==========================================
   00. HERO SECTION
   ========================================== */
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.sys-meta-panel { font-family: var(--font-mono); font-size: 0.75rem; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.25rem; border-left: 2px solid var(--border); padding-left: 1rem; }
.meta-row { display: flex; gap: 1rem; }
.meta-lbl { color: var(--text-muted); width: 70px; }
.pulse { animation: pulseOp 2s infinite; }
@keyframes pulseOp { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero-title { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
.hero-subtitle { color: var(--text-muted); font-size: 1.125rem; max-width: 500px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.linkedin-prompt { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; background: var(--surf-1); border: 1px solid var(--border); border-radius: 4px; max-width: 400px; }
.prompt-icon { color: var(--accent-red); }
.prompt-content p { font-size: 0.75rem; font-family: var(--font-mono); margin-bottom: 0.5rem; }
.prompt-content a { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); border-bottom: 1px dashed var(--border); transition: var(--transition); }
.prompt-content a:hover { color: var(--accent-red); border-color: var(--accent-red); }

/* Hero Visual - Cyber Globe */
.hero-visual { position: relative; width: 100%; aspect-ratio: 1; display: flex; justify-content: center; align-items: center; perspective: 1000px; }
.cyber-globe { position: relative; width: 80%; height: 80%; transform-style: preserve-3d; animation: slowFloat 6s ease-in-out infinite; }
@keyframes slowFloat { 0%, 100% { transform: translateY(0) rotateX(10deg); } 50% { transform: translateY(-20px) rotateX(15deg); } }

.globe-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--red-dim); }
.r1 { width: 100%; height: 100%; border-style: dashed; animation: rotate 20s linear infinite; }
.r2 { width: 75%; height: 75%; border-color: var(--border); animation: rotate 15s linear infinite reverse; }
.r3 { width: 50%; height: 50%; border: 2px solid var(--red-dim); box-shadow: inset 0 0 20px var(--red-dim); }

@keyframes rotate { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

.scan-line { position: absolute; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-red), transparent); top: 0; left: 0; box-shadow: 0 0 20px var(--accent-red); animation: scanDown 3s linear infinite; opacity: 0.7; }
@keyframes scanDown { 0% { top: 0; } 100% { top: 100%; } }

.node { position: absolute; width: 10px; height: 10px; background: var(--bg-sec); border: 2px solid var(--accent-red); border-radius: 50%; z-index: 5; }
.node::after { content: attr(data-label); position: absolute; left: 15px; top: -5px; font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-main); white-space: nowrap; background: var(--surf-1); padding: 2px 6px; border: 1px solid var(--border); }
.n1 { top: 20%; left: 30%; } .n2 { top: 40%; right: 20%; } .n3 { bottom: 30%; left: 20%; } 
.n4 { bottom: 15%; right: 30%; border-color: var(--accent-alert); box-shadow: 0 0 15px var(--accent-alert); }

.connection-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.animated-path { fill: none; stroke: var(--red-dim); stroke-width: 1; stroke-dasharray: 100; stroke-dashoffset: 100; animation: dashAnim 4s linear infinite; }
@keyframes dashAnim { to { stroke-dashoffset: 0; } }

/* ==========================================
   01. INTRO SEQUENCE
   ========================================== */
.intro-sequence { display: flex; flex-direction: column; align-items: center; margin-top: 3rem; }
.seq-node {
    background: var(--surf-1); border: 1px solid var(--border); padding: 1rem 2rem; border-radius: 4px; position: relative;
    transition: var(--transition); text-align: center; min-width: 200px; cursor: pointer;
}
.seq-core { font-family: var(--font-mono); font-weight: 700; color: var(--text-main); letter-spacing: 0.05em; }
.seq-panel {
    position: absolute; left: 105%; top: 50%; transform: translateY(-50%) translateX(10px);
    width: 220px; background: var(--surf-2); border: 1px solid var(--red-dim); padding: 1rem;
    font-size: 0.75rem; color: var(--text-muted); opacity: 0; visibility: hidden; transition: var(--transition); text-align: left;
}
.seq-node:hover { border-color: var(--accent-red); transform: scale(1.05); z-index: 10; box-shadow: 0 0 20px var(--red-dim); }
.seq-node:hover .seq-panel { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.seq-row { display: flex; gap: 2rem; }
.seq-node.small { min-width: 120px; padding: 0.75rem 1rem; }
.seq-node.highlight { border-color: var(--accent-orange); color: var(--accent-orange); }
.seq-node.highlight .seq-core { color: var(--accent-orange); }
.seq-node.target { border-color: var(--accent-alert); background: rgba(255, 204, 0, 0.05); }
.seq-node.target .seq-core { color: var(--accent-alert); }

.seq-line { width: 2px; height: 30px; background: linear-gradient(to bottom, var(--red-dim), var(--accent-red), var(--red-dim)); animation: pulseOp 2s infinite; }

/* ==========================================
   02. RADAR LOOP
   ========================================== */
.radar-container { display: flex; justify-content: center; align-items: center; margin-top: 4rem; position: relative; }
.radar-interface { width: 400px; height: 400px; border-radius: 50%; border: 1px solid var(--border); position: relative; background: radial-gradient(circle, var(--surf-1) 0%, transparent 70%); }
.radar-sweep { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 70%, var(--red-dim) 90%, var(--accent-red) 100%); animation: radarSpin 3s linear infinite; }
@keyframes radarSpin { 100% { transform: rotate(360deg); } }

.radar-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100px; height: 100px; border-radius: 50%; background: var(--bg-sec); border: 2px solid var(--accent-orange);
    display: flex; justify-content: center; align-items: center; text-align: center;
    font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-orange); font-weight: 700; z-index: 10; box-shadow: 0 0 20px rgba(255,106,0,0.2);
}

.radar-node {
    position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 70px; height: 70px; border-radius: 50%; background: var(--surf-2); border: 1px solid var(--border);
    transition: var(--transition); z-index: 5; cursor: pointer;
}
.rn-num { font-family: var(--font-mono); font-size: 0.65rem; color: var(--accent-red); }
.rn-label { font-size: 0.75rem; font-weight: 600; margin-top: 2px; }

/* Positioning Nodes */
.rn-1 { top: 0; left: 50%; transform: translate(-50%, -50%); }
.rn-2 { top: 50%; right: 0; transform: translate(50%, -50%); }
.rn-3 { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.rn-4 { top: 50%; left: 0; transform: translate(-50%, -50%); }

.radar-node:hover { border-color: var(--accent-red); box-shadow: 0 0 20px var(--red-dim); transform: scale(1.15) translate(var(--tx, 0), var(--ty, 0)); }
.rn-1:hover { --tx: -45%; --ty: -45%; } .rn-2:hover { --tx: 45%; --ty: -45%; } .rn-3:hover { --tx: -45%; --ty: 45%; } .rn-4:hover { --tx: -55%; --ty: -45%; }

.radar-info-panel {
    position: absolute; right: -250px; top: 50%; transform: translateY(-50%); width: 200px;
    background: var(--surf-1); border: 1px solid var(--border); padding: 1rem; border-left: 2px solid var(--accent-red);
}
.ri-title { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-red); margin-bottom: 0.5rem; }
.ri-desc { font-size: 0.85rem; color: var(--text-muted); }

/* ==========================================
   03. MISSIONS (CHALLENGES)
   ========================================== */
.mission-status-bar { font-family: var(--font-mono); font-size: 0.75rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 2rem; }
.ms-label { color: var(--text-muted); }
.ms-spacer { margin: 0 1rem; color: var(--border); }

.filter-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 3rem; }
.filter-btn {
    font-family: var(--font-mono); font-size: 0.75rem; padding: 0.5rem 1rem;
    background: var(--surf-1); border: 1px solid var(--border); color: var(--text-muted);
    transition: var(--transition); border-radius: 2px;
}
.filter-btn:hover { background: var(--surf-2); color: var(--text-main); border-color: var(--accent-red); }
.filter-btn.active { background: var(--red-dim); border-color: var(--accent-red); color: var(--accent-red); }

.missions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }

.mission-card {
    background: var(--surf-1); border: 1px solid var(--border); border-radius: 4px;
    display: flex; flex-direction: column; transition: var(--transition);
    position: relative; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
    cursor: pointer;
}
.mission-card::before { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 100%; background: var(--border); transition: var(--transition); }
.mission-card:hover { transform: translateY(-8px); border-color: var(--red-dim); background: var(--surf-2); box-shadow: 0 15px 30px rgba(0,0,0,0.6); }
.mission-card:hover::before { background: var(--accent-red); box-shadow: 0 0 10px var(--accent-red); }

.mc-header { padding: 1.5rem 1.5rem 0; font-family: var(--font-mono); }
.mc-sys { display: flex; justify-content: space-between; font-size: 0.65rem; color: var(--text-muted); margin-bottom: 1rem; border-bottom: 1px dashed var(--border); padding-bottom: 0.5rem; }
.mc-title { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.mc-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.mc-tag { font-size: 0.65rem; padding: 0.2rem 0.5rem; background: var(--surf-2); border: 1px solid var(--border); color: var(--text-muted); }

.mc-body { padding: 0 1.5rem 1.5rem; flex-grow: 1; }
.mc-stat { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.75rem; margin-bottom: 0.5rem; }
.mc-stat-lbl { color: var(--text-muted); }
.mc-diff-bar { width: 100%; height: 4px; background: var(--surf-2); margin-top: 0.5rem; border-radius: 2px; overflow: hidden; }
.mc-diff-fill { height: 100%; background: var(--accent-red); transition: width 1s ease-out; }

.mc-footer { padding: 1.5rem; border-top: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.btn-mission {
    width: 100%; background: transparent; border: 1px solid var(--border); color: var(--text-main);
    padding: 0.75rem; font-family: var(--font-mono); font-size: 0.85rem; text-align: center;
    transition: var(--transition); display: block;
}
.mission-card:hover .btn-mission { border-color: var(--accent-red); color: var(--accent-red); background: var(--red-dim); }

/* Case File Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(7,2,2,0.85); backdrop-filter: blur(8px); z-index: var(--z-modal); display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.case-file { width: 90%; max-width: 600px; background: var(--bg-sec); border: 1px solid var(--accent-red); padding: 2rem; position: relative; transform: translateY(20px) scale(0.95); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 20px var(--red-dim); clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }
.modal-overlay.active .case-file { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--text-muted); transition: var(--transition); }
.modal-close:hover { color: var(--accent-red); transform: rotate(90deg); }

.cf-header { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.cf-sys { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-red); display: block; margin-bottom: 0.5rem; }
.cf-title { font-size: 2rem; text-transform: uppercase; }
.cf-row { font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 0.75rem; display: flex; gap: 1rem; }
.cf-label { color: var(--text-muted); width: 100px; }
.cf-desc { margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; }
.cf-desc p { margin-top: 0.5rem; font-family: var(--font-sans); }
.cf-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; }
.cf-hint { display: block; margin-top: 1rem; font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); }

/* ==========================================
   04. DECISION INTERFACE
   ========================================== */
.decision-interface { background: var(--surf-1); border: 1px solid var(--border); padding: 3rem; border-radius: 4px; }
.di-header { margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 2rem; }
.di-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.di-options { display: flex; flex-direction: column; gap: 1rem; }
.di-btn { padding: 1.25rem; text-align: left; background: var(--bg-sec); border: 1px solid var(--border); color: var(--text-muted); font-family: var(--font-mono); font-size: 0.85rem; transition: var(--transition); position: relative; overflow: hidden; }
.di-btn::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 3px; background: transparent; transition: var(--transition); }
.di-btn:hover { background: var(--surf-2); color: var(--text-main); padding-left: 1.5rem; }
.di-btn:hover::before { background: var(--accent-red); }
.di-btn.active { background: var(--red-dim); border-color: var(--accent-red); color: var(--text-main); padding-left: 1.5rem; }
.di-btn.active::before { background: var(--accent-red); }

.di-result-panel { background: var(--bg-sec); border: 1px solid var(--border); padding: 2rem; display: flex; flex-direction: column; justify-content: center; min-height: 250px; border-radius: 4px; }
.di-placeholder { text-align: center; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.di-placeholder p { margin-top: 1rem; }

.di-rec { animation: fadeIn 0.5s ease-out; }
.di-rec-lbl { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-red); display: block; margin-bottom: 0.5rem; }
.di-rec-title { font-size: 2rem; margin-bottom: 1rem; }
.di-rec-desc { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; }

/* ==========================================
   05. PROGRESSION PATH
   ========================================== */
.progression-tunnel { display: flex; justify-content: space-between; align-items: flex-start; margin: 4rem 0; position: relative; }
.pt-step { flex: 1; text-align: center; position: relative; z-index: 2; transition: var(--transition); cursor: pointer; }
.pt-marker { width: 40px; height: 40px; margin: 0 auto 1.5rem; border: 1px solid var(--border); background: var(--surf-1); display: flex; justify-content: center; align-items: center; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); border-radius: 4px; transition: var(--transition); }
.pt-content h4 { font-family: var(--font-mono); font-size: 1rem; color: var(--text-main); margin-bottom: 0.5rem; }
.pt-content p { font-size: 0.85rem; color: var(--text-muted); }

.pt-step:hover .pt-marker { border-color: var(--accent-red); color: var(--accent-red); background: var(--red-dim); box-shadow: 0 0 20px var(--red-dim); transform: scale(1.15); }
.pt-step.final .pt-marker { border-color: var(--accent-orange); color: var(--accent-orange); }
.pt-step.final:hover .pt-marker { background: rgba(255, 106, 0, 0.1); box-shadow: 0 0 20px rgba(255, 106, 0, 0.3); }

.pt-line { flex: 1; height: 1px; background: var(--border); margin-top: 20px; position: relative; overflow: hidden; }
.pt-line::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, var(--accent-red), transparent); animation: flowLine 2s infinite linear; }
@keyframes flowLine { 100% { left: 100%; } }

/* ==========================================
   06. RESOURCES (DATABASE)
   ========================================== */
.resource-interface { background: var(--surf-1); border: 1px solid var(--border); border-radius: 4px; padding: 2rem; }
.ri-search-bar { display: flex; align-items: center; background: var(--bg-sec); border: 1px solid var(--border); padding: 1rem 1.5rem; border-radius: 4px; margin-bottom: 2rem; transition: var(--transition); }
.ri-search-bar:focus-within { border-color: var(--accent-red); box-shadow: 0 0 15px var(--red-dim); }
.ri-icon { color: var(--text-muted); margin-right: 1rem; }
.ri-search-bar input { flex-grow: 1; background: transparent; border: none; color: var(--text-main); font-family: var(--font-sans); font-size: 1rem; }
.ri-search-bar input:focus { outline: none; }
.ri-search-bar input::placeholder { color: var(--text-muted); }
.ri-count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-red); }

.resources-list { display: flex; flex-direction: column; gap: 1rem; }
.res-record { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; background: var(--bg-sec); border: 1px solid var(--border); border-radius: 4px; transition: var(--transition); cursor: pointer; }
.res-record:hover { border-color: var(--red-dim); background: var(--surf-2); transform: translateX(8px); }
.res-info { flex-grow: 1; }
.res-meta { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); margin-bottom: 0.5rem; display: block; }
.res-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
.res-desc { font-size: 0.85rem; color: var(--text-muted); max-width: 600px; }
.res-action { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-red); padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 2px; transition: var(--transition); }
.res-record:hover .res-action { border-color: var(--accent-red); background: var(--red-dim); }
.res-empty { padding: 3rem; text-align: center; color: var(--text-muted); font-family: var(--font-mono); }

/* ==========================================
   07. ETHICAL PROTOCOL
   ========================================== */
.protocol-panel { background: var(--bg-sec); border: 1px solid var(--border); padding: 3rem; position: relative; overflow: hidden; border-radius: 4px; }
.protocol-panel::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent-alert); }
.protocol-header { display: flex; gap: 2rem; align-items: center; margin-bottom: 3rem; border-bottom: 1px solid var(--border); padding-bottom: 2rem; }
.shield-icon { width: 64px; height: 64px; color: var(--accent-alert); opacity: 0.8; }
.protocol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.p-module { padding: 1.5rem; background: var(--surf-1); border: 1px solid var(--border); border-radius: 2px; transition: var(--transition); cursor: pointer; }
.p-module:hover { border-color: var(--accent-alert); background: rgba(255, 204, 0, 0.05); transform: translateY(-5px); }
.pm-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-alert); display: block; margin-bottom: 1rem; }
.p-module h4 { font-family: var(--font-mono); font-size: 1rem; margin-bottom: 0.5rem; }
.p-module p { font-size: 0.85rem; color: var(--text-muted); }

/* ==========================================
   08. CREATOR PROFILE
   ========================================== */
.creator-panel { display: flex; flex-wrap: wrap; gap: 3rem; background: var(--surf-1); border: 1px solid var(--border); padding: 3rem; border-radius: 4px; margin-bottom: 2rem; }
.cp-id { display: flex; gap: 1.5rem; align-items: center; min-width: 300px; }
.cp-avatar { width: 80px; height: 80px; background: var(--bg-sec); border: 1px solid var(--accent-red); border-radius: 4px; display: flex; justify-content: center; align-items: center; font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--accent-red); box-shadow: 0 0 15px var(--red-dim); }
.cp-info h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.cp-role { font-family: var(--font-mono); font-size: 0.85rem; }
.cp-bio { flex: 1; min-width: 300px; }
.cp-bio p { color: var(--text-muted); margin-bottom: 1.5rem; }
.cp-tags { display: flex; gap: 0.5rem; }
.tag { font-family: var(--font-mono); font-size: 0.65rem; padding: 0.25rem 0.5rem; background: var(--surf-2); border: 1px solid var(--border); color: var(--text-muted); border-radius: 2px; }

.social-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.soc-module { display: flex; flex-direction: column; padding: 1.5rem; background: var(--surf-1); border: 1px solid var(--border); position: relative; transition: var(--transition); border-radius: 2px; }
.soc-platform { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; transition: var(--transition); }
.soc-handle { font-size: 0.9rem; font-weight: 500; }
.soc-arrow { position: absolute; top: 1.5rem; right: 1.5rem; font-family: var(--font-mono); color: var(--border); transition: var(--transition); }
.soc-module:hover { border-color: var(--accent-red); background: var(--surf-2); transform: translateY(-5px); }
.soc-module:hover .soc-platform { color: var(--accent-red); }
.soc-module:hover .soc-arrow { color: var(--accent-red); transform: translate(3px, -3px); }

/* ==========================================
   09. CTA SECTION
   ========================================== */
.cta-section { position: relative; overflow: hidden; border-top: 1px solid var(--border); }
.cta-network-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(255, 42, 42, 0.05) 0%, transparent 60%); background-size: cover; z-index: 0; }
.cta-mega-title { font-size: clamp(3rem, 6vw, 5rem); line-height: 1.1; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: -0.02em; }
.cta-desc { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 3rem; }
.cta-signature { font-family: var(--font-mono); font-size: 1.5rem; opacity: 0.5; }
.sig-x { color: var(--accent-red); margin: 0 1rem; }

/* ==========================================
   FOOTER
   ========================================== */
.footer { border-top: 1px solid var(--border); background: var(--bg-sec); padding: 3rem 0; position: relative; z-index: 10; }
.footer-layout { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 2rem; }
.f-logo { font-family: var(--font-mono); font-size: 1.25rem; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 0.5rem; }
.f-tag { color: var(--accent-red); font-family: var(--font-mono); font-size: 0.75rem; }
.footer-meta { text-align: right; }
.footer-meta p { color: var(--text-muted); font-size: 0.85rem; }
.f-copy { font-family: var(--font-mono); font-size: 0.75rem; margin-top: 0.5rem; opacity: 0.6; }

/* ==========================================
   ANIMATIONS & REVEAL CLASSES (HIGH QUALITY)
   ========================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: opacity, transform; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

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

/* ==========================================
   RESPONSIVE (MOBILE UX)
   ========================================== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-visual { width: 80%; margin: 0 auto; order: -1; }
    .sys-meta-panel { align-items: center; border-left: none; border-bottom: 2px solid var(--border); padding: 0 0 1rem; }
    .hero-actions { justify-content: center; }
    .linkedin-prompt { margin: 0 auto; }
    .di-layout { grid-template-columns: 1fr; gap: 2rem; }
    .radar-info-panel { position: relative; right: auto; top: auto; transform: none; margin-top: 2rem; width: 100%; text-align: center; border-left: none; border-top: 2px solid var(--accent-red); }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .section { padding: 5rem 0; }
    .full-screen-section { min-height: auto; padding: 6rem 0; }
    
    .nav-links, .sys-status { display: none; }
    .mobile-menu-toggle { display: flex; }
    .navbar.menu-open .nav-content {
        display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%;
        background: var(--bg-sec); padding: 2rem; border-bottom: 1px solid var(--border);
    }
    .navbar.menu-open .nav-links { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; width: 100%; }
    
    .seq-row { flex-direction: column; gap: 1rem; }
    .seq-panel { display: none; /* Hide hover panels on mobile for simplicity */ }
    
    .radar-interface { width: 300px; height: 300px; }
    .radar-node { width: 60px; height: 60px; }
    
    .filter-controls { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 1rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .filter-controls::-webkit-scrollbar { display: none; }
    .filter-btn { flex: 0 0 auto; }
    
    .progression-tunnel { flex-direction: column; gap: 2rem; }
    .pt-line { width: 2px; height: 30px; margin: 0 auto; }
    .pt-line::after { background: linear-gradient(to bottom, transparent, var(--accent-red), transparent); animation: flowLineY 2s infinite linear; }
    @keyframes flowLineY { 100% { top: 100%; } }
    
    .footer-layout { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
