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

/* ===== Variables ===== */
:root {
    --bg: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --accent: #3b82f6;
    --accent-light: #eff6ff;
    --border: #e5e7eb;
    --card-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --radius: 12px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f172a;
        --text: #f1f5f9;
        --text-secondary: #94a3b8;
        --accent: #60a5fa;
        --accent-light: #1e293b;
        --border: #334155;
        --card-shadow: 0 1px 3px rgba(0,0,0,.3);
    }
}

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== Layout ===== */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Hero ===== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    user-select: none;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 12px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 500;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid transparent;
}

.tag-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-secondary);
}

/* ===== Section ===== */
.section {
    padding: 48px 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

/* ===== Feature Cards ===== */
.features {
    display: grid;
    gap: 12px;
}

.feature-card {
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--card-shadow);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(59,130,246,.1);
    transform: translateY(-1px);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: .9rem;
    color: var(--text-secondary);
}

/* ===== Badge List ===== */
.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    background: var(--accent-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ===== Code Block ===== */
.code-block {
    background: var(--accent-light);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: .85rem;
    overflow-x: auto;
    color: var(--text);
    border: 1px solid var(--border);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    line-height: 1.5;
}

/* ===== Divider ===== */
.divider {
    height: 1px;
    background: var(--border);
    margin: 0;
    border: none;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0 56px;
    text-align: center;
    color: var(--text-secondary);
    font-size: .875rem;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== Nav ===== */
.nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px 0;
    list-style: none;
    font-size: .875rem;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .2s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width .2s;
}

.nav a:hover {
    color: var(--accent);
}

.nav a:hover::after {
    width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .hero { padding: 56px 0 40px; }
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 1rem; }
    .section { padding: 32px 0; }
    .nav { gap: 16px; font-size: .8rem; }
}
