@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root, [data-theme="dark"] {
    --bg: #0a0a0a;
    --bg2: #141414;
    --bg3: #1a1a1a;
    --border: #222;
    --text: #e0e0e0;
    --text2: #888;
    --text3: #444;
    --accent: #22c55e;
    --accent-hover: #1fad53;
    --code-bg: #111;
    --c-bg: #0a0a0a;
}

[data-theme="light"] {
    --bg: #fafafa;
    --bg2: #fff;
    --bg3: #f0f0f0;
    --border: #e0e0e0;
    --text: #1a1a1a;
    --text2: #666;
    --text3: #bbb;
    --accent: #16a34a;
    --accent-hover: #15803d;
    --code-bg: #f4f4f5;
    --c-bg: #fafafa;
}

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

body {
    display: block;
    min-height: auto;
    align-items: unset;
    justify-content: unset;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, sans-serif;
    line-height: 1.6;
}

.hidden { display: none !important; }

/* ── nav ── */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav__link {
    font-size: 0.82em;
    font-weight: 500;
    color: var(--text2);
    text-decoration: none;
    transition: color 0.15s;
}

.nav__link:hover { color: var(--text); }

.nav__theme {
    width: 32px; height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg2);
    color: var(--text2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.nav__theme:hover { color: var(--text); }
.nav__theme svg { width: 16px; height: 16px; }

/* ── hero + demo ── */

.hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px 40px;
    text-align: center;
}

.hero__title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 28px;
}

.demo-wrap {
    display: flex;
    justify-content: center;
}

.demo-frame {
    width: 348px;
    height: 580px;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
}

@media (max-width: 500px) {
    .demo-frame { width: 100%; }
}

/* ── features ── */

.features {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 24px 50px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.feature {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.feature__icon {
    width: 36px; height: 36px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--accent);
}

.feature__icon svg { width: 18px; height: 18px; }

.feature h3 {
    font-size: 0.88em;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.feature p {
    font-size: 0.78em;
    color: var(--text2);
    line-height: 1.5;
}

/* ── quick start ── */

.start {
    max-width: 550px;
    margin: 0 auto;
    padding: 30px 24px 50px;
}

.start__label {
    text-align: center;
    font-size: 0.72em;
    font-weight: 600;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.code-block {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.code-block__header {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.72em;
    font-weight: 600;
    color: var(--text3);
}

.code-block__body {
    padding: 14px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.78em;
    line-height: 1.7;
    color: var(--text2);
    overflow-x: auto;
    margin: 0;
}

/* ── footer ── */

.footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.75em;
    color: var(--text3);
}

@media (max-width: 500px) {
    .hero__title { font-size: 1.6em; }
    .features__grid { grid-template-columns: 1fr 1fr; }
}
