/* MarsLink AI — Blog Styles */
:root {
  --bg: #F6F9FF;
  --surface: #EEF3FC;
  --surface2: #E6EDFB;
  --border: #D8E2F5;
  --border2: #C8D6F0;
  --blue: #3D61DD;
  --blue2: #2D4FBB;
  --ink: #0D1526;
  --ink2: #3A4A6B;
  --ink3: #6B7FA8;
  --green: #16A34A;
  --amber: #D97706;
  --grad: linear-gradient(135deg, #849BE5 0%, #3D61DD 100%);
  --shadow-sm: 0 1px 3px rgba(61,97,221,0.08);
  --shadow-md: 0 4px 16px rgba(61,97,221,0.12);
}
[data-theme="dark"] {
  --bg: #0D1526;
  --surface: #151E33;
  --surface2: #1A2540;
  --border: #1E2D4A;
  --border2: #243460;
  --ink: #F0F4FF;
  --ink2: #A8BAEA;
  --ink3: #6B7FA8;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.7; font-size: 16px; }

/* NAV */
nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 6%; height: 64px; background: rgba(246,249,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
[data-theme="dark"] nav { background: rgba(13,21,38,0.92); }
.logo { font-size: 18px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.5px; }
.logo span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--ink2); text-decoration: none; }
.nav-link:hover { color: var(--blue); }
.nav-cta { background: var(--grad); color: #fff; border-radius: 100px; padding: 9px 20px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: opacity 0.2s; }
.nav-cta:hover { opacity: 0.88; }
.theme-btn { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 7px; cursor: pointer; color: var(--ink2); display: flex; align-items: center; flex-shrink: 0; transition: border-color 0.2s, color 0.2s; }
.theme-btn:hover { border-color: var(--blue); color: var(--blue); }
.theme-btn .t-moon { display: none; }
[data-theme="dark"] .theme-btn .t-sun { display: none; }
[data-theme="dark"] .theme-btn .t-moon { display: block; }

/* BREADCRUMB */
.breadcrumb { padding: 20px 6% 0; font-size: 13px; color: var(--ink3); }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ARTICLE HERO */
.article-hero { padding: 48px 6% 56px; max-width: 800px; margin: 0 auto; }
.article-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 6px 14px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin-bottom: 24px; }
.article-h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.2; letter-spacing: -1px; color: var(--ink); margin-bottom: 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--ink3); margin-bottom: 28px; flex-wrap: wrap; }
.article-meta strong { color: var(--ink2); }
.article-lede { font-size: 18px; line-height: 1.7; color: var(--ink2); border-left: 3px solid var(--blue); padding-left: 20px; }

/* ARTICLE BODY */
.article-body { max-width: 800px; margin: 0 auto; padding: 0 6% 80px; }
.article-body h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); margin: 52px 0 16px; line-height: 1.3; }
.article-body h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 32px 0 12px; }
.article-body p { font-size: 16px; color: var(--ink2); line-height: 1.8; margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; color: var(--ink2); line-height: 1.8; }
.article-body li { margin-bottom: 8px; font-size: 16px; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body a { color: var(--blue); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }

/* STAT CALLOUT */
.stat-callout { background: var(--surface); border: 1px solid var(--border2); border-left: 4px solid var(--blue); border-radius: 12px; padding: 24px 28px; margin: 32px 0; }
.stat-callout .stat-num { font-size: 36px; font-weight: 900; letter-spacing: -1px; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-callout .stat-label { font-size: 14px; color: var(--ink3); margin-top: 4px; }

/* COMPARISON TABLE */
.compare { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 15px; }
.compare th { background: var(--surface); padding: 12px 16px; text-align: left; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--border2); }
.compare td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--ink2); vertical-align: top; }
.compare tr:last-child td { border-bottom: none; }
.compare .good { color: var(--green); font-weight: 600; }
.compare .bad { color: #DC2626; }
.compare .hl { background: rgba(61,97,221,0.06); }

/* PRICING TABLE */
.pricing-table { border: 1px solid var(--border2); border-radius: 16px; overflow: hidden; margin: 32px 0; }
.pricing-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 8px; }
.pricing-row:last-child { border-bottom: none; }
.pricing-row .tier { font-weight: 700; color: var(--ink); font-size: 15px; }
.pricing-row .range { font-weight: 800; color: var(--blue); font-size: 16px; }
.pricing-row .desc { font-size: 13px; color: var(--ink3); width: 100%; }
.pricing-row.featured { background: rgba(61,97,221,0.06); }

/* INLINE CTA */
.inline-cta { background: var(--grad); border-radius: 16px; padding: 40px 36px; margin: 48px 0; text-align: center; color: #fff; }
.inline-cta h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.3px; }
.inline-cta p { font-size: 15px; opacity: 0.88; margin-bottom: 24px; line-height: 1.6; }
.inline-cta a { background: #fff; color: var(--blue); border-radius: 100px; padding: 13px 32px; font-size: 15px; font-weight: 800; text-decoration: none; display: inline-block; transition: opacity 0.2s; }
.inline-cta a:hover { opacity: 0.9; }

/* FOOTER CTA */
.footer-cta { background: var(--surface); border-top: 1px solid var(--border); padding: 80px 6%; text-align: center; }
.footer-cta h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 900; letter-spacing: -1px; color: var(--ink); margin-bottom: 12px; }
.footer-cta p { font-size: 16px; color: var(--ink2); margin-bottom: 32px; }
.btn-primary { display: inline-flex; align-items: center; background: var(--grad); color: #fff; border-radius: 100px; padding: 14px 32px; font-size: 16px; font-weight: 700; text-decoration: none; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.88; }

/* FOOTER */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 40px 6%; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-logo { font-size: 18px; font-weight: 800; color: var(--ink); }
.footer-logo span { color: var(--blue); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.footer-links a { font-size: 13px; color: var(--ink3); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { font-size: 12px; color: var(--ink3); }

/* RELATED */
.related { background: var(--surface); border-top: 1px solid var(--border); padding: 60px 6%; }
.related h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 28px; max-width: 800px; margin-left: auto; margin-right: auto; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 800px; margin: 0 auto; }
.related-card { background: var(--bg); border: 1px solid var(--border2); border-radius: 14px; padding: 24px; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.related-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.related-card .r-tag { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.related-card h4 { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; }

@media (max-width: 640px) {
  nav { padding: 0 4%; }
  .article-hero, .article-body { padding-left: 4%; padding-right: 4%; }
  .inline-cta { padding: 28px 20px; }
}
