:root {
    --bg-main: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --brand: #5A457D;
    --brand-light: rgba(90, 69, 125, 0.1);
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --accent: #38bdf8;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-main: #0B0D12;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --brand: #A388D4;
        --brand-light: rgba(163, 136, 212, 0.1);
        --border: #1e293b;
        --card-bg: #111827;
        --accent: #0ea5e9;
    }
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background:
        radial-gradient(circle at top left, var(--brand-light), transparent 40%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.05), transparent 40%);
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-main);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand);
}

.logo-icon {
    background: var(--brand);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--brand);
}

.hero {
    padding: 6rem 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    justify-content: space-between;
}

.text-section {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--brand-light);
    color: var(--brand);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.sub-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.visual-section {
    flex: 1;
    max-width: 500px;
    animation: float-slow 6s ease-in-out infinite;
}

.code-window {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.window-header {
    background: #0f172a;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ef4444; }
.yellow { background: #f59e0b; }
.green { background: #10b981; }

.window-title {
    margin-left: 1rem;
    color: #94a3b8;
    font-family: monospace;
    font-size: 0.85rem;
}

.code-window pre {
    padding: 1.5rem;
    color: #e2e8f0;
    font-family: monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 0;
}

.code-window code {
    color: #38bdf8;
}

.features {
    padding: 5rem 0 8rem;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background-color: var(--brand-light);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.footer {
    padding: 2rem 0 3rem;
    color: var(--text-secondary);
    text-align: center;
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 960px) {
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .visual-section,
    .text-section {
        max-width: none;
        width: 100%;
    }

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

@media (max-width: 680px) {
    .navbar {
        position: static;
    }

    .nav-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .sub-title {
        font-size: 1.2rem;
    }

    .description {
        font-size: 1rem;
    }

    .code-window pre {
        font-size: 0.8rem;
    }
}
