/* Home — modern 3D depth, clear tree, responsive */

.home-hero__brand {
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.home-hero__title {
  max-width: 16ch;
}

.home-hero__stage {
  perspective: 1400px;
}

.home-hero__phone-wrap {
  position: relative;
  z-index: 2;
  width: min(300px, 72%);
  margin-inline: auto;
  transform-style: preserve-3d;
}

.home-hero__phone {
  width: 100%;
  transform: rotateY(-12deg) rotateX(6deg);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: urFloatPhone 5.2s ease-in-out 1s infinite;
}

.home-hero__phone-wrap:hover .home-hero__phone {
  transform: rotateY(-4deg) rotateX(2deg) translateY(-6px);
}

.home-hero__phone-shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -8%;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(16px);
  transform: translateZ(-40px);
  pointer-events: none;
}

.home-hero__float-chip {
  position: absolute;
  z-index: 3;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #102222;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  animation: homeChipFloat 4.8s ease-in-out infinite;
}

.home-hero__float-chip--a {
  left: -12%;
  top: 22%;
}

.home-hero__float-chip--b {
  right: -10%;
  bottom: 18%;
  animation-delay: -1.8s;
}

@keyframes homeChipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sticky page tree */
.home-tree .jump__label {
  letter-spacing: 0.1em;
}

.home-tree .jump__rail a {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(64, 133, 133, 0.06);
  font-size: 0.8rem;
}

.home-tree .jump__rail a.is-active,
.home-tree .jump__rail a:hover {
  background: rgba(64, 133, 133, 0.16);
  transform: translateY(-1px);
}

/* 3D tiles */
.home-tile {
  position: relative;
  padding: 1.35rem 1.25rem;
  border-radius: 22px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 247, 0.92));
  border: 1px solid rgba(64, 133, 133, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 40px rgba(20, 40, 40, 0.08);
  transform: translateZ(0);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.home-tile:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 28px 50px rgba(20, 40, 40, 0.14);
  border-color: rgba(64, 133, 133, 0.28);
}

.home-tile h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.home-tile p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(20, 32, 31, 0.75);
}

.home-tile__label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ur-teal);
}

.home-tile__icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ur-deep);
  background: rgba(64, 133, 133, 0.12);
}

.home-tile--accent {
  background:
    linear-gradient(145deg, rgba(112, 224, 224, 0.16), #fff 48%);
}

.home-tile--glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
}

/* How flow — 3D steps */
.home-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.home-flow__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(64, 133, 133, 0.1);
  box-shadow: 0 16px 34px rgba(20, 40, 40, 0.06);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.home-flow__item:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 24px 44px rgba(20, 40, 40, 0.1);
}

.home-flow__num {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(145deg, #4a9a9a, #1f4a4a);
  box-shadow:
    0 10px 20px rgba(42, 92, 92, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.home-flow__item h3 {
  margin: 0 0 0.35rem;
}

.home-flow__item p {
  margin: 0;
  color: rgba(20, 32, 31, 0.75);
}

.home-why,
.home-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.home-band__cta {
  margin-bottom: 1.5rem;
}

.home-band__more {
  margin-top: 1.25rem;
}

.home-vs {
  margin-top: 2rem;
  padding: 1.35rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(64, 133, 133, 0.12);
  box-shadow: 0 20px 44px rgba(20, 40, 40, 0.07);
  backdrop-filter: blur(10px);
}

.home-vs__title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
}

.home-vs__table {
  margin: 0;
}

.home-safety {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.25rem;
}

.home-app-card {
  padding: 1.75rem 1.5rem;
  border-radius: 28px;
  background: linear-gradient(165deg, #fff, #f3f7f7);
  border: 1px solid rgba(64, 133, 133, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 48px rgba(20, 40, 40, 0.1);
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  transform: perspective(900px) rotateY(-2deg);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.home-app-card--pro {
  background: linear-gradient(165deg, #3d8585, #1f4a4a);
  color: #fff;
  border: 0;
  transform: perspective(900px) rotateY(2deg);
}

.home-app-card--pro p {
  color: rgba(255, 255, 255, 0.88);
}

.home-app-card--pro h3 {
  color: #fff;
}

.home-app-card:hover {
  transform: perspective(900px) rotateY(0deg) translateY(-8px);
  box-shadow: 0 32px 60px rgba(20, 40, 40, 0.16);
}

.home-app-card img {
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.home-cities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.home-city {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.15rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(64, 133, 133, 0.14);
  box-shadow: 0 14px 30px rgba(20, 40, 40, 0.06);
  text-decoration: none !important;
  color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.home-city strong {
  font-size: 1.05rem;
}

.home-city span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ur-teal);
}

.home-city:hover {
  transform: translateY(-5px);
  border-color: rgba(64, 133, 133, 0.3);
  box-shadow: 0 22px 40px rgba(20, 40, 40, 0.1);
}

.home-city.is-live {
  background: linear-gradient(135deg, rgba(112, 224, 224, 0.22), #fff 55%);
  border-color: rgba(64, 133, 133, 0.28);
}

.home-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.home-guide {
  display: grid;
  gap: 0.55rem;
  padding: 1.35rem 1.25rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(64, 133, 133, 0.12);
  box-shadow: 0 16px 36px rgba(20, 40, 40, 0.07);
  text-decoration: none !important;
  color: inherit;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.home-guide:hover {
  transform: translateY(-6px) rotateX(1deg);
  box-shadow: 0 26px 48px rgba(20, 40, 40, 0.12);
}

.home-guide__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ur-teal);
}

.home-guide strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.home-guide > span:last-child {
  font-weight: 700;
  color: var(--ur-deep);
}

.home-about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
}

.home-about__panel {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
  border-radius: 28px;
  background: linear-gradient(160deg, #2a5c5c, #1a3838);
  color: #fff;
  box-shadow: 0 28px 50px rgba(20, 40, 40, 0.25);
  transform: perspective(800px) rotateY(-4deg);
}

.home-about__stat {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.home-about__stat strong {
  display: block;
  font-family: var(--ur-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #b8f4f4;
}

.home-cta {
  position: relative;
  overflow: hidden;
}

.home-cta::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 224, 224, 0.28), transparent 70%);
  pointer-events: none;
}

.home-cta .ur-container {
  position: relative;
  z-index: 1;
}

@media (max-width: 991.98px) {
  .home-hero__float-chip--a { left: 0; }
  .home-hero__float-chip--b { right: 0; }
  .home-hero__phone {
    transform: none;
    animation: urFloatPhone 5.2s ease-in-out 1s infinite;
  }
  .home-hero__phone-wrap:hover .home-hero__phone {
    transform: translateY(-4px);
  }
  .home-why,
  .home-features,
  .home-apps,
  .home-about {
    grid-template-columns: 1fr;
  }
  .home-safety,
  .home-guides,
  .home-cities {
    grid-template-columns: 1fr 1fr;
  }
  .home-app-card,
  .home-app-card--pro,
  .home-about__panel {
    transform: none;
  }
  .home-tree .jump__rail {
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .home-tree .jump__rail a {
    flex: 0 0 auto;
  }
}

@media (max-width: 575.98px) {
  .home-safety,
  .home-guides,
  .home-cities {
    grid-template-columns: 1fr;
  }
  .home-hero__float-chip {
    font-size: 0.68rem;
    padding: 0.35rem 0.6rem;
  }
}

.band.is-inview .home-flow__item {
  animation: urRise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.band.is-inview .home-flow__item:nth-child(1) { animation-delay: 80ms; }
.band.is-inview .home-flow__item:nth-child(2) { animation-delay: 160ms; }
.band.is-inview .home-flow__item:nth-child(3) { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .home-hero__phone,
  .home-hero__float-chip,
  .band.is-inview .home-flow__item {
    animation: none !important;
  }
  .home-tile:hover,
  .home-flow__item:hover,
  .home-city:hover,
  .home-guide:hover,
  .home-app-card:hover {
    transform: none;
  }
}

@media (hover: none) {
  .home-tile:hover,
  .home-flow__item:hover,
  .home-city:hover,
  .home-guide:hover,
  .home-app-card:hover {
    transform: none;
  }
}
