:root {
  color-scheme: light;
  --ink: #162033;
  --muted: #5d697b;
  --soft: #eef3f8;
  --line: #d9e2ec;
  --paper: #ffffff;
  --blue: #2457a6;
  --green: #14795a;
  --amber: #a65d00;
  --coral: #b4493f;
  --navy: #102a43;
  --shadow: 0 16px 36px rgba(16, 42, 67, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f9fc;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.primary-nav,
.header-actions,
.mobile-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  min-width: max-content;
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
}

.brand-text {
  letter-spacing: 0;
}

.primary-nav {
  flex: 1;
  justify-content: center;
  gap: 4px;
}

.primary-nav a,
.mobile-nav a,
.lang-switch {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.primary-nav a:hover,
.mobile-nav a:hover,
.lang-switch:hover {
  color: var(--ink);
  background: var(--soft);
}

.header-actions {
  gap: 8px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mobile-nav {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 0 20px 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
}

.hero-inner {
  position: relative;
  padding: 72px 0 64px;
}

.hero-title {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-sub,
.hero-points {
  max-width: 760px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.hero-search {
  position: relative;
  max-width: 640px;
  margin: 28px 0 16px;
}

.hero-search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  display: grid;
  transform: translateY(-50%);
  color: var(--muted);
}

.hero-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 44px;
  color: var(--ink);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.hero-search input:focus {
  border-color: #7db4ff;
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 5;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-results a,
.search-empty {
  display: block;
  padding: 9px 10px;
  color: var(--ink);
  border-radius: 6px;
}

.search-results a:hover {
  background: var(--soft);
}

.hero-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip,
.chip-btn,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  font-size: 12px;
}

.hero .chip {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-stats {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.section {
  padding: 54px 0;
}

.section-alt {
  background: #eef4f8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2,
.page-head h1,
.prose h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: 0;
}

.page-head {
  padding: 48px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-intro,
.prose-summary {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
}

.cat-grid,
.tool-grid,
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cat-card,
.cat-list-card,
.guide-card,
.guide-list-card,
.tool-card-link,
.tool-block,
.prose,
.tool-summary {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(16, 42, 67, 0.03);
}

.cat-card,
.guide-card,
.guide-list-card,
.tool-card-link,
.tool-block {
  padding: 18px;
}

.cat-card:hover,
.cat-list-card:hover,
.guide-card:hover,
.guide-list-card:hover,
.tool-card-link:hover {
  border-color: #a6b9cf;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.cat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  margin-bottom: 12px;
}

.cat-name,
.cat-count,
.cat-list-name,
.guide-card-title,
.guide-list-title,
.tool-card-title {
  display: block;
  margin: 0;
  font-weight: 760;
}

.cat-count,
.cat-list-intro,
.guide-card-summary,
.guide-list-summary,
.tool-card-tag,
.tool-card-summary {
  color: var(--muted);
}

.cat-list,
.guide-list {
  display: grid;
  gap: 14px;
}

.cat-list-card,
.guide-list-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.tool-card-head,
.tool-hero-top,
.tool-card-cta,
.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-card-pills,
.tool-meta-pills,
.filter-row,
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tool-card-tag {
  margin: 9px 0 12px;
  font-weight: 650;
}

.tool-card-summary {
  min-height: 66px;
  margin: 12px 0;
}

.tool-card-cta {
  color: var(--blue);
  font-weight: 760;
}

.pill-friendly-friendly {
  color: var(--green);
  border-color: rgba(20, 121, 90, 0.26);
  background: #eaf7f1;
}

.pill-friendly-partial {
  color: var(--amber);
  border-color: rgba(166, 93, 0, 0.28);
  background: #fff6e6;
}

.pill-friendly-unfriendly {
  color: var(--coral);
  border-color: rgba(180, 73, 63, 0.26);
  background: #fff0ee;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.pill-category {
  color: var(--blue);
  background: #eef5ff;
  border-color: #c8dbf5;
}

.pill-difficulty,
.pill-kyc {
  color: #3b4656;
  background: #f5f7fa;
}

.chip-btn {
  cursor: pointer;
}

.chip-btn.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.link-more,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 8px;
  font-weight: 740;
}

.link-more {
  color: var(--blue);
}

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

.breadcrumb {
  padding: 18px 0 0;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--blue);
}

.tool-hero {
  padding: 42px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.tool-h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.22;
  letter-spacing: 0;
}

.tool-tagline {
  max-width: 760px;
  margin: 12px 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.tool-pricing {
  margin: 14px 0 0;
}

.tool-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tool-block h2,
.prose-section h2,
.prose h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: 0;
}

.check-list,
.cross-list {
  margin: 0;
  padding-left: 19px;
}

.check-list li,
.cross-list li {
  margin: 6px 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 760;
}

.tool-summary,
.prose {
  padding: 28px;
}

.prose {
  margin-top: 42px;
  margin-bottom: 54px;
}

.prose-head {
  margin-bottom: 26px;
}

.prose-section {
  margin-top: 24px;
}

.filter-row {
  justify-content: space-between;
  margin-bottom: 20px;
}

.filter-label {
  color: var(--muted);
  font-weight: 700;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  background: #0e1f32;
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0 28px;
}

.footer-title,
.footer-h {
  color: #fff;
  font-weight: 780;
  margin-bottom: 10px;
}

.site-footer a {
  display: block;
  margin: 7px 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: #fff;
}

.footer-base {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
  .primary-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .cat-grid,
  .tool-grid,
  .guides-grid,
  .tool-grid-2,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-title {
    font-size: 31px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 58px;
  }

  .brand-text {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lang-switch {
    display: none;
  }

  .hero-inner {
    padding: 52px 0;
  }

  .hero-title,
  .tool-h1,
  .page-head h1,
  .prose h1,
  .section-head h2 {
    font-size: 28px;
  }

  .section {
    padding: 42px 0;
  }

  .section-head,
  .tool-hero-top,
  .footer-base {
    align-items: flex-start;
    flex-direction: column;
  }

  .cat-grid,
  .tool-grid,
  .guides-grid,
  .tool-grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cat-list-card,
  .guide-list-card {
    grid-template-columns: 1fr;
  }
}
