:root {
    --bg-dark: #0a0a0f;
    --bg-panel: #12121a;
    --text-main: #f0f0f5;
    --text-muted: #9494a0;
    --accent-primary: #8a2be2;
    --accent-secondary: #00d2ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, rgba(0, 210, 255, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    transition: transform 0.1s ease-out;
}

/* Utilities */
.mt-4 { margin-top: 4rem; }
.mb-4 { margin-bottom: 4rem; }

/* Glassmorphism Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo span { color: var(--accent-secondary); }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover { color: var(--text-main); }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
}

.btn-primary.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 2rem;
}

/* Panels */
.panel {
    min-height: 100vh;
    padding: 8rem 4rem 4rem 4rem;
    display: flex;
    align-items: center;
    position: relative;
}

.dark-panel { background-color: var(--bg-panel); }

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.content-wrapper.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-wrapper.split.reverse { direction: rtl; }
.content-wrapper.split.reverse > * { direction: ltr; }
.content-wrapper.centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.max-w { max-width: 800px; margin: 0 auto; }

/* Typography */
h1 {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

h2.section-label {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

h2.section-label.accent { color: var(--accent-primary); }

h3.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.body-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Cover Section */
.cover-panel {
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.6) 50%, rgba(10, 10, 15, 0.4) 100%);
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.4);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin-bottom: 4rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.scroll-down-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.scroll-down-btn:hover { color: var(--accent-secondary); }

/* Stats List */
.stats-list {
    list-style: none;
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}
.stats-list li { display: flex; flex-direction: column; }
.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-desc { color: var(--text-muted); font-size: 1rem; }

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    transition: var(--transition-smooth);
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Gallery */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
    margin-top: 2rem;
}
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(2) { grid-row: span 1; }
.gallery-item:nth-child(3) { grid-row: span 2; }
.gallery-item:nth-child(4) { grid-row: span 1; }

/* Form */
.assessment-form-container {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: left;
}
.assessment-form-container h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.risk-form .form-group {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}
.risk-form label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.radio-group {
    display: flex;
    gap: 2rem;
}
.radio-group input[type="radio"] {
    display: none;
}
.radio-group label {
    padding: 0.8rem 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 400;
    margin-bottom: 0;
}
.radio-group input[type="radio"]:checked + label {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}
.risk-result {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--accent-secondary);
    border-radius: 16px;
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Videos */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}
.video-container iframe, .video-container video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
    object-fit: cover;
}
.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    backdrop-filter: blur(2px);
}
.video-overlay span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}
.video-overlay:hover {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(0px);
}
.video-overlay:hover span {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}
.large-video { max-width: 1000px; margin: 0 auto; }
.vertical-video { padding-bottom: 120%; }

/* Grid 3 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; width: 100%; }
.stat-card { padding: 2.5rem; text-align: left; }
.stat-card.highlight-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(0, 210, 255, 0.05));
    border-color: rgba(0, 210, 255, 0.2);
}
.stat-card h4 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1rem; color: #fff; }
.stat-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Accordion */
.accordion { margin-top: 3rem; }
.accordion-item { border-bottom: 1px solid var(--glass-border); padding: 1.5rem 0; }
.accordion-item h4 { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 0.5rem; color: #fff; }
.accordion-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Timeline */
.timeline {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: left; position: relative; width: 100%; max-width: 1000px; margin: 4rem auto 0;
}
.timeline::before { content: ''; position: absolute; top: 10px; left: 0; width: 100%; height: 1px; background: var(--glass-border); }
.timeline-item { position: relative; padding-top: 2.5rem; }
.timeline-dot {
    width: 20px; height: 20px; background: var(--bg-panel); border: 2px solid var(--accent-secondary); border-radius: 50%; position: absolute; top: 0; left: 0; transition: var(--transition-smooth);
}
.timeline-item:hover .timeline-dot { background: var(--accent-secondary); box-shadow: 0 0 15px var(--accent-secondary); }
.timeline-item h4 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 1rem; color: #fff; }
.timeline-item p { color: var(--text-muted); font-size: 0.9rem; }

/* Feature List */
.feature-list { list-style: none; margin-top: 2rem; margin-bottom: 3rem; }
.feature-list li { margin-bottom: 1rem; color: var(--text-muted); position: relative; padding-left: 2rem; }
.feature-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent-secondary); }
.feature-list strong { color: #fff; }

/* Scroll Reveals */
.reveal-text { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-text.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

.section-title, .body-text, .glass-card, .timeline-item, .video-container {
    opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.active .section-title, .active .body-text, .active .glass-card, .active .timeline-item, .active .video-container {
    opacity: 1; transform: translateY(0);
}

/* Footer */
.glass-footer { padding: 2rem; text-align: center; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 1024px) {
    .content-wrapper.split { grid-template-columns: 1fr; gap: 3rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr; gap: 3rem; }
    .timeline::before { left: 9px; top: 0; width: 1px; height: 100%; }
    .timeline-item { padding-top: 0; padding-left: 3rem; }
    h1 { font-size: 4rem; }
    .panel { padding: 6rem 2rem 2rem 2rem; }
    .nav-links { display: none; }
    .vertical-video { padding-bottom: 56.25%; }
    .masonry-gallery { grid-template-columns: 1fr; }
    .gallery-item:nth-child(1), .gallery-item:nth-child(2), .gallery-item:nth-child(3), .gallery-item:nth-child(4) { grid-row: span 1; }
}

/* Emotional Backgrounds */
#crisis {
    background-image: linear-gradient(rgba(10, 10, 15, 0.75), rgba(10, 10, 15, 0.95)), url('bg_crisis.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
#cost {
    background-image: linear-gradient(rgba(18, 18, 26, 0.8), rgba(18, 18, 26, 0.95)), url('bg_cost.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
#flaws {
    background-image: linear-gradient(rgba(10, 10, 15, 0.8), rgba(10, 10, 15, 0.95)), url('bg_flaws.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
#assessment {
    background-image: linear-gradient(rgba(18, 18, 26, 0.8), rgba(18, 18, 26, 0.95)), url('bg_assessment.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
#strategies {
    background-image: linear-gradient(rgba(10, 10, 15, 0.8), rgba(10, 10, 15, 0.95)), url('bg_strategies.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
#solution {
    background-image: linear-gradient(rgba(18, 18, 26, 0.75), rgba(18, 18, 26, 0.95)), url('bg_solution.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
