/* -----------------------------------------------------------------------------
   CSLI Child Theme - Complete Styling
   Updated: Proper spacing, typography, and UI/UX improvements
   -------------------------------------------------------------------------- */

/* 1. CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --csli-primary: #0f4c81;
    --csli-primary-light: #1a6db5;
    --csli-accent: #00a8e8;
    --csli-dark: #0a192f;
    --csli-text: #2d3748;
    --csli-text-light: #64748b;
    --csli-bg: #ffffff;
    --csli-bg-alt: #f8fafc;
    --csli-border: #e2e8f0;
    --csli-transition: all 0.3s ease;
    
    /* Spacing scale (8px base) */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 2rem;      /* 32px */
    --space-xl: 3rem;      /* 48px */
    --space-2xl: 4rem;     /* 64px */
    --space-3xl: 5rem;     /* 80px */
    --space-4xl: 6rem;     /* 96px */
    
    /* Font sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
}

/* 2. Base Styles
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--csli-text);
    line-height: 1.6;
    background-color: var(--csli-bg);
    font-size: var(--text-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 3. Typography - Readable sizes
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--csli-dark);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: var(--text-5xl);
    letter-spacing: -0.02em;
}

h1 span {
    color: var(--csli-primary);
}

h2 {
    font-size: var(--text-4xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
    color: var(--csli-text-light);
}

/* Large introductory text */
.hero-content p {
    font-size: var(--text-lg);
    line-height: 1.6;
}

/* Small text utility */
.text-small {
    font-size: var(--text-sm);
}

/* 4. Container & Layout
   -------------------------------------------------------------------------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

section {
    padding: var(--space-4xl) 0;
}

/* Section spacing between sections */
section + section {
    margin-top: 0;
}

/* Alternating section backgrounds */
.about-section,
.benefits-section {
    background-color: var(--csli-bg-alt);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: var(--text-lg);
    max-width: 700px;
    margin: 0 auto;
}

.tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(15, 76, 129, 0.1);
    color: var(--csli-primary);
    border-radius: 50px;
    font-size: var(--text-xs);
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 5. Navigation - Fixed Header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 32px; /* Account for WP admin bar */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--csli-border);
    z-index: 1000;
    padding: 0.75rem 0;
}
/* Navigation Logo Styling */
.site-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    max-height: 40px;
    width: auto;
    display: block;
}

/* Mobile menu adjustment */
@media (max-width: 768px) {
    .site-logo {
        max-height: 35px;
    }
}

/* Admin bar adjustment */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--csli-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--csli-primary) 0%, var(--csli-accent) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--csli-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--csli-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--csli-primary);
    padding: 0.5rem;
}

/* Body padding for fixed header */
body {
    padding-top: 80px;
}

.admin-bar body {
    padding-top: 112px;
}

@media screen and (max-width: 782px) {
    body {
        padding-top: 70px;
    }
    .admin-bar body {
        padding-top: 116px;
    }
}

/* 6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-content h1 {
    margin-bottom: var(--space-md);
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--csli-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--text-base);
    transition: var(--csli-transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--csli-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 76, 129, 0.15);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--csli-primary);
    color: var(--csli-primary);
}

.btn-outline:hover {
    background: var(--csli-primary);
    color: white;
    transform: translateY(-2px);
}

/* Hero Card */
.hero-visual {
    position: relative;
}

.hero-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: var(--space-lg);
    border: 1px solid var(--csli-border);
}

.dashboard-mock {
    background: linear-gradient(135deg, #f0f4f8 0%, #e6eef7 100%);
    border-radius: 12px;
    padding: var(--space-md);
    margin-top: var(--space-sm);
}

.mock-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--csli-accent);
}

.mock-dot:nth-child(2) { background: #f6ad55; }
.mock-dot:nth-child(3) { background: #48bb78; }

.mock-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.mock-stat {
    background: white;
    padding: var(--space-sm);
    border-radius: 10px;
    text-align: center;
}

.mock-stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--csli-primary);
}

.mock-stat-label {
    font-size: var(--text-xs);
    color: var(--csli-text-light);
    margin-top: 0.25rem;
}

/* 7. About Section
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-text h2 {
    margin-bottom: var(--space-md);
}

.about-features {
    list-style: none;
    margin-top: var(--space-xl);
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.about-features .icon {
    width: 26px;
    height: 26px;
    background: var(--csli-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-features strong {
    color: var(--csli-dark);
    font-size: var(--text-base);
}

.about-visual {
    background: white;
    padding: var(--space-2xl);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* About Visual Image Styling */
.about-image {
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);    
}

.about-img {
    width: 75%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
.about-visual img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 2em;
}
.about-img:hover {
    transform: scale(1.02);
}

/* Different image styles to choose from */
.about-img-rounded {
    border-radius: 20px;
}

.about-img-circle {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin: 0 auto;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, var(--csli-primary) 0%, var(--csli-accent) 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

/* 8. Product Section
   -------------------------------------------------------------------------- */
/* Product Section with Background Image */
.product-section {
    position: relative;
    overflow: hidden;
    min-height: 400px; /* ADD THIS */
}

/* Background Image */
.product-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://cslil.dev.onpressidium.com/wp-content/uploads/2018/01/CSLi-background-onWhite.png');
    background-size: auto;
    background-position: center;
    background-repeat: repeat;
    background-attachment: scroll; /* CHANGE THIS from 'fixed' to 'scroll' */
    opacity: 0.25; /* INCREASE to 0.1 for testing */
    pointer-events: none;
    z-index: 0;
}

/* Ensure content stays above background */
.product-section .container {
    position: relative;
    z-index: 1;
}

   .product-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--space-3xl);
}

.product-intro p {
    font-size: var(--text-lg);
    line-height: 1.7;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.step-card {
    padding: var(--space-xl);
    background: var(--csli-bg-alt);
    border-radius: 20px;
    border-left: 4px solid var(--csli-primary);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--csli-primary);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.step-card h3 {
    margin-bottom: var(--space-sm);
}

/* Flow Diagram */
.flow-section {
    background: var(--csli-bg-alt);
    padding: var(--space-3xl);
    border-radius: 24px;
    margin: var(--space-3xl) 0;
}

.flow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.flow-box {
    background: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    min-width: 140px;
    border-top: 3px solid var(--csli-primary);
}

.flow-box h4 {
    color: var(--csli-primary);
    font-size: var(--text-sm);
    margin-bottom: 0.5rem;
}

.flow-box p {
    font-size: var(--text-xs);
    margin-bottom: 0;
}

.flow-arrow {
    color: var(--csli-accent);
    font-size: 1.5rem;
    font-weight: bold;
}

.flow-outputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: var(--space-sm);
}

.flow-output {
    background: rgba(15, 76, 129, 0.06);
    padding: 0.4rem;
    border-radius: 6px;
    font-size: var(--text-xs);
    color: var(--csli-primary);
    font-weight: 500;
}

/* Workflow Diagram Section - Auto size to container */
.workflow-diagram-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.diagram-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--csli-border);
}

.workflow-diagram {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
    object-fit: contain;
}

/* Responsive - scales with screen size */
@media (max-width: 768px) {
    .workflow-diagram-section {
        padding: 2rem 0;
    }
    
    .diagram-container {
        padding: 0.75rem;
        margin: 0 1rem;
        width: auto;
    }
}

/* For ultra-wide screens - prevent image from getting too large */
@media (min-width: 1400px) {
    .diagram-container {
        max-width: 1200px;
    }
}

/* 9. Benefits Section
   -------------------------------------------------------------------------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.benefit-card {
    padding: var(--space-xl);
    background: white;
    border-radius: 20px;
    border: 1px solid var(--csli-border);
    transition: var(--csli-transition);
    text-align: center;
}

.benefit-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: var(--csli-primary);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--csli-primary) 0%, var(--csli-accent) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: white;
    font-size: 1.75rem;
}

.benefit-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.benefit-card p {
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* 10. Implementation Section
   -------------------------------------------------------------------------- */
.implementation-section {
    background: var(--csli-dark);
}

.implementation-section .section-header h2,
.implementation-section .section-header p {
    color: white;
}

.implementation-section .section-header p {
    opacity: 0.8;
}

.impl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.impl-card {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-xl);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--csli-transition);
}

.impl-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.impl-card .step-num {
    width: 44px;
    height: 44px;
    background: var(--csli-accent);
    color: var(--csli-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
}

.impl-card h3 {
    color: white;
    margin-bottom: var(--space-sm);
}

.impl-card p {
    opacity: 0.7;
    line-height: 1.7;
    font-size: var(--text-sm);
    color: white;
}

.bottom-line {
    text-align: center;
    margin-top: var(--space-3xl);
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-line p:first-child {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: white;
}

.bottom-line p:last-child {
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
    color: white;
    font-size: var(--text-base);
}

/* 11. CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--csli-primary) 0%, var(--csli-accent) 100%);
    text-align: center;
    padding: var(--space-4xl) 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--space-sm);
}

.cta-section p {
    color: white;
    opacity: 0.9;
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.cta-section .btn {
    background: white;
    color: var(--csli-primary);
    font-size: var(--text-base);
    padding: 1rem 2.5rem;
}

.cta-section .btn:hover {
    background: var(--csli-dark);
    color: white;
    transform: translateY(-2px);
}

/* 12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--csli-dark);
    color: white;
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    padding: 0 var(--space-lg);
}

.footer-brand .logo {
    color: white;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    opacity: 0.6;
    line-height: 1.7;
    font-size: var(--text-sm);
    color: white;
}

.footer-col h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    opacity: 0.5;
    color: white;
}

/* 13. Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    section {
        padding: var(--space-3xl) 0;
    }
    
    .hero-section {
        gap: var(--space-xl);
    }
    
    .benefits-grid,
    .impl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .benefits-grid,
    .impl-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .flow-container {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: var(--space-lg);
        gap: var(--space-sm);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--csli-border);
    }
    
    .section-header h2 {
        font-size: var(--text-3xl);
    }
    
    .hero-content h1 {
        font-size: var(--text-4xl);
    }
}

@media (max-width: 640px) {
    :root {
        --space-3xl: 3rem;
        --space-4xl: 4rem;
    }
    
    .hero-content h1 {
        font-size: var(--text-3xl);
    }
    
    .hero-section {
        padding: var(--space-xl) var(--space-md);
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .section-header h2 {
        font-size: var(--text-2xl);
    }
    
    .benefit-card,
    .impl-card,
    .step-card {
        padding: var(--space-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* 14. Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section,
.about-grid,
.step-card,
.benefit-card,
.impl-card {
    animation: fadeInUp 0.6s ease forwards;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   IMPROVED FLOW SECTION - FIXED CONTRAST & 3x2 GRID
   ============================================ */

.flow-section-v2 {
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
    padding: 3rem 2rem;
    border-radius: 32px;
    margin: 4rem 0;
    border: 1px solid var(--csli-border);
}

/* Section Header */
.flow-section-v2 .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.flow-section-v2 .section-header .tag {
    background: rgba(15, 76, 129, 0.12);
    color: var(--csli-primary);
}

.flow-section-v2 .section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.flow-section-v2 .section-header p {
    color: var(--csli-text-light);
    font-size: 1rem;
}

/* Pipeline Container */
.pipeline {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin: 3rem 0;
    flex-wrap: wrap;
}

/* Individual Stage */
.pipeline-stage {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.stage-card {
    background: white;
    padding: 1.75rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--csli-border);
    height: 100%;
}

.stage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 76, 129, 0.12);
    border-color: var(--csli-primary);
}

/* Highlighted final stage */
.stage-card.highlight {
    background: linear-gradient(135deg, var(--csli-primary) 0%, var(--csli-primary-light) 100%);
    border-color: transparent;
}

.stage-card.highlight h3,
.stage-card.highlight p {
    color: white;
}

.stage-card.highlight .stage-icon {
    background: white;
    color: var(--csli-primary);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.stage-card.highlight .stage-number {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.stage-card.highlight .stage-tags span {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Stage Elements - IMPROVED CONTRAST */
.stage-number {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--csli-primary);
    background: rgba(15, 76, 129, 0.1);
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.stage-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--csli-primary) 0%, var(--csli-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    box-shadow: 0 8px 15px rgba(15, 76, 129, 0.2);
}

.stage-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--csli-dark);
    font-weight: 700;
}

.stage-card p {
    font-size: 0.85rem;
    color: var(--csli-text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Stage Tags */
.stage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.stage-tags span {
    background: rgba(15, 76, 129, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--csli-primary);
}

/* Pipeline Arrow */
.pipeline-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
}

.pipeline-arrow svg {
    width: 28px;
    height: 28px;
    stroke: var(--csli-primary);
    stroke-width: 2;
}

/* OUTPUTS GRID - 3x2 ARRANGEMENT */
.outputs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--csli-border);
}

.output-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--csli-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.output-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(15, 76, 129, 0.1);
    border-color: var(--csli-primary-light);
}

.output-emoji {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.output-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--csli-dark);
    font-weight: 700;
}

.output-card p {
    font-size: 0.8rem;
    color: var(--csli-text-light);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
    .pipeline {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .pipeline-arrow {
        transform: rotate(90deg);
        padding: 0.5rem 0;
    }
    
    .pipeline-stage {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* 3x2 becomes 2x3 on tablet */
    .outputs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .flow-section-v2 {
        padding: 2rem 1rem;
    }
    
    /* 2x3 becomes 1x6 on mobile */
    .outputs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stage-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .stage-card {
        padding: 1.25rem;
    }
}


/* Logo styling */
.site-logo {
    max-height: 45px;
    width: auto;
    display: block;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}