/* ===== CSS Variables ===== */
:root {
    --primary: #6C5CE7;
    --primary-light: #EDE8FF;
    --primary-dark: #4A3ABF;
    --green: #4CD080;
    --yellow: #F5C842;
    --coral: #FF6B6B;
    --blue: #74B9FF;
    --orange: #FF9F43;
    --pink: #FF7EB3;
    --bg: #F9F9FB;
    --card: #FFFFFF;
    --text-primary: #1A1A2E;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #EEEDF2;
}

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

/* ===== Body ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== Navigation ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
    color: white !important;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-links .nav-cta {
    color: white !important;
}

/* Hamburger button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.mobile-menu.open {
    display: flex;
}
.mobile-menu a {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-menu a:hover {
    color: var(--primary);
}
.mobile-menu .nav-cta {
    margin-top: 16px;
    font-size: 16px;
    color: white !important;
}
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-menu-close svg {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.btn-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary);
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s;
}

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

/* ===== Hero ===== */
.hero {
    padding: 160px 24px 100px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

/* ===== Hero Visual / Phone Mockup ===== */
.hero-visual {
    margin-top: 60px;
    position: relative;
}

.phone-mockup {
    max-width: 320px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 80px rgba(108, 92, 231, 0.15), 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.phone-screen {
    background: var(--bg);
    border-radius: 30px;
    padding: 32px 20px;
    min-height: 400px;
}

.demo-message {
    background: var(--card);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    text-align: left;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.demo-message .source {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.demo-extracted {
    background: var(--primary-light);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(108, 92, 231, 0.15);
    text-align: left;
}

.demo-extracted .label {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-extracted .item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.demo-extracted .item .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.step {
    background: var(--card);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Features ===== */
.features {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--card);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border);
}

.feature-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Social Proof / CTA Block ===== */
.social-proof {
    padding: 80px 24px;
    text-align: center;
}

.tagline-block {
    max-width: 700px;
    margin: 0 auto;
    background: var(--primary);
    border-radius: 32px;
    padding: 60px 40px;
    color: white;
}

.tagline-block h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.tagline-block p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 32px;
}

/* ===== Footer ===== */
footer {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

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

/* ===== Page Content (privacy, terms) ===== */
.page-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}
.page-content h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.page-content h2 { font-size: 20px; font-weight: 700; margin-top: 36px; margin-bottom: 12px; }
.page-content p, .page-content li { font-size: 15px; color: #374151; margin-bottom: 12px; line-height: 1.7; }
.page-content ul { padding-left: 20px; margin-bottom: 16px; }
.page-content a { color: #6C5CE7; }

/* ===== Knowledge Base Index ===== */
.kb-index { max-width: 800px; margin: 0 auto; padding: 120px 24px 60px; }
.kb-index h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.kb-index .subtitle { color: #6B7280; font-size: 18px; margin-bottom: 40px; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.kb-card { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid #EEEDF2; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.kb-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.kb-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: #1A1A2E; }
.kb-card p { font-size: 14px; color: #6B7280; line-height: 1.5; }

/* ===== KB Article ===== */
.kb-article { max-width: 700px; margin: 0 auto; padding: 120px 24px 60px; }
.kb-article h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.kb-article .updated { color: #6B7280; font-size: 14px; margin-bottom: 32px; }
.kb-article h2 { font-size: 20px; font-weight: 700; margin-top: 36px; margin-bottom: 12px; }
.kb-article p, .kb-article li { font-size: 15px; color: #374151; margin-bottom: 12px; line-height: 1.7; }
.kb-article ul, .kb-article ol { padding-left: 20px; margin-bottom: 16px; }
.kb-article a { color: #6C5CE7; }
.back-link { color: #6C5CE7; text-decoration: none; font-weight: 600; font-size: 14px; display: inline-block; margin-bottom: 32px; }

/* ===== Blog Index ===== */
.blog-index { max-width: 900px; margin: 0 auto; padding: 120px 24px 60px; }
.blog-index h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.blog-index .subtitle { color: #6B7280; font-size: 18px; margin-bottom: 40px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.blog-card { background: #fff; border-radius: 16px; border: 1px solid #EEEDF2; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; overflow: hidden; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.blog-card-image { width: 100%; height: 180px; object-fit: cover; }
.blog-card-content { padding: 20px; }
.blog-card-content time { font-size: 12px; color: #9CA3AF; }
.blog-card-content h3 { font-size: 16px; font-weight: 700; margin: 6px 0 8px; color: #1A1A2E; line-height: 1.3; }
.blog-card-content p { font-size: 14px; color: #6B7280; line-height: 1.5; }

/* ===== Blog Post ===== */
.blog-post { max-width: 700px; margin: 0 auto; padding: 120px 24px 60px; }
.blog-post h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; line-height: 1.2; }
.post-meta { color: #6B7280; font-size: 14px; margin-bottom: 32px; }
.post-hero-image { width: 100%; max-height: 400px; object-fit: cover; border-radius: 16px; margin-bottom: 32px; }
.post-content h2 { font-size: 22px; font-weight: 700; margin-top: 40px; margin-bottom: 14px; }
.post-content h3 { font-size: 18px; font-weight: 700; margin-top: 32px; margin-bottom: 12px; }
.post-content p { font-size: 16px; color: #374151; margin-bottom: 16px; line-height: 1.8; }
.post-content li { font-size: 16px; color: #374151; margin-bottom: 8px; line-height: 1.7; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 20px; }
.post-content blockquote { border-left: 3px solid #6C5CE7; padding-left: 16px; margin: 24px 0; color: #6B7280; font-style: italic; }
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.post-content th, .post-content td { padding: 10px 12px; border: 1px solid #EEEDF2; text-align: left; }
.post-content th { background: #F9F9FB; font-weight: 600; }
.post-content strong { color: #1A1A2E; }
.post-content a { color: #6C5CE7; }
.post-cta { margin-top: 48px; padding: 32px; background: #F3EFFF; border-radius: 20px; text-align: center; }
.post-cta h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.post-cta p { color: #6B7280; margin-bottom: 20px; }
.post-cta .btn-primary, .post-cta .btn-secondary { margin: 0 6px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 120px 20px 60px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 17px;
    }

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

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

    .tagline-block {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .tagline-block h2 {
        font-size: 26px;
    }
}
