:root {
    --bg: #08080c;
    --surface: #111118;
    --surface2: #181820;
    --surface3: #1e1e28;
    --text: #e4e4ec;
    --text-secondary: #8a8a9a;
    --accent: #7c6ff7;
    --accent-dim: rgba(124, 111, 247, 0.15);
    --accent-glow: rgba(124, 111, 247, 0.3);
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.03);
    --gradient: linear-gradient(135deg, #7c6ff7 0%, #a78bfa 100%);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --radius: 14px;
}

body.light {
    --bg: #f4f4f8;
    --surface: #ffffff;
    --surface2: #ececf2;
    --surface3: #e2e2ea;
    --text: #1a1a24;
    --text-secondary: #5c5c6e;
    --accent: #6a5ce7;
    --accent-dim: rgba(106, 92, 231, 0.08);
    --accent-glow: rgba(106, 92, 231, 0.15);
    --border: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.03);
    --gradient: linear-gradient(135deg, #6a5ce7 0%, #9b8ff7 100%);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'SF Pro Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.4s, color 0.4s;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Grid background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(124, 111, 247, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 111, 247, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

body.light .grid-bg {
    background-image: linear-gradient(rgba(106, 92, 231, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(106, 92, 231, 0.04) 1px, transparent 1px);
}

/* Particles */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Theme toggle */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.25s;
    backdrop-filter: blur(12px);
}

    .theme-toggle:hover {
        color: var(--accent);
        border-color: var(--accent);
        transform: scale(1.08);
    }

/* Sections */
section {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Hero */
.hero {
    text-align: center;
    padding: 140px 24px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-dim);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 28px;
    border: 1px solid rgba(124, 111, 247, 0.2);
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.highlight {
    color: var(--accent);
    font-weight: 700;
}

.hero-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stat {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

    .hero-stat span {
        display: block;
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 2px;
    }

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 24px var(--accent-glow);
}

    .cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 36px var(--accent-glow);
    }

/* Video */
.video-section {
    text-align: center;
}

.video-wrapper {
    max-width: 860px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: var(--surface);
}

.demo-video {
    width: 100%;
    display: block;
}

/* Feature blocks */
.feature-block {
    padding: 80px 24px;
}

.feature-grid {
    display: flex;
    align-items: center;
    gap: 64px;
    flex-wrap: wrap;
}

    .feature-grid.reverse {
        flex-direction: row-reverse;
    }

.feature-text {
    flex: 1;
    min-width: 300px;
}

.feature-heading {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.feature-paragraph {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .feature-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.9rem;
        color: var(--text-secondary);
    }

        .feature-list li svg {
            color: var(--accent);
            flex-shrink: 0;
        }

.feature-card {
    flex: 1;
    min-width: 300px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.card-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

    .card-line:last-child {
        border-bottom: none;
    }

.card-status {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 500;
}

    .card-status.ok {
        background: rgba(52, 211, 153, 0.12);
        color: #34d399;
    }

    .card-status.warn {
        background: rgba(251, 191, 36, 0.12);
        color: #fbbf24;
    }

/* Graph SVG */
.graph-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 340px;
}

.graph-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Vectors */
.vectors-section {
    text-align: center;
}

.vectors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.vector-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text);
    transition: all 0.25s;
    cursor: default;
}

    .vector-item:hover {
        border-color: var(--accent);
        box-shadow: 0 0 20px var(--accent-dim);
        background: var(--surface2);
    }

    .vector-item svg {
        color: var(--accent);
        flex-shrink: 0;
    }

/* Database */
.database-section {
    text-align: center;
}

.db-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.db-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px;
    text-align: center;
    box-shadow: var(--shadow);
    min-width: 180px;
    flex: 1;
    max-width: 240px;
}

.db-icon {
    color: var(--accent);
    margin-bottom: 12px;
}

.db-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.db-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sources-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.source-tag {
    background: var(--surface2);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

/* Reports */
.report-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    min-height: 200px;
}

.report-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Dual section */
.dual-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.dual-card {
    flex: 1;
    min-width: 280px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.dual-icon {
    color: var(--accent);
    margin-bottom: 16px;
}

.dual-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.dual-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* CTA */
.cta-section {
    text-align: center;
    padding-bottom: 80px;
}

    .cta-section h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
        font-weight: 700;
    }

.cta-sub {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 60px 16px;
    }

    .feature-grid,
    .feature-grid.reverse {
        flex-direction: column;
        gap: 32px;
    }

    .hero {
        padding: 100px 16px 50px;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat span {
        font-size: 1.3rem;
    }

    .graph-container {
        min-height: 260px;
    }

    .db-card {
        max-width: 100%;
        flex: 1 1 140px;
    }
}
/* CTA */
.cta-section {
    text-align: center;
    padding-bottom: 80px;
}

    .cta-section h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
        font-weight: 700;
    }

.cta-sub {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-secondary {
    background: var(--surface2);
    color: var(--text);
    box-shadow: none;
    border: 1px solid var(--border);
}

    .cta-btn-secondary:hover {
        border-color: var(--accent);
        box-shadow: 0 4px 24px var(--accent-dim);
        background: var(--surface3);
    }