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

:root {
    --bg: #0a0a0b;
    --bg-card: #141416;
    --bg-card-hover: #1a1a1e;
    --border: #2a2a2e;
    --text: #e4e4e7;
    --text-muted: #8b8b94;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --label-generate: #22c55e;
    --label-document: #a855f7;
    --label-validate: #3b82f6;
    --label-migrate: #f59e0b;
}

html {
    scroll-behavior: smooth;
}

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

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

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

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10rem 2rem 6rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}

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

/* Sections */
section {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    transition: background 0.2s, border-color 0.2s;
}

.product-card:hover {
    background: var(--bg-card-hover);
    border-color: #3a3a3e;
}

.product-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.product-card:nth-child(1) .product-label,
.product-card:nth-child(2) .product-label,
.product-card:nth-child(3) .product-label {
    background: rgba(34, 197, 94, 0.12);
    color: var(--label-generate);
}

.product-card:nth-child(4) .product-label {
    background: rgba(168, 85, 247, 0.12);
    color: var(--label-document);
}

.product-card:nth-child(5) .product-label {
    background: rgba(59, 130, 246, 0.12);
    color: var(--label-validate);
}

.product-card:nth-child(6) .product-label {
    background: rgba(245, 158, 11, 0.12);
    color: var(--label-migrate);
}

.product-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

.product-price {
    display: block;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--label-migrate);
    margin-bottom: 0.75rem;
}

.product-link {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Coming Soon */
.coming-soon {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.coming-soon h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.coming-soon p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Blog */
.blog-page {
    padding-top: 8rem;
    max-width: 750px;
    margin: 0 auto;
}

.blog-page h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.blog-list {
    display: grid;
    gap: 1rem;
}

.blog-item {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.blog-item:hover {
    border-color: var(--accent);
}

.blog-item time {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-item h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.blog-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.blog-empty {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
}

.blog-empty p {
    color: var(--text-muted);
}

/* Blog Post */
.blog-post {
    max-width: 700px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.blog-post .back-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: inline-block;
    margin-bottom: 2rem;
}

.blog-post .back-link:hover {
    color: var(--accent);
}

.blog-post time {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.blog-post h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.blog-post p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.blog-post h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-post code {
    font-family: monospace;
    background: var(--bg-card);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-post pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.blog-post pre code {
    background: none;
    padding: 0;
}

.blog-post ul, .blog-post ol {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.blog-post strong {
    color: var(--text);
}

/* About */
.about-content {
    max-width: 650px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-content p:last-of-type {
    margin-bottom: 0;
}

.about-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.about-links a {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.about-links a:hover {
    color: var(--text);
    border-bottom-color: var(--accent);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 11, 0.97);
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 8rem 1.5rem 4rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .about-links {
        gap: 1rem;
    }
}
