:root {
    --bg: #0a0a0f;
    --surface: #14141c;
    --surface-2: #1c1c28;
    --accent: #00ff88;
    --accent-dim: rgba(0, 255, 136, 0.15);
    --text: #e8e8f0;
    --text-muted: #8888a0;
    --text-dim: #555568;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 255, 136, 0.3);
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 820px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --mono: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #66ffaa; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
}
.site-header .nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-header .logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}
.site-header .logo .o { color: var(--accent); }
.site-header .logo .sub { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-left: 6px; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.site-header nav a:hover { color: var(--text); }
.site-header nav a.active { color: var(--accent); }

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 24px 60px;
}
.hero .eyes {
    font-size: 48px;
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-weight: 700;
}
.hero .eyes .o { color: var(--accent); }
.hero .eyes .dash { color: var(--text-dim); margin: 0 4px; }
.hero h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.hero .tagline {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 32px;
}
.hero .cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--bg);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.15s, box-shadow 0.2s;
}
.hero .cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,255,136,0.3); }

/* Section */
.section { margin-bottom: 56px; }
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-header h2 { font-size: 22px; font-weight: 600; }
.section-header .more { font-size: 14px; }

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.2s, transform 0.15s;
    cursor: pointer;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.card .tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.card .meta { font-size: 12px; color: var(--text-dim); margin-top: 12px; }

/* Template card */
.template-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.template-card .badge {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
}
.template-card h3 { font-size: 16px; font-weight: 600; }
.template-card p { font-size: 13px; color: var(--text-muted); }
.template-card .copy-btn {
    margin-top: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font);
    transition: background 0.2s;
}
.template-card .copy-btn:hover { background: var(--accent-dim); }

/* How it works */
.steps {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.step {
    flex: 1;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.step .num {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-muted); }

/* Article */
.article { padding: 20px 0; }
.article h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}
.article .meta-line {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.article h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text);
}
.article h2 .emoji { font-size: 18px; margin-right: 6px; }
.article p { margin-bottom: 16px; color: var(--text); }
.article ul, .article ol { margin: 0 0 16px 20px; }
.article li { margin-bottom: 6px; }
.article code {
    background: var(--surface-2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
}
.article pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
}
.article pre code { background: none; color: var(--text); }
.article blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.article .oo-zero {
    background: var(--accent-dim);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius);
    padding: 20px;
    margin: 24px 0;
}
.article .oo-zero .label {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.filter-bar button {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}
.filter-bar button:hover { border-color: var(--border-hover); color: var(--text); }
.filter-bar button.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 60px;
}
.site-footer a { color: var(--text-muted); }

/* Responsive */
@media (max-width: 600px) {
    .hero h1 { font-size: 26px; }
    .hero .tagline { font-size: 15px; }
    .site-header nav { gap: 12px; }
    .site-header nav a { font-size: 13px; }
    .card-grid { grid-template-columns: 1fr; }
    .steps { flex-direction: column; }
}
