:root {
    --brand-magenta: #FF1493;
    --brand-cyan: #00FFFF;
    --brand-orange: #FFA500;
    --brand-blue: #007AFF;
    --flavia-bg: #0B081A;
}

/* === Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    scroll-behavior: smooth;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

body {
    background-color: #000;
}

main, #page, #content, .site-content {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

#hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
    position: relative;
}

/* === Atmospheric Hero Background === */
.hero-atmosphere {
    background:
        radial-gradient(ellipse 70% 55% at 62% 42%, rgba(126, 34, 206, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 25% 55%, rgba(249, 115, 22, 0.02) 0%, transparent 60%),
        radial-gradient(ellipse 45% 45% at 80% 80%, rgba(249, 115, 22, 0.01) 0%, transparent 55%),
        radial-gradient(ellipse 30% 30% at 10% 20%, rgba(147, 51, 234, 0.01) 0%, transparent 50%),
        radial-gradient(ellipse 35% 25% at 75% 15%, rgba(168, 85, 247, 0.01) 0%, transparent 55%),
        transparent;
}

/* === Technical Grid Pattern Overlay === */
.grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.grid-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(168, 85, 247, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.018) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 15%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 15%, transparent 78%);
}

/* === Neon Gradient Title === */
.neon-gradient-text {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 45%, #eab308 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter:
        drop-shadow(0 0 25px rgba(249, 115, 22, 0.35))
        drop-shadow(0 0 70px rgba(249, 115, 22, 0.15));
}

/* === Neon Box Glows === */
.neon-glow-orange {
    box-shadow:
        0 0 15px rgba(249, 115, 22, 0.35),
        0 0 50px rgba(249, 115, 22, 0.1),
        inset 0 0 20px rgba(249, 115, 22, 0.04);
}

.neon-glow-purple {
    box-shadow:
        0 0 15px rgba(168, 85, 247, 0.35),
        0 0 50px rgba(168, 85, 247, 0.1),
        inset 0 0 20px rgba(168, 85, 247, 0.04);
}

/* === Glassmorphism — Cards === */
.glass-card {
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
}

/* === Glassmorphism — Pill Tags === */
.glass-tag {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.glass-tag-orange {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.12), inset 0 0 8px rgba(249, 115, 22, 0.04);
}

.glass-tag-purple {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.12), inset 0 0 8px rgba(168, 85, 247, 0.04);
}

/* === Navigation Link Hover === */
.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.95);
}

/* === Header Pill Button === */
.pill-btn {
    border: 1.5px solid rgba(249, 115, 22, 0.5);
    border-radius: 50px;
    padding: 9px 26px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.pill-btn:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.85);
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.2);
}

/* === Hero CTA Buttons === */
.btn-primary {
    background: transparent;
    border: 1.5px solid rgba(249, 115, 22, 0.6);
    border-radius: 50px;
    padding: 14px 38px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.15);
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.95);
    box-shadow:
        0 0 30px rgba(249, 115, 22, 0.3),
        0 0 70px rgba(249, 115, 22, 0.1);
}

.btn-secondary {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: none;
    border: none;
}

.btn-secondary:hover {
    color: #f97316;
}

/* === Avatar Edge Mask === */
.avatar-mask {
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* === Countdown Timer Boxes === */
.timer-box {
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    min-width: 72px;
}

/* === Mini Bar Chart === */
.mini-bar {
    border-radius: 2px;
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#main-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    border-bottom: 1px solid transparent;
    z-index: 99999 !important;
}

/* === Header Sticky State === */
#main-header.header-sticky {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* === Floating Animations === */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(0.4deg); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out 1.2s infinite;
}

.animate-float-reverse {
    animation: float-reverse 5.5s ease-in-out 0.6s infinite;
}

.animate-float-gentle {
    animation: float-gentle 7s ease-in-out 0.3s infinite;
}

.animate-pulse-dot {
    animation: pulse-dot 2.5s ease-in-out infinite;
}

/* === Fade-in Entrance (JS-triggered) === */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    animation: fade-up 0.7s ease-out forwards;
}

.fade-up-delay-1 { animation-delay: 0.15s; }
.fade-up-delay-2 { animation-delay: 0.3s; }
.fade-up-delay-3 { animation-delay: 0.45s; }
.fade-up-delay-4 { animation-delay: 0.6s; }
.fade-up-delay-5 { animation-delay: 0.75s; }


/* ============================================
   SERVICE SECTIONS — Digital Workers
   ============================================ */

/* === Section Atmospheres === */
.atmosphere-pink {
    background:
        linear-gradient(to bottom, #000 0%, transparent 15%),
        radial-gradient(ellipse 65% 55% at 55% 42%, rgba(236, 72, 153, 0.03) 0%, transparent 68%),
        radial-gradient(ellipse 45% 45% at 25% 60%, rgba(168, 85, 247, 0.02) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 78% 78%, rgba(236, 72, 153, 0.01) 0%, transparent 50%),
        radial-gradient(ellipse 28% 22% at 12% 18%, rgba(147, 51, 234, 0.01) 0%, transparent 45%),
        transparent;
}

.atmosphere-amber {
    background:
        radial-gradient(ellipse 65% 55% at 55% 42%, rgba(245, 158, 11, 0.03) 0%, transparent 68%),
        radial-gradient(ellipse 45% 45% at 25% 60%, rgba(249, 115, 22, 0.02) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 78% 78%, rgba(245, 158, 11, 0.01) 0%, transparent 50%),
        radial-gradient(ellipse 28% 22% at 12% 18%, rgba(234, 88, 12, 0.01) 0%, transparent 45%),
        transparent;
}

.atmosphere-blue {
    background:
        radial-gradient(ellipse 65% 55% at 55% 42%, rgba(6, 182, 212, 0.03) 0%, transparent 68%),
        radial-gradient(ellipse 45% 45% at 25% 60%, rgba(59, 130, 246, 0.02) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 78% 78%, rgba(6, 182, 212, 0.01) 0%, transparent 50%),
        radial-gradient(ellipse 28% 22% at 12% 18%, rgba(37, 99, 235, 0.01) 0%, transparent 45%),
        transparent;
}

.atmosphere-emerald {
    background:
        radial-gradient(ellipse 65% 55% at 55% 42%, rgba(16, 185, 129, 0.03) 0%, transparent 68%),
        radial-gradient(ellipse 45% 45% at 25% 60%, rgba(5, 150, 105, 0.02) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 78% 78%, rgba(16, 185, 129, 0.01) 0%, transparent 50%),
        radial-gradient(ellipse 28% 22% at 12% 18%, rgba(4, 120, 87, 0.01) 0%, transparent 45%),
        transparent;
}

.atmosphere-gold {
    background:
        radial-gradient(ellipse 65% 55% at 55% 42%, rgba(234, 179, 8, 0.03) 0%, transparent 68%),
        radial-gradient(ellipse 45% 45% at 25% 60%, rgba(202, 138, 4, 0.02) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 78% 78%, rgba(234, 179, 8, 0.01) 0%, transparent 50%),
        radial-gradient(ellipse 28% 22% at 12% 18%, rgba(161, 98, 7, 0.01) 0%, transparent 45%),
        transparent;
}

.atmosphere-purple {
    background:
        radial-gradient(ellipse 65% 55% at 55% 42%, rgba(139, 92, 246, 0.03) 0%, transparent 68%),
        radial-gradient(ellipse 45% 45% at 25% 60%, rgba(124, 58, 237, 0.02) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 78% 78%, rgba(139, 92, 246, 0.01) 0%, transparent 50%),
        radial-gradient(ellipse 28% 22% at 12% 18%, rgba(109, 40, 217, 0.01) 0%, transparent 45%),
        transparent;
}

/* === Section Grid Overlay Variants === */
.grid-overlay-pink { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.grid-overlay-amber { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.grid-overlay-blue { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.grid-overlay-pink::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(236, 72, 153, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 72, 153, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(236, 72, 153, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 72, 153, 0.015) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 15%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 15%, transparent 78%);
}

.grid-overlay-amber::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(245, 158, 11, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.015) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 15%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 15%, transparent 78%);
}

.grid-overlay-blue::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(6, 182, 212, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.015) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 15%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 15%, transparent 78%);
}

.grid-overlay-emerald { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.grid-overlay-emerald::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(16, 185, 129, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.015) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 15%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 15%, transparent 78%);
}

.grid-overlay-gold { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.grid-overlay-gold::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(234, 179, 8, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 179, 8, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(234, 179, 8, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 179, 8, 0.015) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 15%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 15%, transparent 78%);
}

.grid-overlay-purple { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.grid-overlay-purple::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(139, 92, 246, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.015) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 15%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 15%, transparent 78%);
}

/* === Watermark Background Text === */
.watermark-text {
    font-size: clamp(5rem, 11vw, 13rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.025);
    white-space: nowrap;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* === Vertical Side Label === */
.vertical-label {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 0.68rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    white-space: nowrap;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.1);
}

/* === Glass Card Accent Variants === */
.glass-card-pink {
    border-color: rgba(236, 72, 153, 0.22);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.06), inset 0 0 14px rgba(236, 72, 153, 0.03);
}

.glass-card-amber {
    border-color: rgba(245, 158, 11, 0.22);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.06), inset 0 0 14px rgba(245, 158, 11, 0.03);
}

.glass-card-blue {
    border-color: rgba(6, 182, 212, 0.22);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.06), inset 0 0 14px rgba(6, 182, 212, 0.03);
}

.glass-card-emerald {
    border-color: rgba(16, 185, 129, 0.22);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.06), inset 0 0 14px rgba(16, 185, 129, 0.03);
}

.glass-card-gold {
    border-color: rgba(234, 179, 8, 0.22);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.06), inset 0 0 14px rgba(234, 179, 8, 0.03);
}

.glass-card-purple {
    border-color: rgba(139, 92, 246, 0.22);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.06), inset 0 0 14px rgba(139, 92, 246, 0.03);
}

/* === Section Character Mask === */
.avatar-mask-section {
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* === Section Vertical Fade Mask === */
.section-mask-fade {
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* === Section Feature Dot (colored per section) === */
.feature-dot-pink  { background-color: rgba(236, 72, 153, 0.8); }
.feature-dot-amber { background-color: rgba(245, 158, 11, 0.8); }
.feature-dot-blue  { background-color: rgba(6, 182, 212, 0.8); }
.feature-dot-emerald { background-color: rgba(16, 185, 129, 0.8); }
.feature-dot-gold { background-color: rgba(234, 179, 8, 0.8); }
.feature-dot-purple { background-color: rgba(139, 92, 246, 0.8); }




/* ── Mobile Menu Overlay ─────────────────── */
.menu-link {
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #ffffff;
    opacity: 0;
    transform: translateY(2rem);
    transition: all 500ms cubic-bezier(0, 0, 0.2, 1);
    transition-delay: calc(var(--stagger) * 0.1s);
}



#mobile-menu.menu-active .menu-link {
    opacity: 1;
    transform: translateY(0);
}

.menu-link:hover {
    transform: translateX(1rem);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(to right, #a855f7, #f97316);
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* ── Section Lighting & Glows ────────────── */
.glow-cloud {
    position: absolute;
    pointer-events: none;
    border-radius: 9999px;
    mix-blend-mode: screen;
    filter: blur(120px);
}



@keyframes plus-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(249, 115, 22, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(249, 115, 22, 0.4); }
}

.animate-plus-pulse {
    animation: plus-pulse 3s ease-in-out infinite;
}
/* === Dimensional Entrance Animations === */
@keyframes dimensional-in {
    0% {
        opacity: 0;
        transform: perspective(1200px) rotateX(15deg) scale(0.96) translateY(40px);
    }
    100% {
        opacity: 1;
        transform: perspective(1200px) rotateX(0deg) scale(1) translateY(0);
    }
}

.animate-reveal {
    opacity: 0;
    will-change: transform, opacity;
}

.animate-reveal.active {
    animation: dimensional-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered Delays for Choreographed Effects */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* ============================================
   WHATSAPP SIMULATOR & DEMO MODE
   ============================================ */

/* --- Phone Mockup Frame --- */
.phone-mockup {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 40px;
    border: 8px solid #1a1a1a;
    position: relative;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.dash-layout-inactive {
    pointer-events: none !important;
    user-select: none !important;
}

.desktop-dot {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.desktop-dot:hover {
    transform: scale(1.2);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1a1a1a;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 100;
}

/* --- WhatsApp Chat Interface --- */
.wa-chat {
    flex: 1;
    min-height: 0; /* Required: constrains flex children so .wa-body can scroll */
    overflow: hidden;
    background-color: #e5ddd5;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    display: flex;
    flex-direction: column;
    position: relative;
}

.wa-header {
    background: #075e54;
    padding: 30px 15px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    z-index: 10;
    flex-shrink: 0; /* Never collapse */
}

.wa-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
}

.wa-status {
    font-size: 10px;
    opacity: 0.8;
}

.wa-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    min-height: 0; /* Crucial for flex scrolling */
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.wa-body::-webkit-scrollbar { 
    width: 4px;
}
.wa-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.wa-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    animation: msgIn 0.3s ease-out forwards;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-msg-left {
    align-self: flex-start;
    background: white;
    color: #333;
    border-top-left-radius: 2px;
}

.wa-msg-right {
    align-self: flex-end;
    background: #dcf8c6;
    color: #333;
    border-top-right-radius: 2px;
}

.wa-msg-time {
    font-size: 9px;
    opacity: 0.5;
    text-align: right;
    margin-top: 4px;
}

.wa-footer {
    background: #f0f0f0;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0; /* Keep it anchored at the bottom */
}

.wa-input-pill {
    flex: 1;
    background: white;
    border-radius: 20px;
    height: 35px;
}

/* --- Interactive WhatsApp Buttons --- */
.wa-btn-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.wa-action-btn {
    background: white;
    color: #0084ff;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background 0.2s;
}

.wa-action-btn:hover { background: #f9f9f9; }

/* --- Demo Mode Transitions --- */
.mockup-container {
    z-index: 60;
    will-change: transform;
}

.mockup-fullscreen {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-width: none !important;
    aspect-ratio: unset !important;
    width: 360px !important;
    height: 640px !important;
    z-index: 1000 !important;
}

.demo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4); /* Increased opacity for better UI separation */
    backdrop-filter: blur(8px); /* Deeper blur for focus */
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.close-demo {
    position: absolute;
    top: -10px;
    right: -50px; /* Positioned outside and separated */
    width: 44px;
    height: 44px;
    background: #4b5563; /* Gray color (gray-600) */
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mockup-fullscreen .close-demo {
    opacity: 1;
    transform: scale(1);
}

.close-demo:hover {
    background: #374151; /* Darker gray on hover */
    transform: scale(1.1);
}

.text-slide-right {
    transform: translateX(40px); /* Subtle slide */
    opacity: 1 !important; /* Strictly visible */
    pointer-events: auto;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   DESKTOP DASHBOARD MOCKUP & DEMO
   ============================================ */

/* --- Dashboard Container (FLIP target) --- */
.dashboard-container {
    z-index: 60;
    will-change: transform;
}

.dashboard-fullscreen {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-width: none !important;
    aspect-ratio: unset !important;
    width: min(1080px, 92vw) !important;
    height: min(680px, 85vh) !important;
    z-index: 1000 !important;
}

/* --- Desktop Window Chrome --- */
.desktop-mockup {
    width: 100%;
    height: 100%;
    background: #1e1e2e;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow:
        0 25px 60px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.desktop-titlebar {
    height: 38px;
    background: #181825;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 8px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.desktop-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.desktop-dot--red    { background: #ff5f57; }
.desktop-dot--yellow { background: #febc2e; }
.desktop-dot--green  { background: #28c840; }

.desktop-titlebar-text {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* --- Dashboard Layout --- */
.dash-layout {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
}

/* Sidebar */
.dash-sidebar {
    width: 200px;
    background: #11111b;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 16px 0;
    overflow-y: auto;
}

.dash-sidebar-logo {
    padding: 0 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-sidebar-logo i {
    font-size: 18px;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.dash-nav-item:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.03);
}

.dash-nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Main Content Area */
.dash-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dash-topbar {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.dash-topbar-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.dash-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-topbar-badge {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.dash-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

/* Panel switching */
.dash-panel {
    display: none;
}

.dash-panel.active {
    display: block;
}

.dash-content::-webkit-scrollbar { width: 4px; }
.dash-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

/* Stats Row */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.dash-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px;
}

.dash-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 6px;
}

.dash-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.dash-stat-delta {
    font-size: 10px;
    font-weight: 600;
    margin-top: 4px;
}

/* Data Table */
.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table th {
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-table td {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dash-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.dash-table-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
}

.dash-table-status--confirmed {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.dash-table-status--pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.dash-table-status--cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Close button for dashboard (inherits .close-demo styles, override position) */
.close-demo-dash {
    position: absolute;
    top: -18px;
    right: -52px;
    width: 44px;
    height: 44px;
    background: #4b5563;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dashboard-fullscreen .close-demo-dash {
    opacity: 1;
    transform: scale(1);
}

.close-demo-dash:hover {
    background: #374151;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .dashboard-fullscreen {
        width: 95vw !important;
        height: 70vh !important;
    }

    .dash-sidebar {
        width: 48px;
        padding: 12px 0;
    }

    .dash-sidebar-logo span,
    .dash-nav-item span {
        display: none;
    }

    .dash-nav-item {
        justify-content: center;
        padding: 10px;
    }

    .dash-stats {
        grid-template-columns: 1fr;
    }

    .close-demo-dash {
        right: 0;
        top: -48px;
    }
}

/* --- Hero Avatar Mirror Effect --- */
.hero-avatar-mirror {
    transform: scaleX(-1);
}

@media (max-width: 768px) {
    .mockup-fullscreen {
        width: 300px !important;
        height: 533px !important;
    }
    .close-demo {
        right: -10px; /* Closer to mockup on mobile to ensure visibility */
        top: -40px;
    }
}
#hero-livia-image {
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 98%);
    mask-image: linear-gradient(to bottom, black 75%, transparent 98%);
}

/* --- Integration Section (Livia EXACT Clone for Chiara) --- */
.integration-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    color: white; 
    opacity: 0.4;
    filter: grayscale(100%);
}

.integration-icon {
    transition: all 0.5s ease;
    fill: currentColor;
}

.integration-text {
    transition: all 0.5s ease;
    font-size: 1rem; /* text-base */
    font-weight: 700; /* font-bold */
    letter-spacing: -0.025em; /* tracking-tight */
}

@media (min-width: 768px) {
    .integration-text {
        font-size: 1.25rem; /* text-xl */
    }
}

.integration-item:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

/* Specific Brand Reveals & Glows (Icon Only) */
.hover-whatsapp:hover .integration-icon { color: #25D366; filter: drop-shadow(0 0 15px rgba(37, 211, 102, 0.6)); }
.hover-gcalendar:hover .integration-icon { color: #4285F4; filter: drop-shadow(0 0 15px rgba(66, 133, 244, 0.6)); }
.hover-stripe:hover .integration-icon { color: #635BFF; filter: drop-shadow(0 0 15px rgba(99, 91, 255, 0.6)); }
.hover-hubspot:hover .integration-icon { color: #FF7A59; filter: drop-shadow(0 0 15px rgba(255, 122, 89, 0.6)); }
.hover-revo:hover .integration-icon { color: var(--brand-blue); filter: drop-shadow(0 0 15px rgba(0, 122, 255, 0.6)); }




/* ============================================
   PRAEDIA — Asset Management & Data Analysis
   ============================================ */

.text-gradient-emerald {
    background: linear-gradient(to right, #50C878, #00FFFF, #ADFF2F, #50C878);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-flow 8s linear infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(80, 200, 120, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
    border-color: rgba(80, 200, 120, 0.4);
    box-shadow: 0 0 30px rgba(80, 200, 120, 0.15);
    transform: translateY(-5px);
}

.glow-emerald:hover {
    filter: drop-shadow(0 0 8px rgba(80, 200, 120, 0.8));
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 40s linear infinite;
}

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.animate-bounce-slow {
    animation: bounce-slow 4s ease-in-out infinite;
}

/* ── Custom Scrollbar ── */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(80, 200, 120, 0.2);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(80, 200, 120, 0.4);
}

/* ── Text Reveal Animation ── */
.text-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.text-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === Video Controls & Extensions Blocker === */
video::-webkit-media-controls, video::-webkit-media-controls-play-button, video::-webkit-media-controls-start-playback-button, video::-webkit-media-controls-overlay-play-button, video::-webkit-media-controls-panel { display: none !important; -webkit-appearance: none; }
#skip-button, .custom-button { display: none !important; pointer-events: none !important; opacity: 0 !important; z-index: -1 !important; }
#detach-button-host, .opera-gx-video-popout, div[id^="opera-gx-"], div[class*="video-detach"], .video-popout-overlay { display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; z-index: -2147483648 !important; transform: scale(0) !important; position: absolute !important; left: -9999px !important; width: 0 !important; height: 0 !important; }
#detach-button-host, div[id^="detach-button-host"], div[style*="--opera-video-toolbar"] { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; width: 0 !important; height: 0 !important; z-index: -9999 !important; }
