:root {
  --brand-primary: #009fe3;
  --brand-primary-dark: #004f9f;
  --brand-corp-04-dark: #d9d9d9;
  --brand-corp-04-light: #bcbcbc;
  --bg: #282828;
  --panel: #414141;
  --panel-soft: #626262;
  --text: #ffffff;
  --muted: #d9d9d9;
  --primary: var(--brand-primary);
  --primary-dark: var(--brand-primary-dark);
  --border: rgba(255, 255, 255, 0.14);
  --surface: #1f1f1f;
  --surface-elevated: rgba(65, 65, 65, 0.94);
  --surface-overlay: rgba(29, 29, 29, 0.98);
  --field-bg: #414141;
  --field-text: #ffffff;
  --check-border: #ffffff;
  --corp-04: var(--brand-corp-04-dark);
  --toggle-track: #414141;
  --toggle-inactive: #626262;
  --footer-link: rgba(255, 255, 255, 0.9);
  --footer-divider: rgba(255, 255, 255, 0.28);
  --focus-ring: rgba(0, 159, 227, 0.34);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  --radius: 16px;
  --radius-pill: 999px;
  --container: min(1328px, calc(100% - 56px));
}

body[data-theme="light"] {
  --bg: #f3f3f3;
  --panel: #ffffff;
  --panel-soft: #ebebeb;
  --text: #4b4a49;
  --muted: #5f5f5f;
  --border: rgba(75, 74, 73, 0.18);
  --surface: #ececec;
  --surface-elevated: rgba(255, 255, 255, 0.96);
  --surface-overlay: rgba(245, 245, 245, 0.98);
  --field-bg: #f0f0f0;
  --field-text: #4b4a49;
  --check-border: #4b4a49;
  --corp-04: var(--brand-corp-04-light);
  --toggle-track: #f0f0f0;
  --toggle-inactive: #d4d4d4;
  --footer-link: #4b4a49;
  --footer-divider: rgba(75, 74, 73, 0.35);
  --shadow: 0 24px 60px rgba(84, 84, 84, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Quicksand", sans-serif;
  line-height: 1.5;
}

body.is-menu-open {
  overflow: hidden;
}

[data-reveal] {
  --reveal-x: 0px;
  --reveal-y: 28px;
  --reveal-scale: 1;
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(var(--reveal-scale));
  filter: blur(6px);
  transition:
    opacity 680ms ease,
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

[data-reveal="fade"] {
  --reveal-y: 0px;
}

[data-reveal="slide-left"] {
  --reveal-x: 22px;
  --reveal-y: 0px;
}

[data-reveal="slide-right"] {
  --reveal-x: -22px;
  --reveal-y: 0px;
}

[data-reveal="scale-in"] {
  --reveal-y: 16px;
  --reveal-scale: 0.97;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  overflow: clip;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar__row,
.navbar__row,
.footer__bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar__row {
  min-height: 41px;
}

.topbar__links,
.topbar__socials,
.topbar__actions,
.navbar__menu,
.navbar__actions,
.footer__socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar__links a,
.topbar__socials a {
  font-size: 15px;
  font-weight: 600;
}

.topbar__links a:first-child {
  color: var(--primary);
}

.topbar__actions {
  margin-left: auto;
}

.topbar__socials a,
.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  font-size: 14px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
}

.navbar__row {
  min-height: 120px;
  flex-wrap: nowrap;
}

.navbar__mobile-tools {
  display: none;
  align-items: center;
  gap: 12px;
}

.menu-toggle,
.menu-close {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.menu-close:hover,
.menu-close:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__symbol {
  display: inline-flex;
  align-items: center;
  width: 64px;
}

.brand__symbol--footer {
  width: 64px;
}

.brand__symbol-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand__mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 58% 46%, rgba(0, 159, 227, 0.85), transparent 28%),
    radial-gradient(circle at 35% 38%, rgba(0, 79, 159, 0.9), transparent 42%),
    linear-gradient(135deg, #00b3ff, #0052b3);
  box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.08);
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.brand__mark::after {
  inset: 4px;
  border-color: rgba(255, 255, 255, 0.14);
}

.brand__wordmark {
  width: min(100%, 300px);
  height: auto;
  object-fit: contain;
}

.brand__wordmark-wrap {
  display: inline-flex;
}

.brand__wordmark--footer {
  width: min(100%, 300px);
}

.brand--footer {
  align-items: center;
  gap: 12px;
}

.theme-asset--light {
  display: none;
}

body[data-theme="light"] .theme-asset--dark {
  display: none;
}

body[data-theme="light"] .theme-asset--light {
  display: block;
}

.navbar__menu a {
  font-size: 16px;
  font-weight: 500;
}

.navbar__menu {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 28px;
  min-width: 0;
}

.navbar__menu a {
  position: relative;
  white-space: nowrap;
  transition: color 180ms ease;
}

.navbar__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.55);
  transform-origin: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.navbar__menu a:hover,
.navbar__menu a:focus-visible {
  color: var(--primary);
}

.navbar__menu a:hover::after,
.navbar__menu a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.navbar__menu .is-active {
  color: var(--primary);
}

.navbar__menu .is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.topbar__socials,
.footer__socials {
  display: none;
}

.theme-toggle--panel {
  justify-content: flex-start;
}

.theme-toggle--topbar {
  width: auto;
  justify-content: flex-end;
  flex-shrink: 0;
}

.theme-toggle__slot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.theme-toggle--panel .theme-toggle__slot {
  width: 24px;
  height: 24px;
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition:
    color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.theme-toggle--panel .theme-toggle__icon--moon {
  transform: scale(0.96);
}

.theme-toggle__slot--sun {
  color: var(--primary);
}

.theme-toggle__slot--moon {
  color: rgba(255, 255, 255, 0.96);
}

.theme-toggle__slot--moon .theme-toggle__icon {
  transform: scale(0.96);
}

body[data-theme="dark"] .theme-toggle__slot--moon {
  color: #ffffff;
}

body[data-theme="dark"] .theme-toggle__slot--sun {
  color: var(--primary);
}

body[data-theme="light"] .theme-toggle__slot--sun {
  color: var(--corp-04);
}

body[data-theme="light"] .theme-toggle__slot--moon {
  color: var(--primary);
}

body[data-theme="light"] .theme-toggle__slot--sun .theme-toggle__icon {
  transform: scale(0.98);
}

body[data-theme="light"] .theme-toggle__slot--moon .theme-toggle__icon {
  transform: scale(1.02);
}

.navbar__actions {
  flex-shrink: 0;
  gap: 0;
  margin-left: 28px;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  opacity: 0.92;
}

.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.offcanvas-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  width: min(86vw, 360px);
  height: 100vh;
  padding: 28px 22px 24px;
  background:
    linear-gradient(180deg, var(--surface-overlay), color-mix(in srgb, var(--bg) 90%, transparent)),
    radial-gradient(circle at top right, rgba(0, 159, 227, 0.16), transparent 34%);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.offcanvas-menu.is-open,
body.is-menu-open .offcanvas-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.offcanvas-menu.is-open {
  transform: translateX(0);
}

.offcanvas-menu__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.brand--offcanvas {
  gap: 10px;
}

.brand__wordmark--offcanvas {
  width: 178px;
}

.offcanvas-menu__header .brand--offcanvas {
  max-width: calc(100% - 58px);
}

.offcanvas-menu__nav {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.offcanvas-menu__nav a {
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  font-size: 17px;
  font-weight: 600;
}

.offcanvas-menu__actions {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  align-items: start;
}

.offcanvas-menu__actions .theme-toggle {
  width: fit-content;
}

.offcanvas-menu__actions .button {
  width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 15px 32px;
  min-height: 56px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.2);
}

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

.button--primary:hover,
.button--primary:focus-visible {
  background: color-mix(in srgb, var(--primary) 88%, white);
}

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

.button--secondary:hover,
.button--secondary:focus-visible {
  background: color-mix(in srgb, var(--primary-dark) 84%, white);
}

.button--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.78);
  color: white;
}

.button--outline:hover,
.button--outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: white;
}

.button--small {
  min-height: 48px;
  padding-inline: 26px;
}

.hero {
  position: relative;
  min-height: 583px;
}

.hero__bg,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(9, 17, 28, 0.32), rgba(9, 17, 28, 0.15)),
    radial-gradient(circle at center, rgba(0, 159, 227, 0.1), rgba(0, 0, 0, 0.28));
}

body[data-theme="light"] .hero__overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.14));
}

.hero__content {
  position: relative;
  z-index: 1;
  min-height: 583px;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 28px;
  font-size: clamp(2.8rem, 5.5vw, 3.75rem);
  line-height: 1;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.section {
  padding: 92px 0;
}

.section--compact {
  padding-top: 24px;
  padding-bottom: 72px;
}

.section--alt {
  background: color-mix(in srgb, var(--panel) 92%, var(--bg));
}

#noticias.section--alt {
  background: color-mix(in srgb, var(--bg) 90%, #1f1f1f);
}

body[data-theme="light"] #noticias.section--alt {
  background: #f3f3f3;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 455px);
  align-items: center;
  gap: 58px;
}

.intro__copy h2,
.contact h2,
.section--alt h2 {
  margin: 0 0 26px;
  font-size: clamp(2.2rem, 4vw, 2.5rem);
  line-height: 1.1;
  font-weight: 600;
}

.intro__copy p,
.feature-panel__copy p,
.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.pill-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  padding: 2px;
  width: 370px;
  min-height: 56px;
  border-radius: var(--radius-pill);
  background: var(--toggle-track);
}

.pill-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-family: "Quicksand", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: white;
}

.pill-switch__item:first-child {
  width: 169px;
}

.pill-switch__item:last-child {
  width: 195px;
  background: var(--toggle-inactive);
}

.pill-switch__item.is-active {
  background: var(--primary);
}

.showcase-card {
  min-height: 292px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #202020;
  box-shadow: var(--shadow);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.company-card,
.news-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px 22px 26px;
  min-height: 286px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.12);
}

.company-card {
  --company-logo-width: 158px;
  --company-logo-offset-y: 0px;
  text-align: center;
}

.company-card__logo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 132px;
  margin-bottom: 24px;
  padding-top: 4px;
}

.company-card__logo img {
  width: auto;
  max-width: min(100%, var(--company-logo-width));
  max-height: 108px;
  height: auto;
  object-fit: contain;
  transform: translateY(var(--company-logo-offset-y));
  transform-origin: center top;
}

.company-card--pay {
  --company-logo-width: 156px;
  --company-logo-offset-y: 6px;
}

.company-card--bio {
  --company-logo-width: 148px;
  --company-logo-offset-y: 2px;
}

.company-card--financial {
  --company-logo-width: 196px;
  --company-logo-offset-y: 6px;
}

.company-card--tower {
  --company-logo-width: 182px;
  --company-logo-offset-y: 8px;
}

.company-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.dots span {
  width: 22px;
  height: 11px;
  border-radius: 999px;
  background: var(--panel);
}

.dots .is-active {
  background: var(--primary);
}

.dots--feature {
  margin-top: 22px;
}

.dots--feature button {
  width: 22px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  padding: 0;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.dots--feature button.is-active {
  background: var(--primary);
}

.dots--feature button:hover,
.dots--feature button:focus-visible {
  transform: scale(1.04);
}

.dots--news {
  margin-top: 18px;
}

.dots--news button {
  width: 22px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  padding: 0;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.dots--news button.is-active {
  background: var(--primary);
}

.dots--news button:hover,
.dots--news button:focus-visible {
  transform: scale(1.04);
}

.news-section__actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.news-carousel {
  overflow: visible;
}

.news-carousel__viewport {
  overflow: hidden;
  padding: 28px 12px 36px;
  margin: -28px -12px -36px;
}

.news-carousel__track {
  display: flex;
  gap: 24px;
  transition: transform 240ms ease;
  will-change: transform;
}

.news-carousel .news-card {
  flex: 0 0 calc((100% - 72px) / 4);
}

.news-card[data-news-open],
.aggregator-card[data-news-open] {
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.news-card[data-news-open]:hover,
.news-card[data-news-open]:focus-visible,
.aggregator-card[data-news-open]:hover,
.aggregator-card[data-news-open]:focus-visible {
  transform: translateY(-4px);
  box-shadow: none;
}

.news-carousel__meta {
  margin-top: 16px;
  text-align: center;
}

.news-carousel__meta p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

body.is-news-modal-open {
  overflow: hidden;
}

.news-modal[hidden] {
  display: none;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.news-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(6px);
}

.news-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow: auto;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  outline: none;
}

body[data-theme="light"] .news-modal__dialog {
  background: #ffffff;
}

.news-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.news-modal__media {
  aspect-ratio: 16 / 8;
  overflow: hidden;
}

.news-modal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-modal__body {
  padding: 28px 30px 34px;
}

.news-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.news-modal__tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.news-modal__body h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.02;
}

.news-modal__content p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.news-modal__content p:last-child {
  margin-bottom: 0;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 46%);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: none;
}

.feature-carousel {
  overflow: visible;
}

.feature-carousel__viewport {
  overflow: hidden;
  padding: 28px 12px 38px;
  margin: -28px -12px -38px;
}

.feature-carousel__track {
  display: flex;
  gap: 24px;
  transition: transform 280ms ease;
  will-change: transform;
}

.feature-carousel .feature-panel {
  flex: 0 0 100%;
}

.feature-panel__copy {
  padding: 42px 34px;
}

.eyebrow {
  color: var(--primary);
  margin-bottom: 12px !important;
  font-size: 16px !important;
}

.feature-panel__copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 4.8vw, 3.75rem);
  line-height: 0.98;
  font-weight: 600;
}

.feature-panel__copy p:last-of-type {
  margin-bottom: 30px;
}

.feature-panel__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--field-bg);
  color: var(--field-text);
  padding: 16px 22px;
  outline: none;
  min-height: 56px;
  font-size: 18px;
  font-weight: 400;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: color-mix(in srgb, var(--field-text) 84%, transparent);
}

.contact-form textarea {
  min-height: 172px;
  resize: vertical;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: color-mix(in srgb, var(--primary) 48%, transparent);
  background: color-mix(in srgb, var(--field-bg) 84%, var(--primary) 16%);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
  background: color-mix(in srgb, var(--field-bg) 88%, var(--primary) 12%);
}

.contact-form__message {
  grid-column: 1 / -1;
}

.checkbox {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.checkbox span a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--primary);
  border-radius: 4px;
  border: 1px solid var(--check-border);
}

.contact-form__submit {
  justify-self: start;
  min-width: 210px;
}

.news-card {
  padding: 0;
  overflow: hidden;
  min-height: 330px;
  background: var(--panel-soft);
  box-shadow: none;
}

body[data-theme="light"] .news-card {
  background: #ffffff;
  box-shadow: none;
}

body[data-theme="light"] .feature-panel {
  background: #ffffff;
  box-shadow: none;
}

body[data-theme="light"] .news-card[data-news-open]:hover,
body[data-theme="light"] .news-card[data-news-open]:focus-visible {
  box-shadow: none;
}

.news-card img {
  width: 100%;
  height: 179px;
  object-fit: cover;
}

.news-card__body {
  padding: 22px 22px 26px;
  text-align: center;
}

.news-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 600;
}

.footer {
  position: relative;
  margin-top: 44px;
  padding-top: 48px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--panel) 94%, #1f1f1f 6%),
    color-mix(in srgb, var(--bg) 97%, #1f1f1f 3%)
  );
}

body[data-theme="light"] .footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 244, 244, 0.98));
}

.footer__helper {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: 999px;
  background: #56b26f;
  color: white;
  font-size: 10px;
  font-weight: 500;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 64px;
  padding: 64px 0 64px;
}

.footer__brand {
  display: grid;
  align-content: start;
  gap: 22px;
}

.footer__brand-copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.footer__meta {
  display: grid;
  gap: 10px;
}

.footer__meta a {
  color: var(--footer-link);
  font-size: 15px;
}

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

.footer__links h3 {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.footer__links a {
  display: block;
  color: var(--footer-link);
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.45;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.footer__links > div {
  position: relative;
  padding-right: 28px;
}

.footer__links > div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  width: 1px;
  height: 116px;
  background: var(--footer-divider);
}

.footer__links a:hover,
.footer__links a:focus-visible,
.footer__meta a:hover,
.footer__meta a:focus-visible {
  color: var(--primary);
  transform: translateX(3px);
}

.footer__bottom {
  background: var(--primary);
}

.footer__bottom-row {
  min-height: 50px;
  color: white;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

.footer__bottom-row a {
  transition: opacity 180ms ease;
}

.footer__bottom-row a:hover,
.footer__bottom-row a:focus-visible {
  opacity: 0.8;
}

.footer__legal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__legal-nav a {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.footer__legal-nav [data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

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

@media (max-width: 1380px) {
  :root {
    --container: min(1280px, calc(100% - 36px));
  }

  .navbar__menu {
    gap: 12px;
  }

  .navbar__actions {
    margin-left: 18px;
  }

  .navbar__menu a {
    font-size: 15px;
  }
}

@media (max-width: 1380px) {
  .footer__bottom-row {
    flex-wrap: wrap;
  }

  .intro,
  .feature-panel,
  .footer__grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 1380px) {
  :root {
    --container: min(100% - 32px, 920px);
  }

  .topbar {
    display: none;
  }

  .navbar {
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .navbar__mobile-tools {
    display: inline-flex;
  }

  .navbar__menu,
  .navbar__actions {
    display: none;
  }

  .navbar__row {
    min-height: 88px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .brand__wordmark {
    width: min(100%, 220px);
  }

  .hero {
    min-height: 460px;
  }

  .hero__content {
    min-height: 460px;
  }

  .section {
    padding: 72px 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .pill-switch {
    width: 100%;
    max-width: 370px;
  }

  .pill-switch__item:first-child,
  .pill-switch__item:last-child {
    width: 50%;
  }

  .contact-form__submit {
    width: 100%;
    justify-self: stretch;
  }

  .feature-panel__copy {
    padding: 34px 24px;
  }

  .footer {
    padding-top: 84px;
  }

  .footer__grid {
    gap: 28px;
  }

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

  .footer__bottom-row {
    text-align: center;
    padding: 10px 0 16px;
  }

  .footer__legal-nav {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  :root {
    --container: min(100% - 28px, 720px);
  }

  .cards-grid,
  .news-grid,
  .footer__links {
    grid-template-columns: 1fr;
  }

  .news-carousel .news-card {
    flex-basis: calc((100% - 24px) / 2);
  }

  .news-modal__dialog {
    width: min(100%, calc(100% - 20px));
    max-height: calc(100vh - 20px);
    margin: 10px auto;
    border-radius: 18px;
  }

  .news-modal__media {
    aspect-ratio: 16 / 10;
  }

  .news-modal__body {
    padding: 22px 20px 24px;
  }

  .news-modal__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .footer__links > div {
    padding-right: 0;
  }

  .footer__links > div::after {
    display: none;
  }

  .footer__bottom-row {
    flex-direction: column;
  }
}
