:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --radius: 8px;
  --max-width: 860px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* HEADER */
header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

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

nav { display: flex; gap: 28px; }
nav a { color: var(--text-muted); font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--primary); text-decoration: none; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 16px;
}

.hero p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
}

/* MAIN LAYOUT */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ARTICLE GRID */
.section {
  padding: 56px 0;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-color: var(--primary);
  text-decoration: none;
}

.card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.card h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ARTICLE PAGE */
.article-wrap {
  max-width: var(--max-width);
  margin: 48px auto;
  padding: 0 24px;
}

.article-header { margin-bottom: 40px; }

.article-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.article-meta strong { color: var(--text); }

/* VERDICT BOX */
.verdict-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}

.verdict-box h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 10px;
}

.verdict-box p { font-size: 16px; color: var(--text); margin: 0; }

/* COMPARISON TABLE */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}

.compare-table th {
  background: var(--bg-soft);
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  font-size: 14px;
}

.compare-table th:first-child { width: 35%; }

.compare-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg-soft); }

.badge-win {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 6px;
}

/* CTA BUTTON */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.2s;
  text-align: center;
}

.btn:hover { opacity: 0.88; text-decoration: none; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }

.cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

/* TOOL CARD */
.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

.tool-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.tool-card .price { font-size: 24px; font-weight: 800; color: var(--primary); margin: 8px 0; }
.tool-card .price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.pros-cons ul { list-style: none; }
.pros-cons li { padding: 4px 0; font-size: 14px; }
.pros li::before { content: "✓ "; color: #16a34a; font-weight: 700; }
.cons li::before { content: "✗ "; color: #dc2626; font-weight: 700; }
.pros-cons h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; color: var(--text-muted); }

/* ARTICLE BODY */
.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-top: 16px;
}

.article-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.article-body p { margin-bottom: 20px; }

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}

.article-body li { margin-bottom: 6px; }

.highlight {
  background: #fefce8;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-size: 15px;
}

/* TOC */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
}

.toc h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; color: var(--text-muted); }
.toc ol { margin: 0 0 0 20px; }
.toc li { margin-bottom: 4px; font-size: 15px; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--primary); }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 40px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-note {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.5;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 640px) {
  nav { display: none; }
  .pros-cons { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 10px 10px; }
}
