/* ===============
   V2 DESIGN SYSTEM (LIGHT MODE)
   =============== */
   :root {
    /* Colors */
    --clr-bg: #FFFFFF;
    --clr-bg-alt: #F8F9FA;
    --clr-bg-surface: #FFFFFF;
    
    --clr-text: #1A1A1A;
    --clr-text-muted: #5A5A5A;
    --clr-text-light: #888888;
    
    --clr-primary: #0A2540; /* Sophisticated deep blue/black */
    --clr-accent: #E11D48; /* Crimson red for action/alerts */
    
    --clr-border: #E5E7EB;
    --clr-border-dark: #D1D5DB;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 1.5rem;
    --sp-lg: 3rem;
    --sp-xl: 5rem;

    --transition: all 0.3s ease-in-out;
    --radius: 4px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--sp-md);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-primary);
}

a {
    color: var(--clr-primary);
    text-decoration: none;
    transition: var(--transition);
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.light-gray-bg {
    background-color: var(--clr-bg-alt);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}

/* ===============
   COMPONENTS
   =============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

.btn-primary {
    background-color: var(--clr-accent);
    color: #fff;
}
.btn-primary:hover {
    background-color: #BE123C;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-dark {
    background-color: var(--clr-primary);
    color: #fff;
}
.btn-dark:hover {
    background-color: #000;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}
.btn-outline:hover {
    background-color: var(--clr-primary);
    color: #fff;
}

.btn-outline-white {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}
.btn-outline-white:hover {
    background-color: #fff;
    color: var(--clr-primary);
}

/* ===============
   NAVIGATION
   =============== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--clr-border);
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.brand-wa { color: var(--clr-accent); }
.brand-dot { color: var(--clr-text-light); }

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

.nav-links a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text-muted);
}
.nav-links a:not(.btn):hover {
    color: var(--clr-primary);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--clr-primary);
}

.mobile-only { display: none; }
.mobile-menu {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--clr-border);
    padding: var(--sp-sm) var(--sp-md);
    flex-direction: column;
    gap: 1rem;
}
.mobile-menu.active { display: flex; }

/* ===============
   HERO SECTION
   =============== */
.hero {
    padding: calc(70px + var(--sp-xl)) 0 var(--sp-xl);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 40%;
    height: 100%;
    background: var(--clr-bg-alt);
    z-index: -1;
    transform: skewX(-15deg);
    transform-origin: top right;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--sp-xl);
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #fff0f2;
    color: var(--clr-accent);
    border-radius: 50px;
    margin-bottom: var(--sp-sm);
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: var(--sp-sm);
}

.hero-text {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-md);
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: #fff;
    padding: var(--sp-md);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--clr-primary);
}

.stat-card.highlight-card {
    border-left-color: var(--clr-accent);
    background: #fff0f2;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-primary);
}

.highlight-card .stat-value { color: var(--clr-accent); }

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ===============
   SECTION SPACING
   =============== */
.section { padding: var(--sp-xl) 0; }
.section-subtitle {
    display: block;
    color: var(--clr-accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: var(--sp-lg);
}
.section-desc {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===============
   THE SCHEME (GRID)
   =============== */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
    align-items: start;
}

.section-text-block p {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-md);
}

.feature {
    background: #fff;
    padding: var(--sp-md);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    color: var(--clr-accent);
    margin-bottom: 1rem;
    width: 28px;
    height: 28px;
}

.feature h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}
.feature p {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

/* ===============
   TIMELINE
   =============== */
.timeline-container { max-width: 800px; }
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--clr-border);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--sp-lg);
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -2.35rem;
    top: 5px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--clr-primary);
}
.timeline-marker.active {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 4px #fff0f2;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.timeline-content p {
    color: var(--clr-text-muted);
    font-size: 1rem;
}

/* ===============
   EVIDENCE GRID
   =============== */
.evidence-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--sp-sm);
    flex-wrap: wrap;
    gap: 1rem;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
}
.search-wrapper i {
    position: absolute;
    left: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--clr-text-light);
    width: 18px;
}
.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid var(--clr-border-dark);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}
.search-input:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

.results-info {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-lg);
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 1rem;
}
.results-info strong { color: var(--clr-primary); }

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--sp-md);
}

.report-card {
    background: #fff;
    border: 1px solid var(--clr-border);
    padding: var(--sp-md);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.report-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-border-dark);
}

.report-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-xs);
    font-size: 0.85rem;
}
.report-author {
    color: var(--clr-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.report-icon {
    color: #FF4500; /* Reddit orange */
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.report-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body); /* Standardize titles in grid */
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.report-snippet {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--sp-md);
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.report-actions {
    padding-top: var(--sp-sm);
    border-top: 1px solid var(--clr-border);
}

.btn-read {
    width: 100%;
    background: var(--clr-bg-alt);
    color: var(--clr-primary);
    border: 1px solid transparent;
}
.btn-read:hover {
    background: var(--clr-primary);
    color: #fff;
}

/* ===============
   CTA SECTION
   =============== */
.cta-section {
    background: var(--clr-primary);
    color: #fff;
}
.cta-inner {
    max-width: 700px;
    padding: var(--sp-lg) 0;
}
.cta-title {
    color: #fff;
    margin-bottom: var(--sp-sm);
}
.cta-text {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: var(--sp-lg);
}
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* PRIMARY hero CTA */
.cta-primary-wrapper {
    margin: 2rem 0 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.cta-primary-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.65);
}

.btn-cta-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.2rem 3.5rem;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
    background: var(--clr-accent);
    color: #fff;
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5);
    animation: ctaPulse 2.2s infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta-hero:hover {
    background: #BE123C;
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    animation: none;
    box-shadow: 0 8px 30px rgba(225, 29, 72, 0.55);
}

@keyframes ctaPulse {
    0%   { box-shadow: 0 0 0 0   rgba(225, 29, 72, 0.55); }
    60%  { box-shadow: 0 0 0 18px rgba(225, 29, 72, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(225, 29, 72, 0);    }
}

.cta-primary-sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.03em;
}

/* SECONDARY CTA label */
.cta-secondary-label {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.75rem;
}

/* ===============
   FOOTER
   =============== */
.footer {
    background: #FAFAFA;
    border-top: 1px solid var(--clr-border);
    padding: var(--sp-xl) 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--sp-xl);
    margin-bottom: var(--sp-lg);
}
.brand-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-primary);
}
.footer-desc {
    color: var(--clr-text-muted);
    margin-top: 0.5rem;
    font-size: 0.9rem;
    max-width: 300px;
}
.footer-links-group h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}
.footer-links-group a {
    display: block;
    color: var(--clr-text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.footer-links-group a:hover { color: var(--clr-primary); }
.footer-bottom {
    border-top: 1px solid var(--clr-border);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--clr-text-light);
    font-size: 0.85rem;
}

/* ===============
   MODAL
   =============== */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: var(--sp-md);
}
.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 37, 64, 0.6);
    backdrop-filter: blur(4px);
    z-index: 0;
}

.modal-content-wrapper {
    position: relative;
    z-index: 1;
    background: #fff;
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal.is-open .modal-content-wrapper { transform: translateY(0); }

.modal-close-btn {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--clr-bg-alt);
    border: 1px solid var(--clr-border);
    border-radius: 50%;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--clr-text-muted);
    transition: var(--transition);
}
.modal-close-btn:hover {
    background: var(--clr-border);
    color: var(--clr-primary);
}

.modal-article {
    padding: calc(var(--sp-lg) + 1rem) var(--sp-xl) var(--sp-lg);
    overflow-y: auto;
}
.modal-article::-webkit-scrollbar { width: 6px; }
.modal-article::-webkit-scrollbar-track { background: transparent; }
.modal-article::-webkit-scrollbar-thumb { background: var(--clr-border-dark); border-radius: 10px; }

.modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-md);
    border-bottom: 2px solid var(--clr-primary);
    padding-bottom: 0.5rem;
}
.modal-author {
    font-weight: 600;
    color: var(--clr-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.modal-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-primary);
    font-weight: 600;
}

.modal-heading {
    font-size: 1.8rem;
    margin-bottom: var(--sp-md);
    line-height: 1.3;
}
.modal-body-text {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: var(--sp-xl);
}

/* Modal Comments Section */
.modal-comments-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--clr-border-dark);
}
.comments-heading {
    font-size: 1.1rem;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}
.modal-comment {
    background: var(--clr-bg-alt);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 3px solid var(--clr-accent);
}
.comment-author {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.comment-body {
    font-size: 0.95rem;
    color: var(--clr-text);
}

.modal-actions {
    border-top: 1px solid var(--clr-border);
    padding-top: var(--sp-md);
    display: flex;
    justify-content: center;
}

/* ===============
   RESPONSIVE
   =============== */
@media (max-width: 900px) {
    .hero-inner, .section-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-md);
    }
    .hero::after { display: none; }
    .hero-visual { flex-direction: row; flex-wrap: wrap; }
    .stat-card { flex: 1; min-width: 150px; }
    .timeline::before { left: 7px; }
    .timeline-marker { left: -1.05rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    .evidence-header { flex-direction: column; align-items: flex-start; }
    .search-wrapper { max-width: 100%; }
    .modal-article { padding: var(--sp-lg) var(--sp-md); }
}