:root {
  --ink: #0b1528;
  --muted: #5f6f84;
  --line: #d9e3ee;
  --paper: #f4f8fc;
  --white: #ffffff;
  --navy: #071225;
  --navy-soft: #0f2038;
  --blue: #1174ea;
  --cyan: #33c9e8;
  --green: #27a17b;
  --shadow: 0 18px 44px rgba(9, 24, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(17, 116, 234, 0.08), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, var(--paper) 26%, #eef5fb 100%);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

.page-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-link img {
  width: 126px;
  height: auto;
}

.brand-link strong,
.brand-link small {
  display: block;
}

.brand-link strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.brand-link small {
  color: var(--muted);
  font-size: 0.78rem;
}

.topnav {
  display: flex;
  gap: 22px;
  color: #334155;
}

.topnav a:hover,
.linkout:hover {
  color: var(--blue);
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 20px;
  padding: 24px 0 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  line-height: 1.05;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 116, 234, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-side,
.notice-band article,
.vendor-card,
.category-grid article,
.income-list article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(12, 27, 51, 0.05);
}

.hero-side {
  padding: 24px;
}

.hero-side h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.hero-side ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.notice-band,
.vendor-grid,
.category-grid,
.income-list,
.tool-spotlight-grid {
  display: grid;
  gap: 16px;
}

.notice-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.notice-band article,
.category-grid article,
.income-list article {
  padding: 20px;
}

.notice-band strong,
.category-grid strong,
.income-list strong {
  display: block;
  margin-bottom: 6px;
}

.notice-band span,
.category-grid span,
.income-list span,
.vendor-card p,
.vendor-card li,
.section-head p {
  color: var(--muted);
}

.vendor-directory,
.category-section,
.income-band {
  margin-top: 44px;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-head h2,
.income-band h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

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

.filter-bar {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.filter-search {
  display: grid;
  gap: 8px;
  max-width: 440px;
  color: var(--muted);
  font-weight: 700;
}

.filter-search input {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(17, 116, 234, 0.14);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.filter-pill.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.vendor-card {
  padding: 24px;
}

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

.vendor-top h3 {
  margin: 0;
  font-size: 1.26rem;
}

.status {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(17, 116, 234, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.vendor-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.vendor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 800;
}

.linkout {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-weight: 800;
}

.pending-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--blue);
  background: rgba(17, 116, 234, 0.08);
  font-weight: 800;
}

.pending-link.muted {
  color: var(--muted);
  background: rgba(95, 111, 132, 0.08);
}

.featured-tools {
  margin-top: 44px;
}

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

.tool-spotlight-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(12, 27, 51, 0.05);
}

.tool-spotlight-grid strong {
  display: block;
  margin-bottom: 8px;
}

.tool-spotlight-grid span {
  display: block;
  color: var(--muted);
}

.tool-spotlight-grid a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 800;
}

.category-grid,
.income-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .portal-hero,
  .vendor-grid,
  .category-grid,
  .income-list,
  .tool-spotlight-grid,
  .notice-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .topbar {
    flex-direction: column;
    align-items: start;
  }

  .topnav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}
