/* =========================================
   Wisdio AI — Landing Page Styles
   Design System: Dark Zinc (matches plugin UI)
   ========================================= */

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0b;
    --bg-alt: #111113;
    --surface: #18181b;
    --surface-hover: #27272a;
    --border: #27272a;
    --border-light: #3f3f46;
    --text: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --primary: #ffffff;
    --accent: #a78bfa;
    --accent-dim: rgba(167, 139, 250, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   Navigation
   ========================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.nav-logo {
    width: 28px;
    height: 28px;
    background: var(--surface-hover);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border);
}

.nav-mobile a {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
}

.nav-mobile.open {
    display: flex;
}

/* Language Toggle */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.lang-toggle:hover {
    color: var(--text);
    border-color: var(--text-muted);
    background: var(--surface);
}

.nav-right-mobile {
    display: none;
    align-items: center;
    gap: 8px;
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .nav-right-mobile {
        display: flex;
    }
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.btn:hover {
    background: var(--surface-hover);
    border-color: var(--text-muted);
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.btn-primary:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: transparent;
    border-color: var(--border-light);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 15px;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--accent-dim);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    color: var(--text);
}

.hero-gradient {
    background: linear-gradient(135deg, #a78bfa, #818cf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    padding: 16px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-light);
}

/* =========================================
   Sections
   ========================================= */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

/* =========================================
   Origin Story
   ========================================= */
.story-block {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.story-quote-mark {
    font-size: 120px;
    font-weight: 800;
    line-height: 0.8;
    color: var(--accent);
    opacity: 0.15;
    position: absolute;
    top: -20px;
    left: -20px;
    pointer-events: none;
    font-family: Georgia, 'Times New Roman', serif;
}

.story-quote {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 40px;
    padding-left: 24px;
    border-left: 3px solid var(--accent);
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.story-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.story-content em {
    color: var(--text);
    font-style: italic;
}

.story-content strong {
    color: var(--text);
    font-weight: 600;
}

.story-signature {
    text-align: right;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.story-tagline {
    font-size: 18px;
    font-weight: 700;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.story-author {
    font-size: 14px;
    color: var(--text-muted);
}

/* =========================================
   Feature Cards
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-highlight {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    background: linear-gradient(135deg, var(--surface) 0%, rgba(167, 139, 250, 0.03) 100%);
    border-color: rgba(167, 139, 250, 0.15);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-list li {
    font-size: 13px;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* =========================================
   Steps / How It Works
   ========================================= */
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
    padding: 32px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent-dim);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    color: var(--text-muted);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .step-connector {
        display: none;
    }

    .steps-grid {
        flex-direction: column;
    }

    .step-card {
        max-width: 100%;
    }
}

/* =========================================
   BYO API Section
   ========================================= */
.byo-card {
    display: flex;
    align-items: center;
    gap: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.byo-content {
    flex: 1;
}

.byo-content h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.byo-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.provider-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.provider-tag {
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.byo-visual {
    flex-shrink: 0;
}

.byo-key-icon {
    width: 100px;
    height: 100px;
    background: var(--accent-dim);
    border: 1px solid rgba(167, 139, 250, 0.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

@media (max-width: 768px) {
    .byo-card {
        flex-direction: column;
        padding: 32px;
    }

    .byo-visual {
        display: none;
    }
}

/* =========================================
   FAQ
   ========================================= */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--border-light);
}

.faq-item summary {
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 400;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =========================================
   Use Case Scenarios
   ========================================= */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.scenario-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
}

.scenario-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.scenario-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--border-light);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.scenario-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.scenario-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Data Export Section
   ========================================= */
.export-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.export-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.export-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.export-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.export-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.export-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .export-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 32px;
    }
}

/* =========================================
   Animations
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-highlight {
        grid-column: auto;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px 24px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .section {
        padding: 64px 0;
    }
}