/**
 * LaneChat Landing Page Styles
 */

/* ============================================
   Variables
   ============================================ */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary: #64748B;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #06B6D4;
    --dark: #1E293B;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    color: var(--gray-700);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

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

.navbar .nav-link {
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.min-vh-75 {
    min-height: 75vh;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Chat Preview Card */
.chat-preview-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 380px;
    margin: 0 auto;
}

.chat-header {
    background: var(--gray-100);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--gray-800);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.chat-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.chat-message.bot {
    background: var(--gray-100);
    color: var(--gray-700);
    align-self: flex-start;
}

.chat-message.user {
    background: var(--primary);
    color: var(--white);
    align-self: flex-end;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.75rem 1rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    width: fit-content;
}

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

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.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(-4px); }
}

/* ============================================
   Features Section
   ============================================ */
.feature-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Soft backgrounds */
.bg-primary-soft { background: rgba(79, 70, 229, 0.1); }
.bg-success-soft { background: rgba(34, 197, 94, 0.1); }
.bg-info-soft { background: rgba(6, 182, 212, 0.1); }
.bg-warning-soft { background: rgba(245, 158, 11, 0.1); }
.bg-danger-soft { background: rgba(239, 68, 68, 0.1); }
.bg-secondary-soft { background: rgba(100, 116, 139, 0.1); }

/* ============================================
   Pricing Section
   ============================================ */
.pricing-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
}

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

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    text-align: center;
    margin-bottom: 1.5rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-price .currency {
    font-size: 1.25rem;
    vertical-align: top;
    color: var(--gray-600);
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}

.pricing-price .period {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.pricing-price .free-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--success);
}

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

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.pricing-features li i {
    flex-shrink: 0;
}

/* ============================================
   About Section
   ============================================ */
.about-card {
    text-align: center;
    padding: 2rem;
}

.about-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Stats */
.stat-card {
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   FAQ Section
   ============================================ */
.accordion-button {
    padding: 1.25rem 1.5rem;
    background: var(--white);
    color: var(--gray-800);
}

.accordion-button:not(.collapsed) {
    background: var(--gray-50);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-size: 1rem;
}

.accordion-body {
    padding: 1rem 1.5rem 1.5rem;
}

.contact-card {
    border: 1px solid var(--gray-200);
}

.contact-icon {
    opacity: 0.9;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--gray-900);
}

footer a.hover-light:hover {
    color: var(--white) !important;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

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

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

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

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

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

/* ============================================
   Animations
   ============================================ */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease forwards;
    opacity: 0;
}

.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }

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

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-lg);
    }

    .navbar-nav {
        margin-bottom: 1rem;
    }

    .navbar .d-flex {
        flex-direction: column;
        gap: 0.75rem;
    }

    .navbar .d-flex .btn {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .min-vh-75 {
        min-height: auto;
        padding: 3rem 0;
    }

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

    .pricing-price .amount {
        font-size: 2.5rem;
    }
}

/* ============================================
   Utilities
   ============================================ */
.rounded-4 {
    border-radius: var(--border-radius-lg) !important;
}

.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
