/* Homepage-only layout. The app artwork and store badge remain separate assets. */
.home-page {
  background:
    radial-gradient(ellipse at 84% 18%, rgba(44, 74, 165, 0.28), transparent 42rem),
    #06132d;
}

.home-page .site-header {
  background: linear-gradient(100deg, rgba(6, 23, 57, 0.97), rgba(12, 34, 74, 0.94));
  border-bottom-color: rgba(247, 213, 131, 0.2);
  box-shadow: 0 4px 28px rgba(1, 7, 25, 0.2);
}

.home-page .header-inner {
  display: flex;
  justify-content: space-between;
  width: min(calc(100% - 80px), 1240px);
  padding: 20px 0;
}

.home-page .kids-brand-logo {
  width: 218px;
  height: auto;
}

.home-page .site-nav {
  flex: 0 1 auto;
  gap: 32px;
}

.home-page .site-nav a {
  color: #e3eafb;
  font-size: 0.86rem;
  font-weight: 600;
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 28px;
  background: #09204a;
}

.home-hero-backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
  pointer-events: none;
}

.home-hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 15, 45, 0.3), rgba(3, 15, 45, 0.06) 55%, transparent 78%);
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(transparent, #06132d);
  pointer-events: none;
}

.home-hero-inner {
  width: min(calc(100% - 80px), 1240px);
  min-height: 690px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 50px 0 34px;
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding-bottom: 16px;
}

.home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 25px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 220, 139, 0.32);
  border-radius: 999px;
  background: rgba(11, 30, 66, 0.52);
  box-shadow: inset 0 1px rgba(255, 232, 176, 0.1), 0 0 25px rgba(252, 192, 82, 0.06);
  color: #ffebbd;
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  backdrop-filter: blur(8px);
}

.home-hero-eyebrow > span {
  flex: 0 0 auto;
  color: #ffdb83;
  font-size: 17px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(255, 219, 131, 0.8);
}

.home-hero h1 {
  margin: 0;
}

.home-hero-slogan {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(2, 11, 39, 0.3));
}

.home-hero-description {
  max-width: 37ch;
  margin: 26px 0 0;
  color: #e4ebfc;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
  text-shadow: 0 2px 10px #071b43, 0 0 24px rgba(6, 21, 56, 0.6);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 32px;
}

.home-store-link {
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(2, 8, 28, 0.38), 0 0 27px rgba(255, 206, 107, 0.13);
}

.home-store-link img {
  width: 168px;
  height: auto;
}

.home-store-link:focus-visible,
.home-explore-link:focus-visible {
  outline: 2px solid #ffdb83;
  outline-offset: 5px;
}

.home-explore-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border: 1px solid rgba(255, 223, 155, 0.38);
  background: rgba(13, 39, 84, 0.65);
  backdrop-filter: blur(8px);
  color: #e6edf7;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}

.home-explore-link span {
  color: #ffdb83;
  font-size: 1.1rem;
}

.home-explore-link:hover {
  color: #ffdb83;
}

.home-hero-availability {
  margin: 18px 0 0;
  color: #d3e0f5;
  font-size: 0.76rem;
  text-shadow: 0 2px 8px #081d46;
}

.home-hero-availability span {
  padding: 0 7px;
}

.home-hero-visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 580px;
  justify-self: end;
}

.home-hero-orbit {
  position: absolute;
  width: 480px;
  height: 480px;
  top: 54px;
  right: -20px;
  border: 1px solid rgba(255, 219, 137, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 150, 255, 0.13), transparent 68%);
  box-shadow: inset 0 0 30px rgba(123, 170, 255, 0.08), 0 0 28px rgba(255, 218, 140, 0.08);
  transform: rotate(-22deg) scaleY(0.86);
}

.home-hero-orbit::after {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px solid rgba(161, 206, 255, 0.16);
  border-radius: 50%;
}

.home-hero-phone {
  /* Browser crop of the Missions phone in the supplied artwork. */
  position: absolute;
  top: 24px;
  right: 16px;
  width: 248px;
  aspect-ratio: 1 / 2;
  overflow: hidden;
  border-radius: 40px;
  background: #090d26;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 230, 172, 0.55), 0 0 38px rgba(77, 159, 255, 0.32);
}

.home-hero-phone img {
  position: absolute;
  left: -191.575%;
  top: -46.337%;
  width: 562.637%;
  max-width: none;
  height: auto;
}

.home-hero-buddy {
  position: absolute;
  z-index: 1;
  left: -46px;
  bottom: 0;
  width: 328px;
  height: auto;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 20px rgba(121, 211, 255, 0.12));
}

.home-hero-spark {
  position: absolute;
  color: #ffdc85;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 243, 182, 0.9), 0 0 32px rgba(255, 206, 88, 0.8);
}

.home-hero-spark-one {
  top: 54px;
  left: 70px;
  font-size: 33px;
}

.home-hero-spark-two {
  top: 153px;
  left: 7px;
  color: #c6d8ff;
  font-size: 15px;
}

.home-hero-spark-three {
  top: 308px;
  right: -14px;
  font-size: 21px;
}

.home-hero-note {
  position: absolute;
  bottom: 0;
  right: 16px;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid rgba(255, 221, 152, 0.28);
  border-radius: 999px;
  background: rgba(6, 26, 61, 0.75);
  backdrop-filter: blur(10px);
  color: #f4e6c4;
  font-size: 0.77rem;
}

.home-hero-note span {
  margin-right: 6px;
  color: #ffdb83;
}

.home-hero-benefits {
  width: min(calc(100% - 80px), 1240px);
  margin: 0 auto;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  border: 1px solid rgba(252, 218, 146, 0.26);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(6, 25, 58, 0.8), rgba(16, 44, 84, 0.67));
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px rgba(255, 233, 182, 0.08), 0 12px 40px rgba(0, 8, 29, 0.23);
}

.home-hero-benefits p {
  position: relative;
  margin: 0;
  padding-left: 60px;
  color: #b8cceb;
  font-size: 0.8rem;
  line-height: 1.65;
}

.home-hero-benefits p > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 3px 9px rgba(255, 209, 92, 0.2));
}

.home-hero-benefits strong {
  display: block;
  color: #fff1d4;
  font-weight: 600;
}

.home-hero-fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.home-hero-fireflies i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff2b4;
  box-shadow: 0 0 9px 3px rgba(255, 201, 92, 0.7), 0 0 30px 8px rgba(255, 182, 58, 0.15);
}

.home-hero-fireflies i:nth-child(1) { left: 5%; top: 45%; }
.home-hero-fireflies i:nth-child(2) { left: 44%; top: 72%; }
.home-hero-fireflies i:nth-child(3) { left: 91%; top: 21%; }
.home-hero-fireflies i:nth-child(4) { left: 62%; top: 17%; }
.home-hero-fireflies i:nth-child(5) { left: 34%; top: 12%; }
.home-hero-fireflies i:nth-child(6) { left: 85%; top: 85%; }

@media (prefers-reduced-motion: no-preference) {
  .home-hero-fireflies i {
    animation: home-firefly-arrive 4.8s ease-in-out both;
  }

  .home-hero-fireflies i:nth-child(even) {
    animation-delay: 0.3s;
  }
}

@keyframes home-firefly-arrive {
  0% { opacity: 0; transform: translate(0, 12px); }
  35% { opacity: 1; }
  65% { opacity: 0.4; }
  100% { opacity: 0.85; transform: translate(7px, 0); }
}

.home-page #features {
  padding-top: 56px;
}

.home-page #homepage-seo-title {
  max-width: 25ch;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

@media (max-width: 1100px) and (min-width: 801px) {
  .home-hero-inner {
    gap: 0;
    min-height: 610px;
  }

  .home-hero-visual {
    height: 515px;
  }

  .home-hero-phone {
    width: 216px;
    right: 0;
    top: 24px;
  }

  .home-hero-buddy {
    width: 242px;
    left: -30px;
    bottom: 26px;
  }

  .home-hero-note {
    right: 0;
  }
}

@media (max-width: 800px) {
  .home-page .header-inner,
  .home-hero-inner,
  .home-hero-benefits {
    width: calc(100% - 40px);
  }

  .home-page .header-inner {
    padding: 16px 0;
  }

  .home-page .kids-brand-logo {
    width: 172px;
  }

  .home-page .site-nav {
    gap: 18px;
  }

  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 56px 0 28px;
    min-height: 0;
  }

  .home-hero-slogan {
    max-width: 520px;
    margin: 0 auto;
  }

  .home-hero-copy {
    padding: 0;
    text-align: center;
  }

  .home-hero-description {
    max-width: 43ch;
    margin-top: 20px;
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero-eyebrow {
    margin-bottom: 20px;
    font-size: 0.72rem;
  }

  .home-hero-actions {
    margin-top: 25px;
    gap: 16px 22px;
    justify-content: center;
  }

  .home-store-link img {
    width: 150px;
  }

  .home-hero-visual {
    width: min(100%, 460px);
    justify-self: center;
    height: 500px;
    margin-top: 4px;
  }

  .home-hero-phone {
    width: 224px;
    right: 10px;
    top: 4px;
  }

  .home-hero-buddy {
    width: 238px;
    left: -10px;
    bottom: 20px;
  }

  .home-hero-orbit {
    width: 420px;
    height: 420px;
    right: -35px;
  }

  .home-hero-note {
    bottom: 0;
    right: 10px;
  }

  .home-hero-benefits {
    gap: 18px;
    padding: 20px;
  }

  .home-hero-benefits p {
    padding-left: 0;
    font-size: 0.75rem;
  }

  .home-hero-benefits p > img {
    position: static;
    display: block;
    margin-bottom: 7px;
  }

  .home-page #features {
    padding-top: 30px;
  }
}

@media (max-width: 480px) {
  .home-hero-visual {
    height: 424px;
    margin-top: 10px;
  }

  .home-hero-phone {
    width: 188px;
    border-radius: 31px;
    right: 0;
  }

  .home-hero-buddy {
    width: 196px;
    bottom: 18px;
    left: -14px;
  }

  .home-hero-spark-one {
    left: 24px;
    top: 30px;
    font-size: 25px;
  }

  .home-hero-spark-two {
    left: 0;
    top: 112px;
  }

  .home-hero-spark-three {
    display: none;
  }

  .home-hero-note {
    font-size: 0.7rem;
    right: 0;
    bottom: -4px;
  }

  .home-hero-benefits {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-hero-benefits p {
    padding-left: 54px;
    font-size: 0.77rem;
  }

  .home-hero-benefits p > img {
    position: absolute;
    width: 40px;
    height: 40px;
  }

  .home-hero-benefits strong {
    display: block;
  }
}
