/* ==========================================================================
   RESET & VARIABLES (V2 Premium)
   ========================================================================== */
:root {
    --primary: #1D4ED8;
    --primary-light: #3B82F6;
    --primary-glow: rgba(29, 78, 216, 0.4);

    /* Cinematic Elements */
    --noise-opacity: 0.05;
    --radius-sm: 1rem;
    --radius-md: 2rem;
    --radius-lg: 3rem;

    /* V2: Replaced black with very deep blues */
    --bg-dark: #0f172a;
    --bg-darker: #020617;

    --bg-white: #ffffff;
    --bg-light: #F8FAFC;
    --bg-blue-light: #EFF6FF;
    --bg-blue-ultra-light: #f4f8ff;

    --text-dark: #0f172a;
    /* Premium dark blue instead of black */
    --text-muted: #64748b;
    --text-gray-light: #cbd5e1;
    --border-light: #E2E8F0;

    --font-heading: 'Outfit', sans-serif;
    --font-drama: 'Cormorant Garamond', 'Playfair Display', serif;
    --font-data: 'Space Mono', monospace;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-magnetic: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 4px 6px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 25px 50px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --shadow-highlight: 0 0 50px rgba(59, 130, 246, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-muted);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.25;
    font-weight: 700;
}

ul {
    list-style: none;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

.bg-white {
    background-color: var(--bg-white);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-blue-ultra-light {
    background-color: var(--bg-blue-ultra-light);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.text-white {
    color: white !important;
}

.text-dark {
    color: var(--text-dark);
}

.text-muted {
    color: var(--text-muted);
}

.text-gray-light {
    color: var(--text-gray-light);
}

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

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.w-full {
    width: 100%;
}

.rounded-2xl {
    border-radius: 1rem;
}

.d-none {
    display: none !important;
}

/* Global Noise Overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: var(--noise-opacity);
    mix-blend-mode: multiply;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    /* Pill shape for magnetic buttons */
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-magnetic);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

/* Button sliding background layer */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: scale(1.03);
    /* Magnetic feel */
}

a:not(.btn):hover {
    transform: translateY(-1px);
    /* Links lift */
    display: inline-block;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 24px 56px;
    font-size: 1.2rem;
}

.btn-full {
    width: 100%;
}

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

.btn-primary::before {
    background: rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: white;
}

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

.btn-outline::before {
    background: var(--primary);
}

.btn-outline:hover {
    color: white;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.glow-btn {
    box-shadow: 0 0 20px rgba(29, 78, 216, 0.3);
}

.glow-btn:hover {
    box-shadow: 0 0 30px rgba(29, 78, 216, 0.6);
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Reveal classes (used by GSAP) */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

/* ==========================================================================
   INTRO FLASH ANIMATION (Ultra Stylish Circular Rings)
   ========================================================================== */
.intro-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    clip-path: circle(150% at 50% 50%);
}

.intro-screen.hide-intro {
    transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    clip-path: circle(0% at 50% 50%);
}

.intro-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.intro-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: scale(0.2);
}

.r1 {
    width: 40vw;
    height: 40vw;
    min-width: 400px;
    min-height: 400px;
    animation: ringExpand 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0s;
}

.r2 {
    width: 70vw;
    height: 70vw;
    min-width: 700px;
    min-height: 700px;
    animation: ringExpand 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.05s;
}

.r3 {
    width: 110vw;
    height: 110vw;
    min-width: 1100px;
    min-height: 1100px;
    animation: ringExpand 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.1s;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

@keyframes ringExpand {
    0% {
        transform: scale(0.2) rotate(0deg);
        opacity: 0;
        border-width: 3px;
    }

    50% {
        opacity: 0.5;
        border-color: rgba(29, 78, 216, 0.6);
    }

    100% {
        transform: scale(1.5) rotate(90deg);
        opacity: 0;
        border-width: 1px;
    }
}

.intro-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.5);
}

.intro-logo {
    font-size: 6rem;
    color: white;
    letter-spacing: 16px;
    z-index: 2;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    font-weight: 300;
    position: relative;
    animation: introElegance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(120px);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    animation: introGlowPremium 1s ease-out forwards;
}

.intro-flash {
    position: absolute;
    inset: 0;
    background: white;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
}

@keyframes introElegance {
    0% {
        transform: scale(0.8) translateY(30px);
        opacity: 0;
        filter: blur(12px);
    }

    40% {
        opacity: 1;
        filter: blur(0px);
    }

    80% {
        transform: scale(1.05) translateY(0);
        opacity: 1;
        filter: blur(0px);
    }

    100% {
        transform: scale(1.1) translateY(-10px);
        opacity: 0;
        filter: blur(10px);
    }
}

@keyframes introGlowPremium {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }

    50% {
        opacity: 0.25;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* ==========================================================================
   NAVIGATION ("The Floating Island")
   ========================================================================== */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    border: 1px solid transparent;
}

.navbar.scrolled {
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: white;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.navbar.scrolled .nav-logo {
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    transition: var(--transition);
}

.navbar.scrolled .nav-links a {
    color: var(--text-muted);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary);
}

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

/* ==========================================================================
   FLOATING BUTTONS
   ========================================================================== */
.floating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 990;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    background-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.float-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(29, 78, 216, 0.5);
}

.float-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    z-index: -1;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ==========================================================================
   HERO VIDEO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    color: white;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: #020617;
}

.wave-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, #082f49 0%, #020617 100%);
}

.wave-curve {
    position: absolute;
    transform-origin: 50% 48%;
    /* Slight off-center for organic wobble */
    border-radius: 43%;
    border: 3px solid rgba(86, 236, 225, 0.6);
    box-shadow: 0 0 60px rgba(86, 236, 225, 0.4), inset 0 0 60px rgba(86, 236, 225, 0.2);
}

.wave-curve-1 {
    width: 250vw;
    height: 250vw;
    left: -75vw;
    top: -10vh;
    animation: waveRotate 20s infinite linear;
    background: rgba(13, 148, 136, 0.15);
    border-color: rgba(132, 250, 240, 1);
    box-shadow: 0 0 120px rgba(86, 236, 225, 0.8), inset 0 0 80px rgba(86, 236, 225, 0.3);
    border-width: 4px;
}

.wave-curve-2 {
    width: 260vw;
    height: 260vw;
    left: -80vw;
    top: 15vh;
    animation: waveRotate 30s infinite linear reverse;
    background: rgba(13, 148, 136, 0.1);
    border-color: rgba(132, 250, 240, 0.7);
    border-radius: 45%;
}

.wave-curve-3 {
    width: 270vw;
    height: 270vw;
    left: -85vw;
    top: 40vh;
    animation: waveRotate 40s infinite linear;
    background: rgba(13, 148, 136, 0.05);
    border-color: rgba(132, 250, 240, 0.4);
    border-radius: 41%;
}

.wave-curve-4 {
    width: 280vw;
    height: 280vw;
    left: -90vw;
    top: 65vh;
    animation: waveRotate 50s infinite linear reverse;
    background: rgba(13, 148, 136, 0.02);
    border-color: rgba(132, 250, 240, 0.2);
    border-radius: 46%;
}

@keyframes waveRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Lighter vignette to let the bright waves show clearly */
    background: radial-gradient(circle at 50% 50%, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.6) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding-bottom: 60px;
    /* space for wave */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 5.5rem;
    letter-spacing: -2px;
    margin-bottom: 16px;
    color: white;
    font-weight: 800;
}

.hero-title .drama-text {
    display: block;
    font-family: var(--font-drama);
    font-style: italic;
    font-size: 1.4em;
    font-weight: 400;
    line-height: 1;
    margin-top: -10px;
}

.gradient-flash {
    background: linear-gradient(90deg, #ffffff, #93c5fd);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(147, 197, 253, 0.3));
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 48px auto;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

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

/* SECTION SEPARATORS */
.section-separator {
    position: absolute;
    bottom: -1px;
    /* fix rendering gap */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-bottom svg path {
    fill: var(--bg-white);
}

.wave-bottom-dark svg path {
    fill: var(--bg-white);
}


/* ==========================================================================
   SERVICES (Notre Écosystème)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* 3D Tilt utility used in JS */
.tilt-card {
    background: var(--bg-white);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    overflow: hidden;
    transform-style: preserve-3d;
}

.tilt-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(29, 78, 216, 0.2);
}

.service-mockup {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    transform: translateZ(20px);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.service-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tilt-card:hover .service-mockup img {
    transform: scale(1.05);
}

.s-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-white), transparent);
}

.service-content {
    padding: 32px;
    transform: translateZ(30px);
    /* 3D pop out */
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-flex;
    padding: 16px;
    background: var(--bg-blue-ultra-light);
    border-radius: 16px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-content p {
    font-size: 0.95rem;
}

/* ==========================================================================
   INTERACTIVE FUNCTIONAL ARTIFACTS
   ========================================================================== */
.interactive-artifact {
    background: var(--bg-dark);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-light);
    height: 220px;
    display: flex;
    flex-direction: column;
}

.artifact-header {
    background: var(--bg-darker);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mac-dots {
    display: flex;
    gap: 6px;
}

.mac-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.mac-dots span:nth-child(1) {
    background: #ff5f56;
}

.mac-dots span:nth-child(2) {
    background: #ffbd2e;
}

.mac-dots span:nth-child(3) {
    background: #27c93f;
}

.artifact-title {
    flex: 1;
    text-align: center;
    color: var(--text-gray-light);
    font-size: 0.8rem;
    font-family: var(--font-data);
    letter-spacing: 1px;
    opacity: 0.7;
}

.artifact-body {
    flex: 1;
    padding: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* 1. Typewriter (Code Editor style) */
.typewriter-container {
    background: rgba(15, 23, 42, 0.8);
    justify-content: flex-start;
    align-items: flex-start;
    padding: 24px 32px;
}

.typewriter-text {
    font-size: 1.1rem;
    color: #a5b4fc;
    /* soft indigo */
}

.typewriter-cursor {
    animation: blink 1s step-end infinite;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: bold;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* 2. Shuffler (Metrics Dashboard style) */
.shuffler-container {
    background: radial-gradient(circle at center, rgba(29, 78, 216, 0.1) 0%, transparent 70%);
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.shuffler-row {
    display: flex;
    justify-content: space-between;
    width: 80%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.shuffler-row .label {
    color: var(--text-gray-light);
    font-family: var(--font-data);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shuffler-row .value {
    color: white;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

/* 3. Scheduler (Workflow pipeline style) */
.scheduler-container {
    background: #0f172a;
    flex-direction: column;
    padding: 40px 0;
}

.schedule-node {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0.4;
    transition: var(--transition);
}

.schedule-node.active {
    opacity: 1;
}

.node-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: var(--transition);
}

.schedule-node.active .node-dot {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.node-text {
    font-size: 0.95rem;
    font-family: var(--font-data);
}

.schedule-node.active .node-text {
    color: white;
    font-weight: 600;
}

.schedule-line {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0 8px 5px;
    /* align with dot center */
}

/* ==========================================================================
   PROTOCOL (Sticky Stack)
   ========================================================================== */
.protocol {
    position: relative;
    z-index: 10;
}

.protocol-container {
    padding: 100px 0;
}

.protocol-card {
    position: sticky;
    top: 100px;
    height: 50vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 20px;
}

.stacking-card .card-inner {
    width: 100%;
    max-width: 1000px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 60px;
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 40px;
    align-items: center;
    transform-origin: top center;
    will-change: transform, opacity;
}

.p-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
    font-family: var(--font-data);
}

.p-content h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.p-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.p-visual {
    width: 100%;
    height: 300px;
    background: var(--bg-blue-ultra-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.p-svg {
    width: 100%;
    height: 100%;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes scanLaser {

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

    50% {
        transform: translateY(80px);
    }
}

@keyframes pulseWave {
    0% {
        stroke-dashoffset: 200;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.rotating-motif {
    animation: rotateSlow 20s linear infinite;
}

.scanning-laser {
    animation: scanLaser 4s ease-in-out infinite;
}

.pulsing-waveform path {
    stroke-dasharray: 200;
    animation: pulseWave 3s linear infinite;
}

/* ==========================================================================
   RESULTS / KPIs
   ========================================================================== */
.results {
    color: white;
    position: relative;
    overflow: hidden;
}

.results-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 300px;
    background: var(--primary-light);
    filter: blur(150px);
    opacity: 0.15;
    z-index: 1;
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
    color: #60a5fa;
    margin-bottom: 24px;
}

.stat-val {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    line-height: 1;
    background: linear-gradient(90deg, #ffffff, #93c5fd);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-gray-light);
}

/* ==========================================================================
   PHILOSOPHY (Manifesto)
   ========================================================================== */
.philosophy {
    position: relative;
    padding: 160px 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.philosophy-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.philosophy-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    mix-blend-mode: luminosity;
}

.philosophy-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-darker) 100%);
}

.philosophy-statement {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-statement.neutral {
    font-size: 1.5rem;
    color: var(--text-gray-light);
    font-weight: 300;
}

.philosophy-statement.massive {
    font-size: 4.5rem;
    color: white;
    font-family: var(--font-drama);
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -1px;
}

.philosophy-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* ==========================================================================
   PROTOCOL (Sticky Stacking Archive)
   ========================================================================== */
.protocol {
    padding: 120px 0;
    position: relative;
}

.protocol-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.protocol-card {
    position: sticky;
    top: 120px;
    /* Offset for navbar */
    height: 70vh;
    min-height: 500px;
    margin-bottom: 40px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    overflow: hidden;
    transform-origin: top center;
    will-change: transform, filter, opacity;
}

.card-inner {
    display: flex;
    width: 100%;
    height: 100%;
}

.p-num {
    padding: 40px;
    font-family: var(--font-data);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    border-right: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
}

.p-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.p-content h3 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.p-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.p-visual {
    flex: 1;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.p-svg {
    width: 60%;
    height: 60%;
    max-width: 300px;
}

/* Specific SVG animations */
.rotating-motif {
    animation: rotateSlow 20s linear infinite;
}

.scanning-laser {
    animation: scanPulse 3s ease-in-out infinite alternate;
}

.pulsing-waveform path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: dashWave 3s linear infinite;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes scanPulse {
    0% {
        transform: translateY(-40px);
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(40px);
        opacity: 0.2;
    }
}

@keyframes dashWave {
    from {
        stroke-dashoffset: 200;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* ==========================================================================
   OFFRES (PRICING)
   ========================================================================== */
/* Toggle Switch */
.pricing-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.toggle-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.toggle-label.active {
    color: var(--text-dark);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-light);
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

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

input:checked+.toggle-slider:before {
    transform: translateX(28px);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 48px 32px;
    border: 1px solid var(--border-light);
    position: relative;
    transition: var(--transition);
    transform-style: preserve-3d;
}

.tilt-card-light:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.highlight {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
    z-index: 2;
}

.pricing-card.highlight:hover {
    box-shadow: var(--shadow-highlight);
    transform: scale(1.02) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-glow);
    z-index: 3;
}

.highlight-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(29, 78, 216, 0.05) 0%, transparent 60%);
    border-radius: 24px;
    pointer-events: none;
}

.p-header {
    text-align: center;
    margin-bottom: 24px;
    transform: translateZ(20px);
}

.p-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.p-header h3 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.p-target {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.p-amount {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
    transform: translateZ(30px);
}

.price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
}

.price h3 {
    font-size: 3.5rem;
    margin: 0;
    line-height: 1;
    letter-spacing: -1px;
}

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

/* Features List Premium */
.p-features ul li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    transform: translateZ(20px);
}

.p-features ul li i {
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.f-text strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.2;
    margin-bottom: 4px;
}

.f-text span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.p-deposit {
    text-align: center;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin: 16px 0 -8px 0;
    padding: 8px;
    border-radius: 8px;
    background: var(--bg-blue-ultra-light);
    transform: translateZ(20px);
}

.p-action {
    margin-top: 32px;
    transform: translateZ(30px);
}

/* ==========================================================================
   PORTFOLIO (Exemples)
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.portfolio-card {
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.portfolio-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: rgba(29, 78, 216, 0.2);
}

.p-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.p-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.p-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    /* Dark blue overlay */
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.badge-glass {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    transform: translateY(20px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.portfolio-card:hover .p-img-wrapper img {
    transform: scale(1.08);
}

.portfolio-card:hover .p-overlay {
    opacity: 1;
}

.portfolio-card:hover .badge-glass {
    transform: translateY(0);
}

.p-info {
    padding: 32px;
    background: var(--bg-white);
}

.p-info h4 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.p-info p {
    font-size: 0.95rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 24px;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(15px);
}

.modal-content {
    position: relative;
    background: var(--bg-white);
    width: 100%;
    max-width: 1000px;
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(40px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-light);
    border: none;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
}

.modal-close:hover {
    background: var(--text-dark);
    color: white;
}

.modal-body {
    padding: 50px;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-box {
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-white);
    border-radius: 32px;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transform-style: preserve-3d;
}

.cta-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, rgba(29, 78, 216, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 24px;
    transform: translateZ(20px);
}

.cta-box p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    transform: translateZ(20px);
}

.cta-box .btn {
    transform: translateZ(30px);
}

/* ==========================================================================
   FOOTER (Cinematic)
   ========================================================================== */
.cinematic-footer {
    background: var(--bg-darker);
    color: var(--text-muted);
    padding-top: 80px;
    border-top-left-radius: 4rem;
    border-top-right-radius: 4rem;
    position: relative;
    z-index: 10;
    margin-top: -2rem;
    /* Pull up to hide underlying section straight edges */
}

.footer-grid {
    display: flex;
    flex-direction: column;
}

.footer-brand .font-bold {
    font-size: 1.5rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    /* Emerald green */
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981, 0 0 2px #10b981;
    animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-text {
    font-family: var(--font-data);
    font-size: 0.85rem;
    color: var(--text-gray-light);
    letter-spacing: 1px;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.border-dark {
    border-color: rgba(255, 255, 255, 0.1);
}

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

.pv-4 {
    padding: 32px 0;
}

.legal-links a {
    margin: 0 16px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.legal-links a:hover {
    color: var(--primary);
}

/* Responsive Utilities */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

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

    .pricing-card.highlight {
        transform: scale(1);
    }

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

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

    .hero-title {
        font-size: 3rem;
    }

    .hero-badge {
        margin-top: 40px;
    }

    .services-grid,
    .portfolio-grid,
    .pricing-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .cta-box {
        padding: 40px 20px;
    }

    .cta-box h2 {
        font-size: 2.5rem;
    }

    .flex-between {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .p-amount .price h3 {
        font-size: 3rem;
    }

    .philosophy-statement.massive {
        font-size: 2.5rem;
    }

    .philosophy-statement.neutral {
        font-size: 1.2rem;
    }

    /* Mobile fixes for protocol stacking cards */
    .stacking-card .card-inner {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 20px;
        text-align: center;
    }

    .p-num {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 20px;
        justify-content: center;
    }

    .p-content {
        padding: 20px 0;
    }

    .p-visual {
        height: 200px;
    }

    /* Fixed buttons overflowing and sizes on mobile */
    .btn-lg,
    .btn-xl {
        padding: 14px 20px;
        font-size: 1rem;
        width: 100%;
        max-width: 100%;
        white-space: normal;
        word-break: break-all;
        /* Fallback for very long emails */
        height: auto;
    }

    .hero-content {
        padding-bottom: 100px;
        /* Give more space so elements don't overlap with waves */
    }

    /* Disable sticky protocol cards on mobile as they often exceed viewport height when stacked */
    .protocol-card {
        position: relative;
        top: auto;
        height: auto;
        min-height: auto;
        margin-bottom: 24px;
    }

    .protocol-container {
        padding: 60px 0;
    }
}