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

:root {
    --red: #a51c30;
    --red-dark: #8a1728;
    --red-light: #c9384e;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --dark-bg: #1a1a2e;
    --dark-card: #22223b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--red);
    border-bottom: none;
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--red);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--red-light) 100%);
    color: var(--white);
    padding: 160px 24px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-tag {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--white);
    color: var(--red);
}

.btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.section-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 48px;
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.7;
}

.section-dark .section-intro {
    color: rgba(255,255,255,0.65);
}

/* ===== OVERVIEW STEPS ===== */
.overview-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 3px solid var(--red);
    margin-left: 20px;
}

.overview-step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 0 28px 32px;
    position: relative;
    border-bottom: 1px solid var(--gray-200);
}

.overview-step:last-child {
    border-bottom: none;
}

.overview-step::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 34px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--red);
    border: 3px solid var(--white);
}

.step-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-200);
    line-height: 1;
    flex-shrink: 0;
    width: 50px;
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--dark-card);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--red-light);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-detail {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

/* ===== ENGAGEMENT SOURCES ===== */
.engagement-section,
.evidence-section {
    margin-top: 56px;
}

.subsection-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.subsection-intro {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.source-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    height: 200px;
    margin-bottom: 16px;
}

.source-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.source-bar-wrap {
    width: 48px;
    height: 160px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.source-bar {
    width: 100%;
    background: linear-gradient(180deg, var(--red-light), var(--red));
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: height 0.8s ease-out;
}

.source-count {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 8px;
    color: var(--white);
}

.source-name {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
    text-align: center;
}

.source-total {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
}

.evidence-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
}

.evidence-item {
    text-align: center;
}

.evidence-img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.evidence-caption {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-top: 10px;
    font-style: italic;
}

@media (max-width: 768px) {
    .evidence-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ML ANALYSIS ===== */
.ml-block {
    margin-bottom: 56px;
}

.subsection-title-light {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--red-light);
    margin-bottom: 10px;
}

.ml-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 700px;
    line-height: 1.7;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.model-card {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
}

.model-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.model-card p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

.ml-result {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 24px;
}

.ml-result-stat {
    font-size: 2rem;
    font-weight: 800;
    color: var(--red-light);
    margin-bottom: 8px;
}

.ml-result p {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
    line-height: 1.7;
}

.cluster-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.cluster-card {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 24px 20px;
}

.cluster-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red-light);
    margin-bottom: 4px;
}

.cluster-size {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.cluster-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .model-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cluster-grid {
        grid-template-columns: 1fr;
    }

    .source-grid {
        gap: 12px;
    }

    .source-item {
        width: 60px;
    }
}

/* ===== FINDINGS ===== */
.finding-block {
    margin-bottom: 56px;
}

.finding-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 12px;
}

.finding-content > p {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 24px;
    max-width: 700px;
    line-height: 1.7;
}

/* Tables */
.finding-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.finding-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.finding-table th {
    background: var(--gray-900);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.finding-table th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

.finding-table th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.finding-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--gray-200);
}

.finding-table tbody tr:hover {
    background: var(--gray-50);
}

.finding-table .total-row {
    font-weight: 700;
    background: var(--gray-100);
}

.finding-table .highlight {
    color: var(--red);
    font-weight: 700;
}

.finding-table .danger {
    color: #2d6a4f;
    font-weight: 700;
}

/* Bar Chart */
.chart-container {
    max-width: 600px;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    width: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    text-align: right;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    background: var(--gray-100);
    border-radius: 6px;
    height: 32px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    min-width: 50px;
    transition: width 0.8s ease-out;
}

.bar-fill span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--white);
}

.bar-danger { background: linear-gradient(90deg, #e63946, #c9384e); }
.bar-warning { background: linear-gradient(90deg, #f4a261, #e76f51); }
.bar-neutral { background: linear-gradient(90deg, #adb5bd, #868e96); }
.bar-neutral-neg { background: linear-gradient(90deg, #74c0fc, #4dabf7); }
.bar-safe { background: linear-gradient(90deg, #40c057, #2f9e44); }

.chart-container-dark {
    max-width: 600px;
    margin: 0 auto;
}

.bar-label-light {
    color: rgba(255,255,255,0.8);
}

.bar-track-dark {
    background: rgba(255,255,255,0.08);
}

.chart-caption {
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--gray-600);
    font-style: italic;
}

/* Profile Summary */
.profile-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.profile-card {
    padding: 28px 24px;
    border-radius: var(--radius);
    text-align: center;
}

.profile-card h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.profile-card p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.profile-high {
    background: #fff5f5;
    border: 2px solid #ffc9c9;
    color: var(--gray-800);
}

.profile-high h4 { color: var(--red); }

.profile-low {
    background: #ebfbee;
    border: 2px solid #b2f2bb;
    color: var(--gray-800);
}

.profile-low h4 { color: #2f9e44; }

/* ===== AWARENESS ===== */
.awareness-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.awareness-card {
    background: var(--dark-card);
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    transition: transform 0.2s;
}

.awareness-card:hover {
    transform: translateY(-3px);
}

.awareness-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.awareness-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.awareness-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.awareness-card code {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Flyer Showcase */
.flyer-showcase {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: center;
    margin-bottom: 40px;
    background: var(--dark-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.08);
}

.flyer-image img {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.flyer-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--red-light);
}

.flyer-info p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .flyer-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .flyer-image img {
        max-width: 260px;
        margin: 0 auto;
    }
}

/* Red Flags */
.red-flags {
    background: rgba(165, 28, 48, 0.15);
    border: 1px solid rgba(165, 28, 48, 0.3);
    border-radius: var(--radius);
    padding: 32px;
}

.red-flags h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--red-light);
}

.red-flags > p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.red-flags ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.red-flags li {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.85);
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.red-flags li::before {
    content: '\26A0';
    position: absolute;
    left: 0;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-300);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--red);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== TEAM ===== */
.team-advisor-row {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.team-card-lg {
    width: 200px;
}

.team-card-lg .team-avatar {
    width: 88px;
    height: 88px;
    font-size: 1.4rem;
}

.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.team-card {
    text-align: center;
    width: 160px;
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 12px;
}

.team-card h4 {
    font-size: 0.92rem;
    font-weight: 600;
}

.team-role {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

.team-email {
    display: block;
    font-size: 0.72rem;
    color: var(--red-light);
    text-decoration: none;
    margin-top: 6px;
    word-break: break-all;
}

.team-email:hover {
    text-decoration: underline;
}

.team-advisor {
    background: var(--gray-800);
    border: 2px solid var(--red);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 32px 24px;
    font-size: 0.85rem;
    line-height: 1.8;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--red);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 130px 24px 70px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .awareness-grid {
        grid-template-columns: 1fr;
    }

    .profile-summary {
        grid-template-columns: 1fr;
    }

    .bar-label {
        width: 75px;
        font-size: 0.78rem;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .red-flags {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}
