:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #0EA5E9;
  --brand-dark: #0284C7;
  --brand-light: #e0f2fe;
  --card: #ffffff;
  --line: #e2e8f0;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

/* Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 17px;
}

.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.btn-ghost {
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0 60px;
}

.hero-content {
  max-width: 540px;
}

.eyebrow {
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.lead {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* Sections */
.section {
  padding: 80px 0;
}

h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-lead {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 48px;
}

/* Feature Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.08);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* Portfolio Preview */
.portfolio-preview {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--brand-light) 100%);
  border-radius: 24px;
  padding: 64px;
  margin: 40px auto;
}

.preview-content h2 {
  margin-bottom: 16px;
}

.preview-content p {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 500;
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.preview-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--brand);
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 15px;
}

/* CTA */
.cta-section {
  padding: 80px 0;
}

.cta-box {
  background: var(--brand);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
}

.cta-box h2 {
  color: white;
  margin-bottom: 12px;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.cta-box .btn-primary {
  background: white;
  color: var(--brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-box .btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-brand .brand {
  font-size: 1.25rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
}

.footer-paths {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: 1100px;
  text-align: left;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer-paths h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.footer-paths p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.footer-paths a {
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}
.footer-paths a:hover {
  text-decoration: underline;
}
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.footer-cta:hover {
  background: var(--brand-dark);
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

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

.footer small {
  color: var(--muted);
  font-size: 13px;
}

/* Stats Row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* Coverage Grid */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.coverage-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.coverage-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.coverage-col p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.center-link {
  text-align: center;
  margin-top: 24px;
}

.center-link a:not(.btn) {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
}

.center-link a:not(.btn):hover {
  color: var(--brand-dark);
}

/* Card Link */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover h3 {
  color: var(--brand);
}

/* Learn Pages */
.page-header {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.page-header .breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.page-header .breadcrumb a {
  color: var(--brand);
  text-decoration: none;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-header .page-lead {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 900px;
}

.article-body {
  max-width: 1100px;
  padding-bottom: 80px;
}

.article-body a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(14,165,233,0.3);
  transition: border-color 0.2s;
}

.article-body a:hover {
  border-bottom-color: var(--brand);
}

.article-body > p,
.article-body > ul,
.article-body > ol,
.article-body > blockquote,
.article-body > .highlight-box {
  max-width: 800px;
}

.article-body h2 {
  font-size: 1.75rem;
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  color: var(--muted);
  margin: 0 0 16px 24px;
  line-height: 1.8;
}

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

.article-body .highlight-box {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.article-body .highlight-box p {
  color: var(--text);
  margin: 0;
}

.article-body .term-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.article-body .term-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.article-body .term-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.article-body .term-card p {
  font-size: 14px;
  margin: 0;
}

.learn-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.learn-hub-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.learn-hub-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.08);
}

.learn-hub-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.learn-hub-card:hover h3 {
  color: var(--brand);
}

.learn-hub-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Protocol Tables */
.protocol-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.protocol-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--brand-light);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.protocol-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.protocol-table tr:hover td {
  background: var(--brand-light);
}

.chain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chain-tag {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Article tables (plain <table> inside .article-body) */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.article-body table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--brand-light);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

.article-body table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

.article-body table tr:hover td {
  background: var(--brand-light);
}

/* Table overflow wrapper */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-wrap table,
.table-wrap .protocol-table {
  margin: 0;
  min-width: 600px;
  border-radius: 8px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.nav-toggle svg {
  display: block;
}

/* Language switcher trigger */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 980px;
  padding: 6px 10px 6px 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(0,0,0,0.04);
  border-color: var(--line);
}

.lang-globe {
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.lang-btn:hover .lang-globe {
  opacity: 0.8;
}

/* Language dialog — full overlay */
.lang-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 24px;
  border: none;
  background: transparent;
  z-index: 9999;
  overflow: hidden;
}

.lang-dialog::backdrop {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  animation: langBackdropIn 0.2s ease;
}

@keyframes langBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lang-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-dialog-inner {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  box-shadow:
    0 0 0 0.5px rgba(0,0,0,0.05),
    0 8px 40px rgba(0,0,0,0.1),
    0 2px 6px rgba(0,0,0,0.04);
  width: 380px;
  max-width: 100%;
  animation: langDialogIn 0.3s cubic-bezier(0.32,0.72,0,1);
}

@keyframes langDialogIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.lang-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 6px;
}

.lang-dialog-header h3 {
  font-size: 16px;
  font-weight: 650;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  margin: 0;
}

.lang-dialog-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  border: none;
  cursor: pointer;
  color: rgba(0,0,0,0.4);
  transition: all 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.lang-dialog-close:hover {
  background: rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.7);
}

.lang-dialog-close:active {
  transform: scale(0.92);
}

.lang-dialog-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 12px 16px;
}

.lang-dialog-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}

.lang-dialog-list a:hover {
  background: rgba(0,0,0,0.04);
}

.lang-dialog-list a:active {
  background: rgba(0,0,0,0.06);
  transform: scale(0.99);
}

.lang-dialog-list a.active {
  background: rgba(14,165,233,0.06);
}

.lang-dialog-list a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--brand);
  border-radius: 0 3px 3px 0;
}

.lang-dialog-list .lang-name {
  font-size: 15px;
  font-weight: 450;
  color: #1d1d1f;
  letter-spacing: -0.01em;
  flex: 1;
}

.lang-dialog-list a.active .lang-name {
  font-weight: 600;
  color: var(--brand);
}

.lang-dialog-list .lang-code {
  font-size: 11px;
  font-weight: 500;
  color: rgba(0,0,0,0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lang-dialog-list a.active .lang-code {
  color: rgba(14,165,233,0.5);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .actions {
    justify-content: center;
  }

  .grid, .coverage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-preview {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 32px;
  }

  .feature-list {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 32px;
  }
}

@media (max-width: 768px) {
  .grid, .coverage-grid, .learn-hub-grid, .article-body .term-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-paths {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    gap: 8px;
  }

  .cta-box {
    padding: 40px 24px;
  }

  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 5%;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    display: block;
    width: 100%;
  }

  nav a:last-child {
    border-bottom: none;
    margin-top: 8px;
  }

  nav a.btn {
    text-align: center;
  }

  .topbar .nav {
    position: relative;
  }

  .lang-switcher {
    width: 100%;
    padding: 12px 0;
    border-bottom: none;
  }

  .lang-btn {
    padding: 8px 0;
  }

  .lang-dialog-inner {
    width: 300px;
  }

  .lang-dialog-list {
    padding: 10px 10px 14px;
  }

  .lang-dialog-list a {
    padding: 12px 14px;
  }

  /* Table scroll hint */
  .protocol-table {
    font-size: 13px;
  }

  .protocol-table th,
  .protocol-table td {
    padding: 8px 10px;
  }

  /* Page header */
  .page-header h1 {
    font-size: 1.75rem;
  }

  .page-header {
    padding: 32px 0 20px;
    margin-bottom: 32px;
  }

  .article-body h2 {
    font-size: 1.4rem;
  }

  /* Stats */
  .stats-row {
    gap: 24px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-paths {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .section {
    padding: 48px 0;
  }

  .learn-hub-card {
    padding: 20px;
  }

  .portfolio-preview {
    padding: 32px 20px;
  }
}

/* ── Accessibility ── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 1000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
}

*:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Utility ── */

.hero-hint {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}
.pagination a, .pagination .current, .pagination .disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.pagination a {
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
}
.pagination a:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}
.pagination .current {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}
.pagination .disabled {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  opacity: 0.35;
  cursor: default;
}

/* Category filter pills */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.cat-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.cat-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}
.cat-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
