*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0f;
    color: #e4e4e7;
    line-height: 1.7;
    overflow-x: hidden;
}
.container { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.bg-grid {
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none; z-index: 0;
}

.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10,10,15,.8); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 18px; color: #fff;
    text-decoration: none;
}
.logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    color: #a1a1aa; text-decoration: none; font-size: 14px; font-weight: 500;
    transition: color .2s;
}
.nav-links a:hover { color: #fff; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px; border-radius: 10px;
    font-weight: 600; font-size: 14px; text-decoration: none;
    transition: all .2s; cursor: pointer; border: none;
}
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(99,102,241,.35); }

.article-header {
    position: relative; z-index: 1;
    padding: 140px 0 60px;
}
.article-meta {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 24px; font-size: 14px; color: #71717a;
}
.article-tag {
    display: inline-block;
    padding: 4px 12px; border-radius: 100px;
    background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.2);
    font-size: 12px; font-weight: 500; color: #a5b4fc;
}
.article-header h1 {
    font-size: clamp(32px, 5vw, 48px); font-weight: 800;
    line-height: 1.15; letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 30%, #818cf8 80%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}
.article-header .lead {
    font-size: 18px; color: #a1a1aa; line-height: 1.6;
}

.article-body {
    position: relative; z-index: 1;
    padding-bottom: 100px;
}
.article-body h2 {
    font-size: 28px; font-weight: 700; color: #fff;
    margin: 48px 0 20px;
    letter-spacing: -0.5px;
}
.article-body h3 {
    font-size: 22px; font-weight: 600; color: #e4e4e7;
    margin: 36px 0 16px;
}
.article-body p {
    font-size: 17px; color: #d4d4d8; margin-bottom: 20px;
}
.article-body ul, .article-body ol {
    margin: 16px 0 24px 24px;
}
.article-body li {
    font-size: 17px; color: #d4d4d8; margin-bottom: 10px;
    padding-left: 8px;
}
.article-body strong {
    color: #fff; font-weight: 600;
}
.article-body a {
    color: #818cf8; text-decoration: underline;
    text-decoration-color: rgba(129,140,248,.3);
    transition: text-decoration-color .2s;
}
.article-body a:hover {
    text-decoration-color: #818cf8;
}

.callout {
    background: rgba(99,102,241,.08);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}
.callout-title {
    font-weight: 600; color: #a5b4fc; margin-bottom: 8px;
    font-size: 15px;
}
.callout p {
    font-size: 15px; margin-bottom: 0;
}

.step {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; font-weight: 700; font-size: 14px;
    margin-bottom: 12px;
}
.step h3 {
    margin-top: 0 !important;
}

.cta-section {
    position: relative; z-index: 1;
    padding: 80px 0;
    text-align: center;
}
.cta-section h2 {
    font-size: 36px; font-weight: 800; color: #fff;
    margin-bottom: 16px;
}
.cta-section p {
    font-size: 18px; color: #a1a1aa; margin-bottom: 32px;
}

.footer {
    position: relative; z-index: 1;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,.06);
    text-align: center;
    color: #52525b; font-size: 14px;
}
.footer a { color: #71717a; text-decoration: none; }
.footer a:hover { color: #a1a1aa; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}
th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
th {
    color: #a1a1aa; font-weight: 600; font-size: 13px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
td { color: #d4d4d8; }
tr:hover td { background: rgba(255,255,255,.02); }

code {
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.15);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 14px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: #c4b5fd;
}
pre {
    background: rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}
pre code {
    background: none; border: none; padding: 0;
    font-size: 14px; color: #d4d4d8;
}

.back-to-top {
    position: fixed; bottom: 32px; right: 32px; z-index: 99;
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 24px rgba(99,102,241,.4);
    opacity: 0; visibility: hidden;
    transition: all .3s;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(99,102,241,.5); }
.back-to-top svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.back-to-blog {
    display: inline-flex; align-items: center; gap: 6px;
    color: #71717a; text-decoration: none; font-size: 14px; font-weight: 500;
    transition: color .2s;
}
.back-to-blog:hover { color: #a5b4fc; }
.back-to-blog svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 768px) {
    .nav-links { gap: 16px; }
    .article-header { padding: 120px 0 40px; }
    .article-body h2 { font-size: 24px; }
    .article-body p, .article-body li { font-size: 16px; }
    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}
