/* ====== CSS RESET ET VARIABLES ====== */
:root {
    --bg-color: #0d0d1a;
    --dark-blue: #0b0e24;
    --neon-blue: #00f0ff;
    --neon-purple: #9d00ff;
    --neon-red: #ff003c;
    --gold: #f1c40f;
    --white: #ffffff;
    --gray: #b0b0c0;
    --font-pixel: 'Press Start 2P', cursive;
    --font-heading: 'Outfit', sans-serif;
    --font-modern: 'Inter', sans-serif;
    --border-pixel: 4px solid #fff;
    --box-shadow-pixel: 6px 6px 0px 0px rgba(0,0,0,1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--white);
    font-family: var(--font-modern);
    overflow-x: hidden;
    position: relative;
    /* Texture: grille de points ultra discrète (SaaS minimaliste) */
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    animation: dealflowEntry 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Smooth entry transition from gaqc.ca */
@keyframes dealflowEntry {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Digital Noise (Le Grain Premium / LeadGen Feel) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    z-index: 9997;
}

/* Arcs Vectoriels (Lignes de structure minimalistes) */
body::before {
    content: "";
    position: fixed;
    top: -25vh; right: -15vw;
    width: 110vh; height: 110vh;
    border: 1px solid rgba(0, 240, 255, 0.1); 
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 75%);
}

/* Premium Mesh Glow (Organique et mouvant) */
.ambient-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(157, 0, 255, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 60, 0.03) 0%, transparent 60%);
    filter: blur(120px);
    animation: meshFloat 30s ease-in-out infinite alternate;
}

/* Second Arc pour la balance visuelle */
.ambient-glow::before {
    content: "";
    position: absolute;
    bottom: -30vh; left: -10vw;
    width: 130vh; height: 130vh;
    border: 1px solid rgba(157, 0, 255, 0.07);
    border-radius: 50%;
    mask-image: radial-gradient(circle at center, black, transparent 65%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 65%);
}

@keyframes meshFloat {
    0%   { transform: scale(1) translate(0, 0) rotate(0deg); }
    50%  { transform: scale(1.2) translate(-5%, 5%) rotate(8deg); }
    100% { transform: scale(1.1) translate(5%, -5%) rotate(-8deg); }
}

/* CRT SCANLINES: Raffinement Arcade */
.crt-scanlines {
    position: fixed;
    inset: 0;
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 4px, 3px 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.5;
}

/* ====== UTILITY CLASSES (Megalodon Typography) ====== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.mega-section {
    padding: 100px 0; /* Un peu moins par défaut */
    position: relative;
}

.mega-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 5.2rem;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
}

.mega-title-sm {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.super-mega-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 4rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
}

.pixel-h3 {
    font-family: var(--font-pixel);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--neon-blue);
}

.mega-subtitle, #typewriter {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    line-height: 2.2;
    color: var(--neon-blue) !important; /* Force Vibrant Cyan: #00f0ff */
    margin: 2rem 0;
    max-width: 600px;
    min-height: 100px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.copy-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray);
}
.copy-large { font-size: 1.3rem; }
.text-gold { color: var(--gold) !important; }

.level-badge {
    display: inline-block;
    padding: 8px 16px;
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    background-color: var(--white);
    color: var(--bg-color);
    border: 2px solid #000;
    box-shadow: 3px 3px 0 0 #000;
}
.w-fit { width: max-content; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-lg { max-width: 800px; }

/* Buttons Mega Pixel Style */
.btn-pixel-primary, .btn-pixel-secondary {
    display: inline-block;
    padding: 18px 30px;
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    border: var(--border-pixel);
    box-shadow: var(--box-shadow-pixel);
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-pixel-primary {
    background-color: var(--neon-blue);
    color: #000;
    border-color: #000;
}
.btn-pixel-secondary {
    background-color: transparent;
    color: var(--white);
}
.btn-pixel-primary:hover, .btn-pixel-secondary:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px 0px rgba(0,0,0,1);
    animation: btnGlitch 0.3s ease-in-out infinite;
}

@keyframes btnGlitch {
    0% { clip-path: inset(0 0 0 0); transform: translate(-3px, -3px); }
    33% { clip-path: inset(10% 0 30% 0); transform: translate(-5px, -1px); }
    66% { clip-path: inset(40% 0 10% 0); transform: translate(1px, -4px); }
    100% { clip-path: inset(0 0 0 0); transform: translate(-3px, -3px); }
}


.pixel-box-shadow {
    background-color: rgba(13, 13, 26, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid rgba(255,255,255,0.08); /* Subtle border by default */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Modern deep shadow */
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.pixel-box-shadow:hover {
    border-color: rgba(255,255,255,0.15); /* Sleek white subtle border */
    transform: scale(1.02); /* Very subtle enlargement */
    box-shadow: 0 15px 45px rgba(0,0,0,0.4);
}

/* Specific highlight for Bento & Coaching cards */
.plat-card, .bento-card, .garantie-card, .form-wrapper {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.plat-card:hover, .bento-card:hover, .garantie-card:hover {
    transform: scale(1.02);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* ====== FLOATING ANIMATED ENTITIES ====== */
.floating-entity {
    position: absolute;
    z-index: 10;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}
.retro-ship {
    width: 100px; height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300f0ff"><path d="M11 2L9 7l-5 4v4l5-2v4l5 3 5-3v-4l5 2v-4l-5-4-2-5-6-5z"/></svg>');
    filter: drop-shadow(0 0 10px var(--neon-blue));
    top: 15%; right: 10%;
    animation: floatShip 15s ease-in-out infinite alternate;
}
.retro-coin {
    width: 60px; height: 60px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f1c40f"><circle cx="12" cy="12" r="10" stroke="%23b8860b" stroke-width="2"/><circle cx="12" cy="12" r="5" fill="%23b8860b"/></svg>');
    filter: drop-shadow(0 0 15px var(--gold));
    top: 60%; left: 5%;
    animation: floatCoin 8s ease-in-out infinite alternate;
}
@keyframes floatShip {
    0% { transform: translateY(0) rotate(-5deg); }
    100% { transform: translateY(150px) rotate(5deg) scale(1.2); }
}
@keyframes floatCoin {
    0% { transform: translateY(0) scale(1) rotateY(0deg); }
    100% { transform: translateY(-100px) scale(0.8) rotateY(180deg); }
}

/* ====== NEON WARNING EFFECT ====== */
.glitch-text {
    position: relative;
    display: inline-block;
}


/* ====== SECTIONS ====== */
.mega-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    position: absolute; width: 100%; top: 0; z-index: 50;
}
.logo-pixel {
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    color: var(--neon-blue);
    text-shadow: 3px 3px 0 #000;
}
.blink { animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

.hero-section {
    padding-top: 140px;
    padding-bottom: 60px;
    overflow: hidden;
    position: relative;
    background: transparent;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }
/* USING USER'S COHERENT IMAGE REFERENCES! */
.hero-art-bg {
    width: 100%; height: 500px;
    background: url('assets/coffre.png') center/cover;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.stat-box h2 {
    font-family: var(--font-modern);
    font-size: 3rem;
    font-weight: 900;
    color: var(--neon-blue);
    text-shadow: 3px 3px 0 #000;
    margin-bottom: 0.5rem;
}
.alert-box { border-color: var(--neon-red); }
.alert-box h2 { color: var(--neon-red); }

.platform-section { 
    position: relative;
    overflow: hidden;
    padding: 60px 0 !important;
}

.platform-section .container {
    position: relative;
    z-index: 10; /* Passer devant l'overlay de fond */
}

.platform-bg-system {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.plat-bg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
    filter: brightness(0.3) saturate(0.6) blur(3px); /* Subtle cinematic deep feel */
}

/* Base layer visible at start (Sales Team) */
.plat-bg-1 { opacity: 1; }

.plat-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, #0d0d1a 90%);
    z-index: 5;
    pointer-events: none;
}
.platform-viewport {
    position: relative;
    width: 100%;
    min-height: 480px;
    overflow: hidden;
    padding: 0; /* Plus de padding inutile ici */
    perspective: 2000px;
    z-index: 10;
    cursor: grab;
}

.platform-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    width: max-content;
    padding: 20px 5%;
    transform-style: preserve-3d;
    transition: transform 0.1s cubic-bezier(0.23, 1, 0.32, 1);
}

.plat-card {
    flex: 0 0 275px; /* Compact width for 4-card display focus */
    min-width: 275px;
    height: 400px !important;
    transform-style: preserve-3d;
    transition: none !important;
}
.icon-block {
    font-family: var(--font-modern);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255,255,255,0.1);
    margin-bottom: -20px;
}

.plat-card {
    padding: 1.5rem !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bg-gradient-red {
    background: linear-gradient(135deg, var(--neon-red) 0%, #30000a 100%);
}

.results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.result-block { margin-bottom: 30px; }
.arcade-art-bg {
    width: 100%; height: 100%; min-height: 400px;
    background: url('assets/retro_ref_3.jpg') center/cover;
}
.glow-red { box-shadow: 0 0 40px rgba(255,0,60,0.5), 8px 8px 0px 0px #000; }

.revenue-bar {
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
    transition: all 0.3s ease;
}
.revenue-bar:hover {
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(157, 0, 255, 0.8));
    cursor: pointer;
}

.timeline-trail {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reduit de 20px à 12px */
    max-width: 750px; /* Un peu moins large */
    margin: 30px auto 0;
}
.time-step {
    border-color: var(--gold);
    background-color: #111;
    padding: 1.5rem 2rem !important; /* Moins de padding vertical */
}
.time-step h3 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem; /* Reduit de 1.8rem à 1.4rem */
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.time-lvl {
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.bg-gradient-purple {
    background: #010412; /* Deep midnight base (ultra-dark) */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.section-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 1.0; /* Full visibility for the animation (Premium) */
}

.revenue-grid-overlay {
    position: absolute;
    inset: -100px;
    width: calc(100% + 200px);
    height: calc(100% + 200px);
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1; /* Minimal texture over the video */
    transform: perspective(1000px) rotateX(45deg);
}


.stats-section {
    padding-top: 0px; 
    padding-bottom: 60px;
}

.impact-section .section-video-bg {
    opacity: 0.5; /* Darker for better text readability */
}

/* Widened mask for impact focus */
.impact-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(1, 4, 18, 0.9) 85%);
    pointer-events: none;
    z-index: 1;
}

.mega-subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.text-neon-blue { color: var(--neon-blue); text-shadow: 0 0 15px rgba(0, 240, 255, 0.4); }

.fw-bold { font-weight: 900; }

/* Mask to fade edges and center the content - widened to let animation shine */
.bg-gradient-purple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, #010412 95%);
    pointer-events: none;
    z-index: 1;
}
.bg-gradient-purple::before {
    content: ''; position: absolute; top:0; left:0; right:0; bottom:0;
    background: rgba(13, 13, 26, 0.85); z-index: -1;
}
.glow-gold {
    box-shadow: 0 0 50px rgba(241, 196, 15, 0.3), 8px 8px 0px 0px #000;
    border-color: var(--gold);
    backdrop-filter: blur(10px);
}

/* Unique Abyssal Background for Guarantee (Subtle & Premium) */
.bg-abyss {
    background: #010412;
    position: relative;
    overflow: hidden;
}

.abyss-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(157, 0, 255, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(140px);
    z-index: 0;
    animation: abyssFloat 20s ease-in-out infinite alternate;
}

@keyframes abyssFloat {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    100% { transform: translate(-45%, -55%) scale(1.3); opacity: 0.7; }
}

.garantie-section .container {
    position: relative;
    z-index: 2;
}

/* Redefine bg-dark-blue if needed but keep it simple */
.bg-dark-blue { background-color: var(--dark-blue); }
.bg-gold { background-color: var(--gold); border: 2px solid #000; }
.text-dark { color: #000; font-weight: bold; }

.btn-large {
    font-size: 1.2rem;
    padding: 25px 50px;
}

@media (max-width: 1100px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-container, .results-container {
        grid-template-columns: 1fr;
    }
    .platform-grid {
        grid-template-columns: 1fr;
    }
    .hero-art-bg { height: 300px; margin-top: 40px; }
}

/* ====== BENTO GRID SECTION ====== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 25px;
    margin-top: 50px;
}

/* REVERTING COACHING CARDS TO ORIGINAL STYLE */
.plat-card {
    background-color: rgba(13, 13, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* FORCING MAXIMUM CONTRAST ON INFRASTRUCTURE SECTION */
html body .platform-section .plat-card:hover {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #000000 !important;
    z-index: 999 !important; /* Sortir au-dessus de tout */
    opacity: 1 !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.6);
}

html body .platform-section .plat-card:hover .pixel-h3, 
html body .platform-section .plat-card:hover .copy-text, 
html body .platform-section .plat-card:hover .icon-block {
    color: #000000 !important;
}

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.1);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    z-index: 1;
}

.card-tall { grid-row: span 2; }
.card-wide { grid-column: span 2; }

.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.status-indicator {
    font-family: var(--font-pixel);
    font-size: 0.6rem;
    color: var(--neon-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot { width: 6px; height: 6px; border-radius: 50%; background-color: var(--neon-blue); }
.pulse { animation: pulseGlow 2s infinite; }

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { transform: scale(1.5); opacity: 0; box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { transform: scale(1); opacity: 0; }
}

/* Booking Feed Specifics - FIXED HEIGHT TO PREVENT JUMPS */
.booking-feed {
    height: 380px; /* Locked height */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 40px;
}

/* Bottom mask for fade-out effect like Magic UI */
.scheduling-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(1, 4, 18, 1), transparent);
    pointer-events: none;
    z-index: 2;
}

.booking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    transform-origin: top center;
    transition: transform 0.2s ease;
}

.booking-item:hover {
    transform: scale(1.03);
    border-color: var(--neon-blue);
    background: rgba(255, 255, 255, 0.08);
}

.avatar-mini {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dark-blue);
    object-fit: cover;
    border: 1px solid rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.booking-details {
    flex: 1;
}

.booking-info {
    font-size: 0.85rem;
    line-height: 1.2;
    color: var(--white);
    margin: 0;
}

.booking-info strong { color: var(--neon-blue); font-weight: normal; }

.booking-meta {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 4px;
}

.card-footer-hint {
    margin-top: 20px;
    font-size: 0.75rem;
    color: var(--gray);
    font-style: italic;
    opacity: 0.7;
}

/* --- BENTO CARDS --- */
/*/* --- BENTO CARDS --- */
.tech-stack-card, .revenue-card {
    min-height: 220px;
    background: rgba(255, 255, 255, 0.02);
}

.integration-layout {
    position: relative;
    width: 100%;
    height: 140px;
}

.integration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    height: 100%;
    width: 100%;
    z-index: 2;
    position: relative;
}

.integration-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.source-area { align-items: flex-start; padding-left: 10%; }
.hub-area { justify-content: center; }
.targets-area { 
    justify-content: space-around; 
    align-items: flex-end; 
    padding-right: 10%; 
    padding-top: 10px; 
    padding-bottom: 10px; 
}

.node {
    width: 34px;
    height: 34px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.node img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

.node-hub {
    width: 50px;
    height: 50px;
    background: var(--neon-blue);
    font-size: 1.5rem;
    color: #000;
}

.node-sat {
    width: 28px;
    height: 28px;
}

.integration-svg-v2 {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.beam-v2 {
    stroke: var(--neon-blue);
    stroke-width: 1;
    opacity: 0.15;
}

.beam-v2-active {
    stroke-opacity: 0.8;
    stroke-width: 1.5;
    stroke-dasharray: 4, 16;
    animation: beamDash 8s linear infinite;
}

@keyframes beamDash {
    from { stroke-dashoffset: 200; }
    to { stroke-dashoffset: 0; }
}

.revenue-chart-container {
    height: 80px;
    margin: 15px 0;
    width: 100%;
}

.integration-meta {
    margin-top: 10px;
}

/* ====== SYSTEM STATUS ANIMATION ====== */
.status-optimal {
    display: inline-block;
    color: #4dfa62; /* Vibrant Green */
    text-shadow: 0 0 10px rgba(77, 250, 98, 0.7);
    animation: optimalStay 5s infinite;
    font-weight: 900;
}

@keyframes optimalStay {
    0%, 75% { 
        color: #4dfa62; 
        text-shadow: 0 0 15px rgba(77, 250, 98, 0.8);
        opacity: 1;
    }
    77%, 81%, 85% { 
        color: var(--white); 
        text-shadow: none; 
        opacity: 0.5;
    }
    79%, 83%, 87% { 
        color: var(--neon-blue); 
        text-shadow: 0 0 8px var(--neon-blue); 
        opacity: 1;
    }
    90%, 100% { 
        color: #4dfa62; 
        text-shadow: 0 0 20px rgba(77, 250, 98, 1);
        opacity: 1;
    }
}

/* ====== RETRO FORM STYLES ====== */
.neon-text {
    color: var(--white);
    text-shadow: 0 0 15px var(--neon-blue);
}

/* ====== COACHING SECTION HARMONY ====== */
.coaching-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
    flex-wrap: wrap;
}

.coaching-card {
    flex: 1;
    min-width: 320px;
    max-width: 380px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem !important;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.card-video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.card-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) saturate(0.5);
}

.coaching-card:hover .card-video-container {
    opacity: 1;
}

.coaching-card .pixel-h3, 
.coaching-card .copy-text, 
.coaching-card .icon-block {
    position: relative;
    z-index: 1;
}

.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.xp-bar-container {
    background: #000;
    padding: 10px;
    border: 2px solid #333;
}

.xp-label {
    font-family: var(--font-pixel);
    font-size: 0.6rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.xp-track {
    height: 12px;
    background: #111;
    border: 1px solid #444;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    box-shadow: 0 0 10px var(--neon-blue);
    transition: width 0.3s ease;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: stepEnter 0.4s ease-out;
}

@keyframes stepEnter {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.error-shake {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

.step-title {
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 2rem;
    display: block;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.pixel-radio, .pixel-checkbox {
    cursor: pointer;
    display: block;
}

.pixel-radio input, .pixel-checkbox input {
    display: none;
}

.radio-card, .checkbox-card {
    display: block;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border: 2px solid #333;
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    color: var(--gray);
    text-align: center;
    transition: all 0.2s ease;
}

.pixel-radio input:checked + .radio-card,
.pixel-checkbox input:checked + .checkbox-card {
    background: var(--neon-blue);
    color: #000;
    border-color: #000;
    box-shadow: 4px 4px 0px #000;
    transform: translate(-2px, -2px);
}

.pixel-radio:hover .radio-card,
.pixel-checkbox:hover .checkbox-card {
    border-color: var(--neon-blue);
    color: #fff;
}

.pixel-input {
    width: 100%;
    padding: 18px;
    background: #000;
    border: 2px solid #333;
    color: #fff;
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    margin-bottom: 15px;
    outline: none;
}

.pixel-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.form-nav {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.bg-gradient-red {
    background: linear-gradient(90deg, #ff003c 0%, #85001f 100%);
    position: relative;
    overflow: hidden;
}

.polarisation-section .super-mega-title {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    margin-bottom: 3rem;
}

.coaching-section {
    position: relative;
    overflow: hidden;
}

.section-bg-video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 1; /* Main container always active */
    transition: opacity 1.2s ease;
}

.section-bg-video-container video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(0.1) blur(20px) saturate(0.2); /* Cinematic atmosphere */
}

/* Master background always slightly visible */
#bg-video-main.active {
    opacity: 0.15;
    filter: brightness(0.12) blur(15px) saturate(0.4);
}

/* Specific hover videos have more presence */
.section-bg-video-container video.active:not(#bg-video-main) {
    opacity: 0.35;
    filter: brightness(0.2) blur(8px) saturate(0.6);
}

.coaching-section:has(.coaching-card:hover) #bg-video-main {
    opacity: 0.05; /* Fade out main bg when hover bg is active */
}

.polarisation-section .copy-text {
    color: #ffffff !important;
    opacity: 1;
}

/* ====== MINIMALIST ARCHIVE LINK ====== */
.btn-minimal-link {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    font-family: var(--font-pixel);
    font-size: 0.65rem;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 10px 20px;
    opacity: 0.6;
    transition: all 0.3s ease;
    margin: 15px auto;
    display: inline-block;
    position: relative;
}

.btn-minimal-link:hover {
    opacity: 1;
    color: var(--neon-blue);
    border-color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.05);
}

.coaching-footer .copy-text {
    font-size: 0.6rem;
    letter-spacing: 1px;
    opacity: 0.4;
    font-style: italic;
}

/* ====== SIDE PANEL (NOTION STYLE - FLUID) ====== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(0px);
    z-index: 10000;
    display: flex; /* Always display for transitions */
    justify-content: flex-end;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, backdrop-filter 0.6s ease, visibility 0.6s;
}

.drawer-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(20px);
}

.drawer-panel {
    width: 650px;
    max-width: 90vw;
    height: 100vh;
    background: #01040f !important;
    border-left: 1px solid rgba(255,255,255,0.08);
    padding: 4.5rem 3.5rem !important;
    overflow-y: auto;
    box-shadow: -40px 0 100px rgba(0,0,0,0.9);
    transform: translateX(100%);
    transition: transform 0.85s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
}

.drawer-overlay.active .drawer-panel {
    transform: translateX(0);
}

.drawer-header {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.3s;
}

.drawer-overlay.active .drawer-header {
    opacity: 1;
    transform: translateY(0);
}

.drawer-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
}

.drawer-overlay.active .drawer-content-grid {
    opacity: 1;
    transform: translateY(0);
}

.video-item {
    background: rgba(255,255,255,0.02) !important;
    padding: 1rem !important;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.video-item:hover {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.video-item video {
    width: 100%;
    height: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    aspect-ratio: 9/16; /* TikTok/Reel style */
    object-fit: cover;
}

/* ====== PHANTOM CTA (LEFT SIDE) ====== */
.drawer-side-cta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    pointer-events: auto; /* Active zone */
    cursor: pointer;
}

.btn-phantom {
    background: transparent;
    border: none;
    color: var(--white);
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    letter-spacing: 2px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.4s ease;
    padding: 20px;
    pointer-events: none; /* Let the parent container handle the hover/click area */
}

/* Zone-wide hover effect */
.drawer-side-cta:hover .btn-phantom {
    opacity: 1;
    transform: translateX(-10px);
    color: var(--neon-blue);
    text-shadow: 0 0 15px var(--neon-blue);
}

.video-item p {
    font-family: var(--font-pixel);
    font-size: 0.6rem;
    color: var(--gray);
    letter-spacing: 0.5px;
    margin-top: 10px;
    text-align: center;
}

.drawer-close {
    position: absolute;
    top: 35px;
    right: 35px;
    background: none;
    border: none;
    color: #444;
    font-size: 2.2rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

.drawer-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* ====== MOBILE RESPONSIVE ====== */
@media (max-width: 768px) {
    /* Hide floating entities on mobile */
    .floating-entity {
        display: none !important;
    }

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

    .mega-title {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }

    .mega-title-sm {
        font-size: 1.5rem;
    }

    .super-mega-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .pixel-h3 {
        font-size: 0.65rem;
        margin-bottom: 0.6rem;
        line-height: 1.5;
    }

    .mega-subtitle, #typewriter {
        font-size: 0.55rem;
        line-height: 2;
        min-height: 50px;
        margin: 1rem 0;
    }

    .copy-text {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .copy-large {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 16px;
    }

    /* ---- NAVBAR ---- */
    .mega-nav {
        padding: 16px 5%;
    }

    .logo-pixel {
        font-size: 1rem;
    }

    .mega-nav .btn-pixel-primary {
        font-size: 0.4rem;
        padding: 6px 10px;
        width: auto;
    }

    /* ---- HERO SECTION ---- */
    .hero-section {
        padding-top: 70px;
        padding-bottom: 30px;
        position: relative;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
    }

    /* Hide the standalone image block, use as background instead */
    .hero-art {
        position: absolute !important;
        top: 0;
        right: -16px;
        width: 55%;
        height: 100%;
        z-index: 0;
        pointer-events: none;
    }

    .hero-art-bg {
        height: 100% !important;
        width: 100%;
        margin-top: 0;
        opacity: 0.2;
        mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 80%);
        -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 80%);
    }

    .hero-content {
        position: relative;
        z-index: 1;
    }

    .hero-actions {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-pixel-primary, .btn-pixel-secondary {
        font-size: 0.5rem;
        padding: 12px 18px;
        width: 100%;
        text-align: center;
    }

    .btn-minimal-link {
        font-size: 0.5rem;
        padding: 10px 16px;
        width: 100%;
        text-align: center;
    }

    .level-badge {
        font-size: 0.5rem;
        padding: 5px 10px;
    }

    /* ---- STATS ---- */
    .stats-section {
        padding-top: 0;
        padding-bottom: 30px;
    }

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

    .stat-box {
        padding: 1.2rem !important;
    }

    .stat-box h2 {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }

    .stat-box p {
        font-size: 0.75rem;
    }

    /* ---- PLATFORM / INFRASTRUCTURE ---- */
    .platform-section {
        padding: 40px 0 !important;
    }

    .platform-viewport {
        min-height: auto !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        perspective: none !important;
        cursor: default !important;
    }

    .platform-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        padding: 10px 16px !important;
        width: max-content !important;
        transform-style: flat !important;
        transform: none !important;
    }

    .plat-card {
        flex: 0 0 260px !important;
        min-width: 260px !important;
        height: auto !important;
        min-height: 280px !important;
        padding: 1.2rem !important;
        transform: none !important;
        transform-style: flat !important;
        opacity: 1 !important;
        backface-visibility: visible !important;
    }

    .icon-block {
        font-size: 2rem;
        margin-bottom: -15px;
    }

    .plat-card .copy-text {
        font-size: 0.75rem;
    }

    /* Hide 3D background system on mobile */
    .platform-bg-system {
        display: none !important;
    }

    /* Scroll hint animation for platform cards */
    .platform-viewport::after {
        content: '← Glissez →';
        display: block;
        text-align: center;
        font-family: var(--font-pixel);
        font-size: 0.45rem;
        color: rgba(0, 240, 255, 0.5);
        padding: 10px 0 0;
        letter-spacing: 2px;
        animation: scrollHintPulse 2s ease-in-out infinite;
    }

    @keyframes scrollHintPulse {
        0%, 100% { opacity: 0.4; transform: translateX(0); }
        50% { opacity: 0.8; transform: translateX(-5px); }
    }

    /* Initial nudge animation on the track */
    .platform-grid {
        animation: scrollNudge 1.5s ease-in-out 1s 1;
    }

    @keyframes scrollNudge {
        0% { transform: translateX(0); }
        30% { transform: translateX(-40px); }
        60% { transform: translateX(10px); }
        100% { transform: translateX(0); }
    }

    /* ---- BENTO GRID ---- */
    .bento-section {
        padding: 40px 0;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 14px;
        margin-top: 30px;
    }

    .card-tall { grid-row: span 1; }
    .card-wide { grid-column: span 1; }

    .bento-card {
        padding: 1.2rem;
        border-radius: 14px;
    }

    .booking-feed {
        height: 200px;
    }

    .integration-layout {
        height: 110px;
    }

    .revenue-chart-container {
        height: 60px;
    }

    /* ---- POLARISATION ---- */
    .polarisation-section {
        padding: 50px 0;
    }

    .polarisation-section .copy-large {
        font-size: 0.9rem;
    }

    /* ---- TIMELINE ---- */
    .timeline-trail {
        gap: 10px;
        margin-top: 20px;
    }

    .time-step {
        padding: 1.2rem 1.4rem !important;
    }

    .time-step h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .time-lvl {
        font-size: 0.6rem;
        margin-bottom: 6px;
    }

    /* ---- GARANTIE ---- */
    .garantie-card {
        padding: 2rem 1.5rem !important;
    }

    .garantie-section .container {
        padding: 0 16px;
    }

    /* ---- COACHING ---- */
    .coaching-section {
        padding: 40px 0;
    }

    .coaching-section .mb-5 {
        margin-bottom: 2rem !important;
    }

    .coaching-grid {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-top: 30px;
    }

    .coaching-card,
    .coaching-grid .plat-card,
    .coaching-grid .coaching-card {
        min-width: unset !important;
        max-width: 100% !important;
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 1.2rem 1.5rem !important;
        flex: none !important;
    }

    .coaching-card .icon-block {
        font-size: 1.5rem;
        margin-bottom: -8px;
    }

    .coaching-card .pixel-h3 {
        margin-bottom: 0.4rem;
    }

    .coaching-card .copy-text {
        margin-bottom: 0;
    }

    /* Show coaching videos as subtle background on mobile */
    .card-video-container {
        display: block !important;
        opacity: 0.25 !important;
        pointer-events: none;
    }

    .card-video-container video {
        filter: brightness(0.25) saturate(0.3) blur(2px) !important;
    }

    /* ---- FORM / CTA ---- */
    .cta-section {
        padding: 40px 0;
    }

    .form-wrapper {
        max-width: 100%;
        padding: 1.5rem !important;
    }

    .form-wrapper .section-header .super-mega-title {
        font-size: 1.4rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .radio-card, .checkbox-card {
        padding: 14px;
        font-size: 0.6rem;
    }

    .pixel-input {
        font-size: 0.6rem;
        padding: 14px;
    }

    .step-title {
        font-size: 0.65rem;
        margin-bottom: 1.2rem;
    }

    .xp-label {
        font-size: 0.5rem;
    }

    .form-nav {
        gap: 10px;
    }

    .form-nav .btn-pixel-primary,
    .form-nav .btn-pixel-secondary {
        width: auto;
    }

    /* ---- DRAWER ---- */
    .drawer-panel {
        width: 100vw;
        max-width: 100vw;
        padding: 2rem 1.2rem !important;
    }

    .drawer-content-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 1.5rem;
    }

    /* ---- PIXEL BOX SHADOW ---- */
    .pixel-box-shadow {
        padding: 1.5rem;
    }

    /* ---- FOOTER ---- */
    footer {
        margin-top: 2rem !important;
    }

    footer .copy-text {
        font-size: 0.65rem;
    }

    /* ---- CRT SCANLINES (lighter on mobile) ---- */
    .crt-scanlines {
        opacity: 0.25;
    }
}

@media (max-width: 380px) {
    .mega-title {
        font-size: 1.7rem;
    }

    .mega-title-sm {
        font-size: 1.3rem;
    }

    .super-mega-title {
        font-size: 1.4rem;
    }

    .stat-box h2 {
        font-size: 1.2rem;
    }

    .stat-box p {
        font-size: 0.7rem;
    }

    .mega-subtitle, #typewriter {
        font-size: 0.48rem;
    }

    .plat-card {
        flex: 0 0 210px !important;
        min-width: 210px !important;
        height: 290px !important;
    }

    .coaching-card {
        min-height: 160px;
    }

    .time-step h3 {
        font-size: 0.95rem;
    }

    .form-wrapper .section-header .super-mega-title {
        font-size: 1.2rem;
    }
}

/* ====== RETRO FORM STYLES ====== */
