/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(3, 6, 12, .55) 0%, rgba(3, 6, 12, 0) 20%, rgba(3, 6, 12, 0) 55%, var(--ink-0) 100%),
    url('../assets/bg-library-hero.png');
  background-size: cover;
  background-position: 60% 25%
}

.signal-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center
}

.hero__logo {
  width: min(680px, 88vw);
  height: auto
}

.hero__tagline {
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  color: var(--ink-7)
}

.hero__ctas {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 360px
}

@media (min-width: 600px) {
  .hero__ctas {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    max-width: none
  }
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  color: var(--ink-6);
  animation: scroll-hint 2.4s ease-in-out infinite
}

@keyframes scroll-hint {

  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: .55
  }

  50% {
    transform: translate(-50%, 8px);
    opacity: 1
  }
}

.hero__scroll:hover {
  color: var(--ink-7)
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll {
    animation: none
  }
}

@keyframes symbol-fall-down {
  0% {
    transform: translateY(-50px);
    opacity: 0
  }

  5% {
    opacity: .6
  }

  95% {
    opacity: .6
  }

  100% {
    transform: translateY(calc(100vh + 50px));
    opacity: 0
  }
}

.alien-symbol path {
  stroke: var(--cyan);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}

@media (prefers-reduced-motion: reduce) {
  .signal-bg {
    display: none
  }
}

/* Glyph texture behind the pitch and trust lines */
.glyph-field {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter)
}

.glyph-field__layer {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.glyph-field__layer svg {
  position: absolute
}

.glyph-field__layer path {
  stroke: var(--cyan);
  stroke-width: .8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}

.glyph-field p {
  position: relative;
  text-align: center;
  font-family: var(--display);
  color: var(--ink-7)
}

.pitch {
  min-height: 520px
}

@media (min-width: 1024px) {
  .pitch {
    min-height: 720px
  }
}

.pitch p {
  max-width: 1000px;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.15
}

.pitch strong {
  font-weight: 400;
  color: var(--cyan)
}

.trust {
  min-height: 380px
}

@media (min-width: 1024px) {
  .trust {
    min-height: 520px
  }
}

.trust p {
  max-width: 820px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2
}

.trust a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px
}

/* Trailer poster */
.trailer {
  width: 100%;
  min-height: 260px;
  aspect-ratio: 16 / 9;
  max-height: 810px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--ink-7);
  background-image:
    linear-gradient(180deg, var(--ink-0) 0%, rgba(3, 6, 12, .35) 18%, rgba(3, 6, 12, .35) 82%, var(--ink-0) 100%),
    url('../assets/screenshots/Arecibo.png');
  background-size: cover;
  background-position: center
}

.trailer:hover {
  color: var(--ink-7)
}

.trailer__play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms
}

.trailer:hover .trailer__play {
  transform: scale(1.06)
}

.trailer__label {
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1
}

@media (min-width: 1024px) {
  .trailer__play {
    width: 104px;
    height: 104px
  }
}

/* Screenshots */
.shots {
  padding: 16px var(--gutter) 72px;
  display: grid;
  gap: 12px
}

@media (min-width: 900px) {
  .shots {
    padding: 40px var(--gutter) 120px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 16px
  }

  .shots__item:first-child {
    grid-column: span 2;
    grid-row: span 2
  }
}

.shots__item {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in
}

.shots__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 300ms
}

.shots__item:hover img {
  transform: scale(1.02)
}

/* Devlog */
.devlog {
  padding: 0 var(--gutter) 72px;
  max-width: 1040px;
  margin: 0 auto
}

@media (min-width: 900px) {
  .devlog {
    padding-bottom: 120px
  }
}

.devlog__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-3)
}

.devlog__head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 40px);
  color: var(--ink-7)
}

.devlog__head a {
  padding: 12px 0;
  font-size: 15px
}

.devlog__entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ink-3);
  color: var(--ink-7)
}

.devlog__entry:hover {
  color: var(--cyan)
}

@media (min-width: 600px) {
  .devlog__entry {
    flex-direction: row;
    align-items: baseline;
    gap: 40px
  }
}

.devlog__date {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-5);
  min-width: 110px
}

.devlog__title {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 28px);
  line-height: 1.2
}

/* Closing call to action */
.closer {
  padding: 64px var(--gutter) 56px;
  background: var(--ink-1);
  border-top: 1px solid var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px
}

@media (min-width: 900px) {
  .closer {
    padding-top: 100px;
    gap: 40px
  }
}

.closer__logo {
  width: min(420px, 70vw);
  height: auto
}

.closer__row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 360px
}

@media (min-width: 900px) {
  .closer__row {
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
    max-width: none;
    width: auto
  }
}

.signup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative
}

.signup label {
  font-size: 14px;
  color: var(--ink-5)
}

.signup__fields {
  display: flex;
  flex-direction: column;
  gap: 8px
}

@media (min-width: 900px) {
  .signup__fields {
    flex-direction: row
  }
}

.signup input[type="email"] {
  min-width: 0;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ink-4);
  background: var(--ink-0);
  color: var(--ink-7);
  font: 15px var(--sans)
}

@media (min-width: 900px) {
  .signup input[type="email"] {
    width: 280px
  }
}

.signup .btn,
.closer__row>.btn {
  min-height: 48px
}

.honeypot {
  position: absolute;
  left: -5000px
}
