/* =============================================
   ALIFY.AI - CUSTOM STYLES
   ============================================= */

/* =============================================
   VARIABLES & BASE STYLES
   ============================================= */

:root {
    /* Colors - Alify Brand */
    --primary-color: #081d3f;
    --primary-dark: #051426;
    --primary-light: #0f2a58;
    --secondary-color: #081d3f;
    --accent-color: #05e9b8;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #081d3f 0%, #051426 100%);
    --hero-gradient: linear-gradient(135deg, #081d3f 0%, #0f2a58 50%, #051426 100%);
    --text-gradient: linear-gradient(45deg, #081d3f, #05e9b8);
    
    /* Spacing */
    --section-padding: 5rem 0;
    --card-padding: 2rem;
    --border-radius: 1rem;
    --border-radius-sm: 0.5rem;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --shadow-primary: 0 0.5rem 1rem rgba(8, 29, 63, 0.25);
    --shadow-accent: 0 0.5rem 1rem rgba(5, 233, 184, 0.25);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;
}

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-light {
    background: linear-gradient(45deg, #05e9b8, #0af3c5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   NAVIGATION
   ============================================= */

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(8, 29, 63, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 900;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Logo Styles */
.navbar-logo {
    height: 32px;
    width: auto;
    transition: var(--transition);
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.footer-logo {
    height: 24px;
    width: auto;
}

/* Navbar Button Styles */
.navbar .btn {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.95rem !important;
    font-weight: 500;
    border-radius: 8px;
}

.navbar .btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 10px rgba(8, 29, 63, 0.2);
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(8, 29, 63, 0.3);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero-section {
    background: var(--hero-gradient);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(51, 133, 255, 0.1) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes backgroundMove {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    z-index: 2;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #2c3e50 0%, #34495e 100%);
    border-radius: 2rem;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: phoneFloat 3s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-10px);
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #128c7e;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
}

.whatsapp-chat {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #075e54;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
}

.chat-header i {
    font-size: 1.5rem;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

.message {
    display: flex;
    max-width: 80%;
}

.message.received {
    justify-content: flex-start;
}

.message.sent {
    justify-content: flex-end;
    margin-left: auto;
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    animation: messageAppear 10s ease-in-out infinite;
}

.message.received .message-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 0.25rem;
}

.message.sent .message-bubble {
    background: #dcf8c6;
    color: #333;
    border-bottom-right-radius: 0.25rem;
}

.message:nth-child(1) .message-bubble { animation-delay: 0s; }
.message:nth-child(2) .message-bubble { animation-delay: 2s; }
.message:nth-child(3) .message-bubble { animation-delay: 4s; }
.message:nth-child(4) .message-bubble { animation-delay: 6s; }

@keyframes messageAppear {
    0%, 15% { 
        opacity: 0;
        transform: translateY(15px);
    }
    20%, 85% { 
        opacity: 1;
        transform: translateY(0);
    }
    90%, 100% { 
        opacity: 0;
        transform: translateY(-5px);
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) { animation-delay: 0s; }
.floating-icon:nth-child(2) { animation-delay: 2s; }
.floating-icon:nth-child(3) { animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* =============================================
   PROBLEM & SOLUTION SECTIONS
   ============================================= */

.problem-card, .solution-card {
    background: white;
    padding: var(--card-padding);
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

/* Dark background solution cards */
.bg-primary .solution-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(5, 233, 184, 0.2);
    color: white;
    transition: var(--transition);
}

.bg-primary .solution-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.problem-icon, .solution-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    background: rgba(8, 29, 63, 0.1);
    color: var(--primary-color);
}

.solution-card:hover .solution-icon {
    transform: scale(1.1);
    background: var(--accent-color);
    color: var(--primary-color);
    transition: var(--transition);
}

/* Dark background solution icons */
.bg-primary .solution-icon {
    background: rgba(5, 233, 184, 0.2);
    color: var(--accent-color);
}

.bg-primary .solution-card:hover .solution-icon {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Dark background text colors */
.bg-primary .solution-card .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.bg-primary .solution-card .text-success {
    color: var(--accent-color) !important;
}

/* Dark background pricing cards */
.bg-primary .pricing-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(5, 233, 184, 0.2);
    color: white;
}

.bg-primary .pricing-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

.bg-primary .pricing-card.featured {
    border-color: var(--accent-color);
    background: rgba(5, 233, 184, 0.1);
}

.bg-primary .pricing-card.featured:hover {
    background: rgba(5, 233, 184, 0.15);
}

.bg-primary .pricing-header {
    background: rgba(5, 233, 184, 0.1) !important;
    color: white !important;
}

.bg-primary .pricing-card.featured .pricing-header {
    background: var(--accent-color) !important;
    color: var(--primary-color) !important;
}

.bg-primary .pricing-card .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.bg-primary .pricing-card .text-success {
    color: var(--accent-color) !important;
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
}

.btn-accent:hover {
    background-color: rgba(5, 233, 184, 0.9);
    border-color: rgba(5, 233, 184, 0.9);
    color: var(--primary-color);
}

.bg-primary .popular-badge {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(5, 233, 184, 0.3);
}

/* =============================================
   HOW IT WORKS SECTION - HORIZONTAL CARDS
   ============================================= */

.step-card-horizontal {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.step-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number-horizontal {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 2rem;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

.step-card-horizontal:hover .step-number-horizontal {
    transform: scale(1.1) rotate(5deg);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.step-content p {
    margin: 0;
    line-height: 1.6;
}

/* =============================================
   HOW IT WORKS SECTION
   ============================================= */

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.25rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: var(--shadow-primary);
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* =============================================
   PRICING SECTION
   ============================================= */

.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 0;
    transition: var(--transition);
    border: 2px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
}

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

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.popular-badge {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 3rem;
    font-size: 0.875rem;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 1;
}

.pricing-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card.featured .pricing-header {
    background: var(--primary-gradient);
    color: white;
}

.price {
    margin: 1rem 0;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: 900;
}

.period {
    font-size: 1rem;
    opacity: 0.7;
}

.pricing-features {
    padding: 2rem;
    flex: 1;
}

.pricing-features ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features ul li:last-child {
    border-bottom: none;
}

.pricing-footer {
    padding: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* =============================================
   TESTIMONIALS SECTION
   ============================================= */

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.client-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.results .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.metrics {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.metric {
    text-align: center;
}

.metric strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

/* =============================================
   INTEGRATIONS SECTION
   ============================================= */

.integration-category-mini {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
}

.integration-category-mini:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.integration-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.integration-tag {
    background: rgba(8, 29, 63, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.integration-tag:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-accent);
}

.integration-tag.roadmap {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.integration-tag.roadmap:hover {
    background: var(--warning-color);
    color: white;
}

.integration-tag.developing {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
}

.integration-tag.developing:hover {
    background: var(--info-color);
    color: white;
}

/* =============================================
   PARTNERSHIPS SECTION
   ============================================= */

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.partner-logo i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.partner-logo span {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.875rem;
}

/* =============================================
   ABOUT SECTION
   ============================================= */

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.value-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.team-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.team-grid {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    gap: 2rem;
}

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

.member-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

/* =============================================
   CTA SECTION
   ============================================= */

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: ctaMove 15s ease-in-out infinite;
}

@keyframes ctaMove {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}

/* =============================================
   FOOTER
   ============================================= */

footer {
    background: #f8f9fa;
    border-top: 1px solid rgba(8, 29, 63, 0.1);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a {
    color: var(--primary-color) !important;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    background: linear-gradient(135deg, #05e9b8 0%, #081d3f 100%);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-lg {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Hero Demo Button - Green Gradient */
.btn-demo-hero {
    background: linear-gradient(135deg, #4dd4ac 0%, #3bba9c 50%, #2a9d8f 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(61, 186, 156, 0.3);
    transition: all 0.3s ease;
}

.btn-demo-hero:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(61, 186, 156, 0.4) !important;
    background: linear-gradient(135deg, #5de0ba 0%, #4dd4ac 50%, #3bba9c 100%) !important;
}

/* Button Ripple Effect - Disabled */
.btn::before {
    display: none;
}

.btn:active::before {
    display: none;
}

/* =============================================
   MODULE BADGES
   ============================================= */

.module-icon-badge {
    width: 70px;
    height: 70px;
    background: rgba(8, 29, 63, 0.1);
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.module-icon-badge-large {
    background: linear-gradient(135deg, var(--accent-color), #00d4a8);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 25px rgba(5, 233, 184, 0.3);
    flex-shrink: 0;
}

.module-content {
    padding: 0;
}

.module-screenshot-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-screenshot-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.module-screenshot-wrapper img {
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.module-screenshot-wrapper:hover img {
    transform: scale(1.02);
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 233, 184, 0.1), rgba(8, 29, 63, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.module-screenshot-wrapper:hover .screenshot-overlay {
    opacity: 1;
}

.module-row {
    position: relative;
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.module-row::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(5, 233, 184, 0.3), transparent);
}

.module-row:last-of-type::after {
    display: none;
}

.feature-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-checklist li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.feature-checklist li:hover {
    transform: translateX(5px);
}

.feature-checklist li i {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-checklist li span {
    flex: 1;
    line-height: 1.5;
}

#modulos {
    background: linear-gradient(135deg, #081d3f 0%, #0f2a58 50%, #051426 100%) !important;
}

#modulos .lead,
#modulos .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

#modulos h3,
#modulos .feature-checklist li span {
    color: #ffffff;
}

#modulos .feature-checklist .text-primary {
    color: #05e9b8 !important;
}

#modulos .module-row::after {
    background: linear-gradient(90deg, transparent, rgba(5, 233, 184, 0.2), transparent);
}

.module-row-reverse .module-content {
    text-align: left;
}

.module-row-reverse .feature-checklist li {
    flex-direction: row;
}

.module-row-reverse .feature-checklist li i {
    margin-left: 0;
    margin-right: 0.5rem;
}

@media (max-width: 991px) {
    .module-row-reverse .module-content {
        text-align: left;
    }
    
    .module-row-reverse .feature-checklist li {
        flex-direction: row;
    }
    
    .module-row-reverse .feature-checklist li i {
        margin-left: 0;
        margin-right: 0.5rem;
    }
    
    .module-content {
        padding: 0;
        margin-bottom: 2rem;
    }
    
    .module-row {
        padding: 1.5rem 0;
        margin-bottom: 0.5rem;
    }
}

/* =============================================
   UTILITIES
   ============================================= */

.text-purple {
    color: #6f42c1 !important;
}

.bg-gradient-primary {
    background: var(--primary-gradient) !important;
}

.bg-primary {
    background: var(--primary-color) !important;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Large screens */
@media (max-width: 1200px) {
    .hero-section .container {
        padding: 0 2rem;
    }
    
    .phone-frame {
        width: 250px;
        height: 500px;
    }
}

/* Medium screens */
@media (max-width: 992px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .timeline-item {
        flex-direction: column !important;
        text-align: center;
    }
    
    .timeline-content {
        width: 100% !important;
        margin: 2rem 0 0 0 !important;
        text-align: center !important;
    }
    
    .process-timeline::before {
        left: 30px;
        transform: none;
    }
    
    .timeline-number {
        left: 30px;
        transform: none;
    }
    
    .pricing-card.featured {
        transform: none;
        margin: 2rem 0;
    }
    
    .team-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* Small screens */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
        --card-padding: 1.5rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .phone-frame {
        width: 200px;
        height: 400px;
    }
    
    .floating-elements {
        display: none;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .metrics {
        justify-content: center;
        gap: 1rem;
    }
    
    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .partner-logo {
        padding: 1rem;
    }
    
    .partner-logo i {
        font-size: 2rem;
    }
    
    .value-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .phone-frame {
        width: 180px;
        height: 360px;
    }
    
    .chat-messages {
        padding: 0.5rem;
    }
    
    .message-bubble {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .pricing-header {
        padding: 1.5rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
}

/* =============================================
   ANIMATIONS & LOADING STATES
   ============================================= */

/* Fade in animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth scrolling behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.6);
    }
    
    .problem-card, .solution-card, .pricing-card, .testimonial-card {
        border: 2px solid var(--dark-color);
    }
}

/* =============================================
   FLOATING NOTIFICATIONS - WALKING CHARACTERS
   ============================================= */

.floating-notification {
    position: fixed;
    bottom: 30px;
    left: -100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-name {
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    color: #081d3f;
    font-size: 0.7rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    order: -1;
}

.notification-avatar {
    font-size: 2.5rem;
    animation: walk 0.5s steps(2) infinite, bounce 0.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

@keyframes walk {
    0%, 100% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(-1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Responsive notifications */
@media (max-width: 768px) {
    .floating-notification {
        bottom: 20px;
    }
    
    .notification-avatar {
        font-size: 2rem;
    }
    
    .notification-name {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

/* =============================================
   MESSAGE COUNTER
   ============================================= */

.message-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.counter-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(5, 233, 184, 0.2);
}

.counter-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(5, 233, 184, 0.1), transparent);
    animation: pulse-slide 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.counter-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #05e9b8, #00d4a8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    animation: icon-bounce 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(5, 233, 184, 0.3);
}

@keyframes icon-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.counter-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

.counter-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #081d3f;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.counter-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Responsive counter */
@media (max-width: 768px) {
    .message-counter {
        bottom: 15px;
        right: 15px;
    }
    
    .counter-content {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .counter-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .counter-number {
        font-size: 1.4rem;
    }
    
    .counter-label {
        font-size: 0.65rem;
    }
}

/* Print styles */
@media print {
    .navbar, .floating-elements, .btn, .floating-notification {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
}

/* =============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================= */

/* GPU acceleration for animations */
.phone-mockup,
.floating-icon,
.hero-bg,
.cta-bg {
    will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Mantener animación del teléfono principal */
    .phone-mockup,
    .phone-frame,
    .phone-mockup *,
    .phone-frame * {
        animation-duration: revert !important;
        animation-iteration-count: revert !important;
    }
    
    .floating-elements {
        display: none;
    }
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s ease-in-out infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float i {
    margin-top: 3px;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* Responsive WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 24px;
    }
}

/* =============================================
   FAQ SECTION
   ============================================= */

.accordion-faq {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(5, 233, 184, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.faq-question:hover {
    background: rgba(5, 233, 184, 0.1);
}

.faq-question-text {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.faq-icon {
    color: var(--accent-color);
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer-wrapper {
    transition: all 0.3s ease;
}

.faq-answer {
    padding: 0 2rem 1.5rem 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
}

/* Animación suave del collapse */
.faq-answer-wrapper.collapsing {
    transition: height 0.35s ease;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-question-text {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem 1.25rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .faq-icon {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .faq-question-text {
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem 1rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* =============================================
   INTEGRATIONS LOGOS SECTION
   ============================================= */

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    transition: all 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-5px);
}

.integration-logo {
    max-height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-item:hover .integration-logo {
    transform: scale(1.05);
}

/* Responsive logos grid */
@media (max-width: 992px) {
    .logos-grid {
        gap: 2.5rem;
    }
    
    .integration-logo {
        max-height: 50px;
        max-width: 130px;
    }
}

@media (max-width: 768px) {
    .logos-grid {
        gap: 2rem;
    }
    
    .integration-logo {
        max-height: 45px;
        max-width: 110px;
    }
}

@media (max-width: 576px) {
    .logos-grid {
        gap: 1.5rem;
    }
    
    .logo-item {
        min-height: 60px;
    }
    
    .integration-logo {
        max-height: 40px;
        max-width: 90px;
    }
}

/* =============================================
   PRICING CARDS MODERN
   ============================================= */

.pricing-card-modern {
    background: white;
    border-radius: 20px;
    padding: 0;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 184, 148, 0.3);
}

.pricing-card-modern.featured {
    border-color: #00b894;
    border-width: 3px;
    transform: scale(1.05);
}

.pricing-card-modern.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.popular-badge-modern {
    position: absolute;
    top: 35px;
    right: -35px;
    background: linear-gradient(135deg, #00b894, #00d4a8);
    color: white;
    padding: 5px 45px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header-modern {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #081d3f 0%, #0a2850 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card-modern.featured .pricing-header-modern {
    background: linear-gradient(135deg, #081d3f 0%, #0a2850 100%);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.price-tag {
    margin: 1.5rem 0;
}

.price-tag .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    vertical-align: top;
}

.price-tag .amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.price-tag .period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-top: 0.5rem;
}

.price-tag .amount-custom {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    display: block;
    margin: 1rem 0;
}

.plan-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.pricing-body-modern {
    padding: 2rem;
    flex: 1;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 0.75rem 0;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: #00b894;
    font-size: 1rem;
    flex-shrink: 0;
}

.features-list strong {
    color: var(--primary-color);
}

.pricing-footer-modern {
    padding: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive pricing cards */
@media (max-width: 991px) {
    .pricing-card-modern.featured {
        transform: none;
        margin: 2rem 0;
    }
    
    .pricing-card-modern.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .pricing-header-modern {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .pricing-body-modern {
        padding: 1.5rem;
    }
    
    .pricing-footer-modern {
        padding: 1.5rem;
    }
    
    .price-tag .amount {
        font-size: 3rem;
    }
    
    .plan-name {
        font-size: 1.25rem;
    }
    
    .features-list li {
        font-size: 0.9rem;
        padding: 0.65rem 0;
    }
}

@media (max-width: 576px) {
    .price-tag .amount {
        font-size: 2.5rem;
    }
    
    .features-list li {
        font-size: 0.85rem;
    }
}