/* docs/landing.css */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --accent: #3d5afe;
    --accent-hover: #2a4bf7;
    --border: #dadce0;
    --shadow: rgba(60, 64, 67, 0.08);
    --card-bg: #ffffff;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
    --bg-primary: #0f1012;
    --bg-secondary: #161719;
    --text-primary: #ececec;
    --text-secondary: #9aa0a6;
    --accent: #3d5afe;
    --accent-hover: #536dfe;
    --border: #2d2e30;
    --shadow: rgba(0, 0, 0, 0.4);
    --card-bg: #1a1b1e;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background-color 0.3s, border-color 0.3s;
}

[data-theme="dark"] header {
    background-color: rgba(15, 16, 18, 0.8);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo svg {
    color: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .sun-icon { display: none; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

.btn-cta {
    background-color: var(--accent);
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-cta:active {
    transform: translateY(0);
}

/* Sections */
section {
    padding: 100px 24px;
}

.section-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 850;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 40px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: var(--bg-secondary);
}

/* Stats Counter Section */
.stats-banner {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 48px 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Timeline/Interactive Feature Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background-color: var(--border);
}

.timeline-step {
    position: relative;
    margin-bottom: 80px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent);
    z-index: 2;
    transition: background-color 0.2s;
}

.timeline-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px var(--shadow);
}

.timeline-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.timeline-step p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Mockups inside timeline */
.mock-chat-bubble {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    font-size: 0.9rem;
    max-width: 90%;
    margin-bottom: 12px;
    position: relative;
}

.mock-selection {
    background-color: rgba(61, 90, 254, 0.25);
    border-radius: 2px;
    position: relative;
}

.mock-float-btn {
    position: absolute;
    bottom: -36px;
    left: 40px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--shadow);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mock-float-btn svg {
    color: var(--accent);
    width: 12px;
    height: 12px;
}

.mock-reply-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-context-chip {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 0.8rem;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.mock-context-chip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
}

.mock-context-chip svg {
    width: 12px;
    height: 12px;
    color: var(--text-secondary);
}

.mock-input {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.mock-proxy-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-reply-preview {
    border: 1px solid var(--border);
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    cursor: pointer;
    transition: all 0.2s;
}

.mock-reply-preview:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.mock-reply-preview svg {
    color: var(--accent);
    width: 12px;
    height: 12px;
}

.mock-message-bubble {
    background-color: var(--bg-secondary);
    border-radius: 18px;
    padding: 12px 16px;
    font-size: 0.9rem;
    align-self: flex-start;
    max-width: 80%;
}

/* Testimonial Section */
.testimonials-slider {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonial-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    min-height: 200px;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

.stars {
    color: #ffb300;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.quote-text {
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

.quote-author {
    font-weight: 700;
    font-size: 0.95rem;
}

.quote-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border);
    cursor: pointer;
    transition: background-color 0.2s;
}

.dot.active {
    background-color: var(--accent);
}

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

/* FAQ Section */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
footer {
    padding: 60px 24px;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-logo svg {
    color: var(--accent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.copyright {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive adjustments & Mobile layout overrides */
@media (max-width: 768px) {
    section {
        padding: 40px 16px;
    }
    
    /* Top Navigation: Simplified to just Logo & Theme Toggle */
    header {
        height: 60px;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border);
    }
    
    .nav-container {
        padding: 0 16px;
        justify-content: space-between;
    }
    
    header .btn-cta {
        display: none; /* Hide header CWS button on mobile */
    }

    /* Mobile Sticky Bottom Tab Bar */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 68px;
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding: 0 12px;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
    }

    [data-theme="dark"] .mobile-bottom-nav {
        background-color: rgba(15, 16, 18, 0.9);
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--text-secondary);
        font-size: 0.75rem;
        font-weight: 500;
        gap: 4px;
        flex: 1;
        background: none;
        border: none;
        cursor: pointer;
    }

    .bottom-nav-item svg {
        width: 20px;
        height: 20px;
        color: var(--text-secondary);
    }

    .bottom-nav-item.active,
    .bottom-nav-item.active svg {
        color: var(--accent);
        font-weight: 600;
    }

    .bottom-nav-item-cta {
        background-color: var(--accent);
        color: #ffffff !important;
        padding: 8px 14px;
        border-radius: 20px;
        font-weight: 600;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 4px 12px rgba(61, 90, 254, 0.3);
    }
    
    .bottom-nav-item-cta svg {
        color: #ffffff;
        width: 16px;
        height: 16px;
    }

    /* Mobile Splash Hero Section */
    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
        min-height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-mobile-app-icon {
        display: flex !important;
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, #3d5afe, #651fff);
        color: #ffffff;
        border-radius: 22px;
        align-items: center;
        justify-content: center;
        margin: 0 auto 24px;
        box-shadow: 0 10px 25px rgba(61, 90, 254, 0.4);
        animation: appIconFloat 4s ease-in-out infinite;
    }

    .hero-mobile-app-icon svg {
        width: 40px;
        height: 40px;
    }

    .hero h1 {
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        line-height: 1.25;
        margin-bottom: 16px;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 32px;
        color: var(--text-secondary);
        padding: 0 12px;
    }

    .hero-ctas {
        display: none; /* Hide standard buttons in hero; bottom CTA handles it */
    }

    .stats-banner {
        padding: 30px 16px;
    }

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

    .stat-item {
        border-bottom: 1px solid var(--border);
        padding-bottom: 16px;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* Swipeable Tab Deck */
    .timeline {
        padding-left: 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .timeline::before {
        display: none;
    }

    .mobile-step-tabs {
        display: flex;
        width: 100%;
        background-color: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 4px;
        margin-bottom: 20px;
    }

    .mobile-step-tab {
        flex: 1;
        background: none;
        border: none;
        padding: 8px 4px;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-secondary);
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.2s ease;
        text-align: center;
    }

    .mobile-step-tab.active {
        background-color: var(--card-bg);
        color: var(--accent);
        box-shadow: 0 2px 8px var(--shadow);
    }

    .timeline-step {
        margin-bottom: 0;
        display: none;
        width: 100%;
        animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .timeline-step.active {
        display: block;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-content {
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 4px 16px var(--shadow);
    }

    .timeline-step h3 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .timeline-step p {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .mock-chat-bubble, 
    .mock-reply-container, 
    .mock-proxy-content {
        margin-top: 10px;
    }

    .mock-reply-preview {
        max-width: 100%;
    }

    /* FAQ adjustments */
    .faq-item {
        padding: 18px 0;
    }

    .faq-question {
        font-size: 1rem;
    }

    /* Footer adjustments for bottom nav overlay */
    footer {
        padding-bottom: 100px;
    }
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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


