:root {
  --ink: #12213f;
  --muted: #71809d;
  --line: #e3ebf6;
  --primary: #2868f0;
  --primary2: #16c8cf;
  --surface: rgba(255, 255, 255, 0.94);
  --shadow: 0 17px 40px rgba(32, 83, 153, 0.12);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 4%, rgba(22, 200, 207, 0.1), transparent 24rem),
    radial-gradient(circle at 3% 22%, rgba(40, 104, 240, 0.08), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, #f6faff 58%, #f8faff 100%);
}

.shell {
  width: min(1328px, calc(100% - 48px));
}

.topbar {
  min-height: 78px;
  border-bottom: 1px solid rgba(222, 232, 245, 0.9);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  height: 78px;
  gap: 36px;
}

.brand strong {
  color: #12213f;
}

.brand small {
  color: #8b98af;
  font-size: 9px;
  letter-spacing: 1px;
}

.brand-mark {
  background: linear-gradient(135deg, #2868f0, #16c8cf);
  box-shadow: 0 10px 25px rgba(40, 104, 240, 0.23);
}

.brand-mark i {
  background: #173153;
}

.main-nav {
  gap: 20px;
}

.main-nav a {
  position: relative;
  padding: 27px 6px;
  border-radius: 0;
  color: #5f6e89;
  background: transparent !important;
}

.main-nav a:hover,
.main-nav a.active {
  color: #2868f0;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 0;
  left: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2868f0, #16c8cf);
}

.admin-entry {
  border-color: #d8e4f4;
  color: #375173;
  background: white;
  box-shadow: 0 6px 18px rgba(31, 72, 128, 0.05);
}

.admin-entry:hover {
  border-color: #2868f0;
  color: #2868f0;
}

.hero {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(226, 235, 247, 0.85);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image: radial-gradient(#a7c6ef 0.75px, transparent 0.75px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
  pointer-events: none;
}

.hero-card {
  position: relative;
  min-height: 0;
  width: min(1180px, calc(100% - 40px));
  display: block;
  margin: 0 auto;
  padding: 62px 0 34px;
  overflow: visible;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.hero-card::after,
.hero-art {
  display: none;
}

.hero-copy {
  width: 100%;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  color: #2868f0;
  background: #eaf2ff;
  font-size: 12px;
  font-weight: 700;
}

.hero-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16c8cf;
  box-shadow: 0 0 0 4px rgba(22, 200, 207, 0.12);
}

.hero h1 {
  margin: 18px 0 10px;
  color: #12213f;
  font-size: clamp(38px, 4.1vw, 58px);
  line-height: 1.15;
  letter-spacing: -2.3px;
}

.hero h1 em {
  color: transparent;
  background: linear-gradient(90deg, #2868f0 20%, #10bfc9 90%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero p {
  max-width: none;
  color: #76849d;
  font-size: 16px;
}

.search-box {
  width: min(800px, 100%);
  height: 66px;
  gap: 12px;
  margin: 30px auto 14px;
  padding: 7px 8px 7px 22px;
  border: 1px solid #dce7f7;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 50px rgba(36, 92, 167, 0.14);
}

.search-box > span {
  color: #7486a5;
  font-size: 24px;
}

.search-box input {
  color: #12213f;
}

.search-box kbd {
  align-self: stretch;
  min-width: 112px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(110deg, #2868f0, #18beca);
  box-shadow: 0 10px 22px rgba(40, 104, 240, 0.22);
}

.hot-keywords {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #96a2b4;
  font-size: 12px;
}

.hot-keywords button {
  border: 0;
  padding: 2px;
  color: #61738f;
  background: transparent;
  cursor: pointer;
}

.hot-keywords button:hover {
  color: #2868f0;
}

.category-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.category-strip a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e0e8f4;
  border-radius: 12px;
  padding: 10px 15px;
  color: #63718a;
  background: rgba(255, 255, 255, 0.86);
  transition: all 0.2s ease;
}

.category-strip a span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #65799a;
  background: #eef4fb;
  font-size: 10px;
}

.category-strip a:hover,
.category-strip a.active {
  border-color: #d1e1ff;
  color: #2464ed;
  background: #edf4ff;
}

.category-strip a.active {
  font-weight: 700;
}

.category-strip a.active span {
  color: white;
  background: linear-gradient(135deg, #2868f0, #16c8cf);
}

.directory-layout {
  display: block;
  padding-top: 46px;
}

.category-panel {
  display: none;
}

.section-head {
  height: auto;
  align-items: flex-end;
  margin-bottom: 20px;
}

.section-kicker {
  color: #2868f0;
}

.section-head h2 {
  color: #12213f;
}

.section-head p {
  padding: 7px 11px;
  border-radius: 9px;
  color: #5f7190;
  background: #edf3fb;
  font-size: 12px;
}

.tool-grid {
  gap: 14px;
}

.tool-card {
  position: relative;
  border-color: #e3ebf6;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(29, 73, 128, 0.05);
}

.tool-card:hover {
  border-color: #cbdcff;
  box-shadow: var(--shadow);
}

.tool-card-main {
  min-height: 157px;
  display: flex;
  gap: 15px;
  padding: 20px 46px 18px 19px;
}

.tool-logo {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 15px;
}

.tool-card-copy {
  min-width: 0;
  flex: 1;
}

.tool-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tool-card-title strong {
  overflow: hidden;
  color: #12213f;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-score {
  padding: 0;
  color: #8796ac;
  background: transparent;
  font-size: 10px;
}

.tool-tagline {
  min-height: 42px;
  display: block;
  margin: 7px 0 10px;
  color: #748198;
  font-size: 13px;
  line-height: 1.55;
}

.tag-row {
  height: auto;
  margin-top: 0;
}

.tag-row span {
  color: #4d77b2;
  background: #eef5ff;
}

.tag-row .free-tag {
  color: #16805e;
  background: #eaf9f3;
}

.tool-direct {
  color: #647590;
  border-top-color: #edf2f8;
}

.tool-direct:hover {
  color: #2868f0;
  background: #f8fbff;
}

.detail-hero {
  border-color: #dce8fa;
  background: linear-gradient(135deg, #fff, #eef6ff);
}

.eyebrow,
.back-link,
.empty-state a {
  color: #2868f0;
}

.primary-button {
  background: linear-gradient(110deg, #2868f0, #16c8cf);
  box-shadow: 0 10px 25px rgba(40, 104, 240, 0.22);
}

.use-grid span {
  color: #2868f0;
  background: #eef5ff;
}

.footer {
  border-top-color: #e3ebf6;
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 980px) {
  .shell {
    width: min(100% - 30px, 760px);
  }

  .main-nav {
    display: none;
  }

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

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 560px);
  }

  .nav-wrap {
    height: 68px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    display: none;
  }

  .admin-entry {
    padding: 7px 10px;
    font-size: 12px;
  }

  .hero-card {
    width: min(100% - 24px, 560px);
    padding: 42px 0 25px;
  }

  .hero h1 {
    font-size: 38px;
    letter-spacing: -1.5px;
  }

  .hero p {
    font-size: 14px;
  }

  .search-box {
    height: 58px;
    padding-left: 16px;
  }

  .search-box kbd {
    min-width: 76px;
    padding: 0 11px;
    font-size: 11px;
  }

  .hot-keywords {
    flex-wrap: wrap;
    gap: 8px 11px;
  }

  .category-strip {
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-right: -12px;
    margin-left: -12px;
    padding: 0 12px 8px;
    overflow-x: auto;
  }

  .category-strip a {
    flex: 0 0 auto;
    padding: 8px 11px;
  }

  .directory-layout {
    padding-top: 34px;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card-main {
    min-height: 142px;
  }

  .section-head {
    align-items: center;
  }
}
