/* OriginSpan application portal action and hero viewport safeguards */

.nav-login-button {
  min-height: 42px;
  padding-inline: 18px;
  color: var(--color-text);
  border-color: rgba(114, 185, 255, 0.48);
  background: rgba(8, 120, 249, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 28px rgba(0, 0, 0, 0.14);
}

.nav-login-button:hover {
  border-color: rgba(114, 185, 255, 0.82);
  background: rgba(8, 120, 249, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 34px rgba(8, 120, 249, 0.16);
}

.nav-login-button::after {
  width: 0.42rem;
  height: 0.42rem;
  content: "";
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* Keep the market-aligned hero copy inside short and tablet-sized viewports. */
.hero {
  overflow: visible;
}

.hero-content {
  position: relative;
  z-index: 2;
  overflow: visible;
  padding-bottom: 1px;
}

.hero h1 {
  overflow: visible;
  padding-bottom: 0;
  line-height: 1;
}

/*
 * The final hero line contains the lowercase g descender. Give that line a real,
 * non-cancelled line box rather than relying on overflow outside a tight line-height.
 */
.hero h1 .gradient-text {
  display: block;
  overflow: visible;
  padding-bottom: 0.12em;
  margin-bottom: 0;
  line-height: 1.12;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-copy,
.hero-note {
  overflow: visible;
}

.hero-copy {
  margin-top: 18px;
}

@media (max-width: 860px) {
  .nav-links {
    gap: 10px;
  }

  .hero {
    padding: 54px 0 76px;
  }

  .hero-grid {
    align-items: start;
    row-gap: 40px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 6.6vw, 3.65rem);
    letter-spacing: -0.055em;
    line-height: 1.02;
  }

  .hero h1 .gradient-text {
    line-height: 1.14;
  }

  .hero-copy {
    max-width: 44rem;
    margin-top: 18px;
    line-height: 1.62;
  }

  .hero-actions {
    margin-top: 30px;
  }
}

@media (max-width: 620px) {
  .nav-login-button {
    min-height: 40px;
    padding-inline: 16px;
    font-size: 0.86rem;
  }

  .hero {
    padding: 46px 0 68px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 12vw, 3.55rem);
    line-height: 1.04;
  }

  .hero h1 .gradient-text {
    line-height: 1.16;
  }

  .hero-copy {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.58;
  }
}

@media (max-width: 390px) {
  .nav-login-button {
    padding-inline: 14px;
  }
}

@media (min-width: 621px) and (max-width: 860px) and (max-height: 700px) {
  .hero {
    padding-top: 36px;
  }

  .hero .eyebrow {
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 6vw, 3.4rem);
  }

  .hero-copy {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.55;
  }
}
