@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700&family=Plus+Jakarta+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

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

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-2: #f4f3ef;
  --border: #e8e6e0;
  --text-1: #1a1917;
  --text-2: #6b6860;
  --text-3: #a8a59e;
  --accent: #2563eb;
  --accent-light: #eff4ff;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.mono { font-family: 'IBM Plex Mono', monospace; }

/* ---- Nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 7px;
}

.logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text-1); }

/* ---- Layout ---- */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Hero ---- */

.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 680px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.65;
}

/* ---- Section headings ---- */

.section {
  padding: 64px 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.section-header p {
  font-size: 14px;
  color: var(--text-2);
}

/* ---- Trending cards ---- */

.trending-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tool-card:hover {
  border-color: #ccc9c0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.tool-card-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tool-card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 16px;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.trend-rising { color: var(--green); background: #f0fdf4; }
.trend-stable { color: var(--text-3); background: var(--surface-2); }
.trend-cooling { color: var(--red); background: #fef2f2; }

.trend-score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 26px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 4px;
}

.trend-score span {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 400;
}

.card-link {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.card-link:hover { text-decoration: underline; }

.score-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-3);
  font-family: 'IBM Plex Mono', monospace;
}

/* ---- Compare cards ---- */

.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-tab {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-tab:hover { border-color: #bbb9b0; color: var(--text-1); }
.filter-tab.active { background: var(--text-1); color: white; border-color: var(--text-1); }

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  transition: border-color 0.15s;
}

.compare-card:hover { border-color: #ccc9c0; }

.compare-card-vs {
  font-size: 13px;
  color: var(--text-3);
  font-family: 'IBM Plex Mono', monospace;
  margin-bottom: 8px;
}

.compare-card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.compare-card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 14px;
}

.category-tag {
  display: inline-block;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-2);
  margin-right: 4px;
  margin-bottom: 12px;
}

/* ---- Tools section on homepage ---- */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.tool-mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  transition: border-color 0.15s;
}

.tool-mini-card:hover { border-color: #ccc9c0; }

.tool-mini-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tool-mini-tagline {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 12px;
  line-height: 1.4;
}

.score-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent);
  display: inline-block;
  margin-bottom: 10px;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 24px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.15s;
}

.footer-nav a:hover { color: var(--text-1); }

.footer-copy {
  font-size: 12px;
  color: var(--text-3);
}

/* ---- Tool page ---- */

.breadcrumb {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 32px;
  padding-top: 40px;
}

.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--text-2); }
.breadcrumb span { margin: 0 6px; }

.tool-header {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.tool-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.tool-tagline {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 20px;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--text-2);
}

.badge-score {
  background: var(--accent-light);
  color: var(--accent);
  border-color: #d0e0fd;
}

.badge-rising { color: var(--green); background: #f0fdf4; border-color: #bbf7d0; }
.badge-stable { color: var(--text-3); background: var(--surface-2); }
.badge-cooling { color: var(--red); background: #fef2f2; border-color: #fecaca; }

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 48px;
}

.stat-cell {
  background: var(--surface);
  padding: 18px 20px;
}

.stat-label {
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}

.tool-section {
  margin-bottom: 40px;
}

.tool-section h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
}

.tool-section p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 12px;
}

.tool-section ul li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
}

.tool-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
}

.good-list li::before { background: var(--green); }
.weak-list li::before { background: var(--text-3); }

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}

.pricing-table th {
  background: var(--surface-2);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
}

.pricing-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}

.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:nth-child(even) td { background: #fafaf8; }

.compare-links {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.compare-links h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

.compare-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-links-list a {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.compare-links-list a:hover { text-decoration: underline; }

/* ---- CTA buttons ---- */

.cta-btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 7px;
  border: 1.5px solid var(--text-1);
  color: var(--text-1);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: -0.01em;
}

.cta-btn:hover {
  background: var(--text-1);
  color: white;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  align-items: center;
}

.tool-cta {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

/* ---- Compare page ---- */

.compare-intro {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 700px;
}

.verdict-box {
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.verdict-col h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  margin-bottom: 8px;
}

.verdict-col p {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.5;
}

.compare-table-wrap {
  overflow-x: auto;
  margin-bottom: 48px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}

.compare-table th {
  background: var(--surface-2);
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.compare-table th:first-child { color: var(--text-3); font-weight: 400; }

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

.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--text-1); font-weight: 500; }

.tick { color: var(--green); font-weight: 600; }
.cross { color: var(--red); }

.compare-section {
  margin-bottom: 44px;
}

.compare-section h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.compare-section p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 14px;
}

.final-verdict {
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 8px 8px 0;
  padding: 28px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.final-verdict h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}

.final-verdict ul li {
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.6;
  padding: 4px 0 4px 16px;
  position: relative;
}

.final-verdict ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .trending-grid { grid-template-columns: repeat(3, 1fr); }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .compare-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .verdict-box, .final-verdict { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 600px) {
  .trending-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .quick-stats { grid-template-columns: 1fr 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
}

/* ---- Tool icons ---- */

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tool-card-header .tool-card-name {
  margin-bottom: 0;
}

/* trend bar */
.trend-bar-wrap {
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  margin: 12px 0 10px;
  overflow: hidden;
}

.trend-bar {
  height: 100%;
  width: var(--bar-w);
  background: var(--bar-color);
  border-radius: 2px;
  transition: width 0.6s ease;
}

.trend-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.trend-row .trend-score {
  margin-bottom: 0;
}

/* trend chart */
.trend-chart-wrap {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 20px 16px;
}

.trend-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.trend-chart-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chart-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-2);
  font-family: 'IBM Plex Mono', monospace;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.trend-chart {
  width: 100%;
  height: auto;
  display: block;
}

/* compare card logos row */
.compare-card-logos {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-divider {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-3);
  padding: 0 2px;
}

/* tool mini card header */
.tool-mini-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tool-mini-header .tool-mini-name {
  margin-bottom: 0;
}

/* ---- SVG Logo ---- */

.logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo svg { display: block; }

.logo-footer svg text:last-child {
  /* keep footer wordmark same color */
  fill: #1a1917;
}

/* ensure old .mono class on logo doesn't conflict */
a.logo, a.logo-footer { font-size: inherit; }
