/* Hero */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  min-height: min(100dvh, 900px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--header-top-gap) + 2rem) 0 4rem;
  overflow: hidden;
}

@media (max-width: 899px) {
  .hero {
    padding-top: calc(var(--header-height) + var(--header-top-gap) + 3.25rem);
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orb-float 18s ease-in-out infinite;
}

.hero__orb--1 {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
  top: -10%;
  right: -5%;
}

.hero__orb--2 {
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  background: radial-gradient(circle, var(--color-royal) 0%, transparent 70%);
  bottom: 10%;
  left: -10%;
  animation-delay: -6s;
}

.hero__orb--3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(13, 92, 61, 0.45) 0%, transparent 70%);
  top: 40%;
  left: 35%;
  animation-delay: -12s;
  opacity: 0.4;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(24px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-16px, 16px) scale(0.95);
  }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3.5rem;
  align-items: center;
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 2rem;
  }

  .hero__content {
    text-align: left;
  }

  .hero__content .section-label {
    font-size: 0.9375rem;
    margin-bottom: 1.35rem;
  }
}

.hero__content {
  text-align: center;
}

.hero__wordmark {
  width: min(100%, 22rem);
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  transform: scale(1.05);
  transform-origin: center center;
}

@media (min-width: 960px) {
  .hero__wordmark {
    width: min(100%, 26rem);
    margin-inline: auto;
    margin-bottom: 1.75rem;
  }
}

.hero__headline {
  font-size: clamp(2.875rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.03;
  margin-bottom: 1.75rem;
  background: linear-gradient(
    135deg,
    var(--color-text) 0%,
    var(--color-royal) 50%,
    var(--color-blue) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero__headline {
    background: linear-gradient(135deg, #f1f5f9 0%, var(--color-blue-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

:root[data-theme="dark"] .hero__headline {
  background: linear-gradient(135deg, #f1f5f9 0%, var(--color-blue-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  font-size: clamp(1.125rem, 2.35vw, 1.4375rem);
  color: var(--color-text-muted);
  max-width: 38rem;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

@media (min-width: 960px) {
  .hero__sub {
    margin-inline: 0;
  }
}

.hero__sub {
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.125rem;
  justify-content: center;
}

.hero__content .btn {
  font-size: 1.0625rem;
  padding: 1rem 1.625rem;
}

.hero__content .btn--app-store {
  padding: 0.75rem 1.375rem;
}

.hero__content .btn--app-store svg {
  width: auto;
  height: 46px;
}

@media (min-width: 960px) {
  .hero__actions {
    justify-content: flex-start;
  }
}

.hero__visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.hero-phone {
  width: min(300px, 85vw);
  animation: phone-float 5s ease-in-out infinite;
  transform: rotateY(-8deg) rotateX(4deg);
}

@keyframes phone-float {
  0%,
  100% {
    transform: rotateY(-8deg) rotateX(4deg) translateY(0);
  }
  50% {
    transform: rotateY(-8deg) rotateX(4deg) translateY(-14px);
  }
}

.hero-phone__device {
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(165deg, #3a3a40 0%, #121214 50%, #1c1c1f 100%);
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-phone__screen {
  border-radius: 34px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
  position: relative;
}

.hero-phone__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Sections */
.section {
  padding: var(--section-pad-y) 0;
}

.section--alt {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(10, 119, 255, 0.04),
    transparent
  );
}

.section--center {
  text-align: center;
}

.section--center .section-lead {
  margin-inline: auto;
}
