/* ============================================
   prototype.report - Avant-Garde Report System
   Colors: #F8F6F2, #1B2A4A, #4A5568, #FF8C42, #2E5BBA, #0D1B2A
   Fonts: Merriweather (display), Source Sans 3 (body)
   ============================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #F8F6F2;
    color: #4A5568;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
}

/* ---- Grid Overlay ---- */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(to right, rgba(46, 91, 186, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(46, 91, 186, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* ---- Bubble Layers ---- */
.bubbles-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.bubbles-back { z-index: 0; }
.bubbles-mid { z-index: 2; }
.bubbles-front { z-index: 5; }

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%,
        rgba(46, 91, 186, 0.12),
        rgba(255, 140, 66, 0.06) 60%,
        transparent 70%);
    border: 1px solid rgba(46, 91, 186, 0.08);
    animation: bubbleFloat 8s ease-in-out infinite;
}

.bubbles-back .bubble {
    background: radial-gradient(circle at 35% 35%,
        rgba(46, 91, 186, 0.08),
        rgba(255, 140, 66, 0.04) 60%,
        transparent 70%);
    border-color: rgba(46, 91, 186, 0.05);
    animation-duration: 12s;
}

.bubbles-front .bubble {
    background: radial-gradient(circle at 35% 35%,
        rgba(255, 140, 66, 0.15),
        rgba(46, 91, 186, 0.08) 60%,
        transparent 70%);
    border-color: rgba(255, 140, 66, 0.1);
    animation-duration: 6s;
}

.bubble:nth-child(odd) { animation-delay: -3s; }
.bubble:nth-child(3n) { animation-delay: -5s; }
.bubble:nth-child(4n) { animation-delay: -1s; }

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.03); }
}

/* ---- Parallax Sections ---- */
.parallax-section {
    position: relative;
    z-index: 3;
    padding: 120px 40px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.section-frame {
    position: relative;
    max-width: 1100px;
    width: 100%;
    padding: 60px;
    background: rgba(248, 246, 242, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(46, 91, 186, 0.1);
}

/* ---- Grid Marks (Frame Corners) ---- */
.grid-marks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mark {
    position: absolute;
    width: 24px;
    height: 24px;
}

.mark::before,
.mark::after {
    content: '';
    position: absolute;
    background: #2E5BBA;
}

.mark-top-left::before { top: 0; left: 0; width: 24px; height: 2px; }
.mark-top-left::after { top: 0; left: 0; width: 2px; height: 24px; }

.mark-top-right { right: 0; top: 0; }
.mark-top-right::before { top: 0; right: 0; width: 24px; height: 2px; }
.mark-top-right::after { top: 0; right: 0; width: 2px; height: 24px; }

.mark-bottom-left { bottom: 0; left: 0; }
.mark-bottom-left::before { bottom: 0; left: 0; width: 24px; height: 2px; }
.mark-bottom-left::after { bottom: 0; left: 0; width: 2px; height: 24px; }

.mark-bottom-right { bottom: 0; right: 0; }
.mark-bottom-right::before { bottom: 0; right: 0; width: 24px; height: 2px; }
.mark-bottom-right::after { bottom: 0; right: 0; width: 2px; height: 24px; }

/* ---- Typography ---- */
.section-heading {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #1B2A4A;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #FF8C42;
}

/* ---- Hero Section ---- */
.hero-section {
    min-height: 100vh;
}

.hero-content {
    text-align: center;
}

.hero-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2E5BBA;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #1B2A4A;
    line-height: 1.2;
    margin-bottom: 24px;
}

.accent-dot {
    color: #FF8C42;
}

.hero-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.15rem;
    color: #4A5568;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.75;
}

.hero-rule {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, #2E5BBA, #FF8C42);
    margin: 0 auto 24px;
}

.hero-meta {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.8rem;
    color: #4A5568;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ---- Stats Section ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #FF8C42;
}

.stat-number {
    font-family: 'Merriweather', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1B2A4A;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4A5568;
    margin-bottom: 16px;
}

.stat-bar {
    width: 100%;
    height: 3px;
    background: rgba(46, 91, 186, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.stat-fill {
    display: block;
    height: 100%;
    background: linear-gradient(to right, #2E5BBA, #FF8C42);
    border-radius: 2px;
    transition: width 1.5s ease;
}

/* ---- Methodology Section ---- */
.method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.method-card {
    padding: 30px;
    border: 1px solid rgba(46, 91, 186, 0.08);
    position: relative;
    transition: border-color 0.3s ease;
}

.method-card:hover {
    border-color: rgba(255, 140, 66, 0.3);
}

.method-index {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(46, 91, 186, 0.12);
    line-height: 1;
    margin-bottom: 12px;
}

.method-title {
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1B2A4A;
    margin-bottom: 12px;
}

.method-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    color: #4A5568;
    line-height: 1.75;
}

/* ---- Featured Report Section ---- */
.featured-report {
    border: 1px solid rgba(46, 91, 186, 0.12);
    padding: 40px;
    position: relative;
}

.featured-report::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #FF8C42, #2E5BBA);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.report-tag {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #F8F6F2;
    background: #2E5BBA;
    padding: 4px 12px;
    display: inline-block;
}

.report-date {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.8rem;
    color: #4A5568;
    letter-spacing: 0.05em;
}

.report-title {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: #1B2A4A;
    margin-bottom: 24px;
    line-height: 1.3;
}

.report-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 32px;
}

.report-subhead {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #FF8C42;
    margin-bottom: 10px;
}

.report-column p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    color: #4A5568;
    line-height: 1.75;
}

.report-metrics {
    display: flex;
    gap: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(46, 91, 186, 0.1);
}

.metric {
    text-align: center;
}

.metric-value {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1B2A4A;
}

.metric-unit {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #FF8C42;
}

.metric-label {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4A5568;
    margin-top: 4px;
}

/* ---- Categories Section ---- */
.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-item {
    display: grid;
    grid-template-columns: 80px 1fr 200px;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(46, 91, 186, 0.06);
    transition: border-color 0.3s ease;
}

.category-item:hover {
    border-bottom-color: #FF8C42;
}

.cat-number {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2E5BBA;
}

.cat-name {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1B2A4A;
}

.cat-bar {
    height: 4px;
    background: rgba(46, 91, 186, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.cat-fill {
    display: block;
    height: 100%;
    background: linear-gradient(to right, #FF8C42, #2E5BBA);
    border-radius: 2px;
}

/* ---- Footer ---- */
.site-footer {
    position: relative;
    z-index: 3;
    background: #0D1B2A;
    padding: 80px 40px 40px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-title {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #F8F6F2;
    display: block;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    color: rgba(248, 246, 242, 0.6);
    margin-bottom: 32px;
}

.footer-info p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    color: rgba(248, 246, 242, 0.4);
    margin-bottom: 4px;
}

.footer-rule {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #FF8C42, #2E5BBA);
    margin: 32px auto;
}

.footer-copy {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.8rem;
    color: rgba(248, 246, 242, 0.3);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .parallax-section {
        padding: 80px 20px;
    }

    .section-frame {
        padding: 40px 30px;
    }

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

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

    .report-body {
        grid-template-columns: 1fr;
    }

    .report-metrics {
        flex-direction: column;
        gap: 20px;
    }

    .category-item {
        grid-template-columns: 60px 1fr 120px;
    }
}

@media (max-width: 600px) {
    .parallax-section {
        padding: 60px 16px;
    }

    .section-frame {
        padding: 30px 20px;
    }

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

    .category-item {
        grid-template-columns: 50px 1fr;
    }

    .cat-bar {
        display: none;
    }
}
