/* Wayassist — split landing, mint + three iPhones (706:1466 chassis, 393:852 screen) */

:root {
  --wa-mint-a: #d8f0e4;
  --wa-mint-b: #f2f7f4;
  --wa-cream: #faf8f5;
  --wa-green: #22c55e;
  --wa-green-dark: #15803d;
  --wa-text: #0f172a;
  --wa-muted: #475569;
  --wa-card: #ffffff;
  --wa-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Высота корпуса как у iPhone 15 Pro (146.6 mm) + ограничение по вьюпорту */
  --wa-phone-h: min(146.6mm, min(70dvh, 640px));
  --wa-phone-h-back: calc(var(--wa-phone-h) * 0.88);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.wayassist-landing,
body.wayassist-landing {
  margin: 0;
  min-height: 100%;
  color: var(--wa-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.wayassist-landing {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--wa-mint-b);
}

.wayassist-landing .landing__bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(152deg, var(--wa-mint-a) 0%, var(--wa-mint-b) 42%, var(--wa-cream) 100%);
  pointer-events: none;
}

.wayassist-landing .landing__bg::before,
.wayassist-landing .landing__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: wa-blob 22s var(--wa-ease-out) infinite;
}

.wayassist-landing .landing__bg::before {
  width: min(70vw, 480px);
  height: min(70vw, 480px);
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35), transparent 68%);
}

.wayassist-landing .landing__bg::after {
  width: min(60vw, 420px);
  height: min(60vw, 420px);
  bottom: -20%;
  left: -8%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 65%);
  animation-delay: -9s;
  animation-direction: reverse;
}

@keyframes wa-blob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(3%, 4%) scale(1.06);
  }
}

.wayassist-landing .landing--split {
  position: relative;
  min-height: 100dvh;
  padding: clamp(1.25rem, 3.5vw, 2.75rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 5vw, 3rem);
}

.wayassist-landing .landing__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

/* Copy column */
.wayassist-landing .wa-copy {
  animation: wa-rise 0.85s var(--wa-ease-out) both;
}

.wayassist-landing .wa-copy__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wa-green-dark);
}

.wayassist-landing .wa-copy__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.65rem, 2.8vw + 0.6rem, 2.35rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--wa-text);
}

.wayassist-landing .wa-features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wayassist-landing .wa-features__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--wa-muted);
}

.wayassist-landing .wa-features__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.05rem;
  border-radius: 10px;
  color: var(--wa-green-dark);
  background: rgba(34, 197, 94, 0.12);
}

.wayassist-landing .wa-new {
  margin-bottom: 1.75rem;
}

.wayassist-landing .wa-new__badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-green-dark));
  border-radius: 6px;
}

.wayassist-landing .wa-new__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 26rem;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: var(--wa-text);
  background: var(--wa-card);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s var(--wa-ease-out), box-shadow 0.35s ease;
}

.wayassist-landing .wa-new__card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.05),
    0 18px 48px rgba(15, 23, 42, 0.12);
}

.wayassist-landing .wa-new__text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.wayassist-landing .wa-new__arrow {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--wa-green-dark);
}

.wayassist-landing .wa-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.wayassist-landing .wa-stores__link {
  display: inline-flex;
  border-radius: 10px;
  transition: transform 0.3s var(--wa-ease-out);
  filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.12));
}

.wayassist-landing .wa-stores__link:hover {
  transform: translateY(-2px);
}

.wayassist-landing .wa-stores__link:focus-visible {
  outline: 2px solid var(--wa-green);
  outline-offset: 3px;
}

.wayassist-landing .wa-stores__link img {
  display: block;
  height: 52px;
  width: auto;
}

@keyframes wa-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Phones cluster */
.wayassist-landing .wa-phones {
  animation: wa-rise 1s var(--wa-ease-out) 0.12s both;
}

.wayassist-landing .wa-phones__stack {
  position: relative;
  width: min(560px, 100%);
  height: min(78dvh, 700px);
  margin-inline: auto;
}

.wayassist-landing .wa-device {
  position: relative;
  width: fit-content;
}

.wayassist-landing .wa-device--center {
  z-index: 3;
  height: var(--wa-phone-h);
  margin-inline: auto;
  top: 5%;
}

.wayassist-landing .wa-device--left {
  position: absolute;
  left: 0;
  bottom: 7%;
  z-index: 1;
  height: var(--wa-phone-h-back);
  transform: rotate(-9deg);
  transform-origin: 70% 90%;
}

.wayassist-landing .wa-device--right {
  position: absolute;
  right: 0;
  bottom: 9%;
  z-index: 2;
  height: var(--wa-phone-h-back);
  transform: rotate(10deg);
  transform-origin: 30% 90%;
}

.wayassist-landing .wa-device__glow {
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: 50%;
  translate: -50% 0;
  width: 78%;
  aspect-ratio: 706 / 1466;
  border-radius: 12% / 6%;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(34, 197, 94, 0.22),
    transparent 68%
  );
  filter: blur(22px);
  opacity: 0.9;
  z-index: 0;
  animation: wa-pulse-glow 5s ease-in-out infinite;
}

.wayassist-landing .wa-device__glow--muted {
  opacity: 0.45;
  background: radial-gradient(
    ellipse at 50% 42%,
    rgba(15, 23, 42, 0.12),
    transparent 70%
  );
  animation: wa-pulse-glow-muted 5.5s ease-in-out infinite 0.4s;
}

@keyframes wa-pulse-glow {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes wa-pulse-glow-muted {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.55;
  }
}

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

.wayassist-landing .wa-device .iphone {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  animation: wa-float 6s ease-in-out infinite;
}

.wayassist-landing .wa-device--left .iphone {
  animation-duration: 6.8s;
  animation-delay: 0.25s;
}

.wayassist-landing .wa-device--right .iphone {
  animation-duration: 7.2s;
  animation-delay: 0.5s;
}

/**
 * iPhone 15 Pro: корпус 70.6 × 146.6 mm (706 : 1466), экран 393 × 852 pt.
 */
.wayassist-landing .iphone {
  --iphone-body-ar-w: 706;
  --iphone-body-ar-h: 1466;
  aspect-ratio: var(--iphone-body-ar-w) / var(--iphone-body-ar-h);
  container-type: size;
  container-name: iphone-chassis;
  border-radius: clamp(18px, 11.9cqw, 36px);
  background:
    linear-gradient(
      168deg,
      #5c5c5f 0%,
      #3a3a3c 18%,
      #2a2a2c 42%,
      #1a1a1c 58%,
      #0e0e10 82%,
      #252527 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    inset 1px 0 0 rgba(255, 255, 255, 0.08),
    inset -1px 0 0 rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 0 0 0.5px rgba(255, 255, 255, 0.06),
    0 32px 100px rgba(15, 23, 42, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.28);
}

.wayassist-landing .iphone__buttons {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 3px;
  pointer-events: none;
}

.wayassist-landing .iphone__buttons--left {
  left: -2px;
}

.wayassist-landing .iphone__buttons--right {
  right: -2px;
}

.wayassist-landing .iphone__btn {
  position: absolute;
  left: 0;
  width: 3px;
  border-radius: 1px 0 0 1px;
  background: linear-gradient(90deg, #1f1f21, #3d3d40 45%, #2b2b2d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    1px 0 2px rgba(0, 0, 0, 0.5);
}

.wayassist-landing .iphone__buttons--right .iphone__btn {
  left: auto;
  right: 0;
  border-radius: 0 1px 1px 0;
  background: linear-gradient(270deg, #1f1f21, #3d3d40 45%, #2b2b2d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    -1px 0 2px rgba(0, 0, 0, 0.5);
}

.wayassist-landing .iphone__btn--action {
  top: 16.5%;
  height: 5.2%;
  min-height: 18px;
}

.wayassist-landing .iphone__btn--vol-up {
  top: 23.8%;
  height: 7.8%;
  min-height: 26px;
}

.wayassist-landing .iphone__btn--vol-down {
  top: 32.8%;
  height: 7.8%;
  min-height: 26px;
}

.wayassist-landing .iphone__btn--power {
  top: 24.5%;
  height: 12.5%;
  min-height: 42px;
}

.wayassist-landing .iphone__inner {
  position: absolute;
  top: 1.5%;
  right: 3.565%;
  bottom: 1.5%;
  left: 3.565%;
  container-type: size;
  container-name: iphone-screen;
  border-radius: clamp(15px, 13.99cqmin, 32px);
  overflow: hidden;
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 0 0 2px rgba(0, 0, 0, 0.85),
    inset 0 0 3px rgba(255, 255, 255, 0.04);
}

.wayassist-landing .iphone__island {
  position: absolute;
  top: 1.65%;
  left: 50%;
  transform: translateX(-50%);
  width: 32.06%;
  height: 4.34%;
  min-height: 10px;
  background: #010101;
  border-radius: 999px;
  z-index: 4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.65),
    0 0 0 0.5px rgba(0, 0, 0, 0.9);
}

.wayassist-landing .iphone__screen {
  position: absolute;
  inset: 0;
}

.wayassist-landing .iphone__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  animation: wa-screen-in 1s var(--wa-ease-out) 0.2s both;
}

@keyframes wa-screen-in {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.wayassist-landing .iphone__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.32) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.05) 100%
  );
  mix-blend-mode: overlay;
  z-index: 3;
  animation: wa-shine 7s ease-in-out infinite;
}

@keyframes wa-shine {
  0%,
  100% {
    opacity: 0.38;
  }
  50% {
    opacity: 0.62;
  }
}

@media (max-width: 960px) {
  .wayassist-landing .landing__inner {
    grid-template-columns: 1fr;
  }

  .wayassist-landing .wa-phones__stack {
    height: min(62dvh, 560px);
    max-width: 420px;
  }

  .wayassist-landing .wa-device--left,
  .wayassist-landing .wa-device--right {
    display: none;
  }

  .wayassist-landing .wa-device--center {
    top: 0;
  }

  :root {
    --wa-phone-h: min(146.6mm, min(58dvh, 520px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .wayassist-landing .landing__bg::before,
  .wayassist-landing .landing__bg::after,
  .wayassist-landing .wa-device .iphone,
  .wayassist-landing .wa-device__glow,
  .wayassist-landing .iphone__shine,
  .wayassist-landing .iphone__screen img {
    animation: none !important;
  }

  .wayassist-landing .wa-copy,
  .wayassist-landing .wa-phones {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
