/* =========================
   Home CSS (Landing)
   ========================= */

/* Карточка героя */
.welcome-card{
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(6px);
  border:1px solid rgba(15,23,42,.06);
  padding:28px 24px;
  border-radius:16px;
  max-width:520px; width:100%;
  text-align:center;
  box-shadow: var(--shadow-md);
}

.welcome-fox{ width:120px; height:auto; margin:6px auto 14px; }
@keyframes bob { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-4px) } }
.bob{ animation: bob 3s ease-in-out infinite; }

.welcome-card h1{
  margin:0;
  font-size:clamp(1.45rem, 1.05rem + 1.3vw, 2rem);
  line-height:1.25; letter-spacing:-.2px; font-weight:800;
}
.welcome-card p{
  margin:10px 0 14px;
  color:var(--muted);
  font-size:clamp(.95rem, .85rem + .4vw, 1rem);
  line-height:1.5;
}

/* Бейджи */
.badges{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin:0 0 14px; }
.badge{
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 10px; border-radius:999px; font-weight:700; font-size:.85rem;
  background:#eef2ff; color:#3730a3; border:1px solid rgba(55,48,163,.12);
}

/* CTA и подписи */
.cta-big{ margin-top:6px; }
.micro-note{ display:block; margin-top:8px; color:var(--muted); font-size:.85rem; }

/* Линки под карточкой */
.inline-links{ margin-top:10px; display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; }
.link-inline{
  border:0; background:transparent; color:var(--brand);
  font-weight:700; cursor:pointer; padding:0;
}
.link-inline:hover{ text-decoration:underline; }
.inline-links .dot{ color:#c2c7d6; }

/* =========================
   Модалки «фишки/токены/почему регистрация»
   ========================= */
.modal{
  position:fixed; inset:0; display:none;
  align-items:center; justify-content:center;
  padding:16px; background:rgba(15,23,42,.5); z-index:1000;
}
.modal-content{
  width:100%; max-width:560px;
  background:#fff; border-radius:16px; padding:22px 20px;
  box-shadow:0 12px 32px rgba(0,0,0,.12);
}
.modal-content h2{ margin:0 0 10px; font-size:1.25rem; }
.modal-list{ margin:10px 0 16px; padding-left:18px; color:var(--text); }
.modal-list li{ margin:6px 0; }
.modal-text{ color:var(--text); }
.modal-note{ color:var(--muted); margin:8px 0 16px; }
.modal-close{ width:100%; margin-top:6px; }

/* Блок примеров токенов */
.token-examples{ display:grid; gap:10px; grid-template-columns:1fr 1fr; margin:10px 0 12px; }
.ex{ border:1px solid rgba(15,23,42,.08); border-radius:12px; padding:10px; background:#f8fafc; }
.ex-title{ font-weight:800; margin-bottom:6px; }
.ex-row{ display:flex; align-items:center; gap:8px; margin:4px 0; }
.tag{ background:#e2e8f0; color:#0f172a; border-radius:999px; padding:2px 8px; font-size:.8rem; }
.ex-sent{ font-weight:700; }

/* ---------- Mobile polish ---------- */
@media (max-width:640px){
  .welcome-card{ padding:24px 18px; border-radius:14px; max-width: 90vw; }
  .welcome-fox{ width:108px; }
  .token-examples{ grid-template-columns:1fr; }
}
@media (max-width: 480px){
  .welcome-card{
    padding:18px 16px;
    border-radius:14px;
    max-width: 92vw;
    margin: 0 auto;
    box-shadow: 0 6px 18px rgba(2,8,23,.06);
  }
  .welcome-fox{ width:88px; margin:0 auto 10px; }
  .welcome-card h1{ font-size: clamp(1.2rem, 0.9rem + 3.5vw, 1.6rem); line-height: 1.2; }
  .welcome-card p{ font-size: .95rem; margin: 10px 0 12px; }
  .badges{ gap:6px; margin: 6px 0 12px; }
  .badge{ font-size:.8rem; padding:5px 8px; }
  .cta-big{ width:100%; }
  .micro-note{ font-size:.82rem; }
  .inline-links{ gap:6px; font-size:.95rem; flex-wrap: wrap; justify-content: center; }
}
/* Если экран низкий — прячем нижние ссылки */
@media (max-height: 740px){ .inline-links{ display:none; } }

/* ---------- Модалка выбора языка (фикс на мобилках) ---------- */
.language-modal{
  position: fixed;
  inset: 0;
  display: none;              /* включаем классом .is-open */
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15,23,42,.55);
  z-index: 10000;
}
.language-modal.is-open{ display: flex; }
.language-modal-content{
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
/* На очень низких экранах — скролл внутри модалки */
@media (max-height: 640px){
  .language-modal-content{ max-height: 84vh; overflow: auto; }
}
/* Когда модалка открыта — фон не скроллится */
body.modal-open{ overflow: hidden !important; }

/* Dark mode for landing hero */
body.dark-mode .welcome-card{
  background: rgba(2,6,23,.78);
  border-color: rgba(148,163,184,.14);
  color: #e5e7eb;
}
body.dark-mode .welcome-card p{ color:#cbd5e1; }
body.dark-mode .badge{
  background:#1e293b;
  color:#e2e8f0;
  border-color:#334155;
}
body.dark-mode .modal-content{
  background:#0f172a;
  color:#e5e7eb;
  border:1px solid #1e293b;
}
