/* =====================================================================
   Saitum Mini App — первый экран (Hero). Компактная версия Hero сайта.
   ===================================================================== */

.hero{
  position:relative;isolation:isolate;text-align:center;
  padding:calc(var(--tg-safe-top) + 34px) 0 58px;
  overflow:hidden;
}
.hero::before{
  content:'';position:absolute;inset:-70px 0 -40px;z-index:-1;
  background:
    conic-gradient(from 155deg at 50% 0,transparent 0deg,rgba(122,157,220,.07) 13deg,rgba(162,186,234,.1) 25deg,rgba(122,157,220,.07) 38deg,transparent 50deg),
    radial-gradient(ellipse at 50% 80%,rgba(52,73,127,.16),transparent 60%);
  filter:blur(18px);pointer-events:none;
}
.hero .eyebrow{margin-bottom:8px}

.wordmark{
  font-size:clamp(84px,24vw,132px);
  line-height:1.06;font-weight:500;letter-spacing:-.065em;
  filter:drop-shadow(0 0 34px rgba(154,188,255,.1));
  margin:0 auto 10px;width:fit-content;
}
.hero h1{font-size:clamp(26px,7.2vw,34px);max-width:440px;margin:0 auto;letter-spacing:-.032em}
.hero-copy{max-width:400px;margin:16px auto 0;font-size:14.5px;line-height:1.7}

.hero-actions{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:26px}
.hero-actions .button{width:100%;max-width:340px}

/* Моно-строка терминала — фирменный жест Saitum в мини-формате */
.hero-terminal{
  display:inline-flex;align-items:baseline;gap:1px;
  margin-top:24px;padding:9px 16px;
  border:1px solid var(--edge);border-radius:10px;
  background:rgba(5,6,15,.5);
  font:12px var(--mono);color:var(--moon);
  box-shadow:inset 0 1px 0 rgba(216,236,248,.04);
}
.ht-prompt{color:#83a4d2;margin-right:8px}
.ht-cursor{color:var(--blue);margin-left:2px;animation:cursor-blink 1.1s steps(2,start) infinite}
@keyframes cursor-blink{0%,50%{opacity:1}50.01%,100%{opacity:0}}

/* Короткие факты — пилюли в духе plan-tag с сайта */
.hero-chips{
  display:flex;justify-content:center;flex-wrap:wrap;gap:8px;
  margin-top:20px;
}
.hero-chips li{
  border:1px solid var(--edge);border-radius:999px;
  padding:7px 13px;background:rgba(199,211,234,.04);
  font:10px var(--mono);letter-spacing:.08em;color:var(--fog);
  white-space:nowrap;
}

/* Чип «Консультант онлайн» — быстрый вход в диалог */
.hero-consult{
  display:inline-flex;align-items:center;gap:9px;
  margin-top:22px;min-height:42px;padding:9px 18px;
  border:1px solid var(--edge);border-radius:999px;
  background:rgba(199,211,234,.045);
  font-size:12.5px;font-weight:500;color:var(--moon);
  transition:background .2s,border-color .2s,color .2s;
}
.hero-consult:hover{background:rgba(186,214,247,.12);border-color:rgba(186,215,247,.3);color:#fff}
.hero-consult .live-dot{flex:none}

/* Первый экран появляется каскадом */
.js-motion .hero>*{opacity:0;transform:translateY(14px);animation:hero-in .7s ease forwards}
.js-motion .hero>*:nth-child(2){animation-delay:.06s}
.js-motion .hero>*:nth-child(3){animation-delay:.12s}
.js-motion .hero>*:nth-child(4){animation-delay:.18s}
.js-motion .hero>*:nth-child(5){animation-delay:.24s}
.js-motion .hero>*:nth-child(6){animation-delay:.3s}
.js-motion .hero>*:nth-child(7){animation-delay:.36s}
.js-motion .hero>*:nth-child(8){animation-delay:.42s}
@keyframes hero-in{to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .js-motion .hero>*{opacity:1;transform:none;animation:none}
  .ht-cursor{animation:none}
}

@media(max-width:360px){
  .hero h1{font-size:24px}
  .wordmark{font-size:78px}
}
@media(min-width:700px){
  .hero{padding-top:calc(var(--tg-safe-top) + 52px);padding-bottom:72px}
  .hero h1{max-width:480px}
  .hero-copy{max-width:440px}
}
