/* AutiHome marketing home — modern landing */

.page-home {
  --home-sky-top: #5bb4ea;
  --home-sky-mid: #2e7fc4;
  --home-sky-deep: #16365b;
  --home-canvas: #f0f7fc;
  --home-ink: #16365b;
  --home-muted: #4a6a85;
  background: var(--home-canvas);
}

.page-home .site-header {
  background: rgba(240, 247, 252, 0.82);
}

/* —— Hero: one full-bleed composition —— */
.page-home .hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  padding: 0;
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      155deg,
      var(--home-sky-top) 0%,
      var(--home-sky-mid) 46%,
      var(--home-sky-deep) 100%
    );
  background-size: 180% 180%;
  animation: homeSkyDrift 18s ease-in-out infinite alternate;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(ellipse 70% 50% at 12% 18%, rgba(255, 255, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(141, 200, 236, 0.5), transparent 50%),
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(22, 54, 91, 0.35), transparent 55%),
    repeating-linear-gradient(
      -22deg,
      transparent 0 42px,
      rgba(255, 255, 255, 0.035) 42px 43px
    );
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  animation: homeOrbFloat 9s ease-in-out infinite;
}

.hero__orb--1 {
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  top: -8%;
  right: -6%;
  background: radial-gradient(circle, rgba(248, 184, 51, 0.45), transparent 68%);
}

.hero__orb--2 {
  width: min(36vw, 260px);
  height: min(36vw, 260px);
  bottom: 8%;
  left: -8%;
  background: radial-gradient(circle, rgba(53, 185, 177, 0.4), transparent 70%);
  animation-delay: -3s;
}

.hero__orb--3 {
  width: min(28vw, 200px);
  height: min(28vw, 200px);
  bottom: 18%;
  right: 18%;
  background: radial-gradient(circle, rgba(243, 104, 64, 0.28), transparent 70%);
  animation-delay: -5.5s;
}

.hero__stage {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(2rem, 6vh, 3.25rem) 1.25rem clamp(2.25rem, 6vh, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.35rem, 4vh, 2.25rem);
}

.hero__copy {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto;
  width: 100%;
}

.page-home .hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 5.25rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0 0 0.35em;
  color: #fff;
  opacity: 0;
  animation: homeFadeUp 0.85s ease 0.12s forwards;
}

.page-home .hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 22ch;
  margin: 0 auto 0.65em;
  color: #fff;
  opacity: 0;
  animation: homeFadeUp 0.85s ease 0.28s forwards;
}

.page-home .hero__lead {
  font-size: clamp(1rem, 2.1vw, 1.12rem);
  line-height: 1.55;
  max-width: 34ch;
  margin: 0 auto 1.35rem;
  color: rgba(255, 255, 255, 0.94);
  opacity: 0;
  animation: homeFadeUp 0.85s ease 0.42s forwards;
}

.page-home .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  opacity: 0;
  animation: homeFadeUp 0.85s ease 0.56s forwards;
}

.page-home .hero .btn--primary {
  background: #fff;
  color: var(--home-sky-mid);
}

.page-home .hero .btn--primary:hover {
  background: #e8f3fb;
  color: var(--home-sky-deep);
  text-decoration: none;
}

.page-home .hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.page-home .hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.hero__visual {
  display: grid;
  place-items: center;
}

.page-home .hero__logo {
  width: min(62vw, 300px);
  height: auto;
  border-radius: 22%;
  animation: homeLogoFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 22px 40px rgba(8, 28, 64, 0.28));
}

@media (min-width: 900px) {
  .hero__stage {
    padding-inline: 2rem;
  }

  .page-home .hero__logo {
    width: min(34vw, 380px);
  }
}

@keyframes homeFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeSkyDrift {
  0% {
    background-position: 0% 35%;
  }
  100% {
    background-position: 100% 65%;
  }
}

@keyframes homeLogoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes homeOrbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12px, -16px) scale(1.06);
  }
}

/* —— About —— */
.home-about {
  position: relative;
  padding: clamp(4rem, 10vw, 6.5rem) 1.25rem;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(82, 165, 226, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 70% at 100% 40%, rgba(53, 185, 177, 0.12), transparent 50%),
    var(--home-canvas);
}

.home-about__inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.home-about h2 {
  font-size: clamp(1.85rem, 4.2vw, 2.6rem);
  color: var(--home-ink);
  margin-bottom: 0.75em;
}

.home-about__text {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--home-muted);
  line-height: 1.65;
}

/* —— Features as open bands (not cards) —— */
.home-features {
  padding: 0 0 clamp(3rem, 8vw, 5rem);
}

.home-features__head {
  max-width: 40rem;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  padding: 0 1.25rem;
  text-align: center;
}

.home-features__head h2 {
  font-size: clamp(1.85rem, 4.2vw, 2.55rem);
  color: var(--home-ink);
  margin: 0;
}

.home-band {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) 1.25rem;
}

.home-band + .home-band {
  border-top: 1px solid rgba(46, 127, 196, 0.12);
}

.home-band__art {
  width: 132px;
  height: 132px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 28px;
}

.home-band--activities .home-band__art {
  background: linear-gradient(145deg, #fff4c8, #ffe08a);
}

.home-band--resources .home-band__art {
  background: linear-gradient(145deg, #ffd8cf, #ffb09f);
}

.home-band--community .home-band__art {
  background: linear-gradient(145deg, #c8f3ec, #9ee4d8);
}

.home-band--tracking .home-band__art {
  background: linear-gradient(145deg, #d7eefc, #a8d8f5);
}

.home-band__copy {
  text-align: center;
}

.home-band__copy h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: var(--home-ink);
  margin: 0 0 0.4em;
}

.home-band__copy p {
  margin: 0;
  color: var(--home-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 36rem;
}

@media (min-width: 760px) {
  .home-band {
    grid-template-columns: 160px 1fr;
    gap: 2.75rem;
    text-align: start;
  }

  .home-band__art {
    margin: 0;
  }

  .home-band__copy {
    text-align: start;
  }

  .home-band--flip {
    grid-template-columns: 1fr 160px;
  }

  .home-band--flip .home-band__art {
    order: 2;
  }

  .home-band--flip .home-band__copy {
    order: 1;
    text-align: end;
  }

  .home-band--flip .home-band__copy p {
    margin-inline-start: auto;
  }
}

/* —— Download —— */
.home-download {
  margin: 0 1.25rem clamp(2rem, 5vw, 3rem);
  padding: clamp(2.75rem, 6vw, 4rem) 1.5rem;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 70% at 50% -10%, rgba(82, 165, 226, 0.45), transparent 55%),
    linear-gradient(165deg, #1a4a78 0%, #16365b 55%, #0f2a4a 100%);
  color: #fff;
  text-align: center;
}

.home-download__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.home-download h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.5em;
}

.home-download p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  margin: 0 0 0.25rem;
}

.home-download .store-row {
  margin-top: 1.5rem;
}

.home-download .store-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 12px;
}

.home-download__mail {
  margin-top: 0.5rem;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.home-download__mail:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* —— Note —— */
.home-note {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

.home-note p {
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(46, 127, 196, 0.16);
  color: var(--home-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* —— Motion reduce —— */
@media (prefers-reduced-motion: reduce) {
  .hero__sky,
  .hero__orb,
  .page-home .hero__logo,
  .page-home .hero__brand,
  .page-home .hero__headline,
  .page-home .hero__lead,
  .page-home .hero__cta {
    animation: none !important;
    opacity: 1;
  }
}

html[dir="rtl"] .home-band__copy {
  text-align: right;
}

@media (min-width: 760px) {
  html[dir="rtl"] .home-band--flip .home-band__copy {
    text-align: start;
  }
}
