/* ===================================
   CSS Variables & Design System
   =================================== */
:root {
    /* Colors - Botiffy Brand Palette */
    --primary-500: #1fc4a9;
    /* Botiffy Teal */
    --primary-600: #12a6ca;
    /* Botiffy Blue-Teal */
    --primary-700: #03666c;
    /* Botiffy Dark Teal */
    --secondary-500: #1cbeb0;
    /* Botiffy Bright Accent */
    --secondary-600: #0e8c95;

    --accent-cyan: #22d3ee;
    --accent-purple: #12a6ca;
    /* Reused brand color */
    --accent-orange: #fb923c;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1fc4a9 0%, #12a6ca 100%);
    --gradient-secondary: linear-gradient(135deg, #1cbeb0 0%, #03666c 100%);
    --gradient-accent: linear-gradient(135deg, #1fc4a9 0%, #22d3ee 100%);
    --gradient-warm: linear-gradient(135deg, #12a6ca 0%, #1fc4a9 100%);

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Dark Mode Colors */
    --dark-bg: #0a0a0f;
    --dark-surface: #16161d;
    --dark-surface-elevated: #1e1e28;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', var(--font-primary);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-bg);
    color: var(--gray-100);
    line-height: 1.6;
    overflow-x: hidden;
    /* Keep to prevent horizontal scroll */
    overflow-y: auto;
    /* Explicitly allow vertical scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-lg);
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-300);
    max-width: 700px;
}

.section-header.center {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-header.center .section-description {
    margin: 0 auto;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--dark-surface-elevated);
    color: white;
    border: 2px solid var(--gray-700);
}

.btn-secondary:hover {
    border-color: var(--primary-500);
    background: var(--dark-surface);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--primary-500);
    background: rgba(99, 102, 241, 0.1);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
}

.logo-icon {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-300);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}


/* ===================================
   Dropdown Styles
   =================================== */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--dark-surface-elevated);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-lg);
    min-width: 220px;
    padding: 0.75rem;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Arrow indicator for dropdown */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--dark-surface-elevated);
    border-top: 1px solid var(--gray-800);
    border-left: 1px solid var(--gray-800);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-link {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    color: var(--gray-300);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-align: left;
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-500);
    padding-left: 1.25rem;
}

@media (max-width: 768px) {
    .nav-item {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .nav-actions .btn {
        display: none;
    }

    .nav-dropdown {
        position: static;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: center;
        /* Align items inside the column block to center */
        gap: 0.5rem;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .dropdown-link {
        text-align: center !important;
        width: 100%;
        padding-left: 0;
    }

    .dropdown-link:hover {
        padding-left: 0;
    }

    .nav-item.active .nav-dropdown {
        display: flex;
    }
}



.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark-surface);
        flex-direction: column;
        padding: var(--spacing-xl);
        gap: var(--spacing-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-base);
        border-bottom: 1px solid var(--gray-800);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-secondary);
    bottom: -10%;
    left: -10%;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--gradient-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-500);
    margin-bottom: var(--spacing-lg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-300);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--gray-800);
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-300);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-800);
}

/* Hero Visual - Chat Preview (WhatsApp Style) */
.hero-visual {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.chat-preview {
    position: relative;
    max-width: 440px;
    /* Increased width */
    margin: 0 auto;
}

.chat-window {
    /*background: #efeae2;*/
    /* WhatsApp background color */
    background-image: url("images/ts7vuoswhwf41.jpg");
    /* WhatsApp Doodle Pattern */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--primary-500);
    /* Border color from logo */
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 600px;
    /* Increased height */
    transform: translateZ(0);
}

.chat-header {
    background: #008069;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.chat-back {
    color: white;
    cursor: pointer;
    margin-right: -5px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #ccc;
    flex-shrink: 0;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: normal;
}

.chat-name {
    font-size: 16px;
    font-weight: 500;
    color: white;
    margin-bottom: 2px;
}

.chat-status {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.chat-actions {
    display: flex;
    color: white;
    gap: 15px;
}

.chat-messages {
    flex: 1;
    padding: 10px 20px;
    /* Reduced padding used in WA */
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    background-color: transparent;
    /* Pattern is on container */
}

/* Scrollbar specific for chat */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.message-container {
    display: flex;
    width: 100%;
    margin-bottom: 8px;
    /* Slight gap between bubbles */
}

.message-container.incoming {
    justify-content: flex-start;
}

.message-container.outgoing {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 6px 7px 8px 9px;
    border-radius: 7.5px;
    font-size: 14.2px;
    line-height: 19px;
    color: #111b21;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, .13);
    word-wrap: break-word;
}

.incoming .message-bubble {
    background: #ffffff;
    border-top-left-radius: 0;
}

.incoming .message-bubble::before {
    content: "";
    position: absolute;
    top: 0;
    left: -6px;
    width: 8px;
    height: 13px;
    background: white;
    clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.outgoing .message-bubble {
    background: #d9fdd3;
    border-top-right-radius: 0;
}

.outgoing .message-bubble::before {
    content: "";
    position: absolute;
    top: 0;
    right: -8px;
    width: 8px;
    height: 13px;
    background: #d9fdd3;
    clip-path: polygon(0 0, 0 100%, 100% 0);
}

.message-meta {
    float: right;
    margin-left: 10px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 15px;
}

.message-time {
    font-size: 11px;
    color: #667781;
    line-height: 15px;
}

.message-check {
    color: #53bdeb;
    /* Blue read ticks */
    display: block;
}

.chat-input-area {
    min-height: 62px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    gap: 8px;
    z-index: 10;
}

.chat-input-icon {
    color: #54656f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.chat-input {
    flex: 1;
    padding: 9px 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 15px;
    background: #ffffff;
    color: #111b21;
}

.chat-input::placeholder {
    color: #54656f;
}

/* Animations */
.message-container {
    animation: messageSlide 0.3s ease-out forwards;
    opacity: 0;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fake link styling for text that looks like a link but isn't clickable */
.fake-link {
    color: #0066cc !important;
    text-decoration: underline !important;
    cursor: default;
    font-weight: 400;
}

.message-bubble .fake-link {
    color: #0066cc !important;
    text-decoration: underline !important;
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .hero-stats {
        flex-wrap: wrap;
    }
}

/* ===================================
   Platforms Section
   =================================== */
.platforms {
    padding: var(--spacing-3xl) 0;
    background: var(--dark-surface);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.platform-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--dark-surface-elevated);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-800);
    transition: all var(--transition-base);
}

.platform-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-500);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.platform-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all var(--transition-base);
}

.platform-card:hover .platform-icon {
    transform: scale(1.1) rotate(5deg);
}

.platform-icon.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.platform-icon.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
    color: white;
}

.platform-icon.instagram {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
    color: white;
}

.platform-icon.web {
    background: var(--gradient-accent);
    color: white;
}

.platform-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.platform-card p {
    color: var(--gray-200);
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: var(--spacing-3xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    padding: var(--spacing-xl);
    background: var(--dark-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-800);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--primary-500);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-500);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.feature-card>p {
    color: var(--gray-300);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--gray-300);
    font-size: 0.9375rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--primary-500);
    font-weight: bold;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Integrations Section
   =================================== */
.integrations {
    padding: var(--spacing-3xl) 0;
    background: var(--dark-surface);
}

.integration-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.benefit-item h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.benefit-item p {
    color: var(--gray-200);
}

.integration-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
}

.logo-item {
    padding: var(--spacing-lg);
    background: var(--dark-surface-elevated);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-lg);
    text-align: center;
    font-weight: 600;
    color: var(--gray-300);
    transition: all var(--transition-base);
}

.logo-item:hover {
    border-color: var(--primary-500);
    color: white;
    transform: translateY(-4px);
}

/* ===================================
   Demo Section
   =================================== */
.demo {
    padding: var(--spacing-3xl) 0;
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.demo-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.demo-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--gray-300);
}

.demo-feature svg {
    color: var(--primary-500);
    flex-shrink: 0;
}

.demo-visual {
    background: var(--dark-surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-800);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.demo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    color: var(--gray-500);
}

.demo-placeholder svg {
    opacity: 0.5;
}

@media (max-width: 968px) {
    .demo-content {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Pricing Section
   =================================== */
.pricing {
    padding: var(--spacing-3xl) 0;
    background: var(--dark-surface);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    padding: var(--spacing-2xl);
    background: var(--dark-surface-elevated);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-500);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.pricing-card.featured {
    border-color: var(--primary-500);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, var(--dark-surface-elevated) 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.pricing-header h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.pricing-description {
    color: var(--gray-300);
}

.pricing-price {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-300);
}

.amount {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.amount.custom {
    font-size: 2rem;
}

.period {
    font-size: 1.125rem;
    color: var(--gray-300);
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--gray-300);
}

.pricing-features svg {
    color: var(--primary-500);
    flex-shrink: 0;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* ===================================
   FAQ Section
   =================================== */
.faq {
    padding: var(--spacing-3xl) 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background: var(--dark-surface);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--gray-700);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all var(--transition-base);
}

.faq-question:hover {
    color: var(--primary-500);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--gray-300);
    line-height: 1.7;
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    padding: var(--spacing-3xl) 0;
    background: var(--dark-surface);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-3xl);
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    position: relative;
}

.cta-actions .btn-primary {
    background: white;
    color: var(--primary-600);
}

.cta-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.cta-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cta-note {
    font-size: 0.875rem;
    opacity: 0.9;
    position: relative;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-bg);
    border-top: 1px solid var(--gray-800);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    margin-bottom: var(--spacing-md);
}

.footer-tagline {
    color: var(--gray-300);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--dark-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-200);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-xl);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-column a {
    color: var(--gray-300);
    font-size: 0.9375rem;
    transition: all var(--transition-base);
}

.footer-column a:hover {
    color: var(--primary-500);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--gray-800);
    color: var(--gray-300);
    font-size: 0.875rem;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Animations & Utilities
   =================================== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(90deg, var(--gray-800) 0%, var(--gray-700) 50%, var(--gray-800) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    [data-animate] {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease-out;
    }

    [data-animate].visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Logo SVG Styles
   =================================== */
.images/logo-svg {
    height: 40px;
    width: auto;
    display: block;
}

.footer-logo .images/logo-svg {
    height: 36px;
}

/* ===================================
   Platform Badge
   =================================== */
.platform-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-warm);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
}

/* ===================================
   Comparison Table Section
   =================================== */
.comparison {
    padding: var(--spacing-3xl) 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    background: var(--dark-surface);
    border: 1px solid var(--gray-800);
    box-shadow: var(--shadow-xl);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.comparison-table thead {
    background: var(--dark-surface-elevated);
}

.comparison-table th {
    padding: var(--spacing-lg);
    text-align: left;
    font-weight: 700;
    color: white;
    border-bottom: 2px solid var(--gray-800);
}

.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) {
    text-align: center;
}

.comparison-table th:first-child {
    border-top-left-radius: var(--radius-xl);
}

.comparison-table th:last-child {
    border-top-right-radius: var(--radius-xl);
}

.table-header-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.5rem 1rem;
    background: transparent;
    /* Removed gradient background */
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.comparison-table td {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-800);
    color: var(--gray-300);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.highlight-column {
    background: rgba(99, 102, 241, 0.1);
    font-weight: 600;
    color: white;
}

.comparison-table .check {
    color: #10b981;
    font-weight: bold;
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.comparison-table .cross {
    color: #ef4444;
    font-weight: bold;
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.comparison-table .partial {
    color: #f59e0b;
    font-weight: bold;
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

@media (max-width: 968px) {
    .comparison-table {
        font-size: 0.875rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--spacing-md);
    }
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    padding: var(--spacing-3xl) 0;
    background: var(--dark-surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.testimonial-card {
    padding: var(--spacing-xl);
    background: var(--dark-surface-elevated);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--primary-500);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-500);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.testimonial-rating {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-800);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.author-name {
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* ===================================
   Stats Section
   =================================== */
.stats-section {
    padding: var(--spacing-3xl) 0;
    background: var(--dark-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--dark-surface);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-500);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.stat-description {
    color: var(--gray-400);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        padding: var(--spacing-lg);
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* ===================================
   Image Icon Styles
   =================================== */
.platform-icon img {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.platform-card:hover .platform-icon img {
    transform: scale(1.1);
}

.feature-illustration {
    margin-bottom: var(--spacing-lg);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-illustration img {
    transform: scale(1.05);
}

/* Social Media Collage - Styled like feature-logos-grid */
.social-media-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 10px 0;
    margin-bottom: var(--spacing-md);
}

.social-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon-wrapper img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
}

.feature-card:hover .social-icon-wrapper img {
    opacity: 1;
    transform: scale(1.1);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.pricing-features li img,
.demo-feature img {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Integration Logos Grid */
/* Feature Card Logos Grid */
.feature-logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 10px 0;
    margin-bottom: var(--spacing-md);
}

.feature-logos-grid img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    /* Full color by default */
    filter: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
}

.feature-card:hover .feature-logos-grid img {
    opacity: 1;
    transform: scale(1.1);
}

/* Main Integration Section Logos */
.integration-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.logo-item {
    background: var(--dark-surface);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-lg);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Full color by default as requested */
    filter: none;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.logo-item:hover {
    border-color: var(--primary-500);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: var(--dark-surface-elevated);
}

.logo-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Chat Input Styling */
.chat-input-area {
    padding: var(--spacing-md);
    border-top: 1px solid var(--gray-800);
    display: flex;
    gap: var(--spacing-xs);
    background: var(--dark-surface);
}

.chat-input {
    flex: 1;
    background: var(--dark-bg);
    border: 1px solid var(--gray-700);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--gray-200);
    font-size: 0.875rem;
    outline: none;
    font-family: var(--font-primary);
}

.chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* ===================================
   Responsive Layout Addons (Gaps fixes)
   =================================== */
html {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-divider {
        display: none;
    }

    .stat-card {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .chat-preview {
        max-width: 100%;
    }

    .chat-window {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        align-items: center !important;
        /* Centrar todo el bloque de inicio */
    }

    .nav-item {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .nav-dropdown {
        display: none !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav-item.active .nav-dropdown {
        display: flex !important;
    }

    .dropdown-link {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        padding: 0.75rem 0 !important;
        margin: 0 !important;
    }
}

@media (max-width: 768px) {
    .nav-dropdown {
        position: static !important;
        transform: none !important;
        /* Desactivar traslaciones de escritorio */
        display: none !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav-item.active .nav-dropdown {
        display: flex !important;
    }

    .dropdown-link {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        padding: 0.75rem 0 !important;
        margin: 0 !important;
    }
}

/* ===================================
   Floating Chatbot Widget
   =================================== */
/* ===================================
   Floating Chatbot Widget (Premium GIF Style)
   =================================== */
.chatbot-bubble-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-bubble-container:hover {
    transform: translateY(-5px);
}

/* Ultra-Premium Cyan Gradient Bubble */
.speech-bubble {
    background: linear-gradient(135deg, #48D1CC 0%, #00a8a8 100%);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 20px 20px 4px 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    box-shadow:
        0 15px 30px rgba(72, 209, 204, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    max-width: 220px;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    pointer-events: none;

    /* Animations */
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    animation:
        bubblePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.2s forwards,
        floating 4s ease-in-out infinite 1.8s;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 0;
    width: 24px;
    height: 24px;
    background: #00a8a8;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    border-bottom-right-radius: 6px;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 24px 24px 2px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.chatbot-bubble {
    width: 180px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chatbot-bubble img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.chatbot-bubble .chatbot-icon {
    display: none;
    width: 32px;
    height: 32px;
    animation: none;
    opacity: 1;
    filter: none;
}


.chatbot-bubble-container:hover .chatbot-bubble {
    transform: scale(1.05);
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bubblePop {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


.chatbot-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 440px;
    height: 600px;
    background: rgba(18, 18, 28, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(31, 196, 169, 0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: bottom right;
}

.chatbot-window.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.chatbot-header .title-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #101017;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chatbot-header .title {
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.chatbot-header .subtitle {
    font-size: 0.75rem;
    color: var(--primary-500);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.chatbot-header .subtitle::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.chatbot-header .close-btn {
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.chatbot-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.chatbot-msg-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    animation: fadeInUpMsg 0.3s ease-out;
}

@keyframes fadeInUpMsg {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-msg-wrapper.user {
    flex-direction: row-reverse;
}

.chatbot-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #101017;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chatbot-msg {
    max-width: 80%;
    padding: 12px 16px;
    font-size: 0.80rem;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.chatbot-msg.bot {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gray-100);
    border-radius: 16px 16px 16px 4px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.chatbot-msg.user {
    background: var(--gradient-primary);
    color: white;
    border-radius: 16px 16px 4px 16px;
}

.chatbot-input-area {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    align-items: center;
}

.chatbot-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 12px 16px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

.chatbot-input:focus {
    border-color: var(--primary-500);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(31, 196, 169, 0.15);
}

.chatbot-send {
    background: var(--primary-500);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(31, 196, 169, 0.3);
}

.chatbot-send:hover {
    background: #22d3ee;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(31, 196, 169, 0.5);
}

.chatbot-send svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-left: 2px;
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100% - 32px);
        height: min(600px, calc(100vh - 120px));
        right: 16px;
        bottom: 90px;
        border-radius: 20px;
    }

    .chatbot-bubble-container {
        bottom: 20px;
        right: 20px;
    }

    .speech-bubble {
        display: none !important;
    }

    .chatbot-bubble {
        width: 60px;
        height: 60px;
        background: var(--dark-surface-elevated, #16161d);
        border-radius: 50%;
        box-shadow: 0 8px 32px rgba(31, 196, 169, 0.4), inset 0 0 0 2px var(--primary-500);
    }

    .chatbot-bubble .chatbot-gif {
        display: none;
    }

    .chatbot-bubble .chatbot-icon {
        display: block;
    }
}