/* ═══════════════════════════════════════════════════════════
   MOTION CRAFT LABS V2 — Design System (Framer Artboard Style)
   Pure Black Canvas • Bold White Typography • Confident Accent Blue
   Directly mapped to DESIGN.md tokens
   ═══════════════════════════════════════════════════════════ */

/* ── Google Fonts (Space Grotesk for display, Plus Jakarta Sans for body, Outfit for accent) ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* ── Cinematic Dark Brand Variables ── */
    --mcl-bg-primary: #000000;        /* Pure Premium Pitch Black */
    --mcl-bg-secondary: #0A0C10;      /* Dark premium card and section backgrounds */
    --mcl-bg-elevated: #11141B;       /* Hover states and modals */
    
    --mcl-accent-blue: #2563EB;       /* Accent Blue (Primary) */
    --mcl-accent-glow: #3B82F6;       /* Accent Blue (Glow) */
    --mcl-accent-electric: #60A5FA;   /* Accent Blue (Electric Highlight) */
    
    --mcl-text-primary: #F1F5F9;      /* Text Primary */
    --mcl-text-secondary: #94A3B8;    /* Text Secondary */
    --mcl-text-muted: #475569;        /* Text Muted */
    
    --mcl-border: #141B25;            /* Sleeker, darker blue-tinted borders */
    --mcl-danger: #EF4444;            /* Danger/Urgency */
    --mcl-success: #22C55E;           /* Success/Live indicator */

    /* ── Mapped Core Tokens ── */
    --primary:              var(--mcl-text-primary);
    --on-primary:           #000000;
    --accent-blue:          var(--mcl-accent-blue);
    
    --ink:                  var(--mcl-text-primary);
    --ink-muted:            var(--mcl-text-secondary);
    
    --canvas:               var(--mcl-bg-primary);
    --surface-1:            var(--mcl-bg-secondary);
    --surface-2:            var(--mcl-bg-elevated);
    
    --hairline:             var(--mcl-border);
    --hairline-soft:        rgba(20, 27, 37, 0.5);
    
    --semantic-success:     var(--mcl-success);
    --warning:              #f59e0b;
    --error:                var(--mcl-danger);

    /* ── Ambient Glow Soft Palette ── */
    --glow-blue:            rgba(37, 99, 235, 0.15);
    --glow-electric:        rgba(96, 165, 250, 0.15);
    
    /* ── Typography Scale ── */
    --font-display:         'Space Grotesk', sans-serif;
    --font-body:            'Plus Jakarta Sans', sans-serif;
    --font-accent:          'Outfit', sans-serif;
    
    /* ── Border Radius ── */
    --radius-xs:            4px;
    --radius-sm:            6px;
    --radius-md:            10px;
    --radius-lg:            12px;
    --radius-xl:            20px;
    --radius-xxl:           30px;
    --radius-pill:          100px;
    --radius-full:          9999px;

    /* ── Spacing (5px-based) ── */
    --space-hair:           1px;
    --space-xxs:            4px;
    --space-xs:             8px;
    --space-sm:             12px;
    --space-md:             15px;
    --space-lg:             20px;
    --space-xl:             30px;
    --space-xxl:            40px;
    --space-section:        96px;
}

/* ═══════════════════════════════════════════
   RESET & BASE STYLES
   ═══════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    background-color: var(--canvas);
}

body {
    background-color: var(--canvas);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.30;
    letter-spacing: -0.15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    font-feature-settings: "cv01", "cv05", "cv09", "cv11", "ss03", "ss07", "dlig", "tnum";
}

/* Accent Selection State */
::selection {
    background-color: var(--accent-blue);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--canvas);
}
::-webkit-scrollbar-thumb {
    background: var(--surface-2);
    border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--hairline);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    font-feature-settings: inherit;
}

button {
    cursor: pointer;
}

/* ── Typography Classes ── */
.display-xxl {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.display-xl {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 44px);
    font-weight: 800;
    line-height: 1.10;
    letter-spacing: -0.04em;
}

.display-lg {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 40px);
    font-weight: 800;
    line-height: 1.00;
    letter-spacing: -0.03em;
}

.display-md {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 26px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -0.02em;
}

.headline {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.20;
    letter-spacing: -0.8px;
}

.subhead {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.30;
    letter-spacing: -0.01px;
}

.body-lg {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.30;
    letter-spacing: -0.18px;
}

.body {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.30;
    letter-spacing: -0.15px;
}

.body-sm {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.40;
    letter-spacing: -0.14px;
}

.caption {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.20;
    letter-spacing: -0.13px;
}

.micro {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.20;
    letter-spacing: -0.12px;
}

.button-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: -0.14px;
}

/* ── Typography Colors ── */
.text-ink { color: var(--ink); }
.text-muted { color: var(--ink-muted) !important; }
.text-accent-blue { color: var(--accent-blue) !important; }

/* ── Spacing Utilities (5px base) ── */
.mb-hair { margin-bottom: var(--space-hair); }
.mb-xxs { margin-bottom: var(--space-xxs); }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-xxl { margin-bottom: var(--space-xxl); }
.mb-section { margin-bottom: var(--space-section); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-xxl { margin-top: var(--space-xxl); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* ── Flexbox & Grid Helpers ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-xxs { gap: var(--space-xxs); }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.grid { display: grid; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.hidden { display: none !important; }
.block { display: block; }
.fixed { position: fixed; }
.inset-0 { top: 0; left: 0; right: 0; bottom: 0; }
.pointer-events-none { pointer-events: none; }
.z-0 { z-index: 0; }
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.text-center { text-align: center; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

/* ── Ambient Glow & Artboard Grid Utilities ── */
.bg-grid-pattern {
    position: relative;
}
.bg-grid-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.glow-spotlight-wrapper {
    position: relative;
    overflow: hidden;
}

.glow-spotlight {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    mix-blend-mode: screen;
    filter: blur(140px);
}

.glow-spotlight--indigo {
    background: radial-gradient(circle, var(--mcl-accent-blue) 0%, transparent 70%);
}

.glow-spotlight--blue {
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

.glow-spotlight--cyan {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
}

.glow-spotlight--electric {
    background: radial-gradient(circle, var(--mcl-accent-electric) 0%, transparent 70%);
}

/* ── Custom Sparkle & Ambient Redesign Additions ── */
#sparkle-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.grid-bg {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.floating-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    filter: blur(120px);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.22;
    pointer-events: none;
    will-change: transform;
}

.ambient-glow-blue {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
}

.ambient-glow-indigo {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
}

.ambient-glow-cyan {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.20) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Custom Cursor Glow */
.custom-cursor-glow {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0.55;
    mix-blend-mode: screen;
    filter: blur(80px);
    background: radial-gradient(circle, rgba(96, 165, 250, 0.35) 0%, rgba(37, 99, 235, 0.35) 45%, rgba(30, 41, 59, 0.2) 75%, transparent 100%);
    animation: cursorGlowBlueShift 10s linear infinite;
    will-change: transform;
}

@media (max-width: 810px) {
    .custom-cursor-glow {
        display: none !important;
    }
}

/* Sparkle Text style */
.sparkle-text {
    background: linear-gradient(
        to right,
        #ffffff 0%,
        #9fcaff 25%,
        #c8bfff 50%,
        #0099ff 75%,
        #ffffff 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: sparkle-shine 5s linear infinite;
}

/* ═══════════════════════════════════════════
   LIGHT THEME OVERRIDES
   ═══════════════════════════════════════════ */
html.light {
    --primary:              #000000;
    --on-primary:           #ffffff;
    --accent-blue:          #007acc;
    
    --ink:                  #0f0f11;
    --ink-muted:            #5a5d64;
    
    --canvas:               #f5f6f9;
    --surface-1:            #ffffff;
    --surface-2:            #eef0f5;
    
    --hairline:             #d1d5db;
    --hairline-soft:        #e5e7eb;
    
    --inverse-canvas:       #000000;
    --inverse-ink:          #ffffff;
    
    --warning:              #d97706;          /* Darker amber for contrast in light theme */
    --error:                #dc2626;          /* Darker red for contrast in light theme */

    --glow-indigo:          rgba(99, 102, 241, 0.05);
    --glow-blue:            rgba(0, 122, 204, 0.05);
    --glow-cyan:            rgba(6, 182, 212, 0.05);
    --glow-electric:        rgba(96, 165, 250, 0.04);
    --glow-sapphire:        rgba(37, 99, 235, 0.04);
}

html.light body {
    background-color: var(--canvas);
    color: var(--ink);
}

html.light .bg-grid-pattern::before {
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

html.light .grid-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

html.light .sparkle-text {
    background: linear-gradient(
        to right,
        #000000 0%,
        #007acc 25%,
        #6a4cf5 50%,
        #0099ff 75%,
        #000000 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

html.light .floating-blob {
    opacity: 0.08;
}

html.light .custom-cursor-glow {
    opacity: 0.15;
}

html.light ::-webkit-scrollbar-track {
    background: var(--canvas);
}
html.light ::-webkit-scrollbar-thumb {
    background: var(--surface-2);
}
html.light ::-webkit-scrollbar-thumb:hover {
    background: var(--hairline);
}

/* ── Light Mode Card Layout Overrides ── */
html.light .stat-card,
html.light .project-grid-card,
html.light .glass-card,
html.light .panel-section,
html.light .info-panel {
    background: var(--surface-1) !important;
    border-color: var(--hairline) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    color: var(--ink) !important;
}

html.light .stat-card:hover,
html.light .project-grid-card:hover,
html.light .panel-section:hover {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 10px 30px rgba(0, 122, 204, 0.08) !important;
}

html.light .sidebar-footer {
    background-color: rgba(0, 0, 0, 0.02) !important;
    border-top: 1px solid var(--hairline) !important;
}

html.light .chat-bubble.incoming {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    color: #0f0f11 !important;
}

html.light .chat-bubble.outgoing {
    background: rgba(0, 122, 204, 0.08) !important;
    border-color: rgba(0, 122, 204, 0.25) !important;
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.04) !important;
    color: #0f0f11 !important;
}

/* ═══════════════════════════════════════════
   B2B FRONTEND REDESIGN STYLES
   ═══════════════════════════════════════════ */

/* Scroll Animations */
.mcl-animate-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--mcl-easing), transform 0.8s var(--mcl-easing);
    will-change: opacity, transform;
}

.mcl-animate-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s var(--mcl-easing), transform 0.8s var(--mcl-easing);
    will-change: opacity, transform;
}

.mcl-animated-in {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Delays */
.delay-100 { transition-delay: 0.1s !important; }
.delay-200 { transition-delay: 0.2s !important; }
.delay-300 { transition-delay: 0.3s !important; }
.delay-400 { transition-delay: 0.4s !important; }
.delay-500 { transition-delay: 0.5s !important; }

/* Testimonials Vault */
.testimonials-vault-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

@media (max-width: 991px) {
    .testimonials-vault-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .testimonials-vault-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

.testimonial-vault-card {
    background: var(--mcl-surface-card);
    border: 1px solid var(--mcl-border-solid);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-vault-card:hover {
    border-color: rgba(0, 82, 255, 0.4);
    box-shadow: 0 12px 30px rgba(0, 82, 255, 0.08);
}

.testimonial-vault-quote {
    font-size: 15px;
    line-height: 1.55;
    color: var(--mcl-text-pure);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-vault-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.testimonial-vault-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-vault-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1c1c22;
    border: 1px solid var(--mcl-border-solid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--mcl-accent-blue);
    font-size: 14px;
}

.testimonial-vault-info {
    display: flex;
    flex-direction: column;
}

.testimonial-vault-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--mcl-text-pure);
}

.testimonial-vault-role {
    font-size: 12px;
    color: var(--mcl-text-muted);
}

.testimonial-vault-proof-trigger {
    font-size: 13px;
    font-weight: 500;
    color: var(--mcl-accent-blue);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.testimonial-vault-proof-trigger:hover {
    color: var(--mcl-accent-glow);
    text-decoration: underline;
}

/* ── Cinematic Overlay: Noise & Film Grain ── */
.mcl-noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    content: "";
    opacity: 0; /* Fully disabled for a clear, grain-free look */
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ── Motion Graphics Timeline Grid Lines ── */
.mcl-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05; /* Subtly faint for a premium console vibe */
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(30, 45, 64, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(30, 45, 64, 0.1) 1px, transparent 1px);
}

/* ── Slowly Shifting Shimmering Gradient Blobs ── */
.mcl-blob-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.mcl-glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    mix-blend-mode: screen;
    animation: mcl-blob-drift 25s infinite alternate ease-in-out;
}

.mcl-glow-blob--blue {
    background: var(--mcl-accent-blue);
    width: 500px;
    height: 500px;
    top: -10%;
    left: -10%;
}

.mcl-glow-blob--glow {
    background: var(--mcl-accent-glow);
    width: 600px;
    height: 600px;
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
    animation-duration: 35s;
}

.mcl-glow-blob--electric {
    background: var(--mcl-accent-electric);
    width: 400px;
    height: 400px;
    top: 40%;
    left: 60%;
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes mcl-blob-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(100px, 80px) scale(1.15);
    }
    100% {
        transform: translate(-50px, 120px) scale(0.9);
    }
}

/* ── Glassmorphic Card (Hand-Coded High Fidelity) ── */
.mcl-glass-card {
    background: #0b0f17; /* Solid deep dark premium surface */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Fine elegant border */
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5); /* Deeper solid shadow */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.mcl-glass-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
}

/* ── Typography & Label Overrides ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--mcl-text-primary);
    font-weight: 800;
}

.mcl-badge-label {
    font-family: var(--font-accent);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ═══════════════════════════════════════════
   HOMEPAGE EXPENSIVE REDESIGN STYLES
   ═══════════════════════════════════════════ */

/* Ambient Static Blue Glows */
.ambient-blue-glow-spot {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    will-change: opacity;
}

.ambient-blue-glow-spot--1 { top: 20%; left: -10%; }
.ambient-blue-glow-spot--2 { top: 50%; right: -10%; }
.ambient-blue-glow-spot--3 { bottom: 10%; left: 10%; }

/* Grid Background */
.homepage-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* Vertical Scroll Slides System */
.mcl-vertical-scroll-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000000;
    border-bottom: 1px solid var(--mcl-border);
}

.mcl-vertical-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.mcl-vertical-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    z-index: 1;
}

.mcl-vertical-header-fixed {
    position: absolute;
    top: 50px;
    left: 8%;
    z-index: 10;
    pointer-events: none;
}

.mcl-slide-card {
    background: rgba(6, 7, 10, 0.6) !important; /* Premium Glassmorphism */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Sharp non-rounded borders */
    border-radius: 0px !important;
    padding: 160px 8% 40px; /* Reduced paddings for responsive height clearance */
    max-width: none;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    max-height: none;
    display: grid;
    grid-template-columns: 1.15fr 1.05fr;
    gap: 70px;
    align-items: center;
    box-shadow: none;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

/* Mid Slide (Slide 2) blue overrides: subtle tint by default, increases on active/hover */
.mcl-vertical-slide:nth-child(2) .mcl-slide-card {
    background: rgba(6, 7, 10, 0.75) !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
    box-shadow: inset 0 0 15px rgba(37, 99, 235, 0.05) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.mcl-vertical-slide:nth-child(2).active .mcl-slide-card,
.mcl-vertical-slide:nth-child(2) .mcl-slide-card:hover {
    border-color: rgba(37, 99, 235, 0.8) !important;
    box-shadow: 0 0 35px rgba(37, 99, 235, 0.2), inset 0 0 20px rgba(37, 99, 235, 0.1) !important;
}

.mcl-vertical-slide:nth-child(2) .mcl-slide-card .mcl-badge-label {
    color: #60a5fa !important;
}

/* Mid slide interior graph card as a blue box by default */
.mcl-vertical-slide:nth-child(2) .mcl-slide-card .mcl-premium-silver-card {
    background: rgba(37, 99, 235, 0.08) !important;
    border: 1px solid rgba(37, 99, 235, 0.4) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.95), 0 0 20px rgba(37, 99, 235, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Scales up (opens) and glows neon blue when slide is active or hovered */
.mcl-vertical-slide:nth-child(2).active .mcl-slide-card .mcl-premium-silver-card,
.mcl-vertical-slide:nth-child(2) .mcl-slide-card:hover .mcl-premium-silver-card {
    background: rgba(37, 99, 235, 0.15) !important;
    border-color: rgba(96, 165, 250, 0.7) !important;
    transform: scale(1.025);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.95), 0 0 30px rgba(37, 99, 235, 0.3) !important;
}

.mcl-slide-card:hover {
    border-color: transparent;
    box-shadow: none;
}

.mcl-slide-graphic {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.mcl-slide-graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
}

.mcl-slide-info h3 {
    font-size: clamp(24px, 3.2vw, 34px);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.mcl-slide-info p {
    font-size: 16px;
    color: var(--mcl-text-secondary);
    line-height: 1.5;
    margin-bottom: 25px;
}

@media (max-width: 810px) {
    .mcl-vertical-scroll-section {
        height: auto !important;
        overflow: visible !important;
    }
    .mcl-vertical-header-fixed {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        padding: 50px 20px 0 !important;
        pointer-events: auto;
    }
    .mcl-vertical-wrapper {
        height: auto !important;
    }
    .mcl-vertical-slide {
        position: relative !important;
        height: auto !important;
        padding: 30px 0 !important;
    }
    .mcl-slide-card {
        grid-template-columns: 1fr;
        padding: 20px 20px 40px !important;
        gap: 30px;
        height: auto !important;
    }
    .mcl-slide-graphic {
        min-height: auto;
        padding: 0;
    }
    .slide-kanban-card,
    #retentionCurvePath,
    .retention-dot,
    .slide-db-item {
        opacity: 1 !important;
        transform: none !important;
        stroke-dashoffset: 0 !important;
    }
}

/* Tool Badges for Software Marquees */
.tool-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 18px 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 12, 16, 0.4) 50%, rgba(0, 0, 0, 0.9) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.02);
}

.tool-marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: mcl-marquee-scroll 45s linear infinite;
}

.tool-marquee-track.reverse {
    animation-direction: reverse;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(15, 17, 23, 0.8) 0%, rgba(30, 32, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    margin-right: 25px;
    color: #ffffff;
    font-family: var(--font-accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.tool-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
    animation: mcl-silver-sweep 6s infinite ease-in-out;
}

.tool-badge:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 
                0 0 20px rgba(96, 165, 250, 0.18), 
                0 8px 25px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Custom CSS-Only High Fidelity Brand Software Logos */
.brand-logo-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    user-select: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.brand-logo-icon.pr { background-color: #00005c; color: #40c0ff; border: 1.5px solid #40c0ff; font-family: sans-serif; }
.brand-logo-icon.ae { background-color: #120024; color: #d880ff; border: 1.5px solid #d880ff; font-family: sans-serif; }
.brand-logo-icon.ps { background-color: #001c3d; color: #31a8ff; border: 1.5px solid #31a8ff; font-family: sans-serif; }
.brand-logo-icon.ai { background-color: #261300; color: #ff9a00; border: 1.5px solid #ff9a00; font-family: sans-serif; }
.brand-logo-icon.davinci { 
    background: linear-gradient(135deg, #ef4444 33%, #f59e0b 33% 66%, #3b82f6 66%);
    border-radius: 50%;
}
.brand-logo-icon.figma {
    background: #000;
    color: #fff;
    display: flex;
    gap: 1px;
    font-size: 9px;
    border: 1px solid #333;
}
.brand-logo-icon.blender {
    background: #ea7600;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    border-radius: 50%;
    border: 1px solid #fff;
}

/* Works & Reviews Layout for Homepage */
.homepage-works-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--mcl-border);
    position: relative;
}

.homepage-reviews-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--mcl-border);
    position: relative;
    background: rgba(13, 17, 23, 0.2);
}

.reviews-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 991px) {
    .reviews-grid-3 {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ── Pinned Slide Card Sub-Animations & Vectors ── */

/* Slide 1: Kanban Board Animations */
.slide-kanban-card {
    opacity: 0;
    transform: translateX(25px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.mcl-vertical-slide.active .slide-kanban-card {
    opacity: 1;
    transform: translateX(0);
}

.mcl-vertical-slide.active .slide-kanban-card:nth-child(1) { transition-delay: 0.1s; }
.mcl-vertical-slide.active .slide-kanban-card:nth-child(2) { transition-delay: 0.2s; }
.mcl-vertical-slide.active .slide-kanban-card:nth-child(3) { transition-delay: 0.3s; }
.mcl-vertical-slide.active .slide-kanban-card:nth-child(4) { transition-delay: 0.4s; }

/* Slide 2: SVG Retention Curve Animation */
#retentionCurvePath {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.mcl-vertical-slide.active #retentionCurvePath {
    stroke-dashoffset: 0;
}

.retention-dot {
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mcl-vertical-slide.active .retention-dot {
    opacity: 1;
    transform: scale(1);
}

.mcl-vertical-slide.active .retention-dot:nth-child(1) { transition-delay: 0.8s; }
.mcl-vertical-slide.active .retention-dot:nth-child(2) { transition-delay: 1.2s; }
.mcl-vertical-slide.active .retention-dot:nth-child(3) { transition-delay: 1.5s; }

/* Slide 3: Dashboard Status Mockup Animations */
.slide-db-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mcl-vertical-slide.active .slide-db-item {
    opacity: 1;
    transform: translateY(0);
}

.mcl-vertical-slide.active .slide-db-item:nth-child(1) { transition-delay: 0.15s; }
.mcl-vertical-slide.active .slide-db-item:nth-child(2) { transition-delay: 0.3s; }
.mcl-vertical-slide.active .slide-db-item:nth-child(3) { transition-delay: 0.45s; }

/* ── Premium Silver Glowing Card ── */
.mcl-premium-silver-card {
    background: #06070a; /* Pitch black card canvas, no glowing background box fills */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.mcl-premium-silver-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    opacity: 0.5;
    pointer-events: none;
}

.mcl-premium-silver-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.25); /* Border shines on hover */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95), 
                0 0 15px rgba(255, 255, 255, 0.05); /* Glow strictly around border */
}

@keyframes mcl-silver-sweep {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

@keyframes mcl-shimmer-loading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes subtle-glow-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(96, 165, 250, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
    50% { box-shadow: 0 0 25px rgba(96, 165, 250, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
}

.mcl-silver-shimmer-bar {
    background: linear-gradient(90deg, #d1d5db 0%, #ffffff 30%, #9ca3af 70%, #d1d5db 100%);
    background-size: 200% auto;
    animation: mcl-shimmer-loading 4s linear infinite;
}

.mcl-silver-metallic-tag {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e5e7eb;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.04);
}

/* ── Horizontal Scrolling Video & Testimonial Feed Marquees ── */
.mcl-showcase-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 25px 0;
    position: relative;
    z-index: 2;
}

.mcl-showcase-marquee::before,
.mcl-showcase-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.mcl-showcase-marquee::before {
    left: 0;
    background: linear-gradient(to right, #000 0%, transparent 100%);
}

.mcl-showcase-marquee::after {
    right: 0;
    background: linear-gradient(to left, #000 0%, transparent 100%);
}

.mcl-showcase-track {
    display: inline-flex;
    gap: 30px;
    animation: mcl-marquee-scroll 50s linear infinite;
}

.mcl-showcase-track:hover {
    animation-play-state: paused;
}

.mcl-showcase-track.reverse {
    animation-direction: reverse;
}

.mcl-showcase-track.fast {
    animation-duration: 35s;
}

/* Video Marquee Cards */
.mcl-video-marquee-card {
    width: 320px;
    flex-shrink: 0;
}

.mcl-video-marquee-card.vertical {
    width: 220px;
}

/* Reviews Ticker Styling */
.mcl-review-marquee-card {
    width: 380px;
    background: #090c12;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 24px;
    flex-shrink: 0;
    white-space: normal;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.3s ease;
}

.mcl-review-marquee-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

/* ── Blinking typing cursor for hero target ── */
.hero-target-scramble::after {
    content: '|';
    animation: mcl-cursor-blink 0.8s infinite;
    margin-left: 2px;
    color: var(--mcl-accent-electric);
    display: inline-block;
    vertical-align: baseline;
    -webkit-text-fill-color: var(--mcl-accent-electric) !important;
    text-shadow: 0 0 15px rgba(96,165,250,0.8);
}

@keyframes mcl-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ── Premium 9:16 Vertical Video Cards Overlay Styling ── */
.mcl-video-marquee-card.vertical {
    width: 220px;
    height: 391px; /* strict 9:16 layout (220 * 16 / 9) */
    flex-shrink: 0;
    position: relative;
}

.mcl-video-marquee-card.vertical .mcl-premium-silver-card {
    height: 100% !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 0px !important;
}

.mcl-video-marquee-card.vertical .mcl-video-container--vertical {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    padding-bottom: 0 !important;
}

.mcl-video-marquee-card.vertical .mcl-gallery-info,
.mcl-video-marquee-card.vertical .mcl-premium-silver-card > div:last-child {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 75%, transparent 100%) !important;
    padding: 15px 12px 12px !important;
    z-index: 2 !important;
    pointer-events: none !important;
    border-top: none !important;
}

/* ── Premium Pricing Animations & Interactions ── */
.mcl-pricing-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease, 
                background-color 0.4s ease !important;
}

/* Accentuate list points animation */
.mcl-pricing-features li {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.mcl-pricing-features li i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.mcl-pricing-card:hover .mcl-pricing-features li:hover {
    transform: translateX(6px);
    color: #ffffff;
}

.mcl-pricing-card:hover .mcl-pricing-features li:hover i {
    transform: scale(1.25) rotate(360deg);
    color: var(--mcl-accent-electric) !important;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}

/* Pulsing highlight for active pricing call-to-action button */
.mcl-pricing-card .button-primary {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mcl-pricing-card:hover .button-primary {
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

/* Shimmer overlay for pricing cards */
.mcl-pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}
.mcl-pricing-card:hover::after {
    left: 150%;
}


/* Global Marquee scrolling animation used across index, portfolio, and tools sections */
@keyframes mcl-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Timeline node active states for ScrollTrigger interactions */
.mcl-timeline-node.active {
    border-color: var(--mcl-accent-electric) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 20px var(--mcl-accent-electric), 0 0 10px #ffffff !important;
    transform: translateX(10px) scale(1.25) !important;
}

/* ── Global Video Container Classes (originally in portfolio.html) ── */
.mcl-video-container {
    position: relative;
    width: 100%;
    background-color: #000;
    overflow: hidden;
    border-bottom: 1px solid var(--mcl-border);
}

.mcl-video-container--horizontal {
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.mcl-video-container--vertical {
    padding-bottom: 177.77%; /* 9:16 Aspect Ratio */
    height: 0;
}

.mcl-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Global Testimonial Card Classes (originally in portfolio.html) ── */
.mcl-testimonial-card {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    height: 100%;
}

.mcl-testimonial-quote {
    font-size: 15px;
    line-height: 1.6;
    color: var(--mcl-text-secondary);
    font-style: italic;
    margin: 0;
    position: relative;
}

.mcl-testimonial-quote::before {
    content: '“';
    font-family: var(--font-display);
    font-size: 64px;
    color: rgba(37, 99, 235, 0.1);
    position: absolute;
    top: -30px;
    left: -15px;
    line-height: 1;
}

.mcl-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mcl-testimonial-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mcl-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mcl-bg-elevated);
    border: 1px solid var(--mcl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mcl-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mcl-testimonial-info {
    display: flex;
    flex-direction: column;
}

.mcl-testimonial-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--mcl-text-primary);
}

.mcl-testimonial-role {
    font-size: 11px;
    color: var(--mcl-text-secondary);
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mcl-testimonial-proof {
    font-family: var(--font-accent);
    font-size: 11px;
    color: var(--mcl-accent-electric);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
}

