/* ========================================
   CSS Variables & Reset
   ======================================== */

:root {
    /* Colors - Dark Theme with Green Palette */
    --primary-green: #2dd647;
    --primary-green-dark: #24b038;
    --primary-green-light: #5de66d;
    --accent-green: #6EE7B7;
    --accent-emerald: #2dd647;
    --accent-teal: #14B8A6;
    --dark-bg: #000000;
    --dark-card: #0A0A0A;
    --dark-elevated: #141414;

    /* Neutrals - Dark Theme */
    --white: #ffffff;
    --gray-50: #1A1A1A;
    --gray-100: #374151;
    --gray-200: #4B5563;
    --gray-300: #6B7280;
    --gray-400: #9CA3AF;
    --gray-500: #D1D5DB;
    --gray-600: #E5E7EB;
    --gray-700: #F3F4F6;
    --gray-800: #F9FAFB;
    --gray-900: #FFFFFF;

    /* Text colors for dark theme */
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;
    --text-dark: #1F2937;

    /* Gradients - Green Theme */
    --gradient-primary: linear-gradient(135deg, #2dd647 0%, #24b038 100%);
    --gradient-accent: linear-gradient(135deg, #5de66d 0%, #2dd647 100%);

    /* 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);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

a, button {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-tap-highlight-color: transparent;
}

button:focus,
a:focus {
    outline: none;
}

input:focus,
textarea:focus {
    outline: none;
}

button:active,
a:active {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(45, 214, 71, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(93, 230, 109, 0.05) 0px, transparent 50%);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(45, 214, 71, 0.12);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
    border-bottom: 2px solid rgba(45, 214, 71, 0.25);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-image {
    height: 45px;
    width: auto;
    display: block;
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    transition: all var(--transition-base);
}

/* ========================================
   Buttons
   ======================================== */

button {
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
    font-weight: 600;
    transition: all var(--transition-base);
}

.cta-button,
.primary-button {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: none;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.3px;
}

.cta-button:hover,
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.primary-button.large {
    padding: 1.125rem 2.25rem;
    font-size: 1.25rem;
}

.secondary-button {
    background: transparent;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.secondary-button:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.tertiary-button {
    background: var(--dark-card);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--gray-200);
}

.tertiary-button.large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.tertiary-button:hover {
    border-color: var(--primary-green);
    background: var(--gray-50);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

@media (min-width: 769px) {
    .hero-container {
        margin-top: 3rem;
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(45, 214, 71, 0.1) 0%, rgba(45, 214, 71, 0.1) 100%);
    border: 1px solid rgba(45, 214, 71, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

.hero-description {
    font-size: 1.375rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--gray-200);
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ========================================
   Chat Preview
   ======================================== */

.hero-visual {
    animation: fadeInRight 0.8s ease 0.2s backwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-preview {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.12);
    overflow: hidden;
    border: none;
    height: auto;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #075E54;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
    background-image: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=100&h=100&fit=crop');
    background-size: cover;
    background-position: center;
}

.chat-info {
    flex: 1;
}

.chat-name {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.chat-messages {
    padding: var(--spacing-lg);
    background: var(--gray-50) url('sfondo_wa.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    height: 380px;
    min-height: 380px;
    max-height: 380px;
}

.message {
    display: flex;
    gap: var(--spacing-sm);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    display: none;
}

.message-content {
    background: #FFFFFF;
    padding: 6px 7px 8px 9px;
    border-radius: 7.5px;
    max-width: 80%;
    box-shadow: 0 1px 0.5px rgba(16, 185, 129, 0.08);
    color: #303030;
    font-size: 14.2px;
    line-height: 19px;
    border: none;
}

.user-message .message-content {
    background: #DCF8C6;
    color: #303030;
    border: none;
}

/* WhatsApp-style message tails */
.message-content::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.bot-message .message-content {
    position: relative;
    margin-left: 0;
}

.bot-message .message-content::before {
    left: -8px;
    top: 0;
    border-width: 0 8px 8px 0;
    border-color: transparent #FFFFFF transparent transparent;
}

.user-message .message-content {
    position: relative;
    margin-right: 0;
}

.user-message .message-content::before {
    right: -8px;
    top: 0;
    border-width: 8px 8px 0 0;
    border-color: #DCF8C6 transparent transparent transparent;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 12px;
    background: #FFFFFF;
    border-radius: 7.5px;
    width: fit-content;
    box-shadow: 0 1px 0.5px rgba(16, 185, 129, 0.08);
    border: none;
    align-self: flex-end;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-400);
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* ========================================
   Sections Common Styles
   ======================================== */

section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-3xl);
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(45, 214, 71, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    border: 1px solid rgba(45, 214, 71, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   Features Section
   ======================================== */

.features {
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--dark-card);
    padding: var(--spacing-lg);
    border-radius: 16px;
    border: 1px solid rgba(45, 214, 71, 0.15);
    transition: all var(--transition-base);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.1);
    border-color: rgba(45, 214, 71, 0.3);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
    transition: all var(--transition-base);
}

.feature-icon.purple,
.feature-icon.blue,
.feature-icon.green,
.feature-icon.orange,
.feature-icon.pink,
.feature-icon.cyan {
    background: var(--gradient-accent);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.15);
}

.feature-card:hover .feature-icon {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.2);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* ========================================
   How It Works Section
   ======================================== */

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    border-radius: 12px;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    margin-top: 40px;
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    width: 10px;
    height: 10px;
    background: var(--primary-green);
    border-radius: 50%;
}

/* ========================================
   Benefits Section
   ======================================== */

.benefits {
    background: var(--gray-50);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.benefits-text {
    text-align: left;
}

.benefit-list {
    margin-top: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.benefit-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(8, 145, 178, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Stats Card */
.stats-card {
    background: var(--dark-card);
    border-radius: 16px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
    border: 2px solid rgba(45, 214, 71, 0.15);
}

.stats-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--gray-200);
}

.stats-card-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stats-period {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.stat-box {
    background: var(--gray-50);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 10px;
    border: 1px solid var(--gray-200);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.stat-trend {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 0.375rem;
}

.stat-trend.positive {
    color: #10b981;
}

.stat-trend.negative {
    color: #ef4444;
}

/* ========================================
   Use Cases Section
   ======================================== */

.use-cases {
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
}

.use-cases-grid {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: var(--spacing-md) 0;
    padding-inline: max(var(--spacing-lg), calc((100vw - 1200px) / 2));
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.use-cases-grid::-webkit-scrollbar {
    display: none;
}

.use-case-card {
    background: var(--dark-card);
    border-radius: 20px;
    border: 1px solid rgba(45, 214, 71, 0.15);
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
    flex: 0 0 380px;
    scroll-snap-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.1);
    border-color: rgba(45, 214, 71, 0.15);
}

.use-case-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(45, 214, 71, 0.08);
}

.use-case-content {
    padding: var(--spacing-md) var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.use-case-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.15);
}

.use-case-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.use-case-content > p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    flex: 1;
    font-size: 0.9375rem;
}

.use-case-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.use-case-features li {
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding-left: 1.5rem;
    position: relative;
}

.use-case-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
}

/* Carousel hint animations */
@keyframes arrowLeft {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-3px);
    }
}

@keyframes arrowRight {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(3px);
    }
}

/* Carousel hint */
.carousel-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: var(--spacing-lg);
    font-weight: 500;
}

.carousel-hint .arrow-left {
    display: inline-block;
    animation: arrowLeft 3.5s ease-in-out infinite;
}

.carousel-hint .arrow-right {
    display: inline-block;
    animation: arrowRight 3.5s ease-in-out infinite;
}

.carousel-hint .hint-text {
    display: inline-block;
}

/* Carousel Navigation */
.carousel-navigation {
    display: none;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--dark-card);
    border: 1px solid rgba(45, 214, 71, 0.3);
    color: var(--primary-green);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.carousel-btn:hover {
    background: rgba(45, 214, 71, 0.1);
    border-color: var(--primary-green);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

/* Show carousel hint on mobile and tablet for use-cases */
.use-cases .carousel-hint {
    display: flex;
}

/* Hide carousel hint on large screens for use-cases (grid layout) */
@media (min-width: 1180px) {
    .use-cases .carousel-hint {
        display: none;
    }
}

/* Show carousel hint only on mobile for features */
.features .carousel-hint {
    display: none;
}

@media (max-width: 768px) {
    .features .carousel-hint {
        display: flex;
    }
}

/* Show carousel navigation buttons only on tablet */
@media (min-width: 769px) and (max-width: 1179px) {
    .carousel-navigation {
        display: flex;
    }
}

@media (max-width: 768px) {
    .use-case-card {
        flex: 0 0 300px;
    }
}

@media (min-width: 1180px) {
    .use-cases {
        overflow: visible;
    }

    .use-cases-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: var(--spacing-xl);
        overflow-x: visible;
        overflow-y: visible;
        scroll-snap-type: none;
        padding: 0;
        padding-inline: 0;
        width: 100%;
        margin-left: 0;
    }

    .use-case-card {
        flex: none;
        scroll-snap-align: none;
        width: 100%;
    }

    .use-cases::after {
        display: none;
    }
}

/* ========================================
   Testimonials Section
   ======================================== */

.testimonials {
    background: var(--gray-50);
    padding: var(--spacing-3xl) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.testimonial-card {
    background: var(--dark-card);
    padding: var(--spacing-xl);
    border-radius: 16px;
    border: 2px solid rgba(45, 214, 71, 0.15);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.08);
    border-color: rgba(45, 214, 71, 0.2);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--spacing-md);
    color: #fbbf24;
}

.testimonial-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

/* ========================================
   Pricing Section
   ======================================== */

.pricing {
    padding: var(--spacing-3xl) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--dark-card);
    padding: var(--spacing-lg);
    border-radius: 20px;
    border: 1px solid rgba(45, 214, 71, 0.15);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.1);
}

.pricing-card.featured {
    border-color: var(--primary-green);
    border-width: 2px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.12);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.12);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.pricing-price {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--gray-200);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    vertical-align: top;
}

.price-amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price-period {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.price-custom {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.pricing-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-green);
}

.pricing-button {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.0625rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.pricing-button.primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.pricing-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.15);
}

.pricing-button.secondary {
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.pricing-button.secondary:hover {
    background: rgba(45, 214, 71, 0.05);
    transform: translateY(-2px);
}

/* ========================================
   FAQ Section
   ======================================== */

.faq {
    background: var(--gray-50);
    padding: var(--spacing-3xl) 0;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 2px solid var(--gray-200);
    padding: var(--spacing-lg) 0;
    cursor: pointer;
    transition: all var(--transition-base);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    padding-left: var(--spacing-sm);
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding-left: var(--spacing-md);
}

.faq-item h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.faq-item:hover h3::before {
    height: 120%;
    background: var(--gradient-accent);
}

.faq-item h3::after {
    content: '+';
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-green);
    line-height: 1;
    transition: transform var(--transition-base);
    flex-shrink: 0;
    margin-left: var(--spacing-md);
}

.faq-item.active h3::after {
    content: '−';
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: var(--spacing-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all var(--transition-slow);
}

.faq-item.active p {
    max-height: 500px;
    opacity: 1;
    margin-top: var(--spacing-sm);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    padding: var(--spacing-3xl) 0;
}

.cta-card {
    /* background: var(--gradient-primary); */
    /* border-radius: 24px; */
    padding: var(--spacing-3xl);
    position: relative;
    overflow: hidden;
    /* box-shadow: 0 20px 60px rgba(16, 185, 129, 0.25); */
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 12px;
    color: var(--white);
    backdrop-filter: blur(10px);
    /* border: 2px solid var(--primary-green); */
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.cta-content > p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.cta-feature svg {
    flex-shrink: 0;
    color: var(--primary-green);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.cta-trust {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
}

.cta-trust p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--dark-elevated);
    color: var(--text-secondary);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    border-top: 1px solid rgba(45, 214, 71, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: all var(--transition-base);
}

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

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-column a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-800);
    text-align: center;
    color: var(--gray-500);
}

.footer-links {
    margin-top: var(--spacing-sm);
}

.footer-links a {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #5de66d;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .hero-visual {
        order: -1;
    }

    .benefits-content {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    .step-connector {
        width: 2px;
        height: 60px;
        margin: 0 auto;
        transform: rotate(0deg);
    }

    .step-connector::after {
        right: -4px;
        top: auto;
        bottom: -6px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body {
        position: static;
    }

    .navbar {
        height: 70px;
        min-height: 70px;
        max-height: 70px;
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        z-index: 9999;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transition: transform 0.3s ease;
    }

    .navbar.nav-hidden {
        transform: translateY(-100%);
    }

    .nav-container {
        height: 100%;
        padding: 0 var(--spacing-lg);
        align-items: center;
    }

    .logo {
        align-items: center;
    }

    .logo-image {
        height: 36px;
    }

    .hamburger {
        display: flex;
    }

    .cta-button {
        display: none;
    }

    .hero-title {
        font-size: 2.75rem;
        line-height: 1.15;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta button {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .hero-stats {
        flex-direction: row;
        gap: var(--spacing-sm);
        flex-wrap: nowrap;
        justify-content: center;
    }

    .stat {
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .benefits .section-header {
        margin-bottom: var(--spacing-md);
    }

    .features {
        overflow: hidden;
    }

    .features-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: var(--spacing-md);
        padding: var(--spacing-md) var(--spacing-lg);
        margin: 0 calc(-1 * var(--spacing-lg));
    }

    .features-grid::-webkit-scrollbar {
        display: none;
    }

    .feature-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        max-width: 380px;
    }

    .stats-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .cta-card {
        padding: 0;
    }

    .cta-content {
        max-width: 100%;
        padding: 0;
    }

    .cta-content h2 {
        font-size: 1.75rem;
        white-space: normal;
        hyphens: none;
    }

    .cta-content > p {
        max-width: 100%;
        font-size: 1.125rem;
    }

    .cta-features {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons button {
        width: 100%;
        justify-content: center;
        min-height: 52px;
    }

    .primary-button,
    .secondary-button,
    .tertiary-button {
        min-height: 48px;
        padding: 1rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .chat-preview {
        height: auto;
    }

    .chat-messages {
        /* min-height: 250px; */
        /* max-height: 350px; */
    }

    .message-content {
        max-width: 90%;
    }
}

@media (max-width: 438px) {
    .chat-messages {
        height: 420px;
        min-height: 420px;
        max-height: 420px;
    }
}

/* ========================================
   Contact Modal
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--dark-card);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.18);
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(45, 214, 71, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    color: var(--primary-green);
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-lg) 0 var(--spacing-lg);
}

.modal-content > p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 1rem;
    padding: 0 var(--spacing-lg) var(--spacing-md) var(--spacing-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.form-fields-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    overflow-y: auto;
    flex: 1;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--dark-elevated);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .primary-button {
    width: 100%;
    justify-content: center;
    flex-shrink: 0;
    margin: var(--spacing-lg);
    margin-top: var(--spacing-md);
    width: calc(100% - var(--spacing-lg) * 2);
}

@media (max-width: 480px) {
    .modal-content h2 {
        font-size: 1.5rem;
        padding: var(--spacing-md) var(--spacing-md) 0 var(--spacing-md);
    }

    .modal-content > p {
        padding: 0 var(--spacing-md) var(--spacing-sm) var(--spacing-md);
    }

    .form-fields-container {
        padding: var(--spacing-md);
    }

    .contact-form .primary-button {
        margin: var(--spacing-md);
        margin-top: var(--spacing-sm);
        width: calc(100% - var(--spacing-md) * 2);
    }
}
