/* Aigine blog — shared styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #0f172b;
    --navy-deep: #050810;
    --navy-mid: #0a1124;
    --blue: #155dfc;
    --blue-hover: #1447e6;
    --sky: #51a2ff;
    --sky-light: #8ec5ff;
    --text-dark: #0f172b;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #cad5e2;
    --white: #fff;
    --bg-body: #fafbff;
    --bg-card: #ffffff;
    --border-soft: #e2e8f0;
    --border-strong: #cbd5e1;
    --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --shadow-card: 0 1px 3px rgba(15,23,43,0.04), 0 4px 12px rgba(15,23,43,0.06);
    --shadow-card-hover: 0 4px 12px rgba(15,23,43,0.08), 0 12px 32px rgba(21,93,252,0.12);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font); font-weight: 400;
    font-size: 17px; line-height: 1.65;
    color: var(--text-dark); background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; transition: .15s; }
a:hover { color: var(--blue-hover); text-decoration: underline; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }

/* Navbar (same as landing for consistency) */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
    max-width: 1216px; margin: 0 auto;
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
    font-size: 1.25rem; font-weight: 700;
    color: var(--text-dark); letter-spacing: -.03em;
}
.nav-logo span { color: var(--blue); }
.nav-logo a { color: inherit; text-decoration: none; }
.nav-links { display: none; gap: 32px; font-size: 15px; }
.nav-links a { color: var(--text-body); }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-cta {
    padding: 10px 20px; border-radius: 8px; font-size: 15px; font-weight: 500;
    background: linear-gradient(135deg, #2563eb, #155dfc);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(21,93,252,0.25);
    transition: .2s;
}
.nav-cta:hover { color: #fff !important; text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(21,93,252,0.35); }
@media (min-width: 768px) {
    .nav-links { display: flex; }
}

/* Layout */
.container { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: 1216px; margin: 0 auto; padding: 0 24px; }

/* Breadcrumbs */
.breadcrumbs {
    font-size: 14px; color: var(--text-muted);
    padding: 96px 0 16px; display: flex; gap: 8px; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--blue); text-decoration: none; }
.breadcrumbs span.sep { color: var(--border-strong); }

/* Article */
.article-header { padding: 16px 0 40px; }
.article-tag {
    display: inline-block;
    font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}
.article h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700; line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.article-lead {
    font-size: 19px; line-height: 1.55;
    color: var(--text-body);
    margin-bottom: 24px;
}
.article-meta {
    display: flex; gap: 16px; flex-wrap: wrap;
    font-size: 14px; color: var(--text-muted);
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
}

/* Article body */
.article-body { padding-bottom: 80px; }
.article-body h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700; line-height: 1.25;
    color: var(--text-dark);
    margin: 56px 0 20px;
    letter-spacing: -0.01em;
}
.article-body h3 {
    font-size: 22px; font-weight: 600;
    color: var(--text-dark);
    margin: 40px 0 16px;
}
.article-body p {
    margin-bottom: 20px;
    color: var(--text-body);
}
.article-body ul, .article-body ol {
    margin: 0 0 24px 0;
    padding-left: 0;
}
.article-body ul li, .article-body ol li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-body);
}
.article-body ul li::before {
    content: '';
    position: absolute;
    left: 8px; top: 12px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--blue);
}
.article-body ol { counter-reset: ol-counter; }
.article-body ol li { counter-increment: ol-counter; }
.article-body ol li::before {
    content: counter(ol-counter) '.';
    position: absolute;
    left: 0; top: 0;
    color: var(--blue);
    font-weight: 600;
}
.article-body strong { color: var(--text-dark); font-weight: 600; }
.article-body blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: #f1f5ff;
    border-left: 4px solid var(--blue);
    border-radius: 0 8px 8px 0;
    color: var(--text-body);
    font-style: italic;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.92em;
    color: #be185d;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.article-body hr {
    border: none;
    height: 1px;
    background: var(--border-soft);
    margin: 48px 0;
}

/* Comparison table */
.article-body .table-wrapper { overflow-x: auto; margin: 32px 0; }
.article-body table {
    width: 100%; border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    font-size: 15px;
}
.article-body th, .article-body td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
.article-body th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.article-body td { color: var(--text-body); }
.article-body tr:last-child td { border-bottom: none; }
.article-body .yes { color: #16a34a; font-weight: 600; }
.article-body .no { color: #dc2626; font-weight: 600; }
.article-body .partial { color: #f59e0b; font-weight: 600; }

/* Call-out boxes */
.callout {
    margin: 28px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
}
.callout strong { color: var(--blue); }

/* Inline CTA block */
.cta-block {
    margin: 48px 0;
    padding: 40px 32px;
    background: linear-gradient(135deg, #050810 0%, #0a1124 50%, #0e1a3a 100%);
    border-radius: 16px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-block::before {
    content: '';
    position: absolute;
    top: -50%; left: 50%;
    width: 600px; height: 600px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(81,162,255,0.35), transparent 60%);
    filter: blur(60px);
    pointer-events: none;
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block h3 {
    font-size: 24px; color: #fff;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, #8ec5ff);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cta-block p { color: var(--text-light); margin-bottom: 24px; }
.cta-block .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #155dfc, #3b82f6);
    color: #fff !important; font-weight: 500; font-size: 16px;
    box-shadow: 0 8px 24px rgba(21,93,252,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: .2s;
}
.cta-block .btn:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(81,162,255,0.5), 0 12px 32px rgba(21,93,252,0.45); text-decoration: none; }

/* FAQ */
.faq-list { margin: 24px 0 0; }
.faq-item {
    border-bottom: 1px solid var(--border-soft);
    padding: 20px 0;
}
.faq-item h3 {
    font-size: 18px;
    margin: 0 0 12px !important;
    color: var(--text-dark);
}
.faq-item p { margin: 0; }

/* Related articles */
.related {
    padding: 56px 0 80px;
    border-top: 1px solid var(--border-soft);
}
.related h2 {
    font-size: 24px;
    margin-bottom: 28px;
    color: var(--text-dark);
}
.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 640px) {
    .related-grid { grid-template-columns: 1fr 1fr; }
}
.related-card {
    display: block;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    color: var(--text-dark);
    transition: .2s;
}
.related-card:hover {
    border-color: var(--sky);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--text-dark);
}
.related-card .tag {
    font-size: 12px; color: var(--blue);
    font-weight: 500; text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    display: block;
}
.related-card h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    color: var(--text-dark);
}

/* Blog index page */
.blog-hero {
    padding: 140px 0 56px;
    text-align: center;
}
.blog-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.blog-hero p {
    font-size: 19px; color: var(--text-body);
    max-width: 600px; margin: 0 auto;
}
.blog-list { padding: 0 0 96px; }
.blog-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 720px) {
    .blog-list-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .blog-list-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.blog-card {
    display: flex; flex-direction: column;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    color: var(--text-dark);
    transition: .2s;
    height: 100%;
}
.blog-card:hover {
    border-color: var(--sky);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
    text-decoration: none;
    color: var(--text-dark);
}
.blog-card .tag {
    display: inline-block;
    font-size: 12px; font-weight: 500;
    letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
}
.blog-card h2 {
    font-size: 20px; font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-dark);
    text-align: left;
}
.blog-card p {
    font-size: 15px; color: var(--text-muted);
    line-height: 1.55;
    flex-grow: 1;
    margin-bottom: 16px;
}
.blog-card .read-more {
    font-size: 14px; color: var(--blue);
    font-weight: 500;
}

/* Footer */
footer {
    padding: 40px 24px;
    background: #fff;
    border-top: 1px solid var(--border-soft);
}
.footer-inner {
    max-width: 1216px; margin: 0 auto;
    display: flex; flex-direction: column;
    gap: 16px; align-items: center;
    font-size: 14px; color: var(--text-muted);
    text-align: center;
}
.footer-inner ul { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-inner a { color: var(--text-muted); }
.footer-inner a:hover { color: var(--blue); text-decoration: none; }
@media (min-width: 640px) {
    .footer-inner { flex-direction: row; justify-content: space-between; }
}
