/* ============================================================
   index1.css
   Первый экран главной страницы SnapFit.

   Важно:
   Все селекторы новой главной начинаются с home1.
   Стили документов и удаления аккаунта этот файл не меняет.
   ============================================================ */

.home1 {
  position: relative;
  font-family: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, Arial, sans-serif;
  isolation: isolate;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 30%, rgba(0, 222, 255, 0.08), transparent 28%),
    radial-gradient(circle at 82% 52%, rgba(164, 255, 0, 0.08), transparent 30%),
    linear-gradient(135deg, #03101a 0%, #061522 46%, #03101a 100%);
}

.home1-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.home1-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 92%);
}

.home1-glow {
  position: absolute;
  width: 38vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  animation: home1Glow 9s ease-in-out infinite alternate;
}

.home1-glow-cyan {
  left: -14vw;
  top: 18%;
  background: #00e5ff;
}

.home1-glow-lime {
  right: -14vw;
  top: 24%;
  background: #9dff00;
  animation-delay: -4s;
}

.home1-shell {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding-top: clamp(34px, 5vh, 74px);
  padding-bottom: clamp(54px, 7vh, 90px);
}

.home1-copy {
  position: relative;
  z-index: 3;
  max-width: 650px;
}

.home1-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 9px 14px;
  border: 1px solid rgba(132, 255, 185, 0.18);
  border-radius: 999px;
  background: rgba(8, 30, 39, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  color: rgba(232, 248, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.home1-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #83ff1f;
  box-shadow: 0 0 16px rgba(131, 255, 31, 0.9);
}

.home1-title {
  margin: 0;
  max-width: 720px;
  color: #f7fbff;
  font-size: clamp(46px, 5.7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home1-title span {
  display: block;
  margin-top: 10px;
  background: linear-gradient(92deg, #09dcf4 5%, #b8ff18 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(142, 255, 34, 0.12));
}

.home1-lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(221, 235, 244, 0.72);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.6;
}

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

.home1-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.home1-btn:hover {
  transform: translateY(-2px);
}

.home1-btn-primary {
  color: #06110b;
  background: linear-gradient(110deg, #78ff68 0%, #c5ff16 100%);
  box-shadow:
    0 18px 44px rgba(112, 255, 76, 0.18),
    0 0 0 1px rgba(225, 255, 180, 0.18) inset;
}

.home1-btn-primary:hover {
  box-shadow:
    0 22px 52px rgba(112, 255, 76, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

.home1-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.home1-feature {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px 16px;
  border: 1px solid rgba(168, 219, 247, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(18, 42, 57, 0.84), rgba(7, 22, 32, 0.72));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.home1-feature::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 18px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.025);
}

.home1-feature::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  pointer-events: none;
}

.home1-feature:hover {
  transform: translateY(-3px);
}

.home1-feature-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  font-size: 0;
}

.home1-feature-training {
  background: #78ff5b;
  box-shadow:
    0 0 0 5px rgba(120, 255, 91, 0.07),
    0 0 18px rgba(120, 255, 91, 0.72);
}

.home1-feature-food {
  background: #ffb84c;
  box-shadow:
    0 0 0 5px rgba(255, 184, 76, 0.07),
    0 0 18px rgba(255, 184, 76, 0.68);
}

.home1-feature-progress {
  background: #39e8ff;
  box-shadow:
    0 0 0 5px rgba(57, 232, 255, 0.07),
    0 0 18px rgba(57, 232, 255, 0.70);
}

.home1-feature:has(.home1-feature-training) {
  border-color: rgba(120, 255, 91, 0.15);
  background:
    radial-gradient(circle at 9% 50%, rgba(120, 255, 91, 0.06), transparent 30%),
    linear-gradient(145deg, rgba(18, 42, 57, 0.86), rgba(7, 22, 32, 0.72));
}

.home1-feature:has(.home1-feature-food) {
  border-color: rgba(255, 184, 76, 0.15);
  background:
    radial-gradient(circle at 9% 50%, rgba(255, 184, 76, 0.06), transparent 30%),
    linear-gradient(145deg, rgba(18, 42, 57, 0.86), rgba(7, 22, 32, 0.72));
}

.home1-feature:has(.home1-feature-progress) {
  border-color: rgba(57, 232, 255, 0.15);
  background:
    radial-gradient(circle at 9% 50%, rgba(57, 232, 255, 0.06), transparent 30%),
    linear-gradient(145deg, rgba(18, 42, 57, 0.86), rgba(7, 22, 32, 0.72));
}

.home1-feature:has(.home1-feature-training):hover {
  border-color: rgba(120, 255, 91, 0.27);
  box-shadow:
    0 20px 40px rgba(0,0,0,.20),
    0 0 24px rgba(120,255,91,.06),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.home1-feature:has(.home1-feature-food):hover {
  border-color: rgba(255, 184, 76, 0.27);
  box-shadow:
    0 20px 40px rgba(0,0,0,.20),
    0 0 24px rgba(255,184,76,.06),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.home1-feature:has(.home1-feature-progress):hover {
  border-color: rgba(57, 232, 255, 0.27);
  box-shadow:
    0 20px 40px rgba(0,0,0,.20),
    0 0 24px rgba(57,232,255,.06),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.home1-feature strong,
.home1-feature small {
  display: block;
  min-width: 0;
}

.home1-feature strong {
  color: rgba(248, 252, 255, 0.97);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.home1-feature small {
  margin-top: 5px;
  color: rgba(190, 210, 222, 0.62);
  font-size: 12px;
  line-height: 1.3;
}

.home1-visual {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  justify-self: end;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.home1-visual::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(0, 229, 255, 0.18), transparent 44%),
    radial-gradient(circle at 68% 62%, rgba(159, 255, 0, 0.19), transparent 46%);
  filter: blur(28px);
  opacity: 0.95;
}

.home1-hero-image {
  position: relative;
  z-index: 3;
  display: block;
  width: min(100%, 700px);
  height: auto;
  max-height: calc(100svh - 92px);
  object-fit: contain;
  filter:
    drop-shadow(0 38px 54px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 44px rgba(43, 217, 255, 0.08));
  transform: translateZ(24px);
  animation: home1Float 5.8s ease-in-out infinite;
}

.home1-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(100, 234, 255, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.home1-orbit-one {
  width: 72%;
  aspect-ratio: 1;
  transform: rotate(-15deg);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.055);
}

.home1-orbit-two {
  width: 86%;
  aspect-ratio: 0.66;
  border-color: rgba(172, 255, 45, 0.12);
  transform: rotate(24deg);
}

.home1-orbit-three {
  width: 58%;
  aspect-ratio: 0.58;
  border-color: rgba(53, 213, 255, 0.09);
  transform: rotate(63deg);
}

.home1-scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
  color: rgba(206, 225, 236, 0.42);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.home1-scroll i {
  position: relative;
  width: 22px;
  height: 34px;
  border: 1px solid rgba(189, 224, 240, 0.18);
  border-radius: 999px;
}

.home1-scroll i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: #9dff20;
  box-shadow: 0 0 10px rgba(157, 255, 32, 0.65);
  transform: translateX(-50%);
  animation: home1Scroll 1.7s ease-in-out infinite;
}

.home1-next-anchor {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 1px;
  height: 1px;
}

.home1 [data-home1-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms cubic-bezier(.2,.72,.2,1),
    transform 700ms cubic-bezier(.2,.72,.2,1);
}

.home1 [data-home1-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home1 .home1-visual[data-home1-reveal] {
  transform: translateY(22px) scale(0.985);
}

.home1 .home1-visual[data-home1-reveal].is-visible {
  transform: translateY(0) scale(1);
}

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

@keyframes home1Glow {
  from { transform: translate3d(0, 0, 0) scale(0.94); }
  to { transform: translate3d(3vw, -2vh, 0) scale(1.08); }
}

@keyframes home1Scroll {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

@media (max-width: 1080px) {
  .home1-shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 20px;
  }

  .home1-title {
    font-size: clamp(44px, 6.4vw, 70px);
  }

  .home1-features {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .home1-feature {
    padding: 14px 15px 15px;
  }
}

@media (max-width: 820px) {
  .home1 {
    min-height: auto;
  }

  .home1-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 36px;
    padding-bottom: 68px;
  }

  .home1-copy {
    max-width: 720px;
    margin-inline: auto;
  }

  .home1-kicker {
    margin-bottom: 16px;
  }

  .home1-title {
    font-size: clamp(42px, 11vw, 66px);
  }

  .home1-lead {
    margin-inline: auto;
  }

  .home1-actions {
    justify-content: center;
  }

  .home1-features {
    max-width: 560px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-inline: auto;
  }

  .home1-feature {
    text-align: left;
  }

  .home1-visual {
    width: min(100%, 630px);
    justify-self: center;
    margin-top: -4px;
  }

  .home1-hero-image {
    width: min(96vw, 620px);
    max-height: none;
  }

  .home1-scroll {
    display: none;
  }
}

@media (max-width: 560px) {
  .home1-shell {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .home1-kicker {
    font-size: 11px;
  }

  .home1-title {
    font-size: clamp(38px, 12vw, 54px);
  }

  .home1-lead {
    margin-top: 18px;
    font-size: 16px;
  }

  .home1-actions {
    margin-top: 24px;
  }

  .home1-btn {
    width: 100%;
  }

  .home1-features {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 24px;
  }

  .home1-feature {
    max-width: 100%;
  }

  .home1-visual {
    margin-top: 6px;
  }

  .home1-hero-image {
    width: min(108vw, 560px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home1 *,
  .home1 *::before,
  .home1 *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
