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

:root {
    --bg-dark: #08070d;
    --bg-panel: #12101b;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.09);

    --text-main: #f2f2f7;
    --text-muted: #9490a5;

    --accent: #8b5cf6; /* Violet */
    --accent-soft: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.35);
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);

    --font-main: 'Manrope', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

.bg-glow {
    position: fixed;
    top: -25%; left: 50%;
    transform: translateX(-50%);
    width: 90vw; height: 70vw;
    background:
        radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 70% 40%, rgba(217, 70, 239, 0.08) 0%, transparent 60%);
    z-index: -2;
    pointer-events: none;
    filter: blur(90px);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 7.5rem 0; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-ghost:hover {
    background: var(--bg-glass);
    border-color: var(--accent-soft);
    color: var(--accent-soft);
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
}

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(8, 7, 13, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-glass);
}

.nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-box {
    width: 34px; height: 34px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav-links a:hover { color: var(--accent-soft); }

.nav-actions { display: flex; gap: 1rem; align-items: center; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.mobile-toggle span {
    width: 24px; height: 2px; background: var(--text-main);
    border-radius: 2px;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

.hero-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    font-size: 0.85rem;
    color: var(--accent-soft);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px; height: 8px;
    background: var(--accent-soft);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-soft);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 4px var(--accent-soft); }
    50% { box-shadow: 0 0 14px var(--accent-soft); }
}

.hero h1 {
    font-size: 4.2rem;
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-item { display: flex; flex-direction: column; }
.stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: var(--font-mono);
}
.stat-lbl { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.divider { width: 1px; height: 40px; background: var(--border-glass); }

/* Hero code window */
.hero-visual { position: relative; }

.code-window {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.main-window {
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 2;
    transform: rotate(-0.5deg);
}

.window-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #444; }
.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.file-name { margin-left: auto; font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); }

.window-body { padding: 1.5rem; overflow-x: auto; }

code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.75;
    display: block;
}

.c-keyword { color: #c792ea; }
.c-func { color: #82aaff; }
.c-str { color: #c3e88d; }
.c-comment { color: #5f5a75; font-style: italic; }
.c-num { color: #f78c6c; }

.cursor {
    display: inline-block;
    width: 8px; height: 15px;
    background: var(--accent-soft);
    animation: blink 1s infinite;
    vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }

.sub-window {
    position: absolute;
    bottom: -30px; right: -15px;
    width: 210px;
    z-index: 3;
    background: #191627;
    transform: rotate(1deg);
}
.window-header-mini {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-glass);
    font-family: var(--font-mono);
}
.mini-content { padding: 0.75rem; font-size: 0.8rem; font-family: var(--font-mono); }
.status-row { display: flex; justify-content: space-between; margin-bottom: 5px; }
.status-row:last-child { margin-bottom: 0; }
.success { color: var(--accent-soft); }

/* Sections */
.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 4rem;
}

.section-head h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}
.section-head p { color: var(--text-muted); }

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

.feature-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 2rem;
    border-radius: 18px;
    transition: 0.3s;
}

.feature-card:hover {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-5px);
}

.icon-box {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    background: rgba(139, 92, 246, 0.12);
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Split section */
.split-section { background: #0b0a12; }

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-text h2 { font-size: 2.4rem; margin-bottom: 1rem; letter-spacing: -1px; }
.split-text .lead { font-size: 1.2rem; color: var(--accent-soft); margin-bottom: 1rem; font-weight: 600; }
.split-text p { color: var(--text-muted); margin-bottom: 2rem; }

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.check-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-soft);
    font-weight: bold;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(139, 92, 246, 0.04));
    border: 1px solid var(--border-glass);
    border-radius: 22px;
    padding: 2rem;
    height: 300px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    position: relative;
}

.chart-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px 6px 0 0;
    transition: height 1s ease;
}

.chart-bar.active {
    background: var(--accent-gradient);
    box-shadow: 0 0 20px var(--accent-glow);
}

.chart-label {
    position: absolute;
    top: 2rem; left: 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* FAQ */
.mini-container { max-width: 800px; }

.faq-list { display: flex; flex-direction: column; gap: 1rem; }

details {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.25rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

details[open] { border-color: rgba(139, 92, 246, 0.35); }

details summary {
    font-weight: 700;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: 0.3s;
}

details[open] summary::after { content: '−'; color: var(--accent-soft); }

details p {
    margin-top: 1rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 3rem 0;
    text-align: center;
}

.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer p { color: var(--text-muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-soft); }

@media (max-width: 968px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 3.5rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero-desc { margin: 0 auto 2rem; }
    .hero-cta { justify-content: center; flex-wrap: wrap; }
    .hero-stats { justify-content: center; }
    .main-window { margin: 0 auto; transform: none; }
    .sub-window { display: none; }

    .split-container { grid-template-columns: 1fr; }
    .split-visual { display: none; }

    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg-panel);
        padding: 2rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--border-glass);
    }
    .mobile-toggle { display: flex; }
    .nav-actions { display: none; }
}
