:root {
  --bg:      #0a0a0a;
  --surface: #111111;
  --card:    #161616;
  --border:  #222222;
  --accent:  #fe2c55;
  --text:    #ffffff;
  --muted:   #888888;
  --radius:  12px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

/* ─── Nav ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-logo-img {
  height: 22px;
  width: auto;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

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

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

/* ─── Hamburger ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
  }
}

/* ─── Main content ─── */
main {
  padding-top: 56px;
  min-height: 100vh;
}

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

/* ─── Hero ─── */
.hero {
  text-align: center;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Search bar ─── */
.search-bar {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 32px;
}

.search-bar input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 10px 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-bar input::placeholder {
  color: var(--muted);
}

.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.15);
}

.search-bar input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn {
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 10px 20px;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ─── Error ─── */
.error-msg {
  display: none;
  background: rgba(254, 44, 85, 0.08);
  border: 1px solid rgba(254, 44, 85, 0.3);
  border-radius: var(--radius);
  color: #ff6b8a;
  font-size: 0.875rem;
  max-width: 480px;
  margin: 0 auto 24px;
  padding: 10px 16px;
  text-align: center;
}

.error-msg.visible {
  display: block;
}

/* ─── Profile section ─── */
.profile-section {
  display: none;
  margin-bottom: 32px;
}

.profile-section.visible {
  display: block;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 24px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
  flex-shrink: 0;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  color: #20d5ec;
  font-size: 1rem;
}

.profile-handle {
  color: var(--muted);
  font-size: 0.875rem;
}

.profile-bio {
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 360px;
}

/* ─── Followers hero ─── */
.followers-hero {
  text-align: center;
  margin-bottom: 16px;
}

.followers-hero .stat-label {
  margin-bottom: 4px;
}

.followers-hero .stat-value {
  font-size: 4rem;
  font-weight: 800;
}

/* ─── Live indicator ─── */
.live-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

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

/* ─── Secondary stats row ─── */
.secondary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.secondary-stats .stat-card {
  padding: 12px 8px;
}

.secondary-stats .stat-value {
  font-size: 1.25rem;
}

@media (min-width: 400px) {
  .secondary-stats {
    gap: 12px;
  }

  .secondary-stats .stat-card {
    padding: 16px;
  }

  .secondary-stats .stat-value {
    font-size: 1.5rem;
  }
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat-card.hero .stat-value {
  font-size: 3.5rem;
}

/* ─── Footer status ─── */
.status-line {
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
  margin-top: 20px;
}

/* ─── Versus layout ─── */
.versus-profiles {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.versus-profile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.versus-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--muted);
}

.versus-empty {
  color: var(--muted);
  font-size: 0.8125rem;
}

.versus-loading {
  color: var(--muted);
  font-size: 0.8125rem;
}

.versus-error {
  color: #ff6b8a;
  font-size: 0.8125rem;
}

.versus-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  margin-bottom: 8px;
  background: var(--surface);
}

.versus-name {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.versus-handle {
  color: var(--muted);
  font-size: 0.8125rem;
}

.remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8125rem;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.remove-btn:hover {
  color: var(--text);
  background: var(--border);
}

/* ─── Versus stat blocks ─── */
.versus-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.versus-stat-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.versus-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

/* Each account row: handle | value | bar */
.versus-stat-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.versus-stat-entry:last-of-type {
  margin-bottom: 0;
}

.ve-handle {
  font-size: 0.8125rem;
  color: var(--muted);
  flex: 0 0 auto;
  min-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ve-value {
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
  min-width: 90px;
  text-align: right;
}

.ve-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
}

.ve-bar {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.versus-diff {
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ─── Refresh line ─── */
.versus-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ─── Coming soon (engagement) ─── */
.coming-soon-section {
  text-align: center;
  padding: 60px 0;
}

.coming-soon-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  background: rgba(254, 44, 85, 0.12);
  border: 1px solid rgba(254, 44, 85, 0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.coming-soon-section p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0.35;
  pointer-events: none;
}

@media (min-width: 500px) {
  .placeholder-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.placeholder-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
}

.placeholder-card .stat-label {
  font-size: 0.7rem;
  margin-bottom: 6px;
}

.placeholder-card .stat-value {
  font-size: 1.5rem;
}

/* ─── Loading skeleton ─── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--card) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  color: transparent;
  user-select: none;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Utility ─── */
.hidden { display: none !important; }

/* ─── Engagement page ─── */
.eng-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.eng-profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ─── Engagement hero card ─── */
.eng-hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 16px;
}

.eng-hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.eng-rate-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.eng-rate {
  font-size: 3.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.eng-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid transparent;
}

.eng-description {
  color: var(--muted);
  font-size: 0.9375rem;
}

.eng-method-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
}

/* ─── Stats grid ─── */
.eng-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 559px) {
  .eng-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eng-stat-card {
    padding: 14px 8px;
    min-width: 0;
  }

  .eng-stat-value {
    font-size: 1rem;
    word-break: break-all;
  }

  .eng-stat-label {
    font-size: 0.65rem;
  }
}

@media (min-width: 560px) {
  .eng-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.eng-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eng-stat-icon {
  font-size: 1.25rem;
  margin-bottom: 6px;
  line-height: 1;
}

.eng-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.eng-stat-value {
  font-size: 1.375rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 4px;
}

.eng-stat-sub {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ─── Sections ─── */
.eng-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  margin-bottom: 12px;
}

.eng-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.eng-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 16px;
}

.eng-section-header .eng-section-title {
  margin-bottom: 0;
}

.eng-year-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px 8px;
}

/* ─── Benchmark bar ─── */
.benchmark-wrap {
  position: relative;
  margin-bottom: 10px;
}

.benchmark-bar {
  display: flex;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}

.benchmark-seg {
  flex: 1;
}

.benchmark-marker {
  position: absolute;
  top: -4px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.benchmark-marker-pin {
  width: 2px;
  height: 18px;
  background: var(--text);
  border-radius: 1px;
}

.benchmark-marker-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  margin-top: 2px;
  background: var(--card);
  padding: 1px 4px;
  border-radius: 3px;
}

.benchmark-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}

.benchmark-ticks span {
  font-size: 0.7rem;
  color: var(--muted);
  flex: 1;
  text-align: center;
}

.benchmark-ticks span:first-child { text-align: left; }
.benchmark-ticks span:last-child  { text-align: right; }

.benchmark-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--muted);
}

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

/* ─── Formula ─── */
.eng-formula-section .eng-section-title {
  margin-bottom: 14px;
}

.eng-formula-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.formula-display {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

.formula-text {
  color: var(--text);
}

.formula-fraction {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  vertical-align: middle;
}

.formula-num {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 700;
  padding-bottom: 4px;
}

.formula-bar {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--muted);
}

.formula-den {
  font-size: 0.8125rem;
  color: var(--muted);
  padding-top: 4px;
}

.eng-formula-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Page content / written sections ─── */
.page-content {
  margin-top: 56px;
  border-top: 1px solid var(--border);
}

.content-block {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.content-block:last-child {
  border-bottom: none;
}

.content-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.content-block > p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 16px;
}

.content-block > p:last-child {
  margin-bottom: 0;
}

.content-img {
  display: block;
  max-width: 480px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 28px;
}

/* ─── Stat explainer grid ─── */
.stat-explainer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 560px) {
  .stat-explainer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-explainer {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.stat-explainer h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-explainer p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── FAQ ─── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-a {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── Benchmark table ─── */
.benchmark-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
}

.benchmark-row {
  display: grid;
  grid-template-columns: 90px 90px 1fr;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.benchmark-row:last-child {
  border-bottom: none;
}

.benchmark-row-header {
  background: var(--surface);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.bm-range {
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bm-badge {
  font-size: 0.8125rem;
  font-weight: 700;
}

.bm-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Legal pages (privacy, terms) ─── */
.legal-content .content-block {
  padding: 36px 0;
}

.legal-list {
  list-style: none;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-list li {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.legal-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.legal-link {
  color: var(--accent);
  text-decoration: none;
}

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

/* ─── Contact ─── */
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 480px;
  margin: 0 auto;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.contact-email {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

/* ─── Blog list ─── */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: block;
  text-decoration: none;
  transition: border-color 0.15s;
}

.blog-card:hover {
  border-color: var(--muted);
}

.blog-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.blog-card-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ─── Article ─── */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.15s;
}

.article-back:hover {
  color: var(--text);
}

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

.article-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.article-header h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .article-header h1 {
    font-size: 2.5rem;
  }
}

.article-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.article-body {
  max-width: 680px;
}

.article-body p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.article-body h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 44px;
  margin-bottom: 14px;
  line-height: 1.25;
}

.article-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 10px;
}

.article-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.article-body ul li {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}

.article-body ul li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
}

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

.footer-copy {
  font-size: 0.8125rem;
  color: var(--muted);
}

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

.footer-links a {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

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