:root {
  --bg: #07111f;
  --bg-soft: #0d1b2a;
  --panel: rgba(15, 25, 38, 0.8);
  --panel-strong: #101c2d;
  --card: #111f2c;
  --card-alt: #13263a;
  --line: rgba(147, 173, 214, 0.18);
  --text: #edf5ff;
  --muted: #a9bfd8;
  --primary: #5ec7ff;
  --primary-strong: #7a8cff;
  --success: #5fe3a1;
  --warning: #f6c879;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(94, 199, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(122, 140, 255, 0.15), transparent 30%),
    var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 24px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(94, 199, 255, 0.35), rgba(122, 140, 255, 0.28));
  border: 1px solid rgba(94, 199, 255, 0.3);
  color: #04151e;
  font-weight: 800;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.brand-mark::before {
  width: 32px;
  height: 32px;
  inset: 8px auto auto 8px;
}

.brand-mark::after {
  width: 22px;
  height: 22px;
  right: 9px;
  bottom: 8px;
}

.brand-mark-core {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(94, 199, 255, 0.2);
}

.brand-lockup {
  position: relative;
}

.brand-lockup::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--muted);
}

.brand-strip {
  margin-top: 10px;
  padding: 18px 0 8px;
}

.brand-strip-header {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  min-width: 110px;
}


.topnav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(10, 16, 26, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  padding: 0.52rem 0.8rem;
  border-radius: 999px;
}

.topnav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.nav-cta {
  background: linear-gradient(135deg, rgba(94, 199, 255, 0.16), rgba(122, 140, 255, 0.16));
  border: 1px solid rgba(94, 199, 255, 0.25);
  color: var(--primary) !important;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 26px 0 30px;
}

.eyebrow {
  display: inline-flex;
  border: 1px solid rgba(94, 199, 255, 0.25);
  background: rgba(94, 199, 255, 0.08);
  color: var(--primary);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.primary-btn,
.secondary-btn,
.card-link,
.filter-btn {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.95rem 1.3rem;
  font-weight: 600;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #07111f;
}

.secondary-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.primary-btn:hover,
.secondary-btn:hover,
.card-link:hover,
.filter-btn:hover {
  transform: translateY(-1px);
}

.hero-stats {
  list-style: none;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0;
  margin: 28px 0 0;
}

.hero-stats li {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.hero-stats strong {
  font-size: 1.3rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  background: rgba(17, 31, 44, 0.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.hero-art {
  position: relative;
  height: 178px;
  overflow: hidden;
  margin: -20px -20px 18px;
  background: #13263a;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.08), rgba(7, 17, 31, 0.66));
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-art-caption {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 14px;
  color: #edf5ff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel-header,
.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-header {
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid transparent;
}

.badge.success {
  background: rgba(95, 227, 161, 0.12);
  color: var(--success);
  border-color: rgba(95, 227, 161, 0.22);
}

.featured-card {
  background: linear-gradient(180deg, rgba(122, 140, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 16px;
  margin-bottom: 12px;
}

.featured-card.small {
  background: rgba(255, 255, 255, 0.02);
}

.mini-label {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.featured-card h2,
.featured-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.featured-card a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.featured-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.spotlight-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  margin: 18px 0 24px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(17, 31, 44, 0.96), rgba(12, 18, 28, 0.92));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.spotlight-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
}

.spotlight-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spotlight-main h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.06em;
}

.spotlight-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 56ch;
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.spotlight-meta span {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.spotlight-link {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  margin-top: 8px;
}

.ranking-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  padding: 18px;
}

.rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.rank-item strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(94, 199, 255, 0.12);
  color: var(--primary);
}

.rank-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.rank-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rank-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collections {
  padding-top: 18px;
}

.section-header-row {
  margin-bottom: 18px;
}

.section-header-row h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
}

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

.collection-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.collection-card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 199, 255, 0.45);
}

.collection-count {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.collection-card h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.collection-card p {
  margin: 0;
  color: rgba(237, 245, 255, 0.8);
  line-height: 1.6;
}

.collection-kicker {
  color: rgba(255, 255, 255, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 700;
}

.accent-blue {
  background: linear-gradient(135deg, rgba(94, 199, 255, 0.2), rgba(17, 31, 44, 0.8));
}

.accent-purple {
  background: linear-gradient(135deg, rgba(122, 140, 255, 0.26), rgba(17, 31, 44, 0.82));
}

.accent-green {
  background: linear-gradient(135deg, rgba(95, 227, 161, 0.18), rgba(17, 31, 44, 0.82));
}

.accent-gold {
  background: linear-gradient(135deg, rgba(246, 200, 121, 0.18), rgba(17, 31, 44, 0.82));
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.catalog-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
  margin-top: 36px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 20px;
  background: rgba(17, 31, 44, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 16px;
  box-shadow: var(--shadow);
}

.sidebar-header {
  margin-bottom: 16px;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.catalog-main {
  display: grid;
  gap: 10px;
}

.search-box {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  color: var(--text);
  outline: none;
}

.search-box input:focus {
  border-color: rgba(94, 199, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(94, 199, 255, 0.14);
}

.live-search-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.load-more-btn {
  justify-self: center;
  margin: 8px auto 0;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.load-more-btn:hover:not(:disabled) {
  border-color: rgba(94, 199, 255, 0.5);
  background: rgba(94, 199, 255, 0.08);
}

.load-more-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.load-more-btn[hidden] {
  display: none;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-btn {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
}

.filter-btn.active {
  background: rgba(94, 199, 255, 0.12);
  border-color: rgba(94, 199, 255, 0.4);
  color: var(--text);
}

.results-row {
  padding: 16px 0 8px;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  padding-top: 14px;
}

.tool-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  background: linear-gradient(180deg, rgba(17,31,44,0.96), rgba(11,20,31,0.92));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  min-height: 260px;
}

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

.tool-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(94, 199, 255, 0.12);
  color: var(--primary);
  border: 1px solid rgba(94, 199, 255, 0.2);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.company-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-row > div {
  flex: 1;
  min-width: 0;
}

.company-logo {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(94, 199, 255, 0.18), rgba(122, 140, 255, 0.18));
  border: 1px solid rgba(94, 199, 255, 0.25);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  overflow: hidden;
}

.company-logo::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.tool-name {
  margin: 0;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.tool-meta span {
  max-width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  overflow-wrap: anywhere;
}

.tool-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.tool-price {
  font-weight: 700;
  color: var(--success);
}

.card-link {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

.about {
  padding-top: 26px;
}

.about-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  background: rgba(17, 31, 44, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}

.section-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 700;
}

.about-copy h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

.about-card p {
  color: var(--muted);
  line-height: 1.75;
}

.about-features {
  display: grid;
  gap: 12px;
}

.feature-box {
  display: grid;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.feature-box strong {
  font-size: 1rem;
}

.feature-box span {
  color: var(--muted);
  line-height: 1.6;
}

.owner-credit {
  font-size: 0.9rem;
  font-weight: 600;
}

.implementation-credit {
  font-size: 0.78rem;
}

.owner-credit a,
.site-footer a {
  color: var(--primary);
  text-decoration: none;
}

.owner-credit a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
  padding: 20px 4px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px 18px;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(17, 31, 44, 0.7);
  border-radius: 20px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

  .spotlight-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .about-card {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.card-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sponsored-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warning);
  background: rgba(246, 200, 121, 0.12);
  border: 1px solid rgba(246, 200, 121, 0.3);
}

.tool-card.is-sponsored {
  border-color: rgba(246, 200, 121, 0.4);
}

.list-tool {
  padding-top: 26px;
}

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

.plan-card {
  display: grid;
  gap: 14px;
  align-content: start;
  justify-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(17, 31, 44, 0.9);
}

.plan-card-featured {
  border-color: rgba(94, 199, 255, 0.4);
  background: linear-gradient(135deg, rgba(94, 199, 255, 0.1), rgba(122, 140, 255, 0.1));
}

.plan-price {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.plan-price small {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.plan-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.disclosure {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

.guides {
  padding-top: 26px;
}

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

@media (max-width: 820px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

/* Signature theme: restrained editorial contrast with warm mineral accents. */
:root {
  --bg: #171a18;
  --bg-soft: #242824;
  --panel: rgba(36, 40, 36, 0.92);
  --panel-strong: #2b302b;
  --card: #252a26;
  --card-alt: #303630;
  --line: rgba(242, 239, 231, 0.16);
  --text: #f2efe7;
  --muted: #b8b9b0;
  --primary: #d7c7a1;
  --primary-strong: #c77b62;
  --success: #9ac6a3;
  --warning: #d9ad67;
  --shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
}

body {
  background:
    linear-gradient(120deg, rgba(215, 199, 161, 0.06), transparent 34%),
    linear-gradient(310deg, rgba(199, 123, 98, 0.08), transparent 38%),
    repeating-linear-gradient(0deg, rgba(242, 239, 231, 0.018) 0 1px, transparent 1px 5px),
    var(--bg);
}

.brand-mark {
  background: linear-gradient(135deg, rgba(215, 199, 161, 0.3), rgba(199, 123, 98, 0.26));
  border-color: rgba(215, 199, 161, 0.36);
  color: #171a18;
}

.brand-mark-core {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
}

.brand-name {
  text-shadow: 0 0 22px rgba(215, 199, 161, 0.14);
}

.brand-lockup::after {
  background: linear-gradient(90deg, var(--primary), transparent);
}

.topnav {
  background: rgba(23, 26, 24, 0.72);
  border-color: rgba(242, 239, 231, 0.12);
}

.nav-cta {
  background: linear-gradient(135deg, rgba(215, 199, 161, 0.16), rgba(199, 123, 98, 0.14));
  border-color: rgba(215, 199, 161, 0.3);
}

.eyebrow {
  border-color: rgba(215, 199, 161, 0.3);
  background: rgba(215, 199, 161, 0.08);
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #171a18;
}

.hero-panel,
.spotlight-panel,
.catalog-sidebar,
.search-box,
.plan-card,
.about-card {
  background: var(--panel);
}

.accent-blue {
  background: linear-gradient(135deg, rgba(215, 199, 161, 0.16), rgba(37, 42, 38, 0.94));
}

.accent-purple {
  background: linear-gradient(135deg, rgba(199, 123, 98, 0.2), rgba(37, 42, 38, 0.94));
}

.accent-green {
  background: linear-gradient(135deg, rgba(154, 198, 163, 0.16), rgba(37, 42, 38, 0.94));
}

.accent-gold {
  background: linear-gradient(135deg, rgba(217, 173, 103, 0.17), rgba(37, 42, 38, 0.94));
}

.collection-card:hover {
  border-color: rgba(215, 199, 161, 0.5);
}

.filter-btn.active {
  background: rgba(215, 199, 161, 0.12);
  border-color: rgba(215, 199, 161, 0.42);
  color: var(--text);
}

.tool-card {
  background: linear-gradient(180deg, rgba(48, 54, 48, 0.96), rgba(29, 33, 30, 0.96));
}

.card-link,
.spotlight-link {
  color: var(--primary);
}

.tool-badge {
  background: rgba(215, 199, 161, 0.1);
  border-color: rgba(215, 199, 161, 0.22);
}

/* Editorial refinement */
:root {
  --font-body: "DM Sans", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --line-soft: rgba(242, 239, 231, 0.12);
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #211e19 0, var(--bg) 560px);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
}

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

.topbar {
  border-bottom: 1px solid var(--line-soft);
}

.brand-mark,
.brand-mark-core,
.company-logo {
  border-radius: 8px;
}

.topnav {
  gap: 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.topnav a {
  padding: 0.55rem 0.7rem;
  font-size: 0.86rem;
  border-radius: 6px;
}

.topnav .nav-cta {
  background: var(--primary);
  border-color: var(--primary);
  color: #171a18 !important;
  font-weight: 700;
}

.topnav .nav-cta:hover,
.primary-btn:hover {
  background: #e4d8bc;
}

.hero {
  gap: 44px;
  padding: 48px 0 38px;
}

.hero-copy h1 {
  max-width: 13ch;
  font-size: 3.75rem;
  line-height: 1.04;
}

.hero-copy p {
  max-width: 56ch;
  font-size: 1rem;
}

.eyebrow,
.badge,
.tool-badge {
  border-radius: 4px;
}

.eyebrow {
  padding: 6px 9px;
  font-size: 0.7rem;
}

.primary-btn,
.secondary-btn {
  border-radius: 6px;
}

.primary-btn {
  background: var(--primary);
  color: #151411;
}

.hero-stats li {
  min-width: 112px;
  padding: 2px 0 2px 14px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.hero-panel,
.spotlight-panel,
.catalog-sidebar,
.about-card,
.plan-card {
  border-radius: 8px;
  box-shadow: none;
}

.hero-panel {
  background: var(--panel);
}

.hero-art {
  border-radius: 5px;
}

.hero-art::after {
  background: linear-gradient(180deg, rgba(23, 26, 24, 0.04), rgba(23, 26, 24, 0.68));
}

.hero-art-caption {
  color: var(--text);
}

.featured-card,
.ranking-panel,
.rank-item,
.feature-box,
.plan-card,
.empty-state {
  border-radius: 6px;
}

.featured-card {
  background: var(--card);
}

.featured-card.small,
.ranking-panel,
.rank-item,
.feature-box {
  background: rgba(242, 239, 231, 0.025);
}

.spotlight-panel {
  background: linear-gradient(110deg, #2b302b, #1c201d);
}

.spotlight-meta span,
.tool-meta span {
  border-radius: 4px;
}

.rank-item strong {
  border-radius: 5px;
  background: rgba(215, 199, 161, 0.12);
}

.brand-chip {
  min-width: 0;
  border-radius: 4px;
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
}

.collection-grid {
  gap: 12px;
}

.collection-card {
  min-height: 170px;
  padding: 18px;
  border-radius: 8px;
  box-shadow: none;
}

.collection-card p {
  color: rgba(242, 239, 231, 0.76);
}

.collection-card:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 199, 161, 0.5);
}

.catalog-layout {
  margin-top: 30px;
  gap: 18px;
}

.catalog-sidebar {
  background: var(--panel);
}

.filter-btn {
  border-radius: 6px;
}

.search-box input {
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.16);
}

.search-box input:focus {
  border-color: rgba(215, 199, 161, 0.6);
  box-shadow: 0 0 0 3px rgba(215, 199, 161, 0.1);
}

.tool-grid {
  gap: 12px;
}

.tool-card {
  min-height: 248px;
  padding: 18px;
  background: var(--card);
  border-radius: 8px;
  box-shadow: none;
}

.tool-name {
  font-size: 1.15rem;
}

.tool-badge {
  padding: 4px 7px;
}

.company-logo {
  background: rgba(215, 199, 161, 0.1);
  border-color: rgba(215, 199, 161, 0.22);
}

.card-link,
.spotlight-link,
.featured-card a {
  text-underline-offset: 3px;
}

.load-more-btn {
  border-radius: 6px;
}

.plan-card-featured {
  border-color: rgba(215, 199, 161, 0.36);
  background: linear-gradient(135deg, rgba(215, 199, 161, 0.07), var(--panel));
}

@media (max-width: 820px) {
  .page-shell {
    width: calc(100% - 32px);
  }

  .hero {
    gap: 24px;
    padding-top: 34px;
  }

  .hero-copy h1 {
    font-size: 2.8rem;
  }

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

  .filter-btn {
    min-height: 42px;
    padding: 0.6rem 0.7rem;
  }

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

@media (max-width: 540px) {
  .page-shell {
    width: calc(100% - 28px);
  }

  .topbar {
    gap: 12px;
    padding-bottom: 16px;
  }

  .topnav {
    width: 100%;
    justify-content: flex-start;
  }

  .topnav a {
    padding: 0.5rem 0.55rem;
    font-size: 0.79rem;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .hero-stats {
    gap: 12px;
  }

  .hero-stats li {
    min-width: 0;
    flex: 1;
  }

  .collection-card {
    min-height: 164px;
    padding: 14px;
  }

  .collection-card h3 {
    font-size: 1.2rem;
  }

  .collection-card p {
    font-size: 0.86rem;
  }
}
