:root {
    --bg: #0a0a0b;
    --bg-card: #111113;
    --bg-card-hover: #18181b;
    --border: #27272a;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --accent: #6d5cff;
    --accent-hover: #7d6eff;
    --accent-glow: rgba(109, 92, 255, 0.15);
    --green: #22c55e;
    --yellow: #eab308;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    text-decoration: none;
}

.logo span { color: var(--accent); }

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent-hover) !important; }

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 40px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(109, 92, 255, 0.25);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: #3f3f46;
}

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

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

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

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* Guide pages */
.guide-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.guide-header {
    margin-bottom: 48px;
}

.breadcrumb {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 16px;
}

.breadcrumb:hover { text-decoration: underline; }

.guide-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.guide-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.guide-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 16px;
    letter-spacing: -0.02em;
}

.guide-body p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.guide-body ul {
    list-style: none;
    margin-bottom: 24px;
}

.guide-body ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.guide-body ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    left: 0;
    top: 16px;
}

.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.code-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.code-block p:last-child { margin-bottom: 0; }

.guide-cta {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    margin-top: 48px;
    text-align: center;
}

.guide-cta h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.guide-cta p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 24px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Guides grid (index page) */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    display: block;
}

.guide-card:hover {
    border-color: #3f3f46;
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.guide-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.guide-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.guide-tag {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

/* Blog pages */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    display: block;
}

.blog-card:hover {
    border-color: #3f3f46;
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.blog-card .blog-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

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

.blog-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.blog-article h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.blog-article .blog-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.blog-article h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 36px 0 16px;
}

.blog-article p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.blog-article ul, .blog-article ol {
    color: var(--text-muted);
    margin: 0 0 20px 24px;
    line-height: 1.8;
}

.blog-article li { margin-bottom: 8px; }

/* Social proof */
.trust-section {
    text-align: center;
    padding: 60px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.trust-badges {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.trust-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .guides-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .guide-content { padding: 100px 20px 60px; }
    .blog-article { padding: 100px 20px 60px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .trust-badges { flex-direction: column; align-items: center; }
}

/* Mobile hamburger menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
    }

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

    .nav-cta {
        text-align: center;
    }
}
