/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors matching the React app */
    --primary: hsl(239, 84%, 67%);
    --secondary: hsl(45, 93%, 47%);
    --success: hsl(159, 71%, 41%);
    --destructive: hsl(0, 84%, 60%);
    --muted: hsl(240, 1.96%, 90%);
    --foreground: hsl(240, 10%, 3.9%);
    --background: hsl(0, 0%, 100%);
    --card: hsl(0, 0%, 100%);
    --border: hsl(240, 5.9%, 90%);
    --input: hsl(240, 5.9%, 90%);
    --ring: hsl(239, 84%, 67%);
    
    /* Gradients */
    --hero-gradient: linear-gradient(135deg, var(--primary), hsl(239, 84%, 57%));
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--foreground);
    background-color: hsl(210, 40%, 98%);
    overflow-x: hidden;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: hsl(239, 84%, 57%);
    transform: translateY(-1px);
    box-shadow: var(--card-shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary);
    color: hsl(240, 10%, 3.9%);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: hsl(45, 93%, 42%);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
    border-width: 2px;
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: hsl(240, 10%, 3.9%);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.25);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-full {
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.btn-link:hover {
    color: hsl(239, 84%, 57%);
    text-decoration: underline;
}

/* Navigation */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Logo styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo-container:hover {
    opacity: 0.8;
}

/* Logo styles - to be replaced */

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    user-select: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: hsl(240, 3.9%, 46.1%);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--foreground);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

/* Hero Section */
.hero {
    position: relative;
    background: var(--hero-gradient);
    color: white;
    padding: 6rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.trial-info {
    font-size: 0.875rem;
    opacity: 0.75;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: hsl(240, 3.9%, 46.1%);
    max-width: 36rem;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: white;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
}

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

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-icon.primary {
    background: hsla(239, 84%, 67%, 0.1);
    color: var(--primary);
}

.feature-icon.secondary {
    background: hsla(45, 93%, 47%, 0.1);
    color: var(--secondary);
}

.feature-icon.success {
    background: hsla(159, 71%, 41%, 0.1);
    color: var(--success);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.feature-description {
    color: hsl(240, 3.9%, 46.1%);
}

/* Demo Section */
.demo {
    padding: 5rem 0;
    background: white;
}

.chat-demo {
    max-width: 56rem;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.chat-details h3 {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.status {
    font-size: 0.875rem;
    color: var(--success);
}

.plan-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(240, 3.9%, 46.1%);
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--success);
    border-radius: 50%;
}

.chat-messages {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 24rem;
    overflow-y: auto;
}

.message {
    max-width: 75%;
}

.user-message {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 1rem 1rem 0.25rem 1rem;
    font-size: 0.875rem;
}

.ai-message {
    align-self: flex-start;
    background: white;
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 1rem 1rem 1rem 0.25rem;
    font-size: 0.875rem;
}

.ai-message p {
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.strategy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.strategy-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.strategy-list i {
    color: var(--success);
    font-size: 0.75rem;
    margin-top: 0.125rem;
}

.sources {
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.sources p {
    font-size: 0.75rem;
    color: hsl(240, 3.9%, 46.1%);
    margin: 0;
}

.chat-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
}

.input-container {
    flex: 1;
    position: relative;
}

.input-container input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid hsl(240, 5.9%, 90%);
    border-radius: 2rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsla(239, 84%, 67%, 0.2);
}

.attachment-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: hsl(240, 3.9%, 46.1%);
    cursor: pointer;
    transition: color 0.2s;
}

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

.send-btn {
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.send-btn:hover {
    background: hsl(239, 84%, 57%);
    transform: scale(1.05);
}

.chat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: hsl(240, 3.9%, 46.1%);
    border-top: 1px solid var(--border);
}

.response-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    background: hsl(210, 40%, 98%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 60rem;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.popular-badge {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--foreground);
}

.period {
    font-size: 1rem;
    color: hsl(240, 3.9%, 46.1%);
    margin-left: 0.25rem;
}

.contact {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.plan-description {
    color: hsl(240, 3.9%, 46.1%);
    margin-bottom: 1.5rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--foreground);
}

.plan-features i {
    color: var(--success);
    font-size: 0.875rem;
}

/* Community Section */
.community {
    padding: 5rem 0;
    background: white;
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-number.primary {
    color: var(--primary);
}

.stat-number.secondary {
    color: var(--secondary);
}

.stat-label {
    color: hsl(240, 3.9%, 46.1%);
    font-size: 0.875rem;
}

.join-card {
    background: var(--hero-gradient);
    color: white;
    padding: 2rem;
    border-radius: 0.5rem;
}

.join-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.join-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

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

.join-card .btn-secondary:hover {
    background: hsl(0, 0%, 95%);
}

.qa-examples {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qa-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.qa-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.user-avatar.primary {
    background: hsla(239, 84%, 67%, 0.1);
    color: var(--primary);
}

.user-avatar.secondary {
    background: hsla(45, 93%, 47%, 0.1);
    color: var(--secondary);
}

.user-info h4 {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.badge {
    background: var(--secondary);
    color: hsl(240, 10%, 3.9%);
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge.outline {
    background: transparent;
    border: 1px solid var(--border);
    color: hsl(240, 3.9%, 46.1%);
}

.qa-card h5 {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.qa-card p {
    color: hsl(240, 3.9%, 46.1%);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.qa-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: hsl(240, 3.9%, 46.1%);
}

.qa-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-all {
    text-align: center;
}

/* Footer */
.footer {
    background: hsl(240, 10%, 3.9%);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-main {
    max-width: 20rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    color: hsl(240, 5%, 84%);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: hsl(240, 5%, 64.9%);
    font-size: 1.25rem;
    transition: color 0.2s;
}

.social-link:hover {
    color: white;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: hsl(240, 5%, 84%);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid hsl(240, 3.7%, 15.9%);
}

.copyright {
    color: hsl(240, 5%, 64.9%);
    font-size: 0.875rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: hsl(240, 5%, 64.9%);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 28rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: hsl(240, 3.9%, 46.1%);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background: var(--muted);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsla(239, 84%, 67%, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu.active {
        display: flex;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 16rem;
        margin: 0 auto 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .community-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}