:root {
  --ink: #12211c;
  --muted: #64726c;
  --paper: #f5f2ec;
  --white: #ffffff;
  --green: #087a52;
  --green-dark: #07553e;
  --accent: #e42313;
  --red: var(--accent);
  --line: rgba(18, 33, 28, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background:
    linear-gradient(rgba(18, 33, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 33, 28, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 80px 80px;
}

.heroGlow {
  position: absolute;
  top: -330px;
  right: -230px;
  width: 750px;
  height: 750px;
  border-radius: 50%;
  background: rgba(8, 122, 82, 0.09);
  box-shadow:
    0 0 0 70px rgba(8, 122, 82, 0.035),
    0 0 0 140px rgba(8, 122, 82, 0.02);
}

.siteHeader {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.brandHeart {
  display: grid;
  width: 31px;
  height: 31px;
  margin-right: 10px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 15px;
}

.brandDomain {
  color: inherit;
}

.heroContent {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100% - 48px));
  margin: 132px auto 0;
}

.eyebrow,
.joinLabel {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.eyebrow span {
  width: 35px;
  height: 2px;
  background: var(--accent);
}

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

h1 {
  max-width: 920px;
  margin-bottom: 27px;
  font-size: clamp(50px, 7vw, 92px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.intro {
  max-width: 550px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.pulse {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 132px;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(227, 74, 66, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 74, 66, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid rgba(18, 33, 28, 0.06);
}

.pulse::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(227, 74, 66, 0.12);
  content: "";
}

.pulse::after {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--paper));
  content: "";
  pointer-events: none;
}

.pulse canvas {
  z-index: 1;
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.partners {
  padding: 108px max(24px, calc((100% - 1180px) / 2)) 128px;
  background: var(--white);
}

.sectionHeading {
  display: flex;
  align-items: flex-end;
  margin-bottom: 44px;
}

.sectionHeading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.partnerGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partnerCard {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px 28px 24px;
  overflow: hidden;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

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

.partnerCard::after {
  position: absolute;
  right: -75px;
  bottom: -75px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(228, 35, 19, 0.065);
  content: "";
  transform: scale(0);
  transition: transform 220ms ease;
}

.partnerCard:hover,
.partnerCard:focus-visible {
  background: #f8faf8;
  outline: none;
}

.partnerCard:hover::after,
.partnerCard:focus-visible::after {
  transform: scale(1);
}

.partnerIndex {
  color: #9aa49f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.partnerLogoWrap {
  display: grid;
  min-height: 140px;
  place-items: center;
}

.partnerLogo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 128px;
  height: auto;
  object-fit: contain;
}

.partnerLogoCity {
  width: 180px;
}

.partnerLogoNexus {
  width: 245px;
}

.partnerLogoActie {
  width: 192px;
}

.visit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.visit span {
  color: var(--accent);
  font-size: 18px;
  transition: transform 180ms ease;
}

.partnerCard:hover .visit span,
.partnerCard:focus-visible .visit span {
  transform: translate(3px, -3px);
}

.join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 92px max(24px, calc((100% - 1180px) / 2));
  background: var(--accent);
  color: white;
}

.joinLabel {
  margin-bottom: 16px;
  color: #ffd1cd;
}

.join h2 {
  max-width: 670px;
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.joinButton {
  display: inline-flex;
  min-width: 230px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 19px 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: white;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.joinButton:hover,
.joinButton:focus-visible {
  outline: none;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.joinButton span {
  font-size: 20px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px max(24px, calc((100% - 1180px) / 2));
  background: var(--ink);
  color: #b7c0bc;
  font-size: 12px;
}

footer p {
  margin-bottom: 0;
}

footer a:hover,
footer a:focus-visible {
  color: white;
}

.contentPage {
  width: min(760px, calc(100% - 48px));
  min-height: 80vh;
  margin: 0 auto;
  padding: 90px 0;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .hero {
    min-height: 650px;
    background-size: 56px 56px;
  }

  .heroContent {
    margin-top: 105px;
  }

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

  .partnerCard {
    min-height: 235px;
  }

  .partnerCard + .partnerCard {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .partnerLogoWrap {
    min-height: 115px;
  }

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

@media (max-width: 520px) {
  .siteHeader,
  .heroContent {
    width: calc(100% - 36px);
  }

  .siteHeader {
    padding-top: 24px;
  }

  .heroContent {
    margin-top: 78px;
  }

  .pulse {
    height: 108px;
  }

  h1 {
    font-size: clamp(45px, 14vw, 64px);
  }

  .intro {
    font-size: 16px;
  }

  .partners {
    padding-top: 75px;
    padding-bottom: 85px;
  }

  .sectionHeading {
    gap: 16px;
  }

  .partnerCard {
    padding-right: 20px;
    padding-left: 20px;
  }

  .join {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .joinButton {
    width: 100%;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

}
