:root {
    --bg: #0d1117;
    --bg-elevated: #161b22;
    --border: #30363d;
    --text: #c9d1d9;
    --text-muted: #8b949e;
    --primary: #58a6ff;
    --primary-dark: #1f6feb;
    --ok: #3fb950;
    --warn: #d29922;
    --err: #f85149;
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 960px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    border: 1px solid transparent;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: #0d1117;
    border-color: var(--primary);
}

.btn-primary:hover {
    opacity: .92;
    text-decoration: none;
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    text-decoration: none;
}

/* Hero */
.hero {
    padding: 80px 0 64px;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(88, 166, 255, .15), transparent 60%);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #f0f6fc;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 32px;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Sections */
section {
    padding: 56px 0;
}

section:nth-of-type(even) {
    background: var(--bg-elevated);
}

section h2 {
    font-size: 1.6rem;
    color: #f0f6fc;
    margin-bottom: 12px;
    text-align: center;
}

.section-note {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* Demo */
.demo-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 560px;
    margin: 24px auto 0;
}

.demo-box input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
}

.demo-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.demo-result {
    max-width: 560px;
    margin: 20px auto 0;
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.demo-result.hidden {
    display: none;
}

.demo-platform {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-dark);
    color: #fff;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Platforms */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.platform-card small {
    display: block;
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.platform-card.stable {
    border-left: 4px solid var(--ok);
}

.platform-card.beta {
    border-left: 4px solid var(--warn);
}

.platform-card.queue {
    border-left: 4px solid var(--text-muted);
    opacity: .85;
}

.platform-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: .9rem;
    color: var(--text-muted);
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot.stable { background: var(--ok); }
.dot.beta { background: var(--warn); }
.dot.queue { background: var(--text-muted); }

/* How it works */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
}

.step {
    text-align: center;
    padding: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.step-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    background: var(--primary);
    color: #0d1117;
    font-weight: 800;
    border-radius: 50%;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #f0f6fc;
}

.step p {
    color: var(--text-muted);
    font-size: .95rem;
}

/* Features */
.features .container {
    display: grid;
    gap: 24px;
}

.feature {
    padding: 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.feature h2 {
    font-size: 1.35rem;
    text-align: center;
    margin-bottom: 10px;
}

.feature p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
}

.pricing-card {
    position: relative;
    padding: 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.pricing-card.recommended {
    border-color: var(--primary);
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #f0f6fc;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-card li {
    padding: 6px 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.pricing-card li:last-child {
    border-bottom: none;
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #0d1117;
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

/* FAQ */
.faq details {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq summary {
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.faq summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-left: 12px;
}

.faq details[open] summary::after {
    content: '−';
}

.faq summary h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #f0f6fc;
}

.faq details p {
    padding: 0 20px 18px;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 20px;
    margin-bottom: 20px;
    font-size: .9rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    font-size: .85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (min-width: 640px) {
    .hero {
        padding: 110px 0 80px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .demo-box {
        flex-direction: row;
    }

    .demo-box input {
        flex: 1;
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .features .container {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }

    .pricing-card.recommended {
        transform: scale(1.03);
    }
}
