/* MooChatAI - Main Styles */

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary: #7C3AED;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --white: #FFFFFF;
    --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;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --radius: 8px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

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

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    color: var(--primary);
}

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-actions {
    display: flex;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content .badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--gray-900);
}

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

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
}

/* Chat Widget Demo */
.chat-widget-demo {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 380px;
    margin-left: auto;
}

.chat-header {
    background: var(--gradient);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chat-name {
    font-weight: 600;
}

.chat-status {
    font-size: 12px;
    opacity: 0.8;
}

.chat-messages {
    padding: 20px;
    min-height: 280px;
}

.message {
    margin-bottom: 16px;
}

.message p {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 85%;
}

.message.bot p {
    background: var(--gray-100);
    border-bottom-left-radius: 4px;
}

.message.user p {
    background: var(--primary);
    color: var(--white);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.product-cards {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.mini-product {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 12px;
    text-align: center;
    flex: 1;
}

.mini-product-img {
    font-size: 32px;
    margin-bottom: 8px;
}

.mini-product-name {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.mini-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.chat-input {
    display: flex;
    padding: 12px 16px;
    border-top: 1px solid var(--gray-200);
    gap: 10px;
}

.chat-input input {
    flex: 1;
    border: 1px solid var(--gray-300);
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
}

.chat-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
}

/* Logos Section */
.logos-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-100);
    text-align: center;
}

.logos-section p {
    color: var(--gray-400);
    font-size: 14px;
    margin-bottom: 20px;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.logos span {
    color: var(--gray-400);
    font-size: 16px;
    font-weight: 500;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-500);
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-600);
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--gray-50);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.step {
    text-align: center;
    max-width: 280px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step p {
    color: var(--gray-600);
}

.step-arrow {
    font-size: 24px;
    color: var(--gray-300);
}

/* Pricing Preview */
.pricing-preview {
    padding: 100px 0;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--gray-900);
}

.price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--gray-500);
}

.pricing-features {
    list-style: none;
    margin: 24px 0;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--gray-600);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 24px;
    color: var(--gray-400);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--gray-600);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    margin-top: 12px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 14px;
}

/* Pricing Page Specific */
.pricing-header-section {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.pricing-header-section h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-header-section p {
    font-size: 18px;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-100);
    padding: 8px 16px;
    border-radius: 50px;
}

.toggle-label {
    font-weight: 500;
    color: var(--gray-600);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-300);
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .toggle-slider {
    background: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.save-badge {
    background: var(--success);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 8px;
}

.pricing-section {
    padding: 40px 0 100px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card-full {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
}

.pricing-card-full:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card-full.featured {
    border-color: var(--primary);
}

.popular-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 40px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-card-header {
    padding: 32px;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-card-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-description {
    color: var(--gray-500);
    margin-bottom: 16px;
}

.pricing-amount {
    margin-bottom: 8px;
}

.price-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--gray-900);
}

.price-period {
    font-size: 16px;
    color: var(--gray-500);
}

.yearly-note {
    font-size: 13px;
    color: var(--gray-400);
}

.pricing-card-body {
    padding: 32px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-list .check {
    color: var(--success);
    font-weight: 700;
}

.feature-list .x {
    color: var(--gray-300);
}

.feature-list .excluded {
    color: var(--gray-400);
}

.pricing-card-footer {
    padding: 0 32px 32px;
}

/* Comparison Table */
.comparison-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.comparison-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.comparison-table th {
    background: var(--gray-50);
    font-weight: 600;
}

.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) {
    text-align: center;
}

/* Login & Dashboard */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: 20px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px;
    width: 100%;
    max-width: 420px;
}

.auth-card .logo {
    justify-content: center;
    margin-bottom: 32px;
}

.auth-card h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-500);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--gray-900);
    color: var(--white);
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .logo {
    padding: 10px 0 30px;
    border-bottom: 1px solid var(--gray-700);
    margin-bottom: 20px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-400);
    text-decoration: none;
    border-radius: var(--radius);
    margin-bottom: 4px;
    transition: all 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--gray-800);
    color: var(--white);
}

.sidebar-nav .icon {
    font-size: 18px;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    background: var(--gray-50);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.stat-card .label {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-card .change {
    font-size: 13px;
    margin-top: 8px;
}

.stat-card .change.positive {
    color: var(--success);
}

.stat-card .change.negative {
    color: var(--danger);
}

/* Data Tables */
.data-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.data-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-card-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 24px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.data-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background: var(--gray-50);
}

.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

.badge-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-status.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid,
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--gray-700);
        margin: 5px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

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

    .steps {
        flex-direction: column;
    }

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

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

    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

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