@import url("https://rsms.me/inter/inter.css");

:root {
  --hero-paper: #ffffff;
  --hero-ink: #0a0a0a;
  --hero-lime: #d0ffa4;
  --hero-sky: #83e7ff;
  --hero-line: #e5e5e5;
  --hero-neutral-0: #ffffff;
  --hero-neutral-200: #e5e5e5;
  --hero-sans: var(--site-font);
  --hero-nav-width: 1100px;
  --hero-nav-height: 72px;
  --hero-nav-padding-inline: 32px;
  --hero-nav-padding-block: 16px;
  --hero-nav-radius: 99999px;
  --hero-nav-stroke-width: 1px;
  --hero-nav-background: #ffffff;
  --hero-nav-button-background: var(--hero-ink);
  --hero-nav-button-foreground: var(--hero-neutral-0);
  --hero-nav-button-label-size: 14px;
  --hero-nav-button-label-leading: 1.2;
  --hero-nav-button-label-tracking: -0.02em;
  --hero-tag-size: 0.75rem;
  --hero-tag-leading: 1.2;
  --hero-tag-tracking: 0.1em;
  --hero-tag-weight: var(--site-weight-medium);
  --hero-title-size: 4.375rem;
  --hero-title-leading: 1;
  --hero-title-tracking: -0.04em;
  --hero-title-weight: var(--site-weight-semibold);
  --hero-support-size: 1.125rem;
  --hero-support-leading: 1.4;
  --hero-support-tracking: -0.02em;
  --hero-support-weight: var(--site-weight-medium);
  --hero-cta-size: 1rem;
  --hero-cta-leading: 1.2;
  --hero-cta-tracking: -0.02em;
  --hero-cta-weight: var(--site-weight-semibold);
  --hero-viewport-height: 100vh;
  --hero-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--hero-paper);
  color: var(--hero-ink);
  font-family: var(--hero-sans);
  font-size: var(--site-body-size);
  line-height: var(--site-body-leading);
}

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: -4rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--hero-lime);
}

.skip-link:focus {
  top: 1rem;
}

.hero-section {
  position: relative;
  isolation: isolate;
  height: var(--hero-viewport-height);
  min-height: var(--hero-viewport-height);
  overflow: hidden;
  background: var(--hero-sky) url("/public/images/optimized/ridzeal-hero-v3-bg.jpg") center top / cover no-repeat;
}

.hero-section::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgb(255 255 255 / 4%), rgb(255 255 255 / 0%) 62%, rgb(0 110 233 / 7%));
  content: "";
  pointer-events: none;
}

.hero-scene {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--hero-nav-width), calc(100% - 48px));
  height: var(--hero-nav-height);
  margin: 32px auto 0;
  padding: var(--hero-nav-padding-block) var(--hero-nav-padding-inline);
  gap: 0;
  border: var(--hero-nav-stroke-width) solid var(--hero-neutral-200);
  border-radius: var(--hero-nav-radius);
  background: var(--hero-nav-background);
  box-shadow: 0 10px 28px rgb(0 72 126 / 8%);
  overflow: hidden;
}

.hero-wordmark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 98px;
  height: 24px;
  position: relative;
  z-index: 1;
}

.hero-wordmark img {
  display: block;
  width: 98px;
  height: 24px;
}

.hero-greeting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  min-height: 40px;
  padding: 11px 24px;
  border: 0;
  border-radius: var(--hero-nav-radius);
  font-family: var(--hero-sans);
  font-size: var(--hero-nav-button-label-size);
  font-weight: var(--site-weight-semibold);
  letter-spacing: var(--hero-nav-button-label-tracking);
  line-height: var(--hero-nav-button-label-leading);
  background: var(--hero-nav-button-background);
  color: var(--hero-nav-button-foreground);
  position: relative;
  z-index: 1;
  transition: transform 160ms var(--hero-ease), box-shadow 160ms var(--hero-ease);
}

.hero-greeting:hover,
.hero-greeting:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0.45rem 0 rgb(10 10 10 / 22%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: min(61rem, calc(100% - 2.5rem));
  margin: clamp(10rem, 20vh, 17rem) auto 0;
  text-align: center;
}

.hero-eyebrow {
  margin: 0 0 2rem;
  padding: 0.45rem 1.15rem;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 999px;
  color: var(--hero-ink);
  font-family: var(--hero-sans);
  font-size: var(--hero-tag-size);
  font-weight: var(--hero-tag-weight);
  letter-spacing: var(--hero-tag-tracking);
  line-height: var(--hero-tag-leading);
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 58rem;
  margin: 0;
  color: var(--hero-ink);
  font-family: var(--hero-sans);
  font-size: var(--hero-title-size);
  font-weight: var(--hero-title-weight);
  letter-spacing: var(--hero-title-tracking);
  line-height: var(--hero-title-leading);
}

.hero-supporting-copy {
  max-width: 53rem;
  margin: 1.8rem 0 0;
  color: rgb(10 10 10 / 82%);
  font-family: var(--hero-sans);
  font-size: var(--hero-support-size);
  font-weight: var(--hero-support-weight);
  letter-spacing: var(--hero-support-tracking);
  line-height: var(--hero-support-leading);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  margin-top: 2.1rem;
  padding: 0.75rem 1.65rem;
  border: 1px solid rgb(10 10 10 / 17%);
  border-radius: 999px;
  background: var(--hero-lime);
  font-family: var(--hero-sans);
  font-size: var(--hero-cta-size);
  font-weight: var(--hero-cta-weight);
  letter-spacing: var(--hero-cta-tracking);
  line-height: var(--hero-cta-leading);
  box-shadow: 0 0.35rem 0 rgb(10 10 10 / 10%);
  transition: transform 160ms var(--hero-ease), box-shadow 160ms var(--hero-ease);
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 0 rgb(10 10 10 / 13%);
}

:is(.hero-greeting, .hero-cta):focus-visible {
  outline: 3px solid var(--hero-ink);
  outline-offset: 4px;
}

.hero-greeting:focus-visible {
  outline-color: var(--hero-neutral-0);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-section::after {
    animation: hero-overlay-arrival 800ms var(--hero-ease) both;
  }

  .hero-content > * {
    animation: hero-copy-arrival 560ms var(--hero-ease) both;
  }

  .hero-content > :nth-child(2) {
    animation-delay: 80ms;
  }

  .hero-content > :nth-child(3) {
    animation-delay: 150ms;
  }

  .hero-content > :nth-child(4) {
    animation-delay: 220ms;
  }
}

@keyframes hero-overlay-arrival {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-copy-arrival {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .hero-section {
    height: var(--hero-viewport-height);
    min-height: var(--hero-viewport-height);
  }

  .hero-header {
    width: calc(100% - 32px);
    margin-top: 24px;
  }

  .hero-content {
    margin-top: clamp(9rem, 19vh, 14rem);
  }

  .hero-content h1 {
    font-size: clamp(3.5rem, 8vw, 4.375rem);
  }
}

@media (max-width: 520px) {
  .hero-section {
    height: var(--hero-viewport-height);
    min-height: var(--hero-viewport-height);
    background-position: center top;
  }

  .hero-header {
    width: calc(100% - 24px);
    height: 56px;
    margin-top: 12px;
    padding: 12px 16px;
  }

  .hero-greeting {
    min-width: 86px;
    min-height: 32px;
    padding: 8px 18px;
    font-size: 12px;
  }

  .hero-content {
    width: calc(100% - 2rem);
    margin-top: clamp(8rem, 18vh, 11rem);
  }

  .hero-eyebrow {
    margin-bottom: 1.35rem;
    padding: 0.4rem 0.75rem;
    font-size: var(--hero-tag-size);
  }

  .hero-content h1 {
    font-size: clamp(2.7rem, 12.8vw, 4rem);
    letter-spacing: -0.085em;
  }

  .hero-supporting-copy {
    max-width: 22rem;
    margin-top: 1.25rem;
    font-size: var(--hero-support-size);
  }

  .hero-cta {
    min-height: 3rem;
    margin-top: 1.45rem;
    padding: 0.7rem 1rem;
    font-size: var(--hero-cta-size);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
