* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0b0b14;
    --surface: #12121f;
    --card: #181828;
    --border: #2a2a40;
    --text: #e0e0f0;
    --text-dim: #8888a8;
    --accent: #89b4fa;
    --accent-hover: #a8ccff;
    --green: #a6e3a1;
    --purple: #cba6f7;
    --orange: #fab387;
    --pink: #f38ba8;
    --yellow: #f9e2af;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 11, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.nav-logo svg {
    margin-right: 10px;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a.active {
    color: var(--accent);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #0b0b14;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #0b0b14;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(137, 180, 250, 0.3);
}

.btn-secondary {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* Editor Preview */
.editor-preview {
    max-width: 900px;
    margin: 60px auto 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.preview-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #11111b;
    border-bottom: 1px solid var(--border);
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-dot.red { background: #f38ba8; }
.preview-dot.yellow { background: #f9e2af; }
.preview-dot.green { background: #a6e3a1; }

.preview-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
}

.preview-body {
    display: flex;
    background: #1e1e2e;
    min-height: 300px;
}

.preview-lines {
    padding: 16px 12px 16px 8px;
    text-align: right;
    color: #585b70;
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.6;
    user-select: none;
    border-right: 1px solid var(--border);
    min-width: 45px;
}

.preview-code {
    flex: 1;
    padding: 16px;
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
}

.preview-code .kw { color: var(--purple); }
.preview-code .fn { color: var(--accent); }
.preview-code .str { color: var(--green); }
.preview-code .num { color: var(--orange); }
.preview-code .cm { color: #6c7086; font-style: italic; }
.preview-code .ty { color: var(--yellow); }
.preview-code .op { color: #89dceb; }
.preview-code .pc { color: #9399b2; }

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(137, 180, 250, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.feature-icon.blue { background: rgba(137, 180, 250, 0.15); color: var(--accent); }
.feature-icon.green { background: rgba(166, 227, 161, 0.15); color: var(--green); }
.feature-icon.purple { background: rgba(203, 166, 247, 0.15); color: var(--purple); }
.feature-icon.orange { background: rgba(250, 179, 135, 0.15); color: var(--orange); }
.feature-icon.pink { background: rgba(243, 139, 168, 0.15); color: var(--pink); }
.feature-icon.yellow { background: rgba(249, 226, 175, 0.15); color: var(--yellow); }

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Languages Section */
.languages {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.lang-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
}

.lang-tag {
    padding: 8px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    transition: all 0.2s;
}

.lang-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Platforms Section */
.platforms {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.platform-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    transition: all 0.3s;
}

.platform-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(137, 180, 250, 0.1);
}

.platform-card .icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.platform-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.platform-card p {
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.platform-card .btn {
    width: 100%;
    justify-content: center;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.cta h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    font-size: 14px;
    color: var(--text-dim);
}

footer a {
    color: var(--text-dim);
}

footer a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .platform-cards {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 20px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .editor-preview {
        margin: 40px 16px 0;
    }

    .preview-code {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .nav-links {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
