/* Главная: «Воздух» + движение. Токены — из style.css */
body.home { overflow-x: hidden; }
.wrap.wide { max-width: 1080px; position: relative; z-index: 1; }
.home h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.02; letter-spacing: -1.5px; }
.home h1 em, .cta em { font-style: italic; font-weight: 400; color: var(--primary); }
.home h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 14px; }
section { margin: 0 0 140px; }

/* фоновые пятна цвета настроений */
.orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .22; animation: drift 26s ease-in-out infinite alternate; }
.o1 { background: var(--m-attention); top: -18vmax; left: -14vmax; }
.o2 { background: var(--m-tired); top: 30vh; right: -20vmax; animation-duration: 32s; animation-delay: -8s; }
.o3 { background: var(--m-good); bottom: -24vmax; left: 20vw; animation-duration: 38s; animation-delay: -16s; opacity: .16; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

/* появление */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; min-height: 72vh; }
.hero .lead { max-width: 30em; }
.store { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(8px); }
.store b { color: var(--text); font-weight: 600; margin-right: 6px; }

/* демо-телефоны */
.demo { display: flex; align-items: center; justify-content: center; gap: 4px; }
.phone { position: relative; width: 210px; height: 400px; border-radius: 36px; padding: 34px 20px 20px; background: color-mix(in srgb, var(--bg) 82%, white); border: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(60, 20, 60, .35); overflow: hidden; animation: float 7s ease-in-out infinite; }
.phone.him { animation-delay: -3.5s; margin-top: 60px; }
@media (prefers-color-scheme: dark) { .phone { background: #1C171F; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); } }
@keyframes float { 50% { transform: translateY(-10px); } }
.phone-label { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); margin: 0; }
.q { font: 300 24px/1.1 var(--serif); margin: 6px 0 18px; }
.pick { list-style: none; padding: 0; margin: 0; }
.pick li { display: flex; align-items: center; gap: 10px; font: 400 15px/1.2 var(--serif); padding: 9px 0; color: var(--muted); transition: color .4s, opacity .4s; }
.pick li .dot { width: 10px; height: 10px; transition: box-shadow .5s, transform .5s; }
.pick li[data-m="good"] .dot { background: var(--m-good); }
.pick li[data-m="attention"] .dot { background: var(--m-attention); }
.pick li[data-m="tired"] .dot { background: var(--m-tired); }
.pick li[data-m="hard"] .dot { background: var(--m-hard); }
.pick li.on { color: var(--text); }
.pick li.on .dot { transform: scale(1.3); box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 0%, transparent), 0 0 0 7px rgba(0,0,0,0); }
.demo[data-m="good"] .pick li.on .dot { box-shadow: 0 0 0 6px color-mix(in srgb, var(--m-good) 25%, transparent); }
.demo[data-m="attention"] .pick li.on .dot { box-shadow: 0 0 0 6px color-mix(in srgb, var(--m-attention) 25%, transparent); }
.demo[data-m="tired"] .pick li.on .dot { box-shadow: 0 0 0 6px color-mix(in srgb, var(--m-tired) 25%, transparent); }
.demo[data-m="hard"] .pick li.on .dot { box-shadow: 0 0 0 6px color-mix(in srgb, var(--m-hard) 25%, transparent); }
.pick:has(.on) li:not(.on) { opacity: .45; }
.tiny { font-size: 11px; color: var(--faint); margin: 14px 0 4px; }
.muted-2 { position: absolute; bottom: 16px; }
.big { font: 300 30px/1.05 var(--serif); margin: 0 0 14px; letter-spacing: -.4px; }
.big.swap { animation: swap .7s cubic-bezier(.2,.7,.2,1); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.line { display: block; width: 36px; height: 2px; border-radius: 2px; transition: background .6s; }
.wish { font: italic 400 18px/1.2 var(--serif); margin: 0; }

.toast { position: absolute; left: 10px; right: 10px; top: -60px; display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 16px; font-size: 11px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--border); box-shadow: 0 8px 24px -10px rgba(0,0,0,.25); }
.toast .dot { width: 8px; height: 8px; }
.toast.show { animation: toast 2.6s cubic-bezier(.2,.7,.2,1); }
@keyframes toast { 15%, 75% { top: 10px; } 100% { top: -60px; } }

.link { width: 70px; height: 20px; overflow: visible; }
.link path { stroke: var(--border); stroke-width: 2; stroke-dasharray: 4 5; fill: none; }
.link .pulse { fill: var(--primary); opacity: 0; }
.demo.send .pulse { animation: pulse .7s ease-in forwards; }
@keyframes pulse { 0% { cx: 2; opacity: 1; } 100% { cx: 78; opacity: 0; } }

/* полоса настроений */
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; font: 300 26px/1.2 var(--serif); padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip span { display: inline-flex; align-items: center; gap: 12px; }
.strip i { width: 12px; height: 12px; border-radius: 50%; animation: breathe 4s ease-in-out infinite; }
.strip span:nth-child(2) i { animation-delay: -1s; } .strip span:nth-child(3) i { animation-delay: -2s; } .strip span:nth-child(4) i { animation-delay: -3s; }
@keyframes breathe { 50% { transform: scale(1.5); opacity: .7; } }

/* шаги */
.how h2 { text-align: center; margin-bottom: 56px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps h3 { font: 300 26px/1.2 var(--serif); margin: 16px 0 8px; }
.steps p { color: var(--muted); margin: 0; }
.num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); font: 400 18px/1 var(--serif); color: var(--primary); }

/* функции */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.features h2 { margin-bottom: 36px; }
.feat { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--border); }
.feat h3 { margin: 2px 0 4px; }
.feat p { margin: 0; color: var(--muted); font-size: 16px; }
.ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); font-size: 18px; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.feat:hover .ico { transform: scale(1.12) rotate(-8deg); }

/* приватность */
.privacy-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 56px; border-radius: 32px; background: color-mix(in srgb, var(--primary) 7%, transparent); }
.privacy-band p { color: var(--muted); max-width: 34em; }
.privacy-band a { text-decoration: none; font-weight: 500; }
.lock { position: relative; height: 160px; }
.lock span { position: absolute; top: 50%; width: 110px; height: 110px; margin-top: -55px; border-radius: 50%; mix-blend-mode: multiply; animation: orbit 6s ease-in-out infinite; }
.lock span:first-child { left: calc(50% - 90px); background: color-mix(in srgb, var(--m-attention) 55%, transparent); }
.lock span:last-child { left: calc(50% - 20px); background: color-mix(in srgb, var(--m-tired) 55%, transparent); animation-direction: reverse; }
@media (prefers-color-scheme: dark) { .lock span { mix-blend-mode: screen; } }
@keyframes orbit { 50% { transform: translateX(18px); } }

/* языки */
.langs { text-align: center; }
.marquee { overflow: hidden; margin-top: 32px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 44px; width: max-content; animation: marquee 40s linear infinite; font: 300 28px/1.4 var(--serif); color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* финал */
.cta { text-align: center; }
.cta h2 { font-size: clamp(40px, 6vw, 64px); }

@media (max-width: 860px) {
  .hero, .features, .privacy-band { grid-template-columns: 1fr; }
  .hero { min-height: 0; gap: 48px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .privacy-band { padding: 36px 24px; }
  .lock { height: 120px; }
  section { margin-bottom: 96px; }
}
@media (max-width: 480px) {
  .phone { width: 160px; height: 330px; padding: 30px 14px 14px; border-radius: 28px; }
  .phone.him { margin-top: 40px; }
  .q { font-size: 19px; } .pick li { font-size: 12.5px; gap: 8px; } .big { font-size: 23px; } .wish { font-size: 15px; }
  .link { width: 24px; }
  .strip { font-size: 21px; gap: 10px 24px; }
  nav a { margin-left: 10px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
