﻿.home-screen {
  position: relative;
  min-height: calc(100svh - 74px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #010307;
  padding: 70px max(20px, calc((100vw - var(--max-width)) / 2));
}

.home-night,
.home-night::before,
.home-night::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-night {
  background:
    radial-gradient(circle at 28% 20%, rgba(20, 138, 91, 0.13), transparent 24%),
    radial-gradient(circle at 75% 32%, rgba(242, 184, 75, 0.08), transparent 26%),
    linear-gradient(180deg, #010307 0%, #03070d 58%, #06100c 100%);
}

.home-night::before {
  content: "";
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 150px 150px, 230px 230px;
  background-position: 18px 22px, 92px 120px;
  opacity: 0.34;
}

.home-night::after {
  content: "";
  background: linear-gradient(180deg, rgba(1, 3, 7, 0.16), rgba(1, 3, 7, 0.72));
}

.falling-star {
  position: absolute;
  top: -90px;
  width: 2px;
  height: 78px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.86));
  border-radius: 999px;
  opacity: 0;
  animation: star-fall 7s linear infinite;
}

.book-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  width: 100%;
}

.book-copy {
  max-width: 650px;
}

.book-copy h1 {
  margin: 0;
  color: #f7fff9;
  font-size: clamp(3rem, 8vw, 6.3rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.book-copy p:not(.eyebrow) {
  max-width: 590px;
  margin: 24px 0 0;
  color: #b9d1c4;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.book-actions .button.primary {
  animation: button-enter-left 1.15s ease-out both;
}

.book-art {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
  padding: 2px;
  border-radius: var(--radius);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.36);
  animation: book-enter-right 1.2s ease-out both, book-float 6s ease-in-out 1.3s infinite;
}

.book-art img {
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
}

.career-dna-test-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 360px);
  align-items: center;
  gap: clamp(22px, 5vw, 60px);
  width: 100%;
  margin-top: 34px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(20, 138, 91, 0.12));
  border: 1px solid rgba(215, 234, 223, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.career-dna-test-copy h2 {
  margin: 0;
  color: #f7fff9;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.career-dna-test-copy p:not(.eyebrow) {
  margin: 16px 0 0;
  color: #bfd5ca;
  line-height: 1.7;
}

.career-dna-points {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.career-dna-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e5f3ec;
  font-weight: 800;
}

.point-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(215, 234, 223, 0.2);
  border-radius: 999px;
}

.point-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #f2b84b;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.career-dna-test-image {
  justify-self: center;
  width: min(100%, 330px);
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.career-dna-test-image img {
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
}

.how-works-card {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 30px;
  padding: 24px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(8, 24, 18, 0.7));
  border: 1px solid rgba(215, 234, 223, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
}

.how-works-head h2 {
  margin: 0;
  color: #f7fff9;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.how-works-head p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: #bfd5ca;
  line-height: 1.7;
}

.how-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.works-point {
  padding: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(16, 36, 28, 0.52));
  border: 1px solid rgba(215, 234, 223, 0.16);
  border-radius: var(--radius);
}

.works-point svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #f2b84b;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.works-point h3 {
  margin: 14px 0 0;
  color: #f7fff9;
  font-size: 1.1rem;
  line-height: 1.25;
}

.works-point p {
  margin: 10px 0 0;
  color: #bfd5ca;
  line-height: 1.65;
}

.star-one {
  left: 18%;
  animation-delay: 0.4s;
}

.star-two {
  left: 42%;
  height: 58px;
  animation-delay: 2.6s;
  animation-duration: 8.5s;
}

.star-three {
  left: 67%;
  animation-delay: 4.1s;
  animation-duration: 7.8s;
}

.star-four {
  left: 84%;
  height: 62px;
  animation-delay: 6.2s;
  animation-duration: 9s;
}

.home-screen + .site-footer {
  margin-top: 0;
}

@keyframes book-enter-right {
  0% {
    opacity: 0;
    transform: translate3d(90px, 0, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes button-enter-left {
  0% {
    opacity: 0;
    transform: translate3d(-70px, 0, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes book-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes star-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }

  12% {
    opacity: 0.8;
  }

  100% {
    opacity: 0;
    transform: translate3d(0, calc(100svh + 140px), 0);
  }
}

@media (max-width: 780px) {
  .home-screen {
    padding-block: 48px;
  }

  .book-showcase {
    grid-template-columns: 1fr;
  }

  .book-art {
    width: min(78vw, 320px);
  }

  .career-dna-test-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .career-dna-test-image {
    width: min(76vw, 310px);
  }

  .how-works-grid {
    grid-template-columns: 1fr;
  }
}
