/* General Body & Typography */
:root {
    /* Logo Colors - Main Palette */
    --color-teal: #0FA89F; /* Main teal from logo */
    --color-teal-dark: #0D8E86;
    --color-pink: #E94E77; /* Pink/Magenta from logo */
    --color-pink-dark: #D93A5F;
    --color-navy: #1B4965; /* Dark blue from logo */
    --color-navy-light: #2B5F7E;
    --color-lime: #8FD14F; /* Light green from logo */
    --color-lime-light: #A8E06D;
    --color-aqua: #62D2E3; /* Light blue/aqua from logo */
    --color-aqua-light: #7DDBEB;

    /* Semantic Color Mapping */
    --color-accent: var(--color-teal);
    --color-hover: var(--color-teal-dark);
    --color-problem: var(--color-pink);
    --color-secondary: var(--color-navy);
    --color-tertiary: var(--color-aqua);

    /* Couleurs de Texte - Better contrast */
    --color-text: #374151;
    --color-heading: #111827;
    --color-text-light: #6B7280;
    --color-background: #FFFFFF;
    --color-surface: #FFFFFF;

    /* Couleurs de Fond Subtiles (Logo-based) */
    --bg-light-teal: #FAFEFE;
    --bg-light-pink: #FEFBFC;
    --bg-light-navy: #FBFCFD;
    --bg-light-lime: #FCFEFC;
    --bg-light-aqua: #FBFDFE;

    /* Borders & Shadows */
    --border-light: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    margin: 0;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--color-heading);
    line-height: 1.1;
    margin-bottom: 0.5em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.25em;
    line-height: 1.15;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-top: 0.5em;
    line-height: 1.4;
}

p {
    margin-bottom: 1em;
    line-height: 1.7;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(27, 73, 101, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-navy-light) 0%, var(--color-navy) 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(27, 73, 101, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: 1.5px solid var(--border-light);
    padding: 11px 23px;
}

.btn-secondary:hover {
    background-color: var(--color-surface);
    border-color: var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo img {
    height: 40px;
    vertical-align: middle;
}

.navbar .logo .logo-long {
    height: 38px;
    width: auto;
}

.navbar nav ul {
    display: flex;
    gap: 30px;
}

.navbar nav a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.navbar nav a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.nav-demo-btn {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-demo-btn:hover {
    background: linear-gradient(135deg, var(--color-navy-light) 0%, var(--color-navy) 100%);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 73, 101, 0.3);
}

/* Hero Section */
.hero-section {
    background-color: #ffffff;
    text-align: center;
    padding: 60px 0 0;
    border-bottom: 1px solid #eee;
}

.hero-logo-badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--bg-light-teal) 0%, var(--bg-light-aqua) 100%);
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(15, 168, 159, 0.15);
}

.hero-logo {
    height: 60px;
    width: auto;
    display: block;
}

.hero-section h1 {
    font-size: 4.5rem;
    max-width: 900px;
    margin: 0 auto 16px auto;
}

.hero-section .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

.hero-section .btn-primary {
    margin-bottom: 10px;
    padding: 18px 36px;
    font-size: 1.2rem;
}

.hero-section .cta-info {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

/* Style pour l'image du produit dans la Hero Section */
.hero-image {
    margin-top: 20px;
    padding-bottom: 20px;
    position: relative;
}

.product-screenshot {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 167, 157, 0.15);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-screenshot:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 167, 157, 0.2);
}

.hero-animation {
    width: 100%;
    max-width: 1012px;
    height: 400px;
    margin: 0 auto;
    border: none;
    border-radius: 16px;
    background: transparent;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-animation {
        height: 320px;
    }
}

@media (max-width: 576px) {
    .hero-animation {
        height: 300px;
    }
}

/* Mobile/Desktop visibility */
.desktop-only {
    display: block;
}
.mobile-only {
    display: none;
}

/* Mobile notice banner */
.mobile-notice {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-navy) 100%);
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
}

/* Video responsive container for mobile */
.hero-video-mobile {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.hero-video-mobile iframe,
.hero-video-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Fullscreen button for videos */
.hero-video-mobile,
.stack-video-wrapper {
    position: relative;
}

.video-fullscreen-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.video-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* --- MOBILE ACCORDION STYLES --- */
.mobile-accordion {
    display: none;
}

@media (max-width: 768px) {
    .mobile-accordion {
        display: block;
    }

    /* Hide desktop versions of sections with mobile accordions */
    .bidirectional-grid.three-column,
    .workflows-templates-section .workflow-feature-card {
        display: none !important;
    }

    /* Hide "All Methods, Same Power" on mobile */
    .benefits-modern {
        display: none !important;
    }

    /* Section "Transform Workflows" - titles only, hide content */
    .feature-content-display {
        display: none !important;
    }

    .feature-nav {
        flex-direction: column;
        gap: 8px;
    }

    .feature-nav .nav-item {
        padding: 12px 16px;
        border-radius: 8px;
    }

    .feature-nav .nav-item p {
        display: none;
    }

    .feature-nav .nav-item h3 {
        font-size: 0.95rem;
        margin: 0;
    }

    /* Section "Problems" - hide text, keep title/icon/tag */
    .problem-content p {
        display: none !important;
    }

    .problem-item {
        grid-template-columns: 40px 1fr auto !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    .problem-content h4 {
        font-size: 0.9rem;
        margin: 0;
    }

    .cost-impact {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* Video Modal for mobile */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10001;
    padding: 8px 14px;
    border-radius: 50%;
    line-height: 1;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

#video-modal-body {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

#video-modal-body iframe,
#video-modal-body img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Fullscreen styles */
.video-modal:fullscreen,
.video-modal:-webkit-full-screen {
    background: #000;
    padding: 0;
}

.video-modal:fullscreen #video-modal-body,
.video-modal:-webkit-full-screen #video-modal-body {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.video-modal:fullscreen .video-modal-close,
.video-modal:-webkit-full-screen .video-modal-close {
    position: fixed;
    top: 15px;
    right: 15px;
}

/* Force landscape fallback when fullscreen API not available */
@media (max-width: 768px) and (orientation: portrait) {
    .video-modal.force-landscape {
        transform: rotate(90deg);
        transform-origin: center center;
        width: 100vh;
        height: 100vw;
        top: 50%;
        left: 50%;
        margin-top: -50vw;
        margin-left: -50vh;
    }

    .video-modal.force-landscape .video-modal-content {
        width: 100%;
        height: 100%;
    }

    .video-modal.force-landscape #video-modal-body {
        width: 100%;
        height: 100%;
    }

    .video-modal.force-landscape .video-modal-close {
        top: 10px;
        right: 10px;
        transform: rotate(0deg);
    }
}

.accordion-item {
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(204, 251, 241, 0.3) 0%, rgba(255, 255, 255, 1) 100%);
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, rgba(204, 251, 241, 0.5) 0%, rgba(255, 255, 255, 1) 100%);
}

.accordion-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-header .accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--color-teal);
}

.accordion-item.active .accordion-header .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    padding: 0 20px 20px;
}

.accordion-content p {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-content ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.9rem;
    color: var(--color-text);
}

.accordion-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-teal);
    font-weight: bold;
}

.accordion-content img {
    width: 100%;
    border-radius: 8px;
    margin-top: 12px;
}

/* Stack accordion badges */
.stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack-accordion .accordion-item {
    margin-bottom: 8px;
}

.stack-accordion .accordion-header h4 {
    font-size: 0.9rem;
}

.stack-accordion .accordion-content {
    padding-top: 10px;
}

/* Oreframe mobile badge */
.oreframe-mobile-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-navy) 100%);
    border-radius: 10px;
}

.oreframe-mobile-badge img {
    width: 30px;
    height: 30px;
}

.oreframe-mobile-badge span {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}


/* --- PROBLEM STATEMENT SECTION --- */
/* --- UNIFIED PROBLEM SECTION --- */
.unified-problem-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff 0%, var(--color-surface) 50%, #ffffff 100%);
}

.unified-problem-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-heading);
}

.unified-problem-section .section-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-text);
    max-width: 900px;
    margin: 0 auto 80px;
    line-height: 1.6;
}

/* Automation Stack Showcase */
.automation-stack-showcase {
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: center;
}

.automation-stack-showcase h3 {
    margin-bottom: 16px;
    color: var(--color-heading);
    font-size: 2rem;
}

.stack-intro {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.stack-to-oreframe-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.tech-sources-wrapper {
    flex: 1;
}

.stack-video-wrapper {
    flex: 1;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-pink) 25%, var(--color-navy) 50%, var(--color-aqua) 75%, var(--color-lime) 100%);
    padding: 4px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(15, 168, 159, 0.25);
    display: flex;
    align-items: stretch;
}

.stack-video-wrapper iframe {
    flex: 1;
    border-radius: 16px;
    min-height: 300px;
}

@media (max-width: 900px) {
    .stack-to-oreframe-container {
        flex-direction: column;
    }

    .stack-video-wrapper {
        aspect-ratio: 16 / 9;
    }

    .stack-video-wrapper iframe {
        min-height: unset;
    }
}

.tech-sources-wrapper {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-pink) 25%, var(--color-navy) 50%, var(--color-aqua) 75%, var(--color-lime) 100%);
    padding: 4px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(15, 168, 159, 0.25);
}

.tech-sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: #ffffff;
    padding: 20px 20px 16px 20px;
    border-radius: 16px 16px 0 0;
}

.oreframe-bottom-section {
    background: linear-gradient(135deg, var(--bg-light-teal) 0%, var(--bg-light-aqua) 100%);
    padding: 24px;
    border-radius: 0 0 16px 16px;
    border-top: 2px solid var(--border-light);
}

.oreframe-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.oreframe-bottom-logo {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.oreframe-bottom-text h4 {
    margin: 0 0 4px 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-heading);
    letter-spacing: 1px;
}

.oreframe-bottom-text p {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
}

.tech-source-box {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid;
    transition: all 0.3s ease-out;
}

.tech-source-box.python {
    border-color: var(--color-teal);
    background: linear-gradient(135deg, var(--bg-light-teal) 0%, #ffffff 100%);
}

.tech-source-box.mining {
    border-color: var(--color-navy);
    background: linear-gradient(135deg, var(--bg-light-navy) 0%, #ffffff 100%);
}

.tech-source-box.gis {
    border-color: var(--color-aqua);
    background: linear-gradient(135deg, var(--bg-light-aqua) 0%, #ffffff 100%);
}

.tech-source-box.databases {
    border-color: var(--color-lime);
    background: linear-gradient(135deg, var(--bg-light-lime) 0%, #ffffff 100%);
}

.tech-source-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tech-source-box h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-badges-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-badge-small {
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.flow-arrows {
    display: flex;
    flex-direction: column;
    gap: 56px;
    justify-content: center;
}

.arrow-line {
    font-size: 2rem;
    color: var(--color-teal);
    font-weight: 700;
    text-align: center;
    animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(8px);
    }
}

.oreframe-destination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.oreframe-logo-box {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-aqua) 25%, var(--color-lime) 50%, var(--color-navy) 75%, var(--color-pink) 100%);
    padding: 4px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(15, 168, 159, 0.3);
    animation: glow-border 3s ease-in-out infinite;
}

@keyframes glow-border {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(15, 168, 159, 0.3);
    }
    50% {
        box-shadow: 0 12px 48px rgba(15, 168, 159, 0.5);
    }
}

.oreframe-logo-box > div {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}

.oreframe-destination-logo {
    height: 60px;
    width: auto;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.oreframe-logo-box h4 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-heading);
    letter-spacing: 1px;
}

.oreframe-logo-box p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.stack-category h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    margin-bottom: 15px;
    font-weight: 600;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    display: inline-block;
    padding: 8px 14px;
    background-color: var(--bg-light-teal);
    color: var(--color-text);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(15, 168, 159, 0.2);
}

.stack-category:nth-child(2) .tech-badge {
    background-color: var(--bg-light-navy);
    border-color: rgba(27, 73, 101, 0.2);
}

/* Problems and Cost Combined - Modern Design */
.problems-and-cost {
    max-width: 1000px;
    margin: 0 auto 80px;
}

.problems-and-cost h3 {
    text-align: center;
    margin-bottom: 48px;
    color: var(--color-heading);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.problems-cost-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.problem-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
    position: relative;
}

.problem-item:last-child {
    border-bottom: none;
}

.problem-item:hover {
    background: var(--bg-light-teal);
}

.problem-item.complexity,
.problem-item.communication,
.problem-item.understanding,
.problem-item.specialization {
    border-top: none;
}

.problem-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-teal), var(--color-aqua));
    border-radius: 12px;
    flex-shrink: 0;
}

.problem-icon {
    font-size: 1.25rem;
    filter: grayscale(1) brightness(10);
}

.problem-label {
    display: none;
}

.problem-content {
    flex: 1;
}

.problem-item h4 {
    margin: 0 0 6px 0;
    color: var(--color-heading);
    font-size: 1.125rem;
    font-weight: 600;
}

.problem-content p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.9375rem;
    line-height: 1.5;
    opacity: 0.85;
}

.cost-impact {
    background: none;
    border-left: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--color-pink);
    background: rgba(233, 78, 119, 0.08);
    white-space: nowrap;
    flex-shrink: 0;
}

.cost-impact strong {
    color: inherit;
    font-weight: 600;
}

@media (max-width: 768px) {
    .problem-item {
        grid-template-columns: 48px 1fr;
        gap: 16px;
    }

    .cost-impact {
        grid-column: 2;
        justify-self: start;
        margin-top: 8px;
    }
}

/* Templates List Grid */
.templates-list-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin-top: 16px;
}

.template-list-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
}

.template-list-item:last-child {
    border-bottom: none;
}

.template-list-item:hover {
    background: var(--bg-light-teal);
}

.template-list-item h4 {
    margin: 0 0 4px 0;
    color: var(--color-heading);
    font-size: 0.9375rem;
    font-weight: 600;
}

.template-list-item p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.8125rem;
}

/* The Solution Section */
.solution-section {
    max-width: 1400px;
    margin: 80px auto 0;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--bg-light-teal) 0%, var(--bg-light-aqua) 100%);
    border-radius: 24px;
}

.solution-section h3 {
    text-align: center;
    margin-bottom: 16px;
    color: var(--color-heading);
    font-size: 2.5rem;
    font-weight: 700;
}

.solution-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-text);
    max-width: 900px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.solution-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease-out;
    position: relative;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.solution-card.visual {
    border-top: 4px solid var(--color-teal);
}

.solution-card.convert {
    border-top: 4px solid var(--color-navy);
}

.solution-card.prompt {
    border-top: 4px solid var(--color-aqua);
}

.solution-card.collaborate {
    border-top: 4px solid var(--color-pink);
}

.solution-card.integrate {
    border-top: 4px solid var(--color-lime);
}

.solution-card.preserve {
    border-top: 4px solid var(--color-navy);
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.solution-card h4 {
    margin: 0 0 16px 0;
    color: var(--color-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.solution-card > p {
    margin: 0 0 20px 0;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.7;
}

.solution-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-features li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--color-text);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.solution-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-aqua) 100%);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Responsive for solution section */
@media (max-width: 768px) {
    .solution-grid {
        grid-template-columns: 1fr;
    }
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: start;
}

.comparison-column {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease-out;
}

.comparison-column:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.before-column {
    border-top: 4px solid var(--color-pink);
}

.after-column {
    border-top: 4px solid var(--color-teal);
}

.column-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8125rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
}

.before-badge {
    background: linear-gradient(135deg, var(--bg-light-pink) 0%, rgba(233, 78, 119, 0.1) 100%);
    color: var(--color-pink);
    border: 2px solid var(--color-pink);
}

.after-badge {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-aqua) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 168, 159, 0.2);
}

.comparison-icon-large {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
    display: block;
}

.comparison-icon-large.problem {
    filter: drop-shadow(0 4px 8px rgba(233, 78, 119, 0.3));
}

.comparison-icon-large.success {
    filter: drop-shadow(0 4px 8px rgba(15, 168, 159, 0.3));
}

.comparison-column h4 {
    text-align: center;
    margin: 0 0 32px 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-heading);
}

.comparison-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comparison-point {
    display: flex;
    gap: 12px;
    align-items: start;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.3s ease-out;
}

.comparison-point.pain {
    background: linear-gradient(135deg, var(--bg-light-pink) 0%, rgba(233, 78, 119, 0.05) 100%);
}

.comparison-point.benefit {
    background: linear-gradient(135deg, var(--bg-light-teal) 0%, var(--bg-light-aqua) 100%);
}

.comparison-point:hover {
    transform: translateX(4px);
}

.comparison-point .point-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.comparison-point.pain .point-icon {
    background: var(--color-pink);
    color: white;
}

.comparison-point.benefit .point-icon {
    background: var(--color-teal);
    color: white;
}

.comparison-point strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-heading);
}

.comparison-point p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.6;
}

.comparison-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    gap: 20px;
}

.divider-line-vertical {
    width: 3px;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, var(--color-teal) 50%, transparent 100%);
}

.transformation-icon {
    text-align: center;
}

.transformation-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(15, 168, 159, 0.3));
    margin-bottom: 12px;
}

.transformation-arrow {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-teal);
    animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(8px);
    }
}

/* Responsive for transformation comparison */
@media (max-width: 1024px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .comparison-divider {
        padding: 0;
        flex-direction: row;
    }

    .divider-line-vertical {
        width: 100px;
        height: 3px;
        background: linear-gradient(90deg, transparent 0%, var(--color-teal) 50%, transparent 100%);
    }

    .transformation-arrow {
        transform: rotate(90deg);
    }

    .problems-cost-grid {
        grid-template-columns: 1fr;
    }
}

.comparison-content {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.comparison-side:hover .comparison-content {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.before-side .comparison-content {
    background: linear-gradient(to bottom, var(--bg-light-pink) 0%, #ffffff 100%);
}

.after-side .comparison-content {
    background: linear-gradient(to bottom, var(--bg-light-teal) 0%, #ffffff 100%);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.comparison-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.comparison-icon-badge.problem {
    background: linear-gradient(135deg, var(--color-pink) 0%, #D93A5F 100%);
}

.comparison-icon-badge.success {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-aqua) 100%);
}

.comparison-header h3 {
    margin: 0;
    font-size: 1.625rem;
    color: var(--color-heading);
    font-weight: 700;
}

.comparison-image-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.comparison-image-placeholder:hover .comparison-screenshot {
    opacity: 0.95;
}

.comparison-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modern-point {
    display: flex;
    gap: 16px;
    align-items: start;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease-out;
}

.modern-point:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: var(--border-light);
    transform: translateX(4px);
}

.modern-point.pain:hover {
    border-color: var(--color-pink);
    background-color: rgba(233, 78, 119, 0.03);
}

.modern-point.benefit:hover {
    border-color: var(--color-teal);
    background-color: rgba(15, 168, 159, 0.03);
}

.point-icon-circle {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    line-height: 1;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.point-icon-circle.pain {
    background: linear-gradient(135deg, var(--color-pink) 0%, #D93A5F 100%);
    color: white;
}

.point-icon-circle.benefit {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-aqua) 100%);
    color: white;
}

.point-content h4 {
    font-size: 1.0625rem;
    margin: 0 0 6px 0;
    color: var(--color-heading);
    font-weight: 600;
}

.point-content p {
    font-size: 0.9375rem;
    color: var(--color-text);
    margin: 0;
    line-height: 1.6;
}

/* Transformation Divider */
.transformation-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 50px;
    gap: 12px;
}

.divider-icon-modern {
    font-size: 2.5rem;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-aqua) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(15, 168, 159, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.divider-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.divider-logo {
    height: 140px;
    width: auto;
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 8px rgba(15, 168, 159, 0.2));
}

.divider-arrow {
    font-size: 2rem;
    color: var(--color-accent);
    font-weight: 700;
    transform: rotate(90deg);
    opacity: 0.4;
}


/* --- BIDIRECTIONAL WORKFLOW SECTION --- */
.bidirectional-workflow-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-light-navy) 0%, var(--bg-light-teal) 50%, var(--bg-light-lime) 100%);
    position: relative;
    overflow: hidden;
}

.bidirectional-workflow-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(15, 168, 159, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(98, 210, 227, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.bidirectional-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.bidirectional-header h2 {
    font-size: 2.75rem;
    color: var(--color-heading);
    margin-bottom: 16px;
    font-weight: 800;
}

.bidirectional-tagline {
    font-size: 1.375rem;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.bidirectional-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

.bidirectional-grid.three-column {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1600px;
}

.workflow-direction {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease-out;
}

.three-column .workflow-direction {
    padding: 36px 28px;
}

.workflow-direction:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.import-direction .direction-icon-svg {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.create-direction .direction-icon-svg {
    background: linear-gradient(135deg, rgba(27, 73, 101, 0.12) 0%, rgba(13, 42, 61, 0.08) 100%);
    border: 1px solid rgba(27, 73, 101, 0.15);
}

.dragdrop-direction .direction-icon-svg {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(124, 58, 237, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.direction-icon-badge {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 24px;
    animation: pulse-glow 2s ease-in-out infinite;
}

.direction-icon-svg {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.direction-icon-svg svg {
    width: 100px;
    height: 75px;
}

.workflow-direction:hover .direction-icon-svg {
    transform: scale(1.05);
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(15, 168, 159, 0.4));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(15, 168, 159, 0.7));
    }
}

.workflow-direction h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--color-heading);
    margin-bottom: 8px;
    font-weight: 700;
}

.three-column .workflow-direction h3 {
    font-size: 1.6rem;
}

.direction-subtitle {
    text-align: center;
    font-size: 1.0625rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    font-style: italic;
}

.three-column .direction-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* Import Direction Styles */
.direction-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.direction-feature {
    display: flex;
    gap: 16px;
    align-items: start;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-light-teal) 0%, var(--bg-light-aqua) 100%);
    border-radius: 12px;
    border: 1px solid rgba(15, 168, 159, 0.2);
    transition: all 0.3s ease-out;
}

.direction-feature:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 16px rgba(15, 168, 159, 0.15);
    border-color: var(--color-teal);
}

.feature-check-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-aqua) 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15, 168, 159, 0.3);
}

.direction-feature h4 {
    margin: 0 0 6px 0;
    color: var(--color-heading);
    font-size: 1.125rem;
    font-weight: 700;
}

.direction-feature p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Create Direction Styles */
.direction-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.direction-step {
    display: flex;
    gap: 16px;
    align-items: start;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-light-navy) 0%, var(--bg-light-teal) 100%);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease-out;
}

.direction-step:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-navy);
}

.step-number-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(27, 73, 101, 0.3);
}

.direction-step h4 {
    margin: 0 0 6px 0;
    color: var(--color-heading);
    font-size: 1.125rem;
    font-weight: 700;
}

.direction-step p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* CTA Styles */
.direction-cta {
    text-align: center;
    padding-top: 24px;
    border-top: 2px solid var(--border-light);
}

.direction-note {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(139, 92, 246, 0.15));
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
}

/* Center Divider */
.bidirectional-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    gap: 16px;
}

.divider-line {
    width: 2px;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, var(--color-teal) 50%, transparent 100%);
}

.divider-badge {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-aqua) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(15, 168, 159, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.divider-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Shared Benefits Section (Modern) */
.benefits-modern {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #d1d5db;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.benefits-modern h3 {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-heading);
    margin-bottom: 20px;
    font-weight: 700;
}

.benefits-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.benefit-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #f8fafc;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.benefit-pill:hover {
    border-color: var(--color-accent);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pill-icon {
    font-size: 1.125rem;
    line-height: 1;
}

.pill-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pill-text strong {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-heading);
}

.pill-text span {
    font-size: 0.6875rem;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .bidirectional-grid.three-column {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 1024px) {
    .bidirectional-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bidirectional-divider {
        padding: 0;
    }

    .divider-line {
        width: 80px;
        height: 2px;
        background: linear-gradient(90deg, transparent 0%, var(--color-teal) 50%, transparent 100%);
    }

    .divider-badge {
        transform: rotate(90deg);
    }

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

@media (max-width: 640px) {
    .bidirectional-header h2 {
        font-size: 2rem;
    }

    .bidirectional-tagline {
        font-size: 1.125rem;
    }

    .workflow-direction {
        padding: 32px 24px;
    }

    .benefits-grid-compact {
        grid-template-columns: 1fr;
    }

    .connectors-modern-grid {
        grid-template-columns: 1fr;
    }

    .benefits-modern {
        padding: 24px 20px;
    }

    .benefits-row {
        gap: 8px;
    }

    .benefit-pill {
        padding: 8px 14px;
        gap: 8px;
    }
}

/* --- WHY OREFRAME SECTION (4 blocs de bénéfices) --- */
.why-oreframe-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-light-cyan) 0%, var(--bg-light-blue) 100%);
}

.why-oreframe-section h2 {
    margin-bottom: 50px;
}

.why-oreframe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px;
}

.oreframe-benefit {
    background-color: var(--color-surface);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease-out;
    overflow: hidden;
    position: relative;
}

.oreframe-benefit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-aqua) 100%);
    border-radius: 16px 16px 0 0;
}

.oreframe-benefit:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    background-color: var(--bg-light-teal);
    border-color: var(--color-accent);
}

.oreframe-benefit h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.benefit-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 15px;
}

/* Bloc 2: Platform Integration (Navy) */
.why-oreframe-grid .oreframe-benefit:nth-child(2)::before {
    background: linear-gradient(90deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
}

.why-oreframe-grid .oreframe-benefit:nth-child(2):hover {
    background-color: var(--bg-light-navy);
    border-color: var(--color-navy);
}

/* Bloc 3: Analysis (Aqua) */
.why-oreframe-grid .oreframe-benefit:nth-child(3)::before {
    background: linear-gradient(90deg, var(--color-aqua) 0%, var(--color-lime) 100%);
}

.why-oreframe-grid .oreframe-benefit:nth-child(3):hover {
    background-color: var(--bg-light-aqua);
    border-color: var(--color-aqua);
}

/* Bloc 4: Audit-Ready (Lime/Green) */
.why-oreframe-grid .oreframe-benefit:nth-child(4)::before {
    background: linear-gradient(90deg, var(--color-lime) 0%, var(--color-teal) 100%);
}

.why-oreframe-grid .oreframe-benefit:nth-child(4):hover {
    background-color: var(--bg-light-lime);
    border-color: var(--color-lime);
}

/* Style spécifique pour le bloc large (Work Amplified) */
.oreframe-full-benefit {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-navy) 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.oreframe-full-benefit h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
}

.oreframe-full-benefit p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #eee;
    margin-bottom: 0;
}

.oreframe-full-benefit .benefit-icon {
    font-size: 3rem;
    filter: brightness(1.2); 
}


/* --- FEATURES SECTION (Style Carrousel/Onglets type dust.tt) --- */

.features-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.features-section h2 {
    margin-bottom: 40px;
}

.carousel-feature-block {
    display: flex;
    gap: 40px;
    background-color: #f0f2f5; 
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Colonne de Navigation (Gauche) */
.feature-nav {
    flex: 0 0 350px; 
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 20px;
}

.feature-nav .nav-item {
    display: block;
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-nav .nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature-nav .nav-item:hover {
    background-color: #e8ebf0;
    transform: translateX(5px);
}

.feature-nav .nav-item:hover::before {
    transform: scaleY(0.5);
}

/* Style de l'onglet actif */
.feature-nav .nav-item.active {
    background-color: #ffffff;
    border-color: #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.feature-nav .nav-item.active::before {
    transform: scaleY(1);
}

.feature-nav .nav-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 5px;
}

.feature-nav .nav-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Colonne de Contenu (Droite) */
.feature-content-display {
    flex: 1;
    background-color: #ffffff; 
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.content-item h3 {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.content-item ul {
    list-style: circle; 
    padding-left: 20px;
    margin-top: 15px;
}

.content-item ul li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 8px;
}

/* Cacher le contenu non actif */
.feature-content-display .content-item {
    display: none;
    opacity: 0;
    animation: fadeOut 0.3s ease-out;
}

.feature-content-display .content-item.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Feature Image Placeholders */
.feature-image-placeholder {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
    text-align: center;
}

.feature-screenshot {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.feature-image-placeholder:hover .feature-screenshot {
    opacity: 1;
}

.placeholder-caption {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* --- SHOWCASE SECTION --- */
/* --- WORKFLOWS & TEMPLATES MERGED SECTION --- */
.workflows-templates-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0faf9 0%, #f5f7fa 100%);
}

.workflows-templates-section h2 {
    margin-bottom: 20px;
    text-align: center;
}

.workflows-templates-section .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.workflows-examples {
    margin-top: 60px;
    margin-bottom: 80px;
}

.workflows-examples h3 {
    text-align: center;
    margin-bottom: 48px;
    color: var(--color-heading);
    font-size: 2rem;
    font-weight: 700;
}

/* Workflow Feature Cards - Alternating Layout */
.workflow-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    margin-bottom: 80px;
    background: #ffffff;
    border-radius: 24px;
    padding: 60px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .workflow-feature-card {
        flex-direction: row;
        align-items: center;
    }

    .workflow-feature-card.reverse {
        flex-direction: row-reverse;
    }
}

.workflow-feature-content {
    flex: 1;
    max-width: 600px;
}

.feature-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-navy) 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.workflow-feature-content h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--color-heading);
    font-weight: 700;
}

.workflow-feature-content > p {
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 24px;
    line-height: 1.7;
}

.feature-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-benefits li {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 12px;
    padding-left: 8px;
}

.template-quick-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.template-quick-list li {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 16px;
    display: flex;
    align-items: start;
    gap: 12px;
}

.template-bullet {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.reusable-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-item {
    display: flex;
    gap: 16px;
    align-items: start;
    padding: 20px;
    background: var(--bg-light-teal);
    border-radius: 12px;
    border-left: 4px solid var(--color-lime);
}

.highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.highlight-item strong {
    display: block;
    font-size: 1.125rem;
    color: var(--color-heading);
    margin-bottom: 4px;
}

.highlight-item p {
    font-size: 0.95rem;
    color: var(--color-text);
    margin: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.6;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li strong {
    color: var(--color-heading);
}

.workflow-feature-image {
    flex: 1;
    max-width: 600px;
    width: 100%;
}

.workflow-feature-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

.workflow-feature-image.placeholder-area {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-box {
    background: linear-gradient(135deg, var(--bg-light-lime) 0%, var(--bg-light-teal) 100%);
    border: 2px dashed var(--color-lime);
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    width: 100%;
}

.placeholder-box p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin: 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    background-color: #ffffff;
    padding: 0;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    overflow: hidden;
}

.showcase-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Split card design - different backgrounds for each half */
.showcase-item .showcase-content {
    background-color: #ffffff;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-item .showcase-image {
    background: linear-gradient(135deg, var(--bg-light-teal) 0%, var(--bg-light-aqua) 100%);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.showcase-item:nth-child(even) .showcase-image {
    order: 2;
    background: linear-gradient(135deg, var(--bg-light-navy) 0%, var(--bg-light-lime) 100%);
}

.showcase-item:nth-child(even) .showcase-content {
    order: 1;
}

.showcase-item:nth-child(3) .showcase-image {
    background: linear-gradient(135deg, var(--bg-light-pink) 0%, var(--bg-light-aqua) 100%);
}

.showcase-image {
    position: relative;
    overflow: visible;
}

.showcase-screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    opacity: 0.7;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.showcase-item:hover .showcase-screenshot {
    opacity: 1;
    transform: scale(1.02);
}

.showcase-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.showcase-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* --- CONNECTORS SECTION (Modern) --- */
.connectors-section {
    padding: 100px 0;
    background: #f1f5f9;
}

.connectors-section h2 {
    margin-bottom: 12px;
}

.connectors-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 48px auto;
}

.connectors-modern-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 32px auto;
}

.connector-card-modern {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.connector-card-modern:hover {
    border-color: var(--color-accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.connector-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.connector-icon-lg {
    font-size: 1.6rem;
    line-height: 1;
}

/* Color variations for each card type */
.connector-card-modern.databases .connector-icon-wrap {
    background: rgba(98, 210, 227, 0.25);
}

.connector-card-modern.mining .connector-icon-wrap {
    background: rgba(233, 78, 119, 0.15);
}

.connector-card-modern.cloud .connector-icon-wrap {
    background: rgba(143, 209, 79, 0.25);
}

.connector-card-modern.webapps .connector-icon-wrap {
    background: rgba(15, 168, 159, 0.15);
}

.connector-card-content {
    flex: 1;
    min-width: 0;
}

.connector-card-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 6px 0;
}

.connector-card-content p {
    font-size: 0.875rem;
    color: #555;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.connector-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.connector-tags span {
    display: inline-block;
    padding: 5px 12px;
    background: #e2e8f0;
    color: #334155;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.connector-tags span.featured {
    background: rgba(233, 78, 119, 0.15);
    color: #c0365a;
}

.connector-tags span.more {
    background: rgba(15, 168, 159, 0.1);
    color: var(--color-teal);
    font-weight: 700;
}

/* Connectors CTA Modern */
.connectors-cta-modern {
    text-align: center;
    padding: 20px 0;
    font-size: 0.95rem;
    color: #555;
}

.connectors-cta-modern .cta-link {
    color: var(--color-teal);
    font-weight: 700;
    margin-left: 8px;
    text-decoration: none;
    transition: color 0.2s;
}

.connectors-cta-modern .cta-link:hover {
    color: var(--color-accent);
}

/* --- WEB APP FRAMEWORK SECTION --- */
.webapp-framework-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-light-blue) 0%, var(--bg-light-rose) 100%);
    position: relative;
    overflow: hidden;
}

.webapp-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.webapp-text-content h2 {
    font-size: 2.8rem;
    color: var(--color-heading);
    margin-bottom: 20px;
    text-align: left;
}

.webapp-intro {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.7;
}

.webapp-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.webapp-feature-item {
    display: flex;
    gap: 15px;
    align-items: start;
}

.feature-check {
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: bold;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 167, 157, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.webapp-feature-item h4 {
    font-size: 1.2rem;
    color: var(--color-heading);
    margin: 0 0 8px 0;
}

.webapp-feature-item p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.webapp-frameworks {
    background: linear-gradient(135deg, var(--bg-light-navy) 0%, #ffffff 100%);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(27, 73, 101, 0.15);
    position: relative;
    overflow: hidden;
}

.webapp-frameworks::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-teal) 100%);
}

.frameworks-label {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.framework-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.framework-badge {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(27, 73, 101, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.framework-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 73, 101, 0.4);
}

/* Variation colors */
.framework-badge:nth-child(odd) {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    box-shadow: 0 2px 8px rgba(15, 168, 159, 0.3);
}

.framework-badge:nth-child(odd):hover {
    box-shadow: 0 4px 12px rgba(15, 168, 159, 0.4);
}

.framework-badge:nth-child(3n) {
    background: linear-gradient(135deg, var(--color-aqua) 0%, #4AC5D9 100%);
    box-shadow: 0 2px 8px rgba(98, 210, 227, 0.3);
}

.framework-badge:nth-child(3n):hover {
    box-shadow: 0 4px 12px rgba(98, 210, 227, 0.4);
}

.webapp-visual-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.webapp-image-placeholder {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 2px dashed #d0d5dd;
    text-align: center;
}

.webapp-screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.webapp-image-placeholder:hover .webapp-screenshot {
    opacity: 1;
}

.webapp-use-case {
    background: linear-gradient(135deg, var(--bg-light-lime) 0%, var(--bg-light-aqua) 100%);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(143, 209, 79, 0.2);
    position: relative;
}

.webapp-use-case::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-lime) 0%, var(--color-aqua) 100%);
    border-radius: 0 0 16px 16px;
}

.webapp-use-case h4 {
    font-size: 1.3rem;
    color: var(--color-navy);
    margin: 0 0 15px 0;
}

.webapp-use-case p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* --- AGENTS SECTION (Style Grille de Cartes type dust.tt) --- */
.agents-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.agents-section h2 {
    margin-bottom: 20px;
}

.agents-section .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.templates-showcase-image {
    max-width: 1000px;
    margin: 0 auto 60px;
    background: linear-gradient(135deg, var(--bg-light-navy) 0%, var(--bg-light-teal) 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(27, 73, 101, 0.15);
    border: 1px solid var(--border-light);
}

.templates-dashboard-screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: block;
}

.templates-caption {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 0;
    font-size: 1.0625rem;
    color: var(--color-text);
    font-weight: 500;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.agent-card {
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    background-color: var(--color-surface);
    overflow: hidden;
}

/* Appliquer le Cyan/Vert très pâle aux cartes de template */
.agent-card.template-card {
    background-color: var(--color-surface);
}

.agent-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-light-teal);
    border-color: var(--color-teal);
}

/* Add variety with logo colors */
.agent-card:nth-child(1):hover {
    background-color: var(--bg-light-teal);
    border-color: var(--color-teal);
}

.agent-card:nth-child(2):hover {
    background-color: var(--bg-light-navy);
    border-color: var(--color-navy);
}

.agent-card:nth-child(3):hover {
    background-color: var(--bg-light-aqua);
    border-color: var(--color-aqua);
}

.agent-card:nth-child(4):hover {
    background-color: var(--bg-light-lime);
    border-color: var(--color-lime);
}

.agent-card:nth-child(5):hover {
    background-color: var(--bg-light-pink);
    border-color: var(--color-pink);
}

.agent-card:nth-child(6):hover {
    background-color: var(--bg-light-aqua);
    border-color: var(--color-aqua);
}

.agent-card h3 {
    font-size: 1.4rem;
    color: var(--color-heading);
    margin-top: 15px;
    margin-bottom: 10px;
}

.agent-card p {
    font-size: 0.95rem;
    color: #555;
}

.agent-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Style de la carte 'Créer' (Create Card) */
.create-card {
    background: linear-gradient(135deg, var(--bg-light-teal) 0%, var(--bg-light-lime) 100%);
    border: 2px dashed var(--color-lime);
}

.create-card:hover {
    background: linear-gradient(135deg, var(--bg-light-aqua) 0%, var(--bg-light-navy) 100%);
    border-color: var(--color-navy);
    border-style: solid;
}

.create-card .agent-icon {
    background: linear-gradient(135deg, var(--color-lime) 0%, var(--color-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Boutons de carte */
.btn-card {
    display: block;
    text-align: left;
    padding: 10px 0;
    color: var(--color-accent); 
    font-weight: 600;
    transition: color 0.3s;
}

.btn-card:hover {
    color: var(--color-hover);
    text-decoration: none;
}

.btn-secondary-card {
    color: var(--color-problem); 
    font-weight: 600;
}

.btn-secondary-card:hover {
    color: #c93d62;
}


/* Testimonials Section (BLOC DE COULEUR distinct) */
.testimonials-section {
    background-color: #f5f7fa; 
    padding: 100px 0;
}

.testimonials-section h2 {
    margin-bottom: 60px;
}

.testimonials-section .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonials-section .testimonial-card {
    background-color: var(--color-surface);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-align: left;
    transition: all 0.3s ease-out;
    overflow: hidden;
}

.testimonials-section .testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    background-color: var(--bg-light-aqua);
    border-color: var(--color-aqua);
}

.testimonials-section .testimonial-card:nth-child(2n):hover {
    background-color: var(--bg-light-lime);
    border-color: var(--color-lime);
}

.testimonials-section .testimonial-card:nth-child(3n):hover {
    background-color: var(--bg-light-navy);
    border-color: var(--color-navy);
}

.testimonials-section blockquote {
    font-size: 1.15rem; 
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonials-section .author {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 1rem;
    display: block;
    margin-top: 15px;
}

/* Mobile Carousel for Testimonials */
@media (max-width: 768px) {
    .testimonials-section h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .swipe-hint {
        text-align: center;
        color: var(--color-teal);
        font-size: 0.85rem;
        font-weight: 500;
        margin-bottom: 15px;
        animation: swipeHintPulse 2s ease-in-out infinite;
    }

    @keyframes swipeHintPulse {
        0%, 100% { opacity: 0.6; }
        50% { opacity: 1; }
    }

    .testimonials-section .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }

    /* Show subtle scrollbar */
    .testimonials-section .testimonials-grid::-webkit-scrollbar {
        height: 4px;
    }

    .testimonials-section .testimonials-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }

    .testimonials-section .testimonials-grid::-webkit-scrollbar-thumb {
        background: var(--color-teal);
        border-radius: 4px;
    }

    .testimonials-section .testimonial-card {
        flex: 0 0 85%;
        min-width: 280px;
        scroll-snap-align: center;
        padding: 24px;
    }

    .testimonials-section blockquote {
        font-size: 1rem;
    }
}

/* Final CTA Section */
.final-cta-section {
    background: linear-gradient(to bottom, #ffffff 0%, var(--bg-light-navy) 100%);
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.cta-logo-badge {
    display: inline-block;
    margin-bottom: 32px;
    padding: 20px 40px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 8px 24px rgba(27, 73, 101, 0.12);
    border: 2px solid var(--border-light);
}

.cta-logo {
    height: 50px;
    width: auto;
    display: block;
}

.final-cta-section h2 {
    font-size: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-section p {
    font-size: 1.3rem;
    color: #666;
    max-width: 700px;
    margin: 30px auto;
}

.final-cta-section .btn-primary {
    padding: 18px 36px;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.final-cta-section .cta-info {
    font-size: 0.95rem;
    color: #888;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-navy) 0%, #0D2A3D 100%);
    color: #fff;
    padding: 50px 0 30px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo-frame {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    display: block;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    margin: 0;
    max-width: 200px;
    line-height: 1.5;
    margin: 0;
}

.footer-links-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.footer-links-section p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer nav ul {
    display: flex;
    gap: 20px;
    margin: 0;
}

.footer nav a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer nav a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    color: #5eead4;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #5eead4;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    .hero-section .subtitle {
        font-size: 1.3rem;
    }
    h2 {
        font-size: 2rem;
    }

    /* Responsive Problem Statement */
    .problem-statement-section {
        padding: 60px 0 80px;
    }

    .lead-text {
        font-size: 1.125rem;
    }

    .tech-stack {
        grid-template-columns: 1fr;
    }

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

    .problem-context {
        padding: 30px 24px;
    }

    .tech-sources-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .oreframe-logo-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .oreframe-bottom-logo {
        height: 50px;
    }

    .oreframe-bottom-text h4 {
        font-size: 1.5rem;
    }

    .oreframe-bottom-text p {
        font-size: 0.875rem;
    }

    .impact-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .impact-card {
        padding: 28px 24px;
    }

    /* Responsive Problem-Solution (Redesigned) */
    .comparison-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .transformation-divider {
        padding-top: 0;
        padding-bottom: 20px;
    }

    .divider-logo {
        height: 80px;
        transform: rotate(0deg);
        writing-mode: initial;
    }

    .divider-arrow {
        transform: rotate(0deg);
    }

    .comparison-content {
        padding: 28px;
    }

    .comparison-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .modern-point {
        padding: 16px;
    }

    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    .navbar nav ul {
        gap: 15px;
    }
    .navbar .btn-secondary {
        margin-top: 10px;
    }

    /* Responsive Workflow Feature Cards */
    .workflow-feature-card {
        padding: 40px 30px;
        gap: 32px;
        margin-bottom: 60px;
    }

    .workflow-feature-content {
        max-width: 100%;
    }

    .feature-number {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .workflow-feature-content h3 {
        font-size: 1.75rem;
    }

    .workflow-feature-content > p {
        font-size: 1rem;
    }

    .feature-benefits li,
    .template-quick-list li {
        font-size: 0.95rem;
    }

    .template-bullet {
        font-size: 1.25rem;
    }

    .highlight-item {
        padding: 16px;
    }

    .highlight-icon {
        font-size: 1.75rem;
    }

    .highlight-item strong {
        font-size: 1rem;
    }

    .highlight-item p {
        font-size: 0.875rem;
    }

    .workflow-feature-image {
        max-width: 100%;
    }

    .placeholder-box {
        padding: 60px 30px;
    }
    .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 30px;
    }

    .footer-brand {
        width: 100%;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-logo-section,
    .footer-links-section {
        align-items: center;
        text-align: center;
    }

    
    /* Responsive Carrousel */
    .carousel-feature-block {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }
    
    .feature-nav {
        flex: auto;
        padding-right: 0;
    }
    
    .feature-nav .nav-item {
        padding: 15px;
    }

    .feature-content-display {
        padding: 30px;
    }

    /* Responsive Why Oreframe */
    .why-oreframe-grid {
        grid-template-columns: 1fr;
    }
    .oreframe-full-benefit {
        grid-column: span 1;
        text-align: left;
    }

    /* Responsive Showcase */
    .showcase-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .showcase-item:nth-child(even) .showcase-image,
    .showcase-item:nth-child(even) .showcase-content {
        order: initial;
    }

    /* Responsive Connectors */
    .connectors-modern-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Responsive Web App Framework */
    .webapp-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .webapp-text-content h2 {
        font-size: 2.2rem;
        text-align: center;
    }

    .webapp-intro {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .main-feature-block {
        padding: 30px 20px;
    }

    .automatic-conversion-section {
        padding: 60px 0;
    }

    .conversion-highlight {
        padding: 40px 24px;
    }

    .conversion-content h2 {
        font-size: 2rem;
    }

    .conversion-tagline {
        font-size: 1.125rem;
    }

    .conversion-feature-item {
        flex-direction: column;
        align-items: start;
        padding: 20px;
    }

    .conversion-feature-item:hover {
        transform: translateX(0);
        transform: translateY(-4px);
    }

    .prompt-to-workflow-section {
        padding: 60px 0;
    }

    .prompt-workflow-content {
        padding: 40px 24px;
    }

    .prompt-workflow-content h2 {
        font-size: 2rem;
    }

    .prompt-tagline {
        font-size: 1.125rem;
    }

    .prompt-step {
        flex-direction: column;
        padding: 24px;
    }

    .prompt-step:hover {
        transform: translateX(0);
        transform: translateY(-4px);
    }

    .prompt-benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .example-box p {
        font-size: 0.875rem;
    }

    .problem-solution-section {
        padding: 60px 0;
    }

    .section-intro {
        font-size: 1.1rem;
    }

    .comparison-content {
        padding: 20px;
    }

    .comparison-image-placeholder {
        padding: 20px;
        min-height: 150px;
    }

    .pain-point h4,
    .benefit-point h4 {
        font-size: 1rem;
    }

    .pain-point p,
    .benefit-point p {
        font-size: 0.9rem;
    }

    .showcase-section {
        padding: 60px 0;
    }

    .showcase-item {
        padding: 30px 20px;
    }

    .showcase-image {
        padding: 20px;
    }

    .showcase-content h3 {
        font-size: 1.5rem;
    }

    .showcase-content p {
        font-size: 1rem;
    }

    .connectors-section {
        padding: 50px 0;
    }

    .connector-card-modern {
        padding: 20px;
        gap: 16px;
    }

    .connector-icon-wrap {
        width: 40px;
        height: 40px;
    }

    .connector-icon-lg {
        font-size: 1.25rem;
    }

    .webapp-framework-section {
        padding: 60px 0;
    }

    .webapp-text-content h2 {
        font-size: 2rem;
    }

    .webapp-frameworks {
        padding: 20px;
    }

    .webapp-image-placeholder {
        padding: 20px;
    }

    .webapp-use-case {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .hero-section {
        padding: 40px 0 0;
    }
    .hero-section .subtitle {
        font-size: 1.1rem;
    }
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    .final-cta-section h2 {
        font-size: 2.2rem;
    }
    .final-cta-section p {
        font-size: 1.1rem;
    }
    .agents-grid {
        grid-template-columns: 1fr;
    }

    .templates-showcase-image {
        padding: 24px;
        margin-bottom: 40px;
    }

    .templates-caption {
        font-size: 0.9375rem;
    }

    /* Workflow Cards Small Screen */
    .workflow-feature-card {
        padding: 32px 24px;
    }

    .feature-number {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }

    .workflow-feature-content h3 {
        font-size: 1.5rem;
    }

    .workflow-feature-content > p {
        font-size: 0.95rem;
    }

    .placeholder-box {
        padding: 50px 24px;
    }

    .placeholder-box p {
        font-size: 1.05rem;
    }

    .webapp-text-content h2 {
        font-size: 1.8rem;
    }

    .webapp-feature-item h4 {
        font-size: 1.1rem;
    }

    .webapp-feature-item p {
        font-size: 0.95rem;
    }
}

/* ===================================
   ANIMATIONS & VISUAL ENHANCEMENTS
   =================================== */

/* Ripple effect for buttons and interactive elements */
.btn, .nav-item, .workflow-card, .template-card, .connector-card {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.4s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Image loading states */
img.loading {
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.2s ease-out, filter 0.2s ease-out;
}

img.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Enhanced button hover effects */
.btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(15, 168, 159, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-teal-dark) 0%, var(--color-navy) 100%);
}

.btn-secondary:hover {
    background: var(--color-teal);
    color: white;
}

/* Enhanced card hover effects with backdrop blur */
.problem-item, .benefit-item, .workflow-card, .template-card,
.connector-card, .testimonial-card, .tech-source-box {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}

.problem-item:hover, .benefit-item:hover, .workflow-card:hover,
.template-card:hover, .connector-card:hover, .testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.tech-source-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
}

/* Gradient overlay for better text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-section > *:not(.hero-image) {
    position: relative;
    z-index: 1;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-navy) 100%);
    border-radius: 10px;
    border: 2px solid var(--color-surface);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--color-teal-dark) 0%, var(--color-navy-light) 100%);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-teal) var(--color-surface);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}


/* Improved focus states for accessibility */
a:focus, button:focus, .btn:focus, .nav-item:focus {
    outline: 3px solid var(--color-teal);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-teal);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 20px;
}

/* Enhanced carousel navigation with better visual feedback */
.nav-item {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    transform: translateX(4px);
    background: var(--bg-light-teal);
}

.nav-item.active {
    background: linear-gradient(90deg, var(--bg-light-teal) 0%, transparent 100%);
}

/* Loading skeleton animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-surface) 0%,
        #e0e0e0 50%,
        var(--color-surface) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
    border-radius: 8px;
}

/* Backdrop blur effect for cards */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
    .connector-card, .workflow-card, .template-card {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Improved mobile touch feedback */
@media (hover: none) and (pointer: coarse) {
    .btn:active, .nav-item:active, .workflow-card:active,
    .template-card:active, .connector-card:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}

/* Smooth transitions for all interactive elements */
a, button, .btn, .card, input, textarea, select {
    transition: all 0.2s ease;
}

/* Parallax container */
.hero-section {
    position: relative;
    overflow: hidden;
}

/* Performance optimization: GPU acceleration */
.ripple, .btn, .problem-item, .benefit-item,
.workflow-card, .template-card, .connector-card, .testimonial-card {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: linear-gradient(135deg, var(--bg-light-teal) 0%, var(--bg-light-aqua) 100%);
}

/* Enhanced gradient backgrounds for sections */
.unified-problem-section {
    position: relative;
}

.unified-problem-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, var(--bg-light-pink) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, var(--bg-light-teal) 0%, transparent 50%);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content stays above overlays */
.unified-problem-section > .container > *:not(.automation-stack-showcase) {
    position: relative;
    z-index: 1;
}


/* Pulsing animation for important CTAs */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(15, 168, 159, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(15, 168, 159, 0);
    }
}

.btn-primary.pulse {
    animation: pulse-glow 2s infinite;
}

/* Improved hover state for navigation */
.navbar nav a:hover {
    color: var(--color-teal);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Better visual hierarchy with subtle shadows */
section {
    position: relative;
}

/* Uniform section padding on mobile */
@media (max-width: 768px) {
    .unified-problem-section,
    .bidirectional-workflow-section,
    .features-section,
    .workflows-templates-section,
    .connectors-section,
    .testimonials-section,
    .final-cta-section {
        padding: 60px 0;
    }

    .hero-section {
        padding: 40px 0 0;
    }
}

/* Improved card stacking on mobile */
@media (max-width: 768px) {
    .problem-item:hover, .benefit-item:hover, .workflow-card:hover,
    .template-card:hover, .connector-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Add smooth color transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 100ms;
}

/* ===================================
   MOBILE HAMBURGER MENU
   =================================== */

/* Hide hamburger menu by default */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--color-teal);
    border-radius: 3px;
    transition: all 0.2s ease;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile navigation styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .navbar .container {
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease, box-shadow 0.2s ease;
        z-index: 9999;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }

    .nav-menu.active {
        max-height: 400px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        overflow: visible;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 20px 0;
        position: relative;
        z-index: 9999;
    }

    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 15px 30px;
        color: var(--color-text);
        font-weight: 500;
        transition: all 0.2s ease;
        pointer-events: auto;
        position: relative;
        z-index: 9999;
    }

    .nav-menu a:hover,
    .nav-menu a:active {
        background: var(--bg-light-teal);
        color: var(--color-teal);
        padding-left: 40px;
    }

    /* Hide login button on mobile or adjust its position */
    .navbar .btn-secondary {
        display: none;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Add overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 999;
        animation: fadeIn 0.2s ease;
        pointer-events: none;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}
