:root {
    --primary-bg: #f8f9fa;
    --primary-text: #212529;
    --accent-color: #c40000;
    /* VnBusiness Red/Orange approximation */
    --accent-secondary: #ff6b6b;
    --navy: #0e1e32;
    --light-blue: #eef4fb;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Encode Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
}

.progress-bar-top {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.1s;
}

/* Header */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--navy) 0%, #1a2a44 100%);
    color: white;
    padding: 2rem;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 .highlight {
    color: var(--accent-secondary);
    display: block;
    font-size: 2.5rem;
    margin-top: 0.5rem;
}

.category-tag {
    background: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    display: inline-block;
    text-transform: uppercase;
}

.sapo {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
}

.scrolldown {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Scrolly Layout */
.story-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Sticky Visual (Left on desktop) */
.sticky-visual {
    position: sticky;
    top: 20vh;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 2rem;
}

.visual-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.visual-card.active {
    opacity: 1;
    transform: translateY(0);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--light-blue);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.visual-card h3 {
    font-size: 1.5rem;
    color: var(--navy);
    font-weight: 700;
}

.card-body .subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.key-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.metric-item {
    background: var(--light-blue);
    padding: 0.8rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--navy);
    font-weight: 600;
}

.metric-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Narrative Content (Right on desktop) */
.narrative-content {
    padding-left: 2rem;
    border-left: 2px dashed #e9ecef;
}

.narrative-step {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 4rem;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.narrative-step.active {
    opacity: 1;
}

.narrative-step h2 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.narrative-step h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin: 1.5rem 0 0.5rem 0;
}

.narrative-step ul {
    list-style: none;
    padding-left: 0;
}

.narrative-step li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.narrative-step li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.5rem;
}

/* Comparison Table */
.comparison-section {
    background: white;
    padding: 4rem 2rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 2rem;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--navy);
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

tr:hover {
    background-color: var(--light-blue);
}

td:first-child {
    font-weight: 600;
    color: var(--navy);
}

/* Trends Box */
.trends-box {
    background: var(--light-blue);
    border-left: 5px solid var(--accent-color);
    padding: 2rem;
    border-radius: 8px;
}

.trends-box h3 {
    margin-bottom: 1rem;
    color: var(--navy);
}

.trend-list li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--navy);
    color: white;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .hero h1 .highlight {
        font-size: 1.8rem;
    }

    .story-container {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }

    .sticky-visual {
        position: fixed;
        /* Stick to top on mobile */
        top: 0;
        left: 0;
        right: 0;
        height: auto;
        padding: 1rem;
        z-index: 100;
        background: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid #ddd;
        justify-content: center;
        transform: translateY(-100%);
        /* Initially hidden */
        transition: transform 0.3s ease;
    }

    .sticky-visual.visible {
        transform: translateY(0);
    }

    .visual-card {
        padding: 1rem;
        border-left: 3px solid var(--accent-color);
        box-shadow: none;
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }

    .card-header {
        margin-bottom: 0.5rem;
    }

    .icon-box {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        margin-right: 0.5rem;
    }

    .visual-card h3 {
        font-size: 1.1rem;
    }

    .card-body .subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .key-metrics {
        display: none;
        /* Hide detailed metrics on small sticky header on mobile to save space */
    }

    .narrative-content {
        padding-left: 0;
        border-left: none;
        margin-top: 100vh;
        /* Push content down so hero is fully visible first */
    }

    /* Adjust margin-top for narrative content when scrolling starts */
    body.is-scrolling .narrative-content {
        margin-top: 80px;
        /* Space for sticky header */
    }

    .narrative-step {
        min-height: auto;
        padding-top: 60px;
        /* Offset for sticky header */
        margin-bottom: 2rem;
        opacity: 1;
        /* Always visible on mobile to avoid confusion */
    }

    .table-responsive {
        font-size: 0.85rem;
    }
}