/* ClawFast Blog — shared styles */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg-deep: #0a0f1e;
  --bg-surface: #0f1529;
  --bg-card: #141b2d;
  --bg-card-hover: #1a2340;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --accent: #e63946;
  --accent-soft: rgba(230,57,70,0.15);
  --accent-glow: rgba(230,57,70,0.3);
  --accent-bright: #ff4d5e;
  --text: #e8ecf4;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --green: #22c55e;
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep); color: var(--text);
  overflow-x: hidden; width: 100%;
}

/* Background glow */
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 35% at 50% -5%, rgba(230,57,70,0.10), transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 10%, rgba(230,57,70,0.05), transparent 60%);
}

/* Focus & skip */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 200;
  background: var(--accent); color: #fff; padding: 8px 16px;
  border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Nav */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(10,15,30,0.8); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-size: 20px; font-weight: 800; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text);
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-dim); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #fff; padding: 12px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 700; text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s; min-height: 44px; display: inline-flex; align-items: center;
}
.nav-cta:hover { background: var(--accent-bright); transform: translateY(-1px); box-shadow: 0 0 24px var(--accent-glow); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 24px; position: relative; z-index: 1; }
.foot-inner {
  max-width: 1100px; margin: 0 auto; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.foot-copy { font-size: 13px; color: var(--text-muted); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.foot-links a:hover { color: var(--accent-bright); }

/* ── Blog listing ── */
.blog-hero {
  padding: 140px 24px 60px; text-align: center; position: relative; z-index: 1;
}
.blog-hero h1 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 12px;
}
.blog-hero p { font-size: 17px; color: var(--text-dim); max-width: 500px; margin: 0 auto; line-height: 1.7; }
.accent-text { color: var(--accent-bright); }

.blog-grid {
  max-width: 800px; margin: 0 auto; padding: 40px 24px 120px;
  display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1;
}
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
  padding: 32px; transition: all 0.3s; text-decoration: none; color: inherit; display: block;
}
.blog-card:hover { border-color: rgba(230,57,70,0.2); transform: translateY(-3px); background: var(--bg-card-hover); }
.blog-card-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.blog-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.blog-card p { font-size: 15px; color: var(--text-dim); line-height: 1.6; margin-bottom: 16px; }
.blog-card-meta { font-size: 13px; color: var(--text-muted); }

/* ── Article ── */
.article-header {
  padding: 140px 24px 48px; text-align: center; position: relative; z-index: 1;
  max-width: 800px; margin: 0 auto;
}
.article-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
  background: var(--accent-soft); padding: 6px 14px; border-radius: 100px;
}
.article-header h1 {
  font-size: clamp(28px, 5vw, 44px); font-weight: 900; letter-spacing: -1.5px;
  line-height: 1.15; margin-bottom: 16px;
}
.article-header .subtitle { font-size: 18px; color: var(--text-dim); line-height: 1.7; max-width: 600px; margin: 0 auto 20px; }
.article-meta { font-size: 14px; color: var(--text-muted); }

.article-body {
  max-width: 720px; margin: 0 auto; padding: 0 24px 120px;
  position: relative; z-index: 1;
}
.article-body h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
  margin: 56px 0 16px; padding-top: 32px; border-top: 1px solid var(--border);
}
.article-body h2:first-child { border-top: none; padding-top: 0; margin-top: 40px; }
.article-body h3 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; }
.article-body p { font-size: 16px; line-height: 1.8; color: var(--text-dim); margin-bottom: 20px; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent); }
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px; font-size: 16px; line-height: 1.8; color: var(--text-dim);
}
.article-body li { margin-bottom: 8px; }
.article-body li strong { color: var(--text); }
.article-body blockquote {
  border-left: 3px solid var(--accent); padding: 16px 20px; margin: 24px 0;
  background: var(--bg-card); border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--text-dim);
}

/* Comparison table */
.compare-table {
  width: 100%; border-collapse: collapse; margin: 24px 0 32px;
  font-size: 14px; line-height: 1.6;
}
.compare-table th {
  text-align: left; padding: 12px 16px; font-weight: 700; font-size: 13px;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 2px solid var(--border); background: var(--bg-surface);
}
.compare-table th:first-child { border-radius: 10px 0 0 0; }
.compare-table th:last-child { border-radius: 0 10px 0 0; }
.compare-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-dim);
}
.compare-table tr:hover td { background: var(--bg-card); }
.compare-table .hl-row td { background: rgba(230,57,70,0.04); color: var(--text); font-weight: 500; }
.compare-table .hl-row td:first-child { color: var(--accent-bright); font-weight: 700; }

/* Verdict box */
.verdict-box {
  background: linear-gradient(135deg, rgba(230,57,70,0.06), var(--bg-card));
  border: 1px solid rgba(230,57,70,0.2); border-radius: 18px;
  padding: 32px; margin: 40px 0;
}
.verdict-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--accent-bright); }
.verdict-box p { font-size: 16px; line-height: 1.8; color: var(--text-dim); margin-bottom: 0; }

/* CTA banner */
.article-cta {
  text-align: center; padding: 48px 32px; margin: 48px 0;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
}
.article-cta h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.article-cta p { font-size: 16px; color: var(--text-dim); margin-bottom: 24px; }
.article-cta .btn-primary {
  background: var(--accent); color: #fff; padding: 16px 36px; border-radius: 14px;
  font-size: 16px; font-weight: 700; text-decoration: none; border: none; cursor: pointer;
  transition: all 0.3s; box-shadow: 0 4px 24px var(--accent-soft);
  display: inline-flex; align-items: center;
}
.article-cta .btn-primary:hover { box-shadow: 0 8px 40px var(--accent-glow); transform: translateY(-2px); background: var(--accent-bright); }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .nav-cta { padding: 10px 14px; font-size: 12px; }
  .article-header { padding: 120px 16px 32px; }
  .article-body { padding: 0 16px 80px; }
  .article-body h2 { font-size: 22px; }
  .article-body h3 { font-size: 18px; }
  .blog-grid { padding: 32px 16px 80px; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 8px 10px; }
}
@media (max-width: 480px) {
  .compare-table { display: block; overflow-x: auto; white-space: nowrap; }
}
