:root {
    --primary: #4a6cf7;
    --primary-dark: #3a56d4;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-alt: #f8f9fa;
    --border: #eaeaea;
    --code-bg: #f8f9fa;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --radius: 8px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #e6e6e6;
        --text-light: #a0a0a0;
        --bg: #1a1a1a;
        --bg-alt: #242424;
        --border: #3a3a3a;
        --code-bg: #2a2a2a;
        --shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    padding: 0;
    margin: 0;
}

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

.header {
    position: sticky;
    top: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.8);
}

@media (prefers-color-scheme: dark) {
    .header {
        background-color: rgba(26, 26, 26, 0.8);
    }
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--text);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--text-light);
    font-size: 1.25rem;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--primary);
}

.hero {
    padding: 4rem 0;
    text-align: center;
    background: var(--bg-alt);
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.cta-button:hover {
    background: var(--primary-dark);
}

/* Sections */
section {
    margin-bottom: 4rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.demo-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.demo-block h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text);
}

.sxcode {
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
}

pre {
    margin: 0;
    padding: 0;
}

code {
    display: block;
    padding: 1.5rem;
    overflow-x: auto;
    background: var(--code-bg);
    font-family: 'Fira Code', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.usage-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.usage-card h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.theme-selector {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.theme-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.theme-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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