:root {
  --navy: #102a43;
  --navy-deep: #071e33;
  --blue: #1267a5;
  --blue-light: #e9f3fa;
  --teal: #0d7c77;
  --gold: #f2b84b;
  --ink: #172b3a;
  --muted: #5c6f7d;
  --line: #d8e2e8;
  --surface: #f5f8fa;
  --white: #fff;
  --shadow: 0 12px 35px rgb(7 30 51 / 10%);
  --radius: 14px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", Aptos, Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--navy);
  background: var(--white);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 35%, rgb(47 173 166 / 35%) 0, transparent 25%),
    linear-gradient(120deg, var(--navy-deep), #103c61 65%, #0d625f);
}

.hero::after {
  position: absolute;
  right: -120px;
  bottom: -270px;
  width: 680px;
  height: 680px;
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgb(255 255 255 / 3%),
    0 0 0 140px rgb(255 255 255 / 3%);
  content: "";
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 650;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--navy-deep);
  background: var(--gold);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: rgb(255 255 255 / 82%);
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--white);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 86px 110px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #79d5cf;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 770px;
  margin-bottom: 20px;
  font-size: clamp(44px, 6vw, 70px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 34px;
  color: rgb(255 255 255 / 78%);
  font-size: 20px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  font-weight: 650;
  text-decoration: none;
}

.primary-button {
  color: var(--navy-deep);
  background: var(--gold);
}

.secondary-button {
  color: var(--white);
  background: var(--blue);
}

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

.hero-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-download {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  padding: 8px 16px 8px 10px;
  color: var(--white);
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.hero-download:hover,
.hero-download:focus-visible {
  background: rgb(255 255 255 / 16%);
  border-color: rgb(255 255 255 / 45%);
}

.hero-download .file-type {
  color: var(--navy-deep);
  background: var(--gold);
}

.stats-section {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -52px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 27px 30px;
}

.stat-card + .stat-card {
  border-left: 1px solid var(--line);
}

.stat-value,
.stat-label {
  display: block;
}

.stat-value {
  color: var(--navy);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.connector-section {
  padding-block: 100px 110px;
}

.section-heading {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
}

.section-heading > p,
.last-updated {
  max-width: 450px;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 14px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(125px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filters label,
.sort-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.filters input,
.filters select,
.sort-control select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #bfccd4;
  border-radius: 7px;
  outline: none;
}

.filters input:focus,
.filters select:focus,
.sort-control select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(18 103 165 / 14%);
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  bottom: 13px;
  left: 13px;
  width: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-field input {
  padding-left: 40px;
}

.text-button {
  min-height: 44px;
  padding-inline: 10px;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 650;
}

.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.results-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sort-control {
  flex-direction: row;
  align-items: center;
}

.sort-control select {
  min-height: 38px;
}

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

.connector-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.connector-card:hover {
  border-color: #b3c8d6;
  box-shadow: 0 10px 25px rgb(16 42 67 / 9%);
  transform: translateY(-2px);
}

.connector-title-row {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 55px;
}

.connector-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
  border-radius: 8px;
}

.connector-card h3 {
  margin-bottom: 3px;
  font-size: 17px;
  line-height: 1.25;
}

.publisher {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block: 19px;
}

.badge {
  padding: 3px 8px;
  color: #415666;
  background: #edf2f5;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 650;
}

.badge.premium {
  color: #714b00;
  background: #fff1cf;
}

.badge.preview {
  color: #724a82;
  background: #f4eafa;
}

.availability {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: auto;
}

.cloud-state {
  padding: 8px 4px;
  color: #7a8994;
  background: var(--surface);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

.cloud-state.available {
  color: #08635f;
  background: #def4f1;
}

.connector-link {
  margin-top: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.connector-link:hover {
  text-decoration: underline;
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 22px;
}

.empty-state p {
  color: var(--muted);
}

.file-type {
  display: inline-block;
  padding: 4px 9px;
  color: var(--navy-deep);
  background: var(--gold);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}

.methodology-section {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  padding-block: 95px;
}

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

.methodology-copy a {
  color: var(--blue);
  font-weight: 650;
  text-decoration: none;
}

footer {
  color: rgb(255 255 255 / 68%);
  background: var(--navy);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  padding-block: 25px;
}

.footer-content p {
  margin: 0;
  font-size: 12px;
}

.footer-content a {
  color: inherit;
  font-weight: 650;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .filters {
    grid-template-columns: repeat(4, 1fr);
  }

  .search-field {
    grid-column: span 3;
  }

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

@media (max-width: 700px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 510px;
  }

  .hero-content {
    padding-block: 72px 110px;
  }

  h1 {
    font-size: 43px;
  }

  .stats-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    padding: 22px;
  }

  .stat-card:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat-card:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .connector-section {
    padding-block: 75px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 16px;
  }

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

  .search-field {
    grid-column: 1 / -1;
  }

  .connector-grid,
  .methodology-section {
    grid-template-columns: 1fr;
  }

  .methodology-section {
    gap: 28px;
  }

  .footer-content {
    display: block;
  }

  .footer-content p + p {
    margin-top: 5px;
  }
}

@media (max-width: 440px) {
  .filters,
  .connector-grid {
    grid-template-columns: 1fr;
  }

  .search-field {
    grid-column: auto;
  }

  .results-heading {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }
}

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

  .connector-card {
    transition: none;
  }
}
