/* ========================================
   FUZION PILOT — GLOBAL STYLES
   ======================================== */

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

:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --primary-glow: rgba(124, 58, 237, 0.4);
    --accent: #06d6a0;
    --accent-dark: #05b384;
    --pink: #ec4899;
    --orange: #f97316;
    --blue: #3b82f6;
    --yellow: #fbbf24;
    --red: #ef4444;
    --cyan: #0ea5e9;
    --bg-dark: #050510;
    --bg-section: #0a0a1a;
    --bg-card: #111128;
    --bg-card-hover: #1a1a3e;
    --bg-input: #0d0d22;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #5a5a7a;
    --border: rgba(124, 58, 237, 0.15);
    --border-hover: rgba(124, 58, 237, 0.4);
    --gradient-main: linear-gradient(135deg, #7c3aed 0%, #06d6a0 100%);
    --gradient-pink: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    --gradient-warm: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    max-width: 100vw;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ========== UTILITY ========== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; overflow-x: hidden; }

/* Global text overflow safety */
h1, h2, h3, h4, h5, h6, p, span, li, td, th, label, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-pink {
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.6rem 0;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.navbar.show {
    transform: translateY(0);
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo img {
    height: clamp(40px, 8vw, 72px);
    width: auto;
    display: block;
    border-radius: 8px;
}

.nav-logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    color: white;
    letter-spacing: -0.5px;
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-main);
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.2rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
    border-radius: 16px;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ========== SECTION HEADERS ========== */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== CARDS ========== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card:hover::before { opacity: 1; }

/* ========== MOCKUP COMPONENTS ========== */
.app-mockup {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124, 58, 237, 0.15);
    background: var(--bg-card);
    position: relative;
}

.mockup-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot-r { background: #ff5f57; }
.mockup-dot-y { background: #febc2e; }
.mockup-dot-g { background: #28c840; }

.mockup-url {
    margin-left: 12px;
    background: rgba(255, 255, 255, 0.06);
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    flex: 1;
    max-width: 300px;
}

.mockup-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 380px;
}

.mockup-sidebar {
    background: rgba(0, 0, 0, 0.25);
    padding: 1.2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.mockup-sidebar-brand {
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mockup-sidebar-brand .dot {
    width: 28px;
    height: 28px;
    background: var(--gradient-main);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: white;
}

.mockup-nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 2px;
    transition: all 0.2s;
}

.mockup-nav-item.active {
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary-light);
}

.mockup-nav-item i { width: 16px; font-size: 0.65rem; text-align: center; }

.mockup-nav-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0.8rem 0.7rem 0.3rem;
    opacity: 0.6;
}

.mockup-main { padding: 1.2rem; }

.mockup-page-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.mockup-page-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.mockup-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mockup-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 0.6rem;
    text-align: center;
}

.mockup-stat-val {
    font-size: 1.1rem;
    font-weight: 800;
}

.mockup-stat-lbl {
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.mockup-chart-area {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
}

.mockup-chart-title {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}

.chart-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    min-height: 8px;
    animation: barGrow 1.2s ease forwards;
    transform-origin: bottom;
}

@keyframes barGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

/* Table mockup */
.mockup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.65rem;
}

.mockup-table th {
    text-align: left;
    padding: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mockup-table td {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.mockup-table .val-green { color: var(--accent); font-weight: 700; }
.mockup-table .val-purple { color: var(--primary-light); font-weight: 700; }
.mockup-table .val-pink { color: var(--pink); font-weight: 700; }

.mockup-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 600;
}

.mockup-badge-green { background: rgba(6, 214, 160, 0.15); color: var(--accent); }
.mockup-badge-purple { background: rgba(124, 58, 237, 0.15); color: var(--primary-light); }
.mockup-badge-orange { background: rgba(249, 115, 22, 0.15); color: var(--orange); }
.mockup-badge-red { background: rgba(239, 68, 68, 0.15); color: var(--red); }

/* ========== FOOTER ========== */
.footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
    font-size: 0.9rem;
}

.footer-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 0.35rem 0;
    transition: color 0.3s;
}

.footer-col a:hover { color: var(--primary-light); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.2); }
    50% { box-shadow: 0 0 40px rgba(124, 58, 237, 0.4); }
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .mockup-layout { grid-template-columns: 160px 1fr; }
}

@media (max-width: 768px) {
    /* Navbar mobile — hamburger fullscreen */
    .nav-menu { display: none; }
    .nav-cta-btn { display: none; }
    .hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.08) !important;
        border: 1px solid rgba(255,255,255,0.12) !important;
        border-radius: 10px !important;
        color: white;
        font-size: 1.1rem;
    }
    .nav-inner {
        justify-content: space-between !important;
    }
    .nav-menu.open {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        right: 1rem !important;
        left: auto !important;
        width: 200px !important;
        height: auto !important;
        background: rgba(10, 10, 26, 0.98) !important;
        border: 1px solid rgba(124, 58, 237, 0.2) !important;
        border-radius: 12px !important;
        padding: 0.5rem !important;
        gap: 0 !important;
        z-index: 9999 !important;
    }
    .nav-menu.open li { width: 100% !important; }
    .nav-menu.open a {
        font-size: 0.9rem !important;
        padding: 0.75rem 1rem !important;
        display: block !important;
        border-radius: 8px !important;
    }
    .nav-menu.open a:hover {
        background: rgba(124, 58, 237, 0.15) !important;
    }
    .nav-menu.open .nav-cta-btn {
        display: flex !important;
        margin-top: 0.5rem !important;
        width: 100% !important;
        justify-content: center !important;
        font-size: 0.85rem !important;
    }

    /* Tableau outreach */
    .app-mockup {
        max-width: calc(100vw - 2rem) !important;
        overflow: hidden !important;
    }
    .mockup-main {
        padding: 0.8rem !important;
        overflow-x: auto !important;
    }
    .mockup-table {
        min-width: 320px !important;
        font-size: 0.6rem !important;
    }
    .mockup-table th,
    .mockup-table td {
        padding: 0.3rem 0.4rem !important;
    }
    .mockup-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .nav-logo img {
        height: 48px;
    }

    /* Sections spacing */
    section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .container {
        padding: 0 1rem;
    }

    /* Typography — reduce titles 20% */
    .section-title {
        font-size: clamp(1.6rem, 4vw, 2.4rem);
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    /* Buttons — full width column */
    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        min-height: 52px;
    }

    .btn-lg {
        padding: 1rem 1.5rem;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Cards */
    .card {
        padding: 1.5rem;
    }

    /* Footer mobile */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand-desc {
        margin: 0.5rem auto 0;
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-col {
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Mockup */
    .mockup-layout { grid-template-columns: 1fr; }
    .mockup-sidebar { display: none; }
    .mockup-stats-row { grid-template-columns: repeat(2, 1fr); }

    /* Feature/planning description text */
    .feat-card p,
    .sc-text p,
    .section-subtitle,
    .fd-desc {
        padding: 0 4px;
        font-size: 0.95rem;
        max-font-size: 16px;
    }
}

/* Extra small screens — 375px */
@media (max-width: 420px) {
    .container {
        padding: 0 0.75rem;
    }

    .section-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        letter-spacing: -0.5px;
    }

    .nav-logo img {
        height: 40px;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.85rem 1rem;
    }

    .card {
        padding: 1.2rem;
    }
}

/* ===== CORRECTIONS MOBILE CRITIQUES ===== */
@media (max-width: 768px) {

    /* Hero padding-top mobile */
    .hero, [class*="hero"], section:first-of-type {
        padding-top: 100px !important;
    }

    /* Chiffres stats coupés */
    .stats-grid .stat-number,
    .stat-val,
    .stats-number,
    [class*="stat"] h2,
    [class*="stat"] h3 {
        font-size: clamp(28px, 7vw, 48px) !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* Cards stats — padding et largeur */
    .stats-grid,
    [class*="stats"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 !important;
    }

    .stats-grid > *,
    [class*="stat-card"],
    [class*="stats"] > * {
        padding: 16px 12px !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    /* Texte qui déborde — ciblé (pas wildcard) */
    .container, .card, .section-header, .footer,
    .mockup-main, .app-mockup, .app-mockup-epic,
    .showcase-block, .sc-text, .sc-visual,
    .feature-detail-grid, .pricing-card,
    img, video, iframe, table {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    p, li, span, h1, h2, h3, h4 {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }

    /* Disable heavy animations on mobile */
    .orb, .orb-1, .orb-2, .orb-3,
    .hero-orb, .particle,
    .particles-container {
        display: none !important;
    }

    .hero-canvas, .bg-canvas {
        display: none !important;
    }

    /* Reduce animations for battery */
    .card:hover { transform: none !important; }
    .sc-mockup-tilt:hover { transform: none !important; }
    .btn:hover { transform: none !important; }
    .btn-primary:hover { box-shadow: none !important; }
    .footer-socials a:hover { transform: none !important; }

    /* Carousel/tabs horizontal */
    [class*="tabs"],
    [class*="tab-nav"],
    [class*="carousel"],
    [class*="slider"] {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        padding-bottom: 8px !important;
    }

    [class*="tab-item"],
    [class*="slide"] {
        scroll-snap-align: start !important;
        flex-shrink: 0 !important;
        min-width: 80vw !important;
    }

    /* Features layout */
    [class*="feature"],
    [class*="feat"] {
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
    }

    /* Sections hero */
    .hero-content,
    [class*="hero"] {
        text-align: center !important;
        padding: 0 16px !important;
    }
}

/* ===== OVERRIDE INLINE GRIDS MOBILE ===== */
@media (max-width: 768px) {
    /* Video section 2-col → 1-col */
    .video-section [style*="grid-template-columns: 1fr 1fr"],
    .video-section [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Video mockup sidebar 80px → hide */
    .video-bg-mockup [style*="grid-template-columns:80px"] {
        grid-template-columns: 1fr !important;
    }
    .video-bg-mockup [style*="grid-template-columns:80px"] > div:first-child {
        display: none !important;
    }

    /* Planning grid 70px + 7cols → scrollable */
    .mockup-main [style*="grid-template-columns:70px"],
    .mockup-main [style*="grid-template-columns: 70px"] {
        grid-template-columns: 50px repeat(7, minmax(32px, 1fr)) !important;
        font-size: 0.5rem !important;
        overflow-x: auto !important;
    }

    /* Stats 4-col inline → 2-col */
    .mockup-chart-area [style*="repeat(4,1fr)"],
    [style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Content 3-col grid → 3-col smaller (they're squares, fine) */
    .mockup-main [style*="repeat(3,1fr)"] {
        gap: 0.4rem !important;
    }

    /* Calendar 7-col cells — responsive sizing */
    .mockup-calendar [style*="width:30px"] {
        width: auto !important;
        height: auto !important;
        aspect-ratio: 1 !important;
        min-width: 0 !important;
    }

    /* Footer 4-col inline → 2-col */
    footer [style*="repeat(4,1fr)"],
    .features-cta + footer [style*="repeat(4,1fr)"],
    .footer [style*="repeat(4,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    /* Hero sections — reduce inline padding */
    .page-hero {
        padding: 5rem 0 2.5rem !important;
    }

    /* Section excessive padding */
    section[style*="padding:0 0 6rem"],
    section[style*="padding: 0 0 6rem"] {
        padding-bottom: 2.5rem !important;
    }

    /* Showcase blocks */
    .showcase-block {
        padding: 1.5rem !important;
        margin-bottom: 3rem !important;
        gap: 1.5rem !important;
    }

    /* App mockup epic — contain */
    .app-mockup-epic {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* Footer socials — bigger touch targets */
    .footer-socials a {
        width: 44px !important;
        height: 44px !important;
        font-size: 1rem !important;
    }

    /* Mockup text — minimum readable */
    .mockup-stat-lbl {
        font-size: 0.5rem !important;
    }
    .mockup-stat-val {
        font-size: 0.75rem !important;
    }

    /* CTA section font */
    .features-cta h2,
    section h2[style*="font-size:2.2rem"] {
        font-size: 1.5rem !important;
    }
}

/* ===== EXTRA SMALL — 420px ===== */
@media (max-width: 420px) {
    .stats-grid,
    [class*="stats"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    [class*="stat"] h2,
    [class*="stat"] h3,
    .stat-val {
        font-size: clamp(24px, 8vw, 36px) !important;
    }

    /* Planning grid — even smaller but still readable */
    .mockup-main [style*="grid-template-columns:70px"],
    .mockup-main [style*="grid-template-columns: 70px"] {
        grid-template-columns: 40px repeat(7, minmax(26px, 1fr)) !important;
        font-size: 0.45rem !important;
    }

    /* Footer 2-col → 1-col */
    footer [style*="repeat(4,1fr)"],
    .footer [style*="repeat(4,1fr)"] {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    /* Page hero — even less padding */
    .page-hero {
        padding: 3.5rem 0 2rem !important;
    }

    /* Experience stage sidebar */
    .layer-sidebar {
        width: 80px !important;
    }

    /* Video mockup max-width */
    .video-bg-mockup [style*="max-width:350px"] {
        max-width: 100% !important;
        width: 90% !important;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
