/* =========================================
   1. VARIABLES & PALETTE
   ========================================= */
:root {
    --bg-dark: #020617;       
    --cyan: #00d2ff;          
    --magenta: #ff2a6d;       
    --gold: #ffc800;          
    --text-main: #f8fafc;     
    --text-muted: #cbd5e1;
}

/* =========================================
   2. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.1rem; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

.gradient-text {
    background: linear-gradient(to right, var(--cyan), var(--magenta));
    -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; 
}

/* =========================================
   3. BUTTONS
   ========================================= */
.btn-primary {
    display: inline-block; padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--cyan), var(--magenta)); 
    color: #fff; font-weight: 700;
    text-decoration: none; text-transform: uppercase; letter-spacing: 1px;
    border-radius: 50px; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3); border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-nav {
    display: inline-block; padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    color: #fff !important; font-weight: 700;
    text-decoration: none; border-radius: 50px; font-size: 0.9rem;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}
.btn-nav:hover { transform: translateY(-2px); }

.btn-small {
    display: inline-block; padding: 0.5rem 1.2rem;
    border: 1px solid var(--cyan); color: var(--cyan) !important;
    text-decoration: none; border-radius: 4px; font-size: 0.9rem; font-weight: 600;
    align-self: flex-start; transition: all 0.3s; margin-top: auto; 
}
.btn-small:hover { background: var(--cyan); color: #020617 !important; }

/* =========================================
   4. NAVIGATION
   ========================================= */
.navbar { position: absolute; top: 0; left: 0; width: 100%; z-index: 1000; background: transparent !important; padding: 2rem 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 2rem; list-style: none; margin-left: auto; margin-right: 2rem; }
.nav-links a { color: #fff !important; text-shadow: 0 2px 4px rgba(0,0,0,0.8); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--cyan) !important; }

/* =========================================
   5. PARALLAX STAGES
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; }
.parallax-stage {
    position: relative; min-height: 100vh; padding-top: 100px; padding-bottom: 6rem;
    background-attachment: fixed; background-position: center; background-size: cover;
    background-repeat: no-repeat; display: flex; flex-direction: column; justify-content: center;
}
.bg-hero { background-image: linear-gradient(to bottom, rgba(2,6,23,0.4), rgba(2,6,23,0.7)), url('assets/hero-bg.png'); }
.bg-chip { background-image: linear-gradient(to bottom, rgba(2,6,23,0.8), rgba(2,6,23,0.8)), url('assets/chip-bg.png'); }
.bg-build { background-image: linear-gradient(to bottom, rgba(2,6,23,0.85), rgba(2,6,23,0.9)), url('assets/build-bg.png'); }
.bg-triumph { background-image: linear-gradient(to bottom, rgba(2,6,23,0.8), rgba(2,6,23,0.9)), url('assets/triumph-bg.jpg'); background-position: top center; }

/* =========================================
   6. HERO & SEAMS
   ========================================= */
.seam-section { background: #020617; padding: 5rem 0; position: relative; z-index: 20; border-top: 1px solid var(--magenta); border-bottom: 1px solid var(--cyan); box-shadow: 0 0 100px rgba(0,0,0,1); text-align: center; }
.seam-content h2 { margin-bottom: 1.5rem; font-size: 2.8rem; }
.hero-wrapper { min-height: 80vh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 4rem; }
.hero-glass { width: 90%; max-width: 750px; background: rgba(2, 6, 23, 0.4); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); padding: 2.5rem; border-radius: 16px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.hero-text { font-size: 3rem; line-height: 1.1; margin-bottom: 0.5rem; }
.intro-text-block { text-align: center; max-width: 900px; margin: 4rem auto 3rem auto; }

/* =========================================
   7. TRAP CARDS
   ========================================= */
.cycle-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 4rem; align-items: stretch; }
.cycle-card { background: rgba(2, 6, 23, 0.6); backdrop-filter: blur(16px); border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; display: flex; flex-direction: column; }
.cycle-header { padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.trap .cycle-header { background: rgba(255, 42, 109, 0.2); }
.asset .cycle-header { background: rgba(0, 210, 255, 0.2); }
.cycle-header h3 { margin: 0; font-size: 1.4rem; color: #fff; }
.cycle-steps { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; gap: 1.5rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num { font-family: monospace; color: var(--cyan); opacity: 0.8; font-weight: bold; }
.highlight-red p { color: var(--magenta); font-weight: 700; }
.highlight-cyan p { color: var(--cyan); font-weight: 700; }
.cycle-footer { padding: 1.5rem; text-align: center; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; }
.loss { background: var(--magenta); color: #fff; }
.gain { background: var(--cyan); color: #020617; }

.evidence-section { text-align: center; max-width: 800px; margin: 0 auto 5rem auto; padding: 2rem; background: rgba(2, 6, 23, 0.6); backdrop-filter: blur(12px); border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); }
.youtube-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; background: #000; margin: 2rem 0 1rem 0; }
.youtube-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* =========================================
   8. DIAGNOSTIC & RESILIENCE GRID
   ========================================= */
.audit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; margin-bottom: 5rem; }
.audit-item { background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); padding: 2.5rem; border-radius: 12px; transition: transform 0.3s; }
.audit-item:hover { transform: translateY(-5px); border-color: var(--cyan); }
.audit-icon { font-size: 3rem; margin-bottom: 1.5rem; }

.resilience-box { background: rgba(2, 6, 23, 0.8); backdrop-filter: blur(16px); border: 1px solid var(--cyan); border-radius: 16px; padding: 3rem; margin-bottom: 5rem; box-shadow: 0 0 50px rgba(0, 210, 255, 0.1); }
.resilience-header { text-align: center; max-width: 800px; margin: 0 auto 3rem auto; }
.resilience-header h3 { font-size: 2rem; margin-bottom: 1rem; color: #fff; }
.resilience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.res-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 2rem; text-align: left; transition: transform 0.3s; }
.res-card:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--cyan); transform: translateY(-5px); }
.res-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.res-card h4 { color: var(--cyan); font-size: 1.25rem; margin-bottom: 0.8rem; }
.res-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.5; }
.resilience-footer { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; text-align: center; }
.resilience-footer h4 { color: var(--magenta); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }

/* =========================================
   9. SERVICES / MODULAR BUILDS
   ========================================= */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.card { background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(12px); padding: 2.5rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); transition: transform 0.3s ease; display: flex; flex-direction: column; justify-content: flex-start; height: 100%; }
.card:hover { transform: translateY(-5px); border-color: var(--cyan); }
.card h3 { color: var(--cyan); font-size: 1.3rem; margin-bottom: 1rem; }
.card p { font-size: 1rem; margin-bottom: 1.5rem; }

/* =========================================
   10. ORG CHART (Architecture Section)
   ========================================= */
.org-chart-container { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; position: relative; }
.org-level-1 { z-index: 2; margin-bottom: 3rem; width: 100%; display: flex; justify-content: center; }
.boss-card { background: linear-gradient(145deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.9)); border: 2px solid var(--cyan); padding: 2.5rem; border-radius: 16px; max-width: 600px; text-align: center; box-shadow: 0 0 30px rgba(0, 210, 255, 0.15); position: relative; }
.org-connector { width: 2px; height: 3rem; background: linear-gradient(to bottom, var(--cyan), var(--magenta)); position: absolute; top: 100%; left: 50%; transform: translateX(-50%); }
.org-level-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; width: 100%; position: relative; }
.org-level-2::before { content: ''; position: absolute; top: -3rem; left: 25%; right: 25%; height: 2px; background: var(--magenta); z-index: 0; }
.worker-wrapper { position: relative; }
.worker-wrapper::before { content: ''; position: absolute; top: -3rem; left: 50%; height: 3rem; width: 2px; background: var(--magenta); }
.worker-card { background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); padding: 2rem; border-radius: 12px; height: 100%; }
.worker-card h3 { color: var(--magenta); font-size: 1.2rem; margin-bottom: 0.5rem; }
.worker-card h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }

/* =========================================
   11. FOOTER
   ========================================= */
.footer-section { background: #000; padding: 4rem 0 2rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo img { height: 35px; width: auto; margin-bottom: 1rem; }
.footer-tagline { color: var(--text-muted); font-size: 0.95rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 1rem; text-transform: uppercase; margin-bottom: 1.5rem; letter-spacing: 1px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; font-size: 0.95rem; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; color: #64748b; font-size: 0.85rem; }

/* =========================================
   12. VISION / READING MODE
   ========================================= */
.vision-article { background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(10px); padding: 4rem; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); max-width: 900px; margin: 0 auto; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.vision-article h3 { color: var(--cyan); margin-top: 3rem; margin-bottom: 1.5rem; font-size: 1.8rem; border-left: 4px solid var(--magenta); padding-left: 1rem; }
.vision-article p { font-size: 1.15rem; color: #e2e8f0; line-height: 1.8; margin-bottom: 1.5rem; }
.vision-blockquote { font-size: 1.5rem; font-weight: 700; color: #fff; text-align: center; margin: 3rem 0; font-style: italic; background: linear-gradient(to right, var(--cyan), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================================
   13. DATA / VAULT STYLES
   ========================================= */
.vault-panel { background: linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.9)); border: 1px solid var(--gold); padding: 3rem; border-radius: 12px; margin-bottom: 3rem; position: relative; overflow: hidden; }
.vault-panel::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(circle at top right, rgba(255, 200, 0, 0.1), transparent 40%); pointer-events: none; }
.vault-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.vault-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); padding: 2rem; border-radius: 8px; }
.stat-highlight { font-size: 2.5rem; font-weight: 800; color: var(--gold); display: block; margin-bottom: 0.5rem; text-shadow: 0 0 20px rgba(255, 200, 0, 0.3); }
.vault-full-width { background: rgba(255, 200, 0, 0.05); border: 1px solid var(--gold); border-radius: 8px; padding: 2.5rem; text-align: left; display: flex; flex-direction: column; justify-content: center; }
.vault-full-width h3 { color: var(--gold); font-size: 1.8rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.future-tease { border: 1px dashed var(--text-muted); background: rgba(255, 255, 255, 0.03); padding: 2rem; border-radius: 12px; margin-top: 4rem; }
.timeline-box { border-left: 2px solid var(--cyan); padding-left: 1.5rem; margin: 2rem 0; }

/* =========================================
   14. DIAGNOSTIC TOOL (Full Update)
   ========================================= */
.quiz-container { background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 3rem; max-width: 900px; margin: 0 auto; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.quiz-question { margin-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 2rem; }
.quiz-question h3 { color: var(--cyan); font-size: 1.3rem; margin-bottom: 1rem; }
.quiz-question h4 { color: #fff; font-size: 1rem; margin-bottom: 0.8rem; font-weight: 600; opacity: 0.8; }
/* Form Elements */
.option-label { display: block; background: rgba(255,255,255,0.05); padding: 1rem 1.5rem; border-radius: 8px; margin-bottom: 0.8rem; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; }
.option-label:hover { background: rgba(255,255,255,0.1); border-color: var(--cyan); }
.option-input { display: none; }
.option-input:checked + .option-label { background: rgba(0, 210, 255, 0.15); border-color: var(--cyan); color: #fff; font-weight: 600; }
.text-input, .text-area { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid #475569; color: #fff; padding: 1rem; border-radius: 8px; font-family: inherit; font-size: 1rem; margin-bottom: 1rem; transition: border-color 0.3s; }
.text-input:focus, .text-area:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 10px rgba(0, 210, 255, 0.2); }
.text-area { min-height: 80px; resize: vertical; }
/* Auth */
.auth-container { display: none; text-align: center; padding: 2rem; max-width: 500px; margin: 0 auto; animation: fadeIn 0.5s ease; }
.auth-form-group { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2rem; width: 100%; }
.auth-input { width: 100%; padding: 1rem 1.5rem; background: rgba(0, 0, 0, 0.7); border: 1px solid var(--cyan); color: #fff; font-family: monospace; font-size: 1.1rem; border-radius: 8px; outline: none; transition: box-shadow 0.3s; text-align: left; }
.auth-input:focus { box-shadow: 0 0 15px rgba(0, 210, 255, 0.3); }
/* Results */
.result-box { display: none; text-align: center; padding: 3rem; border-radius: 12px; animation: fadeIn 0.5s ease; }
.result-panic { border: 2px solid var(--magenta); background: rgba(255, 42, 109, 0.1); }
.result-safe { border: 2px solid var(--cyan); background: rgba(0, 210, 255, 0.1); }
.btn-panic { background: var(--magenta); color: #fff; font-size: 1.2rem; padding: 1.2rem 3rem; border-radius: 50px; text-decoration: none; font-weight: 800; box-shadow: 0 0 30px rgba(255, 42, 109, 0.4); animation: pulse 2s infinite; display: inline-block; }
.secondary-link { color: var(--text-muted); text-decoration: underline; font-size: 0.95rem; margin-top: 1rem; display: inline-block; cursor: pointer; }
.honey-pot { opacity: 0; position: absolute; z-index: -1; }

@keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 42, 109, 0.7); } 70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255, 42, 109, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 42, 109, 0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   15. RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .nav-links, .btn-nav { display: none; }
    .nav-container { justify-content: center; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .resilience-grid { grid-template-columns: 1fr; }
    .cycle-container { grid-template-columns: 1fr; }
    .org-level-2 { grid-template-columns: 1fr; gap: 2rem; }
    .org-level-2::before, .worker-wrapper::before, .org-connector { display: none; }
    .boss-card { margin-bottom: 2rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-tagline { margin: 0 auto; }
    .quiz-container { padding: 1.5rem; }
}