/* ========================================
   MarcaLab — Design System & Styles v2
   Stripe-inspired animations & interactions
   ======================================== */

/* --- Design Tokens --- */
:root {
    --bg-primary: #ffffff;
    --bg-surface: #f7f7fb;
    --bg-hero: #4B30E7;
    --color-primary: #4B30E7;
    --color-primary-light: #6B5CE7;
    --color-primary-dark: #3820C7;
    --color-primary-rgb: 75, 48, 231;
    --color-secondary: #00cec9;
    --color-secondary-rgb: 0, 206, 201;
    --color-accent: #fd79a8;
    --color-gradient: linear-gradient(135deg, #4B30E7, #00cec9);
    --color-gradient-hero: linear-gradient(135deg, #4B30E7 0%, #5B45F0 40%, #3D6FF0 70%, #00cec9 100%);
    --text-primary: #0a0a23;
    --text-secondary: #6b7280;
    --text-on-primary: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(75, 48, 231, 0.1);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(var(--color-primary-rgb), 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 100px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition: 0.4s var(--ease-out);
    --transition-slow: 0.7s var(--ease-out);
}

/* =============================================
   LIVE WEB PREVIEW OVERLAY
   ============================================= */
.web-preview-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s var(--ease-out);
}

.web-preview-overlay.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.preview-header {
    height: 60px;
    background: #111;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.preview-brand #preview-logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--accent-color, #6366f1);
}

.preview-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.control-btn:hover {
    background: #333;
}

.control-btn.active {
    background: var(--accent-color, #6366f1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.btn-close-preview {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 12px;
    transition: 0.3s;
}

.btn-close-preview:hover {
    background: #ff6b81;
    transform: scale(1.05);
}

.preview-viewport {
    flex: 1;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 0;
}

.preview-dynamic-content {
    width: 100%;
    max-width: 1200px;
    background: white;
    min-height: 2000px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* View Modes */
.web-preview-overlay.mobile-mode .preview-viewport {
    padding: 20px 0;
}

.web-preview-overlay.mobile-mode .preview-dynamic-content {
    max-width: 375px;
    height: 700px;
    min-height: auto;
    border-radius: 40px;
    border: 12px solid #333;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0 auto;
    /* Scale the content if needed, but since we are building it 100% width, 
       standard media queries in the inyected style will work better. 
       However, the iframe-like feel is achieved with max-width. */
}

/* Result Mockup Styles */
.result-mockup {
    position: absolute;
    inset: 0;
    background: #f8fafc;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: scaleIn 0.5s var(--ease-spring);
}

.result-frame {
    width: 100%;
    max-width: 300px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.res-nav {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.res-logo {
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--accent-color, #4B30E7);
}

.res-burger span {
    display: block;
    width: 12px;
    height: 1.5px;
    background: #cbd5e1;
    margin: 2px 0;
}

.res-hero {
    padding: 30px 15px;
    text-align: center;
    background: #fdfdfd;
}

.res-hero h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1e293b;
}

.res-hero p {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 20px;
}

.btn-open-again {
    background: var(--accent-color, #4B30E7);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-open-again:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.res-body {
    padding: 15px;
    display: flex;
    gap: 10px;
    background: #f8fafc;
}

.res-card {
    flex: 1;
    height: 60px;
    background: white;
    border-radius: 6px;
    border: 1px solid #edf2f7;
}

.whatsapp-float-demo {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 10000;
    transition: 0.3s;
}

.whatsapp-float-demo img {
    width: 32px;
}

.whatsapp-float-demo:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Color Picker input tweak */
.color-picker {
    padding: 0 !important;
    height: 24px !important;
    width: 40px !important;
    border: none !important;
    cursor: pointer;
    vertical-align: middle;
    background: transparent !important;
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   ANIMATIONS — Stripe-inspired
   ======================================== */

/* Slide up */
.anim-slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 0.8s var(--ease-out) forwards;
}

.anim-delay-1 {
    animation-delay: 0.15s;
}

.anim-delay-2 {
    animation-delay: 0.3s;
}

.anim-delay-3 {
    animation-delay: 0.45s;
}

.anim-delay-4 {
    animation-delay: 0.7s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale in */
.anim-scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.8s var(--ease-spring) forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Float */
.anim-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.visible:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal.visible:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal.visible:nth-child(4) {
    transition-delay: 0.3s;
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #00cec9, #fd79a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   SCROLL SECTION INDICATOR
   ======================================== */
.scroll-indicator {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.15);
    border: 2px solid transparent;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
    display: block;
}

.scroll-dot.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.4);
    transform: scale(1.2);
}

.dot-label {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.scroll-dot:hover .dot-label {
    opacity: 1;
    right: 28px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-full);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--text-on-primary);
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--color-primary-rgb), 0.45);
}

.btn-white {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* ========================================
   SECTION UTILITIES
   ======================================== */
.section {
    padding: 120px 0;
    position: relative;
}

.section-alt {
    background: var(--bg-surface);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(var(--color-primary-rgb), 0.07);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.tag-light {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 10px 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand {
    color: var(--text-primary);
}

.navbar-brand span {
    color: var(--color-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.navbar.scrolled .nav-links a {
    color: var(--text-secondary);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: 8px 22px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    color: white !important;
    transition: var(--transition) !important;
}

.nav-cta:hover {
    background: white !important;
    color: var(--color-primary) !important;
    border-color: white !important;
}

.navbar.scrolled .nav-cta {
    background: var(--color-primary) !important;
    color: white !important;
    border-color: var(--color-primary) !important;
}

.navbar.scrolled .nav-cta:hover {
    background: var(--color-primary-dark) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: white;
    transition: var(--transition);
    border-radius: 2px;
}

.navbar.scrolled .hamburger span {
    background: var(--text-primary);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO — Stripe-inspired
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

/* Subtle grid pattern overlay */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

/* Gradient orbs */
.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    will-change: transform;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    top: -20%;
    right: -10%;
    background: rgba(var(--color-secondary-rgb), 0.2);
    animation: orbMove1 12s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    bottom: -15%;
    left: -5%;
    background: rgba(253, 121, 168, 0.15);
    animation: orbMove2 15s ease-in-out infinite;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    top: 30%;
    left: 40%;
    background: rgba(255, 255, 255, 0.05);
    animation: orbMove3 10s ease-in-out infinite;
}

@keyframes orbMove1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-40px, 30px) scale(1.05);
    }

    66% {
        transform: translate(20px, -20px) scale(0.95);
    }
}

@keyframes orbMove2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -40px) scale(1.1);
    }
}

@keyframes orbMove3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, 20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: white;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

/* --- Word Rotator --- */
.word-rotator {
    display: inline-block;
    position: relative;
    height: 1.2em;
    vertical-align: bottom;
    color: var(--color-secondary);
    min-width: 250px;
    margin-left: 8px;
}

.word-rotator .word {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-out);
    white-space: nowrap;
}

.word-rotator .word.active {
    opacity: 1;
    transform: translateY(0);
}

.word-rotator .word.exit {
    opacity: 0;
    transform: translateY(-20px);
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ========================================
   HERO SHOWCASE CAROUSEL
   ======================================== */
.hero-showcase {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---- Slides ---- */
.showcase-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.showcase-slide.active {
    position: relative;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Character Styles removed for a cleaner look */
.slide-character {
    display: none;
}

.ai-char-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.ai-orbit {
    transform-origin: center;
}

/* Service label */
.slide-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* Visual container for each slide */
.slide-visual {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    color: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.slide-visual:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ---- Nav dots ---- */
.showcase-dots {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    justify-content: center;
}

.showcase-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.showcase-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.showcase-dot:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   SLIDE 1: Dashboard / Analytics
   ======================================== */
.sc-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.sc-bar {
    flex: 1;
    height: 0;
    background: var(--color, #4B30E7);
    border-radius: 6px 6px 2px 2px;
    animation: barGrow 1s var(--ease-out) forwards;
    animation-delay: var(--delay, 0s);
    opacity: 0.85;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.sc-bar:hover {
    opacity: 1;
    filter: brightness(1.2);
}

@keyframes barGrow {
    0% {
        height: 0;
    }

    100% {
        height: var(--h, 50%);
    }
}

.showcase-slide:not(.active) .sc-bar {
    height: 0;
    animation: none;
}

.sc-stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sc-stat {
    text-align: center;
}

.sc-stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.sc-stat-lbl {
    font-size: 0.65rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sc-sparkline {
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.sc-sparkline svg {
    width: 100%;
    height: 100%;
}

.spark-line {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawLine 2.5s ease forwards;
    animation-delay: 0.8s;
}

.showcase-slide:not(.active) .spark-line {
    stroke-dashoffset: 500;
    animation: none;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* ========================================
   SLIDE 2: Automation
   ======================================== */
.sc-flow-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.sc-flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 12px;
    min-width: 60px;
    font-size: 0.65rem;
    opacity: 0.9;
}

.sc-flow-node.trigger {
    background: rgba(0, 230, 118, 0.2);
}

.sc-flow-node.email {
    background: rgba(75, 48, 231, 0.25);
}

.sc-flow-node.wait {
    background: rgba(255, 193, 7, 0.2);
}

.sc-flow-node.whatsapp {
    background: rgba(37, 211, 102, 0.25);
}

.sc-flow-conn {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    position: relative;
    min-width: 16px;
    border-radius: 1px;
}

.sc-flow-dot {
    position: absolute;
    top: -3px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00cec9;
    box-shadow: 0 0 10px #00cec9;
    animation: flowTravel 2.5s ease-in-out infinite;
}

@keyframes flowTravel {
    0% {
        left: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.sc-auto-stats {
    display: flex;
    gap: 8px;
}

.sc-auto-pill {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.72rem;
    text-align: center;
}

.sc-auto-pill strong {
    color: #00cec9;
    font-family: 'Space Grotesk', sans-serif;
}

/* ========================================
   SLIDE 3: Content / Social
   ======================================== */
.sc-post-card {
    border-radius: 14px;
    overflow: hidden;
}

.sc-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.sc-post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sc-post-info {
    display: flex;
    flex-direction: column;
}

.sc-post-info strong {
    font-size: 0.85rem;
    line-height: 1.2;
}

.sc-post-info span {
    font-size: 0.65rem;
    opacity: 0.5;
}

.sc-post-dots {
    margin-left: auto;
    font-size: 1.2rem;
    opacity: 0.5;
    letter-spacing: 2px;
}

.sc-post-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, rgba(253, 121, 168, 0.35), rgba(75, 48, 231, 0.4), rgba(0, 206, 201, 0.3));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.sc-post-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    animation: imageShimmer 3s ease-in-out infinite;
}

@keyframes imageShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.sc-post-play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.sc-post-play svg {
    margin-left: 3px;
}

.slide-visual:hover .sc-post-play {
    transform: scale(1.1);
}

.sc-post-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.sc-post-act {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.sc-post-act:first-child span {
    color: #fd79a8;
    font-weight: 600;
}

.sc-post-caption {
    font-size: 0.82rem;
    line-height: 1.5;
}

.sc-hashtag {
    color: #00cec9;
    font-weight: 500;
}

/* ========================================
   SLIDE 4: Campaign / Ads
   ======================================== */
.sc-camp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sc-camp-status {
    color: #00e676;
    font-size: 0.72rem;
    font-weight: 600;
}

.sc-camp-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.7;
}

.sc-camp-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.sc-camp-metric {
    text-align: center;
    padding: 12px 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sc-camp-val {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.sc-camp-lbl {
    font-size: 0.6rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sc-camp-bar-wrap {
    margin-top: 4px;
}

.sc-camp-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    opacity: 0.6;
    margin-bottom: 8px;
}

.sc-camp-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.sc-camp-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4B30E7, #00cec9);
    border-radius: 4px;
    animation: campBarFill 1.5s var(--ease-out) forwards;
    animation-delay: 0.3s;
}

.showcase-slide:not(.active) .sc-camp-bar-fill {
    width: 0;
    animation: none;
}

@keyframes campBarFill {
    to {
        width: 72%;
    }
}

.green-text {
    color: #00e676;
}

/* ========================================
   MARCALAB SANDBOX — Interactive Lab
   ======================================== */
.sandbox {
    background: #020617;
    /* Extra dark background for lab feel */
    overflow: hidden;
    padding: 100px 0;
    color: #ffffff;
}

.sandbox h2 {
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(75, 48, 231, 0.3);
}

.sandbox .section-tag {
    background: rgba(75, 48, 231, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(75, 48, 231, 0.3);
}

.sandbox p {
    color: rgba(255, 255, 255, 0.6) !important;
}

.sandbox-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

/* --- Editor (Left) --- */
.sandbox-editor-wrapper {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 5;
}

.editor-header {
    background: #1e293b;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.editor-dots {
    display: flex;
    gap: 8px;
}

.editor-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.editor-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

.editor-body {
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.editor-body pre {
    margin-bottom: 30px;
}

.code-keyword {
    color: #c678dd;
}

.code-variable {
    color: #e06c75;
}

.code-string {
    color: #98c379;
}

.code-number {
    color: #d19a66;
}

.code-function {
    color: #61afef;
}

.code-comment {
    color: #5c6370;
    font-style: italic;
}

.code-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #98c379;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
    width: 140px;
    outline: none;
    transition: var(--transition);
}

.code-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(0, 206, 201, 0.2);
}

select.code-input {
    width: auto;
    cursor: pointer;
}

.btn-run {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    transition: transform 0.3s var(--ease-out);
}

.btn-run:hover {
    transform: translateY(-2px);
    background: var(--color-secondary);
}

/* --- Display (Right) --- */
.sandbox-display {
    position: relative;
    height: 480px;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.display-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 206, 201, 0.15), transparent 60%);
    filter: blur(40px);
    opacity: 0.5;
}

/* Data Particles Flowing */
.data-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
    animation: particleFlow 2s linear infinite;
}

@keyframes particleFlow {
    0% {
        transform: translateX(-100%) translateY(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(400%) translateY(0);
        opacity: 0;
    }
}

/* Placeholder */
.placeholder-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    position: relative;
}

.scanner-line {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--color-secondary);
    box-shadow: 0 0 15px var(--color-secondary);
    animation: scannerMove 3s ease-in-out infinite;
}

@keyframes scannerMove {

    0%,
    100% {
        top: -50px;
        opacity: 0;
    }

    50% {
        top: 100px;
        opacity: 1;
    }
}

/* --- Social Media Mockup (Right) --- */
.social-mockup {
    position: relative;
    width: 320px;
    height: 540px;
    z-index: 10;
    opacity: 0;
    transform: scale(0.9) translateY(40px);
    transition: all 0.8s var(--ease-out);
    display: none;
    border-radius: 40px;
    background: #000;
    border: 8px solid #1e293b;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.social-mockup.active {
    display: block;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.mockup-frame {
    height: 100%;
    width: 100%;
}

/* Instagram Style */
.instagram-style {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #000;
}

.mockup-header {
    background: #111;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mockup-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 2px;
}

.mockup-user-info span {
    display: block;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.mockup-user-info .m-location {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.7;
}

.mockup-dots {
    color: white;
    margin-left: auto;
    cursor: default;
}

.mockup-media {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: inset 0 -120px 100px -20px rgba(0, 0, 0, 0.8), inset 0 60px 60px -20px rgba(0, 0, 0, 0.4);
}

.m-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-likes-count {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: scale(0);
}

.m-likes-count.pulse {
    animation: zoomPulse 0.5s var(--ease-out) forwards;
}

@keyframes zoomPulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.mockup-footer {
    padding: 12px 16px;
    background: #000;
}

.m-actions {
    display: flex;
    gap: 16px;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.m-caption {
    font-size: 0.85rem;
    color: #eee;
    line-height: 1.4;
}

/* TikTok Style */
.tiktok-style {
    height: 100%;
}

.tiktok-media {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: inset 0 -180px 120px -20px rgba(0, 0, 0, 0.9), inset 0 80px 80px -20px rgba(0, 0, 0, 0.4);
}

.tiktok-side-btns {
    position: absolute;
    right: 8px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.t-btn {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.4rem;
    gap: 4px;
}

.t-count {
    font-size: 0.7rem;
    font-weight: 600;
}

.tiktok-bottom-info {
    position: absolute;
    left: 12px;
    bottom: 20px;
    color: white;
    width: 70%;
}

.t-brand-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    display: block;
}

.t-caption {
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Burst Hearts Animation */
.burst-heart {
    position: absolute;
    color: #ff3040;
    font-size: 24px;
    pointer-events: none;
    z-index: 100;
    animation: heartFloat 1s var(--ease-out) forwards;
}

@keyframes heartFloat {
    0% {
        transform: scale(0.5) translate(0, 0);
        opacity: 1;
    }

    100% {
        transform: scale(1.5) translate(var(--tx), var(--ty));
        opacity: 0;
    }
}

/* Lead Notifications */
.lead-notifications {
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lead-toast {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: toastIn 0.5s var(--ease-out) forwards;
}

.lead-toast .toast-icon {
    width: 32px;
    height: 32px;
    background: #00e676;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.lead-toast .toast-content {
    flex: 1;
}

.lead-toast strong {
    display: block;
    font-size: 0.8rem;
    color: #1e293b;
}

.lead-toast span {
    font-size: 0.7rem;
    color: #64748b;
}

@keyframes toastIn {
    from {
        transform: translateX(120%);
    }

    to {
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .social-mockup {
        width: 280px;
        height: 480px;
        margin: 0 auto;
    }
}



/* ========================================
   SERVICES — Interactive Tabs + Panels
   ======================================== */
.services-showcase {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Service Tabs Row */
.service-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-surface);
    padding: 6px;
    border-radius: var(--radius-lg);
    margin-bottom: 0;
    overflow-x: auto;
}

.service-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 140px;
    text-align: left;
}

.service-tab:hover {
    background: rgba(var(--color-primary-rgb), 0.05);
}

.service-tab.active {
    background: white;
    box-shadow: var(--shadow-md);
}

.tab-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(var(--color-primary-rgb), 0.08);
    flex-shrink: 0;
    transition: var(--transition);
}

.service-tab.active .tab-icon {
    background: var(--color-gradient);
}

.tab-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
    stroke-width: 2;
    fill: none;
    transition: var(--transition);
}

.service-tab.active .tab-icon svg {
    stroke: white;
}

.tab-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tab-text strong {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.tab-text span {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* Service Panels */
.service-panels {
    position: relative;
    min-height: 400px;
}

.service-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
    background: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border: 1px solid var(--border-color);
    border-top: none;
    animation: panelFadeIn 0.5s var(--ease-out);
}

.service-panel.active {
    display: grid;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel Content */
.panel-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 14px;
    line-height: 1.3;
}

.panel-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.panel-features {
    list-style: none;
    margin-bottom: 28px;
}

.panel-features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.panel-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* Panel Visuals — Mockups */
.panel-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-mockup {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* --- Branding Mockup --- */
.mockup-branding {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.06), rgba(var(--color-secondary-rgb), 0.06));
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
}

.mockup-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-gradient);
    animation: scaleBreath 3s ease-in-out infinite;
}

@keyframes scaleBreath {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.mockup-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 60%;
}

.mockup-lines .line {
    height: 8px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 4px;
}

.mockup-lines .line.short {
    width: 60%;
}

.mockup-palette {
    display: flex;
    gap: 10px;
}

.swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.swatch:hover {
    transform: scale(1.2);
}

/* --- Web Mockup --- */
.mockup-web {
    background: white;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.browser-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
}

.browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
}

.browser-bar span:nth-child(1) {
    background: #ff5f57;
}

.browser-bar span:nth-child(2) {
    background: #febc2e;
}

.browser-bar span:nth-child(3) {
    background: #28c840;
}

.browser-content {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mock-nav {
    height: 12px;
    background: rgba(var(--color-primary-rgb), 0.08);
    border-radius: 4px;
}

.mock-hero-block {
    height: 60px;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.12), rgba(var(--color-secondary-rgb), 0.1));
    border-radius: 8px;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    flex: 1;
}

.mock-grid div {
    background: rgba(var(--color-primary-rgb), 0.05);
    border-radius: 6px;
    min-height: 32px;
}

/* --- Performance Mockup --- */
.mockup-perf {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 24px;
    gap: 14px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
    height: 120px;
}

.chart-bars .bar {
    flex: 1;
    background: rgba(var(--color-primary-rgb), 0.5);
    border-radius: 4px 4px 0 0;
    transition: height 1.2s var(--ease-out);
}

.chart-bars .bar.highlight {
    background: var(--color-gradient);
}

.chart-label {
    color: var(--color-secondary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

/* --- AI / Automation Mockup --- */
.mockup-ai {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.06), rgba(var(--color-secondary-rgb), 0.06));
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-node {
    position: absolute;
    border-radius: 50%;
    background: var(--color-gradient);
}

.ai-node.central {
    width: 48px;
    height: 48px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: pulse 2.5s ease-in-out infinite;
}

.ai-node.n1 {
    width: 24px;
    height: 24px;
    top: 20%;
    left: 25%;
    background: var(--color-secondary);
    animation: float 4s ease-in-out infinite 0.2s;
}

.ai-node.n2 {
    width: 20px;
    height: 20px;
    top: 25%;
    right: 22%;
    background: #fd79a8;
    animation: float 4s ease-in-out infinite 0.6s;
}

.ai-node.n3 {
    width: 22px;
    height: 22px;
    bottom: 25%;
    left: 30%;
    background: var(--color-secondary);
    animation: float 4s ease-in-out infinite 1s;
}

.ai-connector {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(var(--color-primary-rgb), 0.3), rgba(var(--color-secondary-rgb), 0.3));
    transform-origin: left center;
}

.ai-connector.c1 {
    width: 80px;
    top: 38%;
    left: 28%;
    transform: rotate(-15deg);
}

.ai-connector.c2 {
    width: 90px;
    top: 40%;
    right: 20%;
    transform: rotate(10deg);
}

.ai-connector.c3 {
    width: 70px;
    bottom: 35%;
    left: 32%;
    transform: rotate(20deg);
}

/* --- Video Mockup --- */
.mockup-video {
    background: linear-gradient(135deg, #0a0a23, #1a1a2e);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
}

.play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.play-btn svg {
    margin-left: 4px;
}

.play-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.video-timeline {
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.mockup-video .timeline-progress {
    height: 100%;
    width: 0%;
    background: var(--color-gradient);
    border-radius: 2px;
    animation: videoProgress 4s ease-in-out infinite;
}

@keyframes videoProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 65%;
    }

    100% {
        width: 20%;
    }
}

/* Scroll Hint */
.scroll-hint {
    text-align: center;
    padding-bottom: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {

    0%,
    100% {
        top: 6px;
        opacity: 1;
    }

    50% {
        top: 18px;
        opacity: 0.3;
    }
}

/* ========================================
   PROCESS TIMELINE
   ======================================== */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(var(--color-primary-rgb), 0.1);
}

.timeline-line .timeline-progress {
    width: 100%;
    height: 0%;
    background: var(--color-gradient);
    border-radius: 2px;
    transition: height 0.5s var(--ease-out);
}

.process-step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 32px 0;
    position: relative;
}

.step-marker {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid rgba(var(--color-primary-rgb), 0.15);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
}

.process-step.active .step-number {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.3);
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    margin-top: 4px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 480px;
}

/* ========================================
   RESULTS
   ======================================== */
.results-section {
    background: var(--color-gradient-hero);
    color: white;
}

.results-section .section-header h2 {
    color: white;
}

.results-section .section-header p {
    color: rgba(255, 255, 255, 0.75);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.result-item {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.result-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.result-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.testimonial-quote {
    color: var(--color-primary);
    margin-bottom: 16px;
    opacity: 0.4;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.75;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.author-info strong {
    display: block;
    font-size: 0.9rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ========================================
   CTA FINAL
   ======================================== */
.cta-section {
    padding: 80px 0 120px;
}

.cta-box {
    background: var(--color-gradient-hero);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: white;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.cta-box p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.cta-orb.orb-1 {
    width: 300px;
    height: 300px;
    top: -30%;
    right: -5%;
    background: rgba(0, 206, 201, 0.2);
}

.cta-orb.orb-2 {
    width: 200px;
    height: 200px;
    bottom: -20%;
    left: 10%;
    background: rgba(253, 121, 168, 0.15);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #0a0a1a;
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 14px;
}

.footer-brand span {
    color: var(--color-secondary);
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer h4 {
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul a {
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.footer ul a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-showcase {
        display: none;
    }

    .services-showcase {
        grid-template-columns: 1fr;
    }

    .service-tabs {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        position: static;
        padding-bottom: 8px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .service-tabs::-webkit-scrollbar {
        display: none;
    }

    .service-tab {
        flex-shrink: 0;
        padding: 12px 16px;
    }

    .service-tab::before {
        display: none;
    }

    .tab-text span {
        display: none;
    }

    .service-panel {
        grid-template-columns: 1fr;
    }

    .panel-visual {
        display: none;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        transition: var(--transition);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--text-primary) !important;
        font-size: 1.1rem;
    }

    .nav-cta {
        background: var(--color-primary) !important;
        color: white !important;
    }

    .hamburger {
        display: flex;
    }

    .section {
        padding: 80px 0;
    }

    .service-tab .tab-icon {
        width: 36px;
        height: 36px;
    }

    .tab-icon svg {
        width: 18px;
        height: 18px;
    }

    .service-panel {
        padding: 28px;
    }

    .results-grid {
        gap: 16px;
    }

    .result-number {
        font-size: 2.4rem;
    }

    .result-item {
        padding: 28px 16px;
    }

    .cta-box {
        padding: 50px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .services-showcase {
        gap: 20px;
    }

    .service-tabs {
        gap: 4px;
    }

    .service-tab {
        padding: 10px 12px;
    }

    .tab-text strong {
        font-size: 0.8rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .anim-slide-up,
    .anim-scale-in,
    .anim-float-card,
    .anim-toast {
        opacity: 1;
        transform: none;
    }
}