:root {
    --bg: #0d1117;
    --surface: #161b22;
    --surface-hover: #1c2128;
    --border: #30363d;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #79c0ff;
    --green: #3fb950;
    --orange: #d29922;
    --radius: 12px;
    --max-width: 960px;
}

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

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

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

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

/* Header */
header {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #58a6ff, #bc8cff, #f778ba);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-links a.admin-link {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 120px 24px 80px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #58a6ff, #bc8cff, #f778ba);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.cta {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.2s, transform 0.1s;
}

.cta:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }

/* Sections */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

/* Features */
.features { padding: 60px 0; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
}

.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Tech */
.tech { padding: 60px 0; text-align: center; }

.tech-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.tech-item {
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing */
.pricing { padding: 60px 0; }

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}

.price-card.featured {
    border-color: var(--accent);
    position: relative;
}

.price-card.featured::after {
    content: "Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-card h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.price { font-size: 2.5rem; font-weight: 800; margin-bottom: 4px; }
.price .period { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

.price-card ul { list-style: none; margin: 24px 0; text-align: left; }
.price-card li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-card li:first-child { border-top: none; }
.price-card li::before { content: "✓"; color: var(--green); font-weight: 700; }

/* Contact */
.contact { padding: 80px 0; text-align: center; }
.contact h2 { font-size: 2rem; margin-bottom: 16px; }
.contact p { color: var(--text-muted); margin-bottom: 32px; }

/* Blog */
.blog-preview { padding: 60px 0; border-top: 1px solid var(--border); }

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.post-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.2s, background 0.2s;
}

.post-card:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: inherit;
}

.post-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.post-card time { color: var(--text-muted); font-size: 0.85rem; }
.post-card p { color: var(--text-muted); margin-top: 12px; font-size: 0.95rem; }

/* Generic page content */
.page-content { padding: 80px 0; min-height: 50vh; }
.page-content h1 { font-size: 2.5rem; margin-bottom: 24px; letter-spacing: -0.02em; }
.content { max-width: 720px; }
.content h2 { font-size: 1.5rem; margin: 32px 0 16px; }
.content h3 { font-size: 1.2rem; margin: 24px 0 12px; }
.content p { margin-bottom: 16px; color: var(--text-muted); }
.content ul, .content ol { margin: 0 0 16px 24px; color: var(--text-muted); }
.content li { margin-bottom: 8px; }
.content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-muted);
    font-style: italic;
}

/* Post-specific */
.post-date { color: var(--text-muted); font-size: 0.9rem; display: block; margin-bottom: 24px; }
.post-body { font-size: 1.05rem; }
.post-body p { margin-bottom: 16px; color: var(--text-muted); }
.post-body h2 { margin: 32px 0 16px; }
.post-tags { margin-top: 32px; display: flex; gap: 8px; }
.tag {
    padding: 4px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

@media (max-width: 640px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .tagline { font-size: 1.1rem; }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 0.85rem; }
}
