/* =============================================
   LANDING PAGE STYLES
   assets/css/landing.css
   ============================================= */

:root {
    --primary-color: #3b82f6;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --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;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-900);
    border-color: var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

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

.hero {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-light) 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-900);
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.stat {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 5px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

/* Chat Preview */
.hero-visual {
    position: relative;
}

.chat-preview {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: slideInUp 0.8s ease-out;
}

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

.chat-preview-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
}

.chat-preview-messages {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--gray-50);
}

.preview-message {
    display: flex;
    gap: 8px;
    animation: slideInMessage 0.5s ease-out;
}

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

.preview-message.own {
    justify-content: flex-end;
}

.preview-message.other .preview-user {
    color: var(--gray-600);
}

.preview-user {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.preview-text {
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    max-width: 200px;
}

.preview-message.own .preview-text {
    background: var(--primary-color);
    color: white;
}

/* =============================================
   FEATURES SECTION
   ============================================= */

.features {
    padding: 100px 20px;
    background: white;
}

.features h2,
.how-it-works h2,
.pricing h2,
.faq h2,
.trust h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--gray-900);
    margin: 0 0 20px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.1rem;
    margin: 0 0 50px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    background: var(--gray-50);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 10px 0;
}

.feature-card p {
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

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

.how-it-works {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 280px;
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.3rem;
    color: var(--gray-900);
    margin: 0 0 15px 0;
}

.step p {
    color: var(--gray-600);
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.step-image {
    margin-top: 20px;
}

.icon-large {
    font-size: 3.5rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

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

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

.pricing {
    padding: 100px 20px;
    background: white;
}

.pricing-table {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pricing-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.pricing-row.header {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
}

.pricing-cell {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    text-align: center;
}

.pricing-row.header .pricing-cell {
    border-bottom: none;
}

.pricing-row:last-child .pricing-cell {
    border-bottom: none;
}

.pricing-row:nth-child(even) {
    background: var(--gray-50);
}

.pricing-row.highlight {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
}

.pricing-row.highlight .pricing-cell {
    border-bottom: none;
    font-weight: 600;
}

.popular {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--warning-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.pricing-note {
    text-align: center;
    margin-top: 30px;
    color: var(--gray-600);
    font-size: 1rem;
}

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

.faq {
    padding: 100px 20px;
    background: var(--gray-50);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.faq-item h4 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin: 0 0 12px 0;
}

.faq-item p {
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

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

.cta {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
    color: white;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin: 0 0 20px 0;
}

.cta-content p {
    font-size: 1.1rem;
    margin: 0 0 40px 0;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cta .btn-outline {
    border-color: white;
    color: white;
}

.cta .btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* =============================================
   TRUST SECTION
   ============================================= */

.trust {
    padding: 100px 20px;
    background: white;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.trust-item h4 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin: 0 0 10px 0;
}

.trust-item p {
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

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

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .features h2,
    .how-it-works h2,
    .pricing h2,
    .faq h2,
    .trust h2,
    .cta-content h2 {
        font-size: 1.8rem;
    }

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

    .pricing-row.header {
        display: none;
    }

    .pricing-row {
        position: relative;
        padding: 15px 0;
        gap: 20px;
    }

    .pricing-cell {
        border-bottom: none;
        padding: 10px;
    }

    .pricing-cell::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-600);
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta .btn-lg {
        width: 100%;
    }
}