@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #076EFF;
    --primary-rgb: 7, 110, 255;
    --primary-hover: #0550c0;
    --primary-light: #eef2ff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #47576c;
    --slate-600: #475569;
    --slate-900: #0f172a;
    --white: #ffffff;
    --card-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

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

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--slate-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- Navigation Mistral Style --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: transparent;
    transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), border 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    height: 70px;
    padding: 0 3%;
    /* Marges réduites aussi au scroll */
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-center {
    display: none;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--slate-900);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo img {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 32px;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-trigger {
    text-decoration: none;
    color: var(--slate-600);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 0;
}

.dropdown-trigger i {
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-trigger {
    color: var(--slate-900);
}

.nav-dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}

/* Dropdown Content */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(10px) scale(0.95);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 220px;
    border-radius: 4px;
    box-shadow: 0 25px 80px -15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 12px;
    z-index: 100;
}

.mega-menu {
    min-width: 580px;
    padding: 24px;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px) scale(1);
}

/* Dropdown Grid (Mega Menu) */
.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.dropdown-category {
    grid-column: span 2;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-400);
    padding: 12px 12px 4px;
    border-bottom: 1px solid var(--slate-100);
    margin-bottom: 4px;
}

.dropdown-category:not(:first-child) {
    margin-top: 16px;
}

.dropdown-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item:hover {
    background: var(--slate-50);
    transform: translateX(4px);
}

.item-text h4 {
    color: var(--slate-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.dropdown-item:hover h4 {
    color: var(--primary);
}

.item-text p {
    color: var(--slate-500);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

.small-dropdown {
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

.nav-links a:hover {
    color: var(--slate-900);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.btn-login {
    text-decoration: none;
    color: var(--slate-900);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 18px;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: rgba(15, 23, 42, 0.1);
}

.btn-demo-nav {
    text-decoration: none;
    color: var(--primary);
    background: rgba(7, 110, 255, 0.1);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 18px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-demo-nav:hover {
    background: rgba(7, 110, 255, 0.18);
    color: var(--primary);
}

.btn-cta-mistral {
    background: var(--slate-900);
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    /* Aligné sur le bouton Commencer (4px) */
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-cta-mistral:hover {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    nav {
        grid-template-columns: 1fr auto;
    }

    .nav-center {
        display: none;
    }
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--slate-900);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.mobile-toggle.show {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.active {
    right: 0;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 6% 40px;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 6%;
    margin-bottom: 20px;
}

.mobile-close {
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--slate-400);
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu-links a {
    text-decoration: none;
    color: var(--slate-900);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Mobile Dropdown Styling */
.mobile-dropdown {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown-btn {
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    color: var(--slate-900);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.mobile-dropdown-btn i {
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-btn i {
    transform: rotate(180deg);
}

.mobile-dropdown-list {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.mobile-dropdown.active .mobile-dropdown-list {
    max-height: 800px;
    padding-top: 10px;
    opacity: 1;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: 8px;
    background: var(--slate-50);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav-item:active {
    background: var(--slate-100);
}

.mobile-nav-item h4 {
    font-size: 0.95rem !important;
    color: var(--slate-900) !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.mobile-nav-item p {
    font-size: 0.8rem !important;
    color: var(--slate-500) !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
}

.mobile-menu-footer {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--slate-100);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-footer .btn-login,
.mobile-menu-footer .btn-cta-mistral,
.mobile-menu-footer .btn-demo-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 11px;
    font-size: 0.85rem;
}

.mobile-dropdown-list a {
    font-size: 1.05rem !important;
    color: var(--slate-500) !important;
    font-weight: 500 !important;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    nav {
        height: 70px;
        padding: 0 6%;
    }
}

/* --- Hero Section Immersive --- */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Prevent horizontal scroll from bg-grid or animations */
    height: 100vh;
    /* Fallback */
    height: 100dvh;
    /* Dynamic viewport — s'adapte aux barres de navigation mobiles */
    min-height: 580px;
    max-height: 100vh;
    /* Ne jamais dépasser l'écran */
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    /* Padding inclus dans la hauteur */
    padding-left: 5%;
    padding-bottom: 8vh;
    /* Espace généreux en bas pour les boutons */
    padding-top: 100px;
    /* Espace pour la nav fixe (90px + 10px buffer) */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Protection lumineuse très subtile au bas pour le texte sombre */
    background: linear-gradient(to top, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 20%, transparent 50%);
    z-index: 1;
    display: block;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    /* Encore plus réduit */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    color: var(--slate-900);
}

.word-switcher-smooth {
    color: var(--primary);
    display: inline-block;
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
    font-weight: 700;
}

.word-switcher-smooth.fade-out {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(10px);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--slate-500);
    /* Gris plus clair et nuancé */
    font-weight: 600;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
    opacity: 1;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #36449d;
    /* Couleur de survol exacte du bouton Créer */
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 40px !important;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.1);
}

/* --- Partners Section --- */
.partners-section {
    padding: 60px 0;
    background: white;
    border-bottom: 1px solid var(--slate-100);
    overflow: hidden;
}

.partners-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-400);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.partners-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    width: calc(250px * 12);
    animation: scroll 30s linear infinite;
    gap: 80px;
}

.partner-logo {
    width: 150px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--slate-300);
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

.partner-logo:hover span {
    color: var(--slate-900);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 6));
    }
}

/* --- Interface Showcase Section --- */
.interface-showcase-section {
    padding: 100px 5% 140px;
    background: var(--white);
    overflow: hidden;
}

.center {
    text-align: center;
}

.center .section-tag {
    margin-left: auto;
    margin-right: auto;
}

.interface-showcase-section p {
    color: var(--slate-500);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

.mockup-perspective-container {
    position: relative;
    max-width: 900px;
    /* Reduced from 1200px */
    margin: 60px auto 0;
    perspective: 2000px;
}

.mockup-frame.main-mockup {
    width: 100%;
    padding: 10px;
    /* Glass frame padding */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    transform: rotateX(8deg) rotateY(-2deg) rotateZ(1deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    position: relative;
}

.mockup-frame.main-mockup img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    display: block;
}

.mockup-layer {
    position: absolute;
    width: 45%;
    padding: 8px;
    /* Glass frame padding */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-layer img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    display: block;
}

.layer-back-left {
    top: -40px;
    left: -10%;
    z-index: 3;
    transform: rotateX(8deg) rotateY(15deg) rotateZ(-2deg);
}

.layer-back-right {
    bottom: -30px;
    right: -10%;
    z-index: 6;
    /* In front of the main corner */
    transform: rotateX(8deg) rotateY(-15deg) rotateZ(2deg);
    width: 40%;
}

/* Glass Blobs Background */
.interface-showcase-section {
    position: relative;
    padding: 120px 5% 160px;
    background: #f8fafc;
    /* Slightly darker to see glass effect */
    overflow: hidden;
}

.glass-bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    width: 600px;
    /* Larger */
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    /* More blur */
    opacity: 0.25;
    /* Higher opacity */
}

.blob-1 {
    background: var(--primary);
    top: 20%;
    left: 10%;
}

.blob-2 {
    background: var(--primary);
    /* Changed from magenta to blue */
    bottom: 20%;
    right: 10%;
    opacity: 0.15;
    /* Slightly subtler for the second one */
}

/* Background Patterns */
.bg-grid {
    position: relative;
}

.bg-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.bg-dots {
    position: relative;
}

.bg-dots::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(255, 255, 255, 0.5) 100%);
    opacity: 0.3;
    /* Very subtle now */
    pointer-events: none;
    z-index: 1;
}

/* Specific Hero Grid Intensity */
.hero.bg-grid::before {
    opacity: 0.5;
    /* Make the grid itself subtler on the hero to let the image shine */
}

/* Ensure content stays above backgrounds */
.hero>.hero-container,
.integrations-section>div,
.pricing-section>div,
.interface-showcase-section>.container {
    position: relative;
    z-index: 2;
}

/* Accentuated Grid for Pricing */
.pricing-section.bg-grid::before {
    background-image:
        linear-gradient(to right, rgba(7, 110, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(7, 110, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    /* Slightly larger grid for pricing */
}

.mockup-shadow {
    position: absolute;
    bottom: -60px;
    left: 10%;
    width: 80%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(15px);
    z-index: 1;
}

/* Hover Animations for Layers */
.mockup-perspective-container:hover .main-mockup {
    transform: rotateX(4deg) rotateY(-1deg) rotateZ(0.5deg) scale(1.02);
}

.mockup-perspective-container:hover .layer-back-left {
    transform: rotateX(4deg) rotateY(10deg) rotateZ(-1deg) translate(-20px, -20px);
}

.mockup-perspective-container:hover .layer-back-right {
    transform: rotateX(4deg) rotateY(-10deg) rotateZ(1deg) translate(20px, 20px);
}

/* --- Features Section (Bento Grid) --- */
.features-section {
    padding: 120px 5% 60px;
    /* Reduced bottom padding */
    background: white;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 100px;
    margin-bottom: 24px;
}

.section-header {
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--slate-900);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(320px, auto);
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
}

.bento-item {
    position: relative;
    background: var(--white);
    border-radius: 28px !important;
    border: 1px solid var(--slate-100);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--slate-200);
}

.bento-content {
    padding: 40px;
    z-index: 2;
}

.bento-icon {
    width: 48px;
    height: 48px;
    background: var(--slate-50);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--slate-900);
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.bento-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.bento-item:hover .bento-icon {
    transform: scale(1.1) rotate(5deg);
}

.bento-item h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--slate-900);
}

.bento-item p {
    color: var(--slate-500);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Mockup Presentation */
.bento-mockup-container {
    margin-top: auto;
    padding: 0 40px;
    overflow: hidden;
}

.bento-mockup {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--slate-100);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item:hover .bento-mockup {
    transform: translateY(-5px);
}

.bento-row {
    flex-direction: row;
    align-items: center;
}

@media (max-width: 900px) {
    .bento-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .bento-row .bento-mockup-container {
        padding: 0 40px !important;
        margin-top: 20px !important;
    }
}

/* Apple Carousel Full-Width Style */
.apple-carousel-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.apple-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: auto;
    /* Important for JS syncing */
    gap: 24px;
    padding: 0 5vw;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.apple-carousel-track::-webkit-scrollbar {
    display: none;
}

.apple-carousel-item-full {
    position: relative;
    border-radius: 0 !important;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Row 1 sizing */
.primary-track .apple-carousel-item-full {
    flex: 0 0 75vw;
    height: 520px;
    scroll-snap-align: center;
}

/* Row 2 sizing */
.secondary-track .apple-carousel-item-full {
    flex: 0 0 45vw;
    height: 280px;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.carousel-bg.blue-tint::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(7, 110, 255, 0.2), rgba(0, 210, 255, 0.1));
    mix-blend-mode: soft-light;
    /* More artistic than multiply */
    z-index: 1;
}

.carousel-bg {
    filter: saturate(1.1) contrast(1.05);
    /* Boost life and order */
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 100%);
    z-index: 1;
}

.carousel-content {
    position: relative;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    color: white;
}

.secondary-track .carousel-content {
    padding: 24px;
}

.carousel-top .carousel-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.carousel-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Primary Track specific: Button stays static, only title and text move */
.primary-track .carousel-bottom h3,
.primary-track .carousel-bottom p {
    transform: translateY(60px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-track .apple-carousel-item-full:hover .carousel-bottom h3,
.primary-track .apple-carousel-item-full:hover .carousel-bottom p {
    transform: translateY(0);
}

/* Secondary Track specific: No button, move the whole block and start lower */
.secondary-track .carousel-bottom {
    transform: translateY(45px);
    /* Balanced starting point for small cards */
}

.secondary-track .apple-carousel-item-full:hover .carousel-bottom {
    transform: translateY(0);
}

.carousel-bottom h3 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin: 0;
    color: white !important;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.carousel-bottom h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white !important;
    margin: 0;
}

.carousel-bottom p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 8px 0;
    max-width: 95%;
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
}

.apple-carousel-item-full:hover .carousel-bottom p {
    opacity: 1;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 100px !important;
    font-weight: 700;
    font-size: 0.9rem;
    width: fit-content;
    margin-top: 20px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* Removed icon styles as per request */

.btn-pill:hover {
    background: #f1f5f9;
    /* Subtle slate-100 */
    color: black;
    box-shadow: none;
    transform: none;
}

@media (max-width: 768px) {
    .primary-track .apple-carousel-item-full {
        flex: 0 0 85vw;
        height: 400px;
    }

    .secondary-track .apple-carousel-item-full {
        flex: 0 0 65vw;
        height: 200px;
    }
}

.btn-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .apple-carousel-item-full {
        flex: 0 0 90vw;
        height: 500px;
    }

    .carousel-content {
        padding: 40px;
    }
}

.btn-pill-small {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: black;
    text-decoration: none;
    border-radius: 100px !important;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-pill:hover,
.btn-pill-small:hover {
    background: white;
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .apple-carousel-grid {
        grid-template-columns: 1fr;
    }

    .apple-carousel-item.featured {
        height: 400px;
    }

    .apple-carousel-item.small {
        height: 300px;
    }
}

.bento-dark h3 {
    color: white;
}

.bento-dark p {
    color: var(--slate-400);
}

.bento-dark .bento-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.bento-dark .bento-mockup {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* --- Stats Bar --- */
.stats-bar {
    padding: 40px 5%;
    background: white;
    border-bottom: 1px solid var(--slate-100);
}

.stats-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

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

.version-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--slate-50);
    border-radius: 4px;
    border: 1px solid var(--slate-100);
}

.version-badge {
    padding: 4px 10px;
    background: var(--slate-900);
    color: white;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
}

.version-status {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-600);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    /* Green */
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@media (max-width: 900px) {
    .stats-container {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-item {
        align-items: center;
    }
    
    .version-info {
        width: 100%;
        justify-content: center;
    }
}

.bento-accent {
    background: var(--slate-50);
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 100px 5%;
    background: var(--slate-50);
    position: relative;
    overflow: hidden;
}

.bg-avatars-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-avatar-item {
    position: absolute;
    filter: grayscale(1%);
    /* Presque toutes les couleurs */
    transition: all 0.5s ease;
    animation: float-avatar 12s ease-in-out infinite;
    /* Animation plus lente et subtile */
}

.bg-emoji-item {
    position: absolute;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
    animation: float-emoji 7s ease-in-out infinite;
    /* Retour de l'animation dynamique */
}

@keyframes float-emoji {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

.bg-avatar-img {
    border-radius: 50% !important;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@keyframes float-avatar {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.testimonials-section .section-header,
.testimonials-section .testimonial-grid {
    position: relative;
    z-index: 1;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1300px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 24px !important;
    border: 1px solid var(--slate-100);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: #FFB800;
    font-size: 1.1rem;
    display: flex;
    gap: 4px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--slate-700);
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar,
.author-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    object-fit: cover;
    background: var(--slate-100);
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.author-avatar-placeholder {
    background: var(--primary);
    color: white;
}

.author-avatar {
    background: var(--slate-100);
}

.author-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 2px;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--slate-500);
    margin: 0;
}

/* --- Integrations Section --- */
.integrations-section {
    padding: 60px 5% 100px;
    /* Reduced top padding */
    background: white;
    text-align: center;
    overflow: hidden;
    /* Prevent horizontal scroll from bg-dots */
}

.integrations-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    max-width: 1000px;
    margin: 60px auto 0;
}

.integration-card {
    width: 140px;
    height: 140px;
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    border-radius: 24px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.integration-card:hover {
    transform: translateY(-5px);
    background: white;
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(7, 110, 255, 0.1);
}

.integration-card i {
    font-size: 2.5rem;
    color: var(--slate-400);
    transition: color 0.3s;
}

.integration-card:hover i {
    color: var(--primary);
}

.integration-card:hover[data-brand="slack"] {
    border-color: #4A154B;
    box-shadow: 0 10px 30px rgba(74, 21, 75, 0.1);
}

.integration-card:hover[data-brand="slack"] i {
    color: #4A154B;
}

.integration-card:hover[data-brand="google"] {
    border-color: #4285F4;
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.1);
}

.integration-card:hover[data-brand="google"] i {
    color: #4285F4;
}

.integration-card:hover[data-brand="microsoft"] {
    border-color: #00A4EF;
    box-shadow: 0 10px 30px rgba(0, 164, 239, 0.1);
}

.integration-card:hover[data-brand="microsoft"] i {
    color: #00A4EF;
}

.integration-card:hover[data-brand="dropbox"] {
    border-color: #0061FF;
    box-shadow: 0 10px 30px rgba(0, 97, 255, 0.1);
}

.integration-card:hover[data-brand="dropbox"] i {
    color: #0061FF;
}

.integration-card:hover[data-brand="zoom"] {
    border-color: #2D8CFF;
    box-shadow: 0 10px 30px rgba(45, 140, 255, 0.1);
}

.integration-card:hover[data-brand="zoom"] i {
    color: #2D8CFF;
}

.integration-card:hover[data-brand="trello"] {
    border-color: #0079BF;
    box-shadow: 0 10px 30px rgba(0, 121, 191, 0.1);
}

.integration-card:hover[data-brand="trello"] i {
    color: #0079BF;
}

.integration-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-500);
}

.coming-soon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.6rem;
    font-weight: 800;
    background: var(--slate-100);
    color: var(--slate-400);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.integration-card:hover .coming-soon-badge {
    background: var(--primary-light);
    color: var(--primary);
}

/* Specific brand colors */
.integration-card:hover[data-brand="quickbooks"] {
    border-color: #2CA01C;
    box-shadow: 0 10px 30px rgba(44, 160, 28, 0.1);
}

.integration-card:hover[data-brand="quickbooks"] i {
    color: #2CA01C;
}

/* --- Pricing Section --- */
.pricing-section {
    padding: 120px 5%;
    background: white;
    overflow: hidden;
    /* Prevent horizontal scroll from bg-grid */
}

.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-400);
    transition: color 0.3s;
}

.toggle-label.active {
    color: var(--slate-900);
}

.discount-badge {
    padding: 2px 8px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 4px;
}

/* Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--slate-200);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 4px;
}

.slider.round:before {
    border-radius: 4px;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    flex: 1;
    min-width: 320px;
    max-width: 420px;
    padding: 48px;
    border-radius: 32px !important;
    border: 1px solid var(--slate-100);
    background: white;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 30px 70px rgba(7, 110, 255, 0.15);
    transform: translateY(-12px) scale(1.02);
    z-index: 10;
}

.pricing-card.popular:hover {
    transform: translateY(-16px) scale(1.03);
}

.popular-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 12px rgba(7, 110, 255, 0.3);
    white-space: nowrap;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--slate-900);
}

.price.pulse {
    animation: pulse-price 0.4s ease-out;
}

@keyframes pulse-price {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.price span {
    font-size: 1rem;
    color: var(--slate-400);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--slate-600);
}

.pricing-features li i {
    color: #10b981;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 120px 5%;
    background: var(--slate-50);
}

.faq-container {
    max-width: 800px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: 16px !important;
    border: 1px solid var(--slate-100);
    overflow: hidden;
}

.faq-question {
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--slate-900);
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--slate-50);
}

.faq-answer {
    padding: 0 32px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0, 1, 0, 1);
    color: var(--slate-500);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 32px 24px;
    max-height: 1000px;
}

.faq-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background: var(--slate-900);
    transform: rotate(45deg);
}

/* --- Premium Footer --- */
.footer-main {
    position: relative;
    padding: 100px 5% 40px;
    background: var(--slate-900);
    color: white;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer Decor */
.footer-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

.footer-grid {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: white;
    text-decoration: none;
}

.footer-brand .footer-logo i {
    color: var(--primary);
}

.footer-brand .footer-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.footer-description {
    color: var(--slate-400);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

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

.footer-links a {
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 80px auto 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--slate-500);
    font-size: 0.85rem;
}

/* --- Reveal Animations --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .nav-left {
        gap: 20px;
    }

    .nav-links, .nav-right .nav-actions {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        position: absolute;
    }

    .mobile-toggle {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    nav {
        height: 80px;
        padding: 0 5%;
    }

    /* We handle nav-actions above */

    /* Show only one CTA on medium tablets before fully hiding */
    .nav-right {
        gap: 12px;
    }

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

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .demo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Stats Bar Tablet */
    .stats-container {
        padding: 0 5%;
        gap: 30px;
    }
}

@media (max-width: 1280px) {
    .nav-left {
        gap: 28px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-actions {
        gap: 10px;
    }

    .btn-login {
        font-size: 0.82rem;
        padding: 7px 14px;
    }

    .btn-cta-mistral {
        font-size: 0.82rem;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    /* Navigation on mobile */
    nav {
        height: 64px;
        padding: 0 4%;
    }

    nav.scrolled {
        height: 60px;
    }

    .logo {
        font-size: 1.05rem;
    }

    .logo img {
        width: 24px;
        height: 24px;
    }

    .mobile-toggle {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-container {
        padding: 40px 5%;
    }

    .stats-bar {
        padding: 30px 0;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .stat-item {
        width: 100%;
    }

    .version-info {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        border-top: 1px solid var(--slate-100);
        padding-top: 30px;
        width: 100%;
        justify-content: center;
    }

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

    .demo-section {
        padding: 60px 5%;
    }

    .demo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .demo-card-form {
        padding: 30px 20px;
        border-radius: 24px !important;
    }

    .mockup-perspective-container {
        transform: scale(0.9) translateY(20px);
        perspective: none !important;
    }

    .mockup-layer {
        display: none; /* Hide side layers on mobile to focus on main mockup */
    }

    .main-mockup {
        width: 100% !important;
        transform: none !important;
    }

    .hero-desc br {
        display: none;
    }

    .hero-desc {
        font-size: 1rem;
        padding: 0 10px;
    }

    .features-section {
        padding: 60px 5%;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-span-4,
    .bento-span-3,
    .bento-span-2 {
        grid-column: span 1;
    }

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

    .integration-card {
        width: 100px;
        height: 100px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hero {
        padding-top: 140px;
        min-height: 80dvh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 60px;
    }

    .hero-container {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.2rem);
        line-height: 1.2;
        margin-bottom: 24px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .hero-ctas {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas a {
        width: 100%;
    }

    .mockup-perspective-container {
        transform: scale(1);
        perspective: none !important;
        margin-top: 30px;
        width: 100%;
    }

    .layer-back-left, .layer-back-right {
        display: none !important;
    }

    .main-mockup {
        width: 100% !important;
        transform: none !important;
        margin: 0;
    }

    .interface-showcase-section {
        padding: 60px 20px;
    }

    .interface-showcase-section .section-header {
        margin-bottom: 40px;
    }
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.indicator-dot {
    width: 5px;
    height: 5px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50% !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.indicator-dot::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
    /* Organiq Blue */
    transition: width 0.1s linear;
}

.indicator-dot.active::after {
    width: var(--p, 0%);
}

.indicator-dot.active {
    width: 25px;
    height: 5px;
    background: rgba(var(--primary-rgb), 0.1);
    /* Very light blue track */
    border-radius: 10px !important;
}

.indicator-dot.completed {
    background: var(--primary);
    /* Keep dots blue after passage */
    opacity: 0.8;
}

.carousel-controls {
    margin-left: 12px;
    font-size: 1.2rem;
    color: var(--primary);
    /* Organiq Blue */
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.carousel-controls:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Partners Slider Section */
.partners-section {
    padding: 60px 0;
    background: white;
    overflow: hidden;
    border-bottom: 1px solid var(--slate-100);
}

.partners-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-400);
    margin-bottom: 40px;
}

.partners-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.partners-track {
    display: flex;
    width: max-content;
    animation: scroll-partners 40s linear infinite;
    gap: 80px;
    align-items: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-2px);
}

.partner-logo img {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.partner-logo span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--slate-800);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'DM Sans', sans-serif;
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

/* --- Demo Section --- */
.demo-section {
    padding: 120px 5%;
    background: white;
}

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

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.demo-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 20px 0;
    color: var(--slate-900);
}

.demo-info p {
    font-size: 1.1rem;
    color: var(--slate-600);
    line-height: 1.6;
    margin-bottom: 32px;
}

.demo-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--slate-800);
}

.demo-list li i {
    color: var(--primary);
    font-size: 1.4rem;
}

.demo-card-form {
    background: var(--slate-50);
    padding: 48px;
    border-radius: 32px;
    border: 1px solid var(--slate-100);
    box-shadow: 0 20px 40px rgba(0,0,0,0.02);
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: end;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, 
.form-group select {
    background: white;
    border: 1px solid var(--slate-200);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(7, 110, 255, 0.1);
    outline: none;
}

.btn-demo-submit {
    width: 100%;
    padding: 16px;
    background: var(--slate-900);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-demo-submit:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(7, 110, 255, 0.2);
}

.btn-demo-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-response {
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.form-response.success { color: #059669; }
.form-response.error { color: #dc2626; }

/* --- Demo Type Card Selector --- */
.demo-type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

.demo-type-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-600);
    user-select: none;
}

.demo-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.demo-type-card i {
    font-size: 1.1rem;
    color: var(--slate-400);
    transition: color 0.2s ease;
}

.demo-type-card:hover {
    border-color: var(--slate-400);
    color: var(--slate-800);
}

.demo-type-card.selected {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(7, 110, 255, 0.04);
}

.demo-type-card.selected i {
    color: var(--primary);
}

@media (max-width: 480px) {
    .demo-type-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .demo-info {
        text-align: center;
    }
    
    .demo-list {
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .demo-card-form {
        padding: 32px 24px;
    }
}