:root {
  --bg: #f6f9ff;
  --surface: #ffffff;
  --surface-alt: #ebf3ff;
  --surface-soft: #fdf7da;
  --text: #17304f;
  --muted: #57708d;
  --line: rgba(23, 48, 79, 0.1);
  --brand: #1d5fd3;
  --brand-dark: #10449f;
  --brand-soft: #dbe9ff;
  --accent: #ffd646;
  --accent-dark: #e1b500;
  --success: #14a46d;
  --shadow: 0 24px 60px rgba(16, 68, 159, 0.14);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 70, 0.55), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 38%, #f8fbff 100%);
}

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

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

button,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.page-shell {
  overflow: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(248, 251, 255, 0.82);
  border-bottom: 1px solid rgba(23, 48, 79, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: inline-flex;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-lockup {
  display: grid;
  gap: 4px;
  align-content: center;
}

.brand-subtext {
  color: var(--muted);
  max-width: 34ch;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-text {
  font-size: 1.75rem;
  line-height: 1;
}

.brand-text-wordmark {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.18em;
}

.brand-text-primary {
  color: var(--brand-dark);
}

.brand-text-accent {
  color: #12bcc8;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-primary {
  min-width: 174px;
}

.topbar-catalog {
  position: relative;
  padding-right: 26px;
}

.topbar-catalog::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translateY(1px);
}

.topbar-catalog.is-current {
  color: #fff;
  background: linear-gradient(180deg, #17304f 0%, #0f2742 100%);
  box-shadow: none;
  pointer-events: none;
}

.topbar-catalog.is-current::after {
  opacity: 0.7;
}

.ghost-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ghost-button {
  color: var(--brand);
  background: rgba(29, 95, 211, 0.1);
}

.secondary-ghost {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.primary-button {
  color: #072041;
  background: linear-gradient(180deg, #ffdf65 0%, #ffd646 100%);
  box-shadow: 0 16px 36px rgba(255, 214, 70, 0.34);
}

.ghost-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  padding: 28px 0 82px;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f7fb 0%, #eef4ff 42%, #f9fbff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 214, 70, 0.18), transparent 18%),
    radial-gradient(circle at 100% 0%, rgba(91, 55, 255, 0.14), transparent 22%);
  pointer-events: none;
}

.hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
}

.hero-banner {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: 34px;
  background: #17304f;
  box-shadow: 0 34px 70px rgba(18, 52, 112, 0.18);
}

.hero-banner-overlay {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 45, 0.86) 0%, rgba(8, 20, 45, 0.62) 32%, rgba(8, 20, 45, 0.12) 64%, rgba(8, 20, 45, 0.08) 100%),
    linear-gradient(180deg, rgba(17, 36, 77, 0.12), rgba(17, 36, 77, 0.3));
  pointer-events: none;
}

.hero-banner-image {
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.02) contrast(1.04);
}

.hero-banner-copy {
  position: absolute;
  left: 42px;
  top: 42px;
  z-index: 1;
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 214, 70, 0.24);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 8.8ch;
  color: #fff;
  font-size: clamp(2.55rem, 4.3vw, 4.5rem);
  line-height: 0.94;
}

.hero-text,
.section-text,
.benefit-card p,
.step-card p,
.video-copy p,
.testimonial-card p,
.footer-text,
.footer-meta p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 44ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
}

.search-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 48, 79, 0.08);
  box-shadow: var(--shadow);
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.field-group select {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.field-group select:focus {
  border-color: rgba(29, 95, 211, 0.45);
  box-shadow: 0 0 0 4px rgba(29, 95, 211, 0.12);
}

.search-feedback {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff3e8;
  color: #875625;
  border: 1px solid rgba(135, 86, 37, 0.16);
}

.search-feedback.is-visible {
  display: block;
}

.results-section {
  padding-top: 24px;
}

.featured-section {
  padding-top: 24px;
}

.results-intro {
  max-width: 66ch;
  margin: 0 auto;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.results-summary {
  margin: 0;
  color: var(--brand-dark);
  font-weight: 800;
}

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

.featured-section .results-grid {
  align-items: stretch;
  transition: opacity 180ms ease, transform 180ms ease, min-height 220ms ease;
  will-change: opacity, transform, min-height;
}

.featured-section .results-grid.is-transitioning-out {
  opacity: 0.18;
  transform: translateY(8px);
}

.featured-section .results-grid.is-transitioning-in {
  opacity: 1;
  transform: translateY(0);
}

.featured-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.featured-page-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 95, 211, 0.16);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.featured-page-dot:hover {
  transform: scale(1.08);
}

.featured-page-dot.is-active {
  background: var(--brand);
}

.catalog-empty-state {
  display: none;
  gap: 10px;
  margin-bottom: 22px;
  padding: 28px;
  border-radius: 28px;
  border: 1px dashed rgba(29, 95, 211, 0.24);
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.catalog-empty-state.is-visible {
  display: grid;
}

.catalog-empty-state strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.catalog-empty-state p {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.65;
}

.featured-grid {
  margin-bottom: 28px;
}

.featured-cta {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.mega-cta {
  min-height: 64px;
  padding: 0 32px;
  font-size: 1rem;
}

.featured-cta-text {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.result-card,
.showcase-card {
  border: 1px solid rgba(23, 48, 79, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(16, 68, 159, 0.08);
}

.result-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 28px;
  overflow: hidden;
}

.featured-section .result-card {
  align-content: start;
  grid-template-rows: auto auto auto minmax(84px, auto) auto auto;
  min-height: 100%;
}

.result-card[role="link"] {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.result-card[role="link"]:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 95, 211, 0.18);
  box-shadow: 0 22px 56px rgba(16, 68, 159, 0.12);
}

.result-card[role="link"]:focus-visible {
  outline: 3px solid rgba(29, 95, 211, 0.22);
  outline-offset: 3px;
}

.result-card-top,
.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-status,
.result-update,
.result-source,
.result-meta,
.result-summary {
  margin: 0;
}

.result-media {
  position: relative;
  min-height: 196px;
  margin: -24px -24px 2px;
  overflow: hidden;
  border-radius: 28px 28px 22px 22px;
  background:
    radial-gradient(circle at top right, rgba(206, 223, 255, 0.72), transparent 44%),
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border-bottom: 1px solid rgba(15, 78, 189, 0.08);
  display: grid;
  place-items: center;
  padding: 26px 28px;
}

.result-brand-surface {
  display: grid;
  place-items: center;
  width: min(100%, 372px);
  min-height: 142px;
  padding: 16px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(18, 64, 145, 0.1);
  box-shadow: 0 22px 36px rgba(11, 43, 95, 0.08);
}

.result-brand-image {
  display: block;
  max-width: 100%;
  max-height: 116px;
  object-fit: contain;
  filter: saturate(1.03) contrast(1.02);
}

.result-media-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 96px;
  padding: 0 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 30px rgba(10, 35, 73, 0.14);
  color: var(--brand-dark);
  font-size: 1.15rem;
  font-weight: 800;
}

.result-media.is-text-only .result-media-fallback {
  display: flex;
}

.result-media.logo-theme-dark .result-brand-surface,
.institution-logo.logo-theme-dark .institution-logo-surface {
  background: linear-gradient(180deg, #12396a 0%, #0a2344 100%);
  border-color: rgba(163, 194, 255, 0.14);
  box-shadow: 0 22px 36px rgba(6, 25, 52, 0.2);
}

.result-media.logo-fit-seal .result-brand-surface {
  width: min(100%, 250px);
  min-height: 152px;
  padding: 16px;
}

.result-media.logo-fit-seal .result-brand-image {
  max-height: 128px;
  max-width: 128px;
}

.result-media.logo-fit-tall .result-brand-surface {
  width: min(100%, 260px);
  min-height: 166px;
  padding: 14px 18px;
}

.result-media.logo-fit-tall .result-brand-image {
  max-height: 142px;
  max-width: 170px;
}

.result-media.logo-fit-wide .result-brand-surface {
  width: min(100%, 392px);
}

.result-media.logo-fit-wide .result-brand-image {
  max-height: 112px;
}

.result-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.result-status-aberto {
  color: #0f7c51;
  background: rgba(20, 164, 109, 0.12);
}

.result-status-em_breve {
  color: #875625;
  background: rgba(255, 214, 70, 0.24);
}

.result-status-confirmado {
  color: var(--brand-dark);
  background: rgba(29, 95, 211, 0.12);
}

.result-status-atualizando {
  color: var(--brand-dark);
  background: rgba(29, 95, 211, 0.12);
}

.result-status-encerrado {
  color: #7a2635;
  background: rgba(200, 72, 101, 0.14);
}

.result-update,
.result-meta,
.result-source {
  color: var(--muted);
  font-size: 0.92rem;
}

.result-card h3,
.showcase-copy h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.featured-section .result-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.result-summary {
  color: var(--muted);
  line-height: 1.65;
}

.featured-section .result-summary {
  display: -webkit-box;
  min-height: 5.2em;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.result-highlights li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(29, 95, 211, 0.05);
  line-height: 1.5;
}

.result-link {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.detail-section {
  padding-top: 38px;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: start;
}

.detail-main,
.detail-card {
  border: 1px solid rgba(23, 48, 79, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(16, 68, 159, 0.08);
}

.detail-main {
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: 32px;
}

.detail-media {
  margin: 0;
  min-height: 220px;
  border-radius: 28px;
}

.detail-copy {
  display: grid;
  gap: 16px;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.7rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.detail-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.02rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.detail-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
  position: sticky;
  top: 100px;
}

.detail-card h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.detail-grid {
  display: grid;
  gap: 12px;
}

.detail-row {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(29, 95, 211, 0.05);
}

.detail-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-row strong {
  color: var(--text);
  line-height: 1.5;
}

.result-link-disabled {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(23, 48, 79, 0.08);
  color: var(--muted);
  font-weight: 700;
}

.hero-carousel-band {
  position: relative;
  z-index: 1;
  margin-top: 98px;
}

.institution-logos {
  position: relative;
  overflow: hidden;
  width: min(1480px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.institution-logos-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: logo-carousel 54s linear infinite;
}

.institution-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  min-width: 190px;
}

.institution-logo-surface {
  display: grid;
  place-items: center;
  min-height: 82px;
  min-width: 190px;
  padding: 18px 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 48, 79, 0.08);
  box-shadow: 0 18px 36px rgba(16, 68, 159, 0.08);
}

.institution-logo img {
  display: block;
  max-height: 52px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.institution-logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  min-width: 190px;
  padding: 18px 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 48, 79, 0.08);
  box-shadow: 0 18px 36px rgba(16, 68, 159, 0.08);
  color: var(--brand-dark);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.institution-logo.is-text-only .institution-logo-fallback {
  display: flex;
}

.institution-logo.logo-fit-seal .institution-logo-surface,
.institution-logo.logo-fit-seal .institution-logo-fallback {
  min-width: 118px;
}

.institution-logo.logo-fit-seal img {
  max-height: 58px;
  max-width: 92px;
}

.institution-logo.logo-fit-tall .institution-logo-surface,
.institution-logo.logo-fit-tall .institution-logo-fallback {
  min-width: 132px;
}

.institution-logo.logo-fit-tall img {
  max-height: 70px;
  max-width: 106px;
}

.institution-logo.logo-fit-wide .institution-logo-surface,
.institution-logo.logo-fit-wide .institution-logo-fallback {
  min-width: 210px;
}

.institution-logo.logo-fit-wide img {
  max-height: 50px;
  max-width: 220px;
}

@keyframes logo-carousel {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .institution-logos-track {
    animation: none;
  }
}

.hero-search-shell {
  padding: 24px;
  border-radius: 30px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 26px 56px rgba(16, 31, 85, 0.14);
  border: 1px solid rgba(12, 24, 56, 0.08);
}

.hero-search-card {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.hero-search-card .field-group label {
  color: #314761;
  font-size: 0.98rem;
}

.hero-search-card .field-group select {
  min-height: 60px;
  border-radius: 15px;
  background: #fff;
}

.hero-search-card .primary-button {
  min-height: 60px;
  align-self: end;
}

.hero-search-shell .search-feedback {
  margin: 14px 0 0;
}

.section {
  padding: 92px 0;
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 40px;
  text-align: center;
}

.section-heading.left {
  justify-items: start;
  text-align: left;
}

.section-heading h2 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
}

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

.benefit-card,
.step-card,
.testimonial-card,
.video-panel,
.compare-table,
.faq-list details {
  border: 1px solid rgba(23, 48, 79, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(16, 68, 159, 0.08);
}

.benefit-card {
  padding: 24px;
  border-radius: 24px;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  margin-bottom: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
}

.benefit-card h3,
.step-card h3,
.video-copy h3,
.testimonial-card h3 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.workflow-grid,
.compare-grid,
.faq-grid,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 28px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 16px;
}

.step-card {
  position: relative;
  padding: 24px 24px 24px 86px;
  border-radius: 24px;
}

.step-number {
  position: absolute;
  left: 22px;
  top: 24px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1d5fd3 0%, #0f4ebd 100%);
  color: #fff;
  font-weight: 800;
}

.video-panel {
  overflow: hidden;
  border-radius: 32px;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 11;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-pill {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.video-copy {
  padding: 24px;
}

.numbers-band {
  padding: 28px 0;
  background:
    linear-gradient(90deg, rgba(16, 68, 159, 0.96), rgba(29, 95, 211, 0.96)),
    linear-gradient(180deg, transparent, transparent);
  color: #fff;
}

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

.numbers-grid article {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.numbers-grid strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.05em;
}

.numbers-grid span {
  display: block;
  margin-top: 8px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.institutions-showcase {
  padding-top: 72px;
}

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

.showcase-card {
  overflow: hidden;
  border-radius: 28px;
}

.showcase-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #fff;
}

.showcase-copy {
  padding: 22px 24px 24px;
}

.showcase-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.inner-hero {
  padding-bottom: 32px;
}

.catalog-hero {
  padding-bottom: 42px;
}

.inner-hero .eyebrow {
  background: rgba(255, 214, 70, 0.24);
  color: var(--brand-dark);
  box-shadow: none;
}

.inner-hero h1 {
  max-width: 11ch;
  color: var(--text);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.inner-hero .hero-text {
  color: var(--muted);
  max-width: 54ch;
}

.catalog-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 26px;
  align-items: stretch;
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 214, 70, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 245, 255, 0.98) 100%);
  border: 1px solid rgba(23, 48, 79, 0.08);
  box-shadow: 0 28px 64px rgba(16, 68, 159, 0.1);
}

.catalog-hero-copy {
  display: grid;
  align-content: center;
}

.catalog-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.catalog-hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(29, 95, 211, 0.08);
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.catalog-hero-card {
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, #16345a 0%, #102846 100%);
  color: #fff;
  box-shadow: 0 22px 44px rgba(10, 35, 73, 0.18);
}

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

.catalog-stat {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.catalog-stat strong {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: -0.05em;
}

.catalog-stat span,
.catalog-hero-note {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.catalog-hero-note {
  margin: 0;
}

.inner-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: 24px;
  align-items: end;
}

.inner-hero-card {
  display: grid;
  gap: 10px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 48, 79, 0.08);
  box-shadow: 0 18px 50px rgba(16, 68, 159, 0.08);
}

.inner-hero-card strong {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

.inner-hero-card span {
  color: var(--brand-dark);
  font-weight: 800;
}

.inner-hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.listing-section {
  padding-top: 24px;
}

.catalog-shell {
  margin-bottom: 22px;
}

.catalog-controls {
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 48, 79, 0.08);
  box-shadow: 0 22px 54px rgba(16, 68, 159, 0.1);
}

.catalog-controls-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  gap: 20px;
  align-items: start;
}

.catalog-controls-copy .eyebrow {
  margin-bottom: 14px;
}

.catalog-controls-copy h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.catalog-controls-copy p,
.catalog-controls-aside span,
.catalog-controls-hint,
.results-hint {
  color: var(--muted);
  line-height: 1.65;
}

.catalog-controls-copy p {
  margin: 14px 0 0;
}

.catalog-controls-aside {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(219, 233, 255, 0.78) 0%, rgba(248, 251, 255, 0.96) 100%);
  border: 1px solid rgba(29, 95, 211, 0.12);
}

.catalog-controls-aside strong {
  color: var(--brand-dark);
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.listing-search-card {
  margin-top: 0;
  margin-bottom: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.listing-search-card .field-group label {
  color: #314761;
  font-size: 0.92rem;
}

.listing-search-card .field-group select {
  min-height: 60px;
  border-radius: 16px;
  background: #fff;
}

.listing-search-card .field-group select:disabled {
  color: rgba(87, 112, 141, 0.78);
  background: rgba(246, 249, 255, 0.92);
}

.catalog-controls-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.catalog-controls-hint {
  margin: 0;
}

.filter-reset-button {
  flex: 0 0 auto;
}

.active-filters {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
}

.active-filters.is-visible {
  display: flex;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(29, 95, 211, 0.08);
  color: var(--brand-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.active-filter-pill strong {
  margin-right: 6px;
}

.catalog-results-toolbar {
  margin-bottom: 18px;
}

.results-hint {
  font-size: 0.95rem;
}

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

.catalog-progress {
  display: none;
  justify-items: center;
  gap: 10px;
  padding-top: 22px;
}

.catalog-progress.is-visible {
  display: grid;
}

.catalog-progress-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.catalog-progress-sentinel {
  width: 100%;
  height: 2px;
}

.full-copy-panel {
  padding: 30px;
}

.testimonial-strip {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1fr;
  gap: 18px;
}

.testimonial-card {
  overflow: hidden;
  border-radius: 28px;
}

.testimonial-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.logo-card img {
  object-fit: contain;
  background: #fff;
  padding: 28px;
}

.testimonial-copy,
.testimonial-card:not(.featured) {
  padding: 24px;
}

.testimonial-card .meta {
  margin: 8px 0 12px;
  color: var(--brand-dark);
  font-weight: 700;
}

.compare-table {
  overflow: hidden;
  border-radius: 28px;
}

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

.compare-row > div {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(23, 48, 79, 0.08);
}

.compare-row > div:first-child {
  border-right: 1px solid rgba(23, 48, 79, 0.08);
}

.compare-head {
  background: linear-gradient(90deg, rgba(29, 95, 211, 0.12), rgba(255, 214, 70, 0.26));
  font-weight: 800;
}

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

.faq-list details {
  padding: 22px 24px;
  border-radius: 22px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 800;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.footer {
  padding: 34px 0 54px;
}

.footer-grid {
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 24px;
  padding: 30px;
  border-radius: 32px;
  background: rgba(10, 35, 73, 0.95);
  color: #fff;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.footer-meta {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1100px) {
  .catalog-hero-shell,
  .inner-hero-grid,
  .detail-shell,
  .catalog-controls-head,
  .workflow-grid,
  .compare-grid,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner,
  .hero-banner-image {
    min-height: 390px;
    height: 390px;
  }

  .hero-banner-copy {
    left: 34px;
    top: 34px;
    max-width: 470px;
  }

  .hero h1 {
    max-width: 8.4ch;
    font-size: clamp(2.5rem, 5vw, 4.1rem);
  }

  .detail-card {
    position: static;
    top: auto;
  }

  .benefit-grid,
  .testimonial-strip,
  .numbers-grid,
  .results-grid,
  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar-inner {
    min-height: 74px;
    padding: 12px 0;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .hero {
    padding-top: 22px;
  }

  .search-card,
  .catalog-stats-grid,
  .benefit-grid,
  .testimonial-strip,
  .numbers-grid,
  .results-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .mega-cta {
    width: 100%;
  }

  .results-toolbar,
  .catalog-controls-foot,
  .result-card-top,
  .result-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-banner,
  .hero-banner-image {
    min-height: 320px;
    height: 320px;
  }

  .hero-banner-copy {
    left: 24px;
    right: 24px;
    top: 24px;
    max-width: 400px;
  }

  .hero-search-shell {
    padding: 20px;
  }

  .hero-carousel-band {
    margin-top: 40px;
  }

  .catalog-controls {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 22px), var(--container));
  }

  .topbar-inner {
    min-height: 68px;
    gap: 14px;
    align-items: center;
  }

  .hero h1 {
    max-width: 9.5ch;
    font-size: clamp(1.9rem, 10.2vw, 2.6rem);
    line-height: 0.96;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading h2 {
    max-width: none;
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .hero-banner,
  .hero-banner-image {
    min-height: 370px;
    height: 370px;
  }

  .hero-search-shell {
    border-radius: 22px;
    padding: 16px 14px;
  }

  .hero-banner-copy {
    left: 18px;
    right: 18px;
    top: auto;
    bottom: 18px;
    max-width: none;
  }

  .hero-banner-overlay {
    background:
      linear-gradient(180deg, rgba(8, 20, 45, 0.18) 0%, rgba(8, 20, 45, 0.48) 34%, rgba(8, 20, 45, 0.88) 100%),
      linear-gradient(90deg, rgba(8, 20, 45, 0.18) 0%, rgba(8, 20, 45, 0.12) 100%);
  }

  .hero-banner-image {
    object-position: center 34%;
  }

  .hero .eyebrow {
    margin-bottom: 14px;
    padding: 8px 12px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .hero-text {
    max-width: none;
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.48;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-text {
    font-size: 1.34rem;
  }

  .brand-subtext {
    display: none;
  }

  .topbar-actions {
    width: auto;
    margin-left: 0;
    flex-direction: row;
    align-items: center;
  }

  .topbar-primary {
    min-width: 0;
    min-height: 46px;
    padding: 0 18px;
    font-size: 0.94rem;
  }

  .hero-search-card {
    padding: 0;
  }

  .hero-search-shell .search-feedback {
    margin-left: 0;
    margin-right: 0;
  }

  .catalog-hero-shell,
  .catalog-controls {
    padding: 20px 18px;
    border-radius: 24px;
  }

  .catalog-hero-badges span,
  .active-filter-pill {
    width: 100%;
    justify-content: center;
  }

  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-row > div:first-child {
    border-right: 0;
    border-bottom: 1px solid rgba(23, 48, 79, 0.08);
    background: rgba(29, 95, 211, 0.04);
  }

  .footer-grid {
    padding: 24px;
  }
}
