/* Dzyn — спільні стилі для «Скоро запуск» і сторінки подяки (стиль головної v2) */
:root {
  color-scheme: dark;
  --bg: #0B0915; --surface: #17132B; --text: #FFFFFF; --muted: #A39FB5; --faint: #8A85A0; --soft: #C9C5D8;
  --gold: linear-gradient(135deg, #FFE66D 0%, #FFC23A 55%, #D4920F 100%);
  --gold-solid: #FFC23A; --gold-text: #FFD36B; --ink: #17132B; --error: #FF8F8F;
  --line: rgba(255,255,255,0.08);
  --display: Onest, Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--display); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--soft); }
a:hover { color: #FFFFFF; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2 { text-wrap: balance; font-weight: 600; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; padding: 0 max(20px, env(safe-area-inset-left, 0px)) 0 max(20px, env(safe-area-inset-right, 0px));
  background: rgba(11,9,21,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.top nav { max-width: 1200px; margin: 0 auto; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img:first-child { width: 30px; height: 30px; display: block; }
.logo img:last-child { height: 22px; width: auto; display: block; }
.ghost { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.14); color: #FFFFFF; font-size: 14px; font-weight: 500; text-decoration: none; }
.ghost:hover { background: rgba(255,255,255,0.06); }
.socials { display: flex; gap: 8px; }
@media (max-width: 400px) { .socials .ghost { padding: 0 11px; font-size: 13px; } }

/* підписи над розділами */
.eb { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-solid); }

/* глянцева кнопка */
.cta { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 8px 0 24px;
  border-radius: 16px; background: var(--gold); color: var(--ink); font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid rgba(255,255,255,.4); white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 12px rgba(255,255,255,.35), 0 18px 36px rgba(255,194,58,.16), 0 4px 16px rgba(255,194,58,.32);
  transition: transform .15s, box-shadow .15s, opacity .15s; }
.cta i { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.32); border: 1px solid rgba(255,255,255,.55);
  display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 18px; transition: transform .15s; }
.cta:hover { color: var(--ink); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 12px rgba(255,255,255,.35), 0 22px 44px rgba(255,194,58,.22), 0 6px 20px rgba(255,194,58,.4); }
.cta:hover i { transform: translateX(3px); }
.cta[disabled] { opacity: .7; cursor: progress; transform: none; }
.cta:focus-visible, .ghost:focus-visible, .chip-btn:focus-visible { outline: 2px solid #FFE66D; outline-offset: 3px; }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); font-size: 14px; color: #E4E1EE; white-space: nowrap; }
.chip svg { flex-shrink: 0; }

/* фон першого екрана: золоте сяйво, точки, монети */
.hero { position: relative; overflow: hidden; background: radial-gradient(50% 42% at 50% 22%, rgba(255,194,58,0.13) 0%, rgba(11,9,21,0) 70%); }
.dots { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,194,58,.22) 1px, transparent 1.3px); background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(55% 60% at 50% 34%, #000 0%, transparent 75%); mask-image: radial-gradient(55% 60% at 50% 34%, #000 0%, transparent 75%); }
.coin { position: absolute; perspective: 700px; -webkit-tap-highlight-color: transparent; }
.coin .bob { display: block; transform: rotate(var(--r)); animation: float var(--dur, 6s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
.coin img { display: block; width: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.coin:hover img, .coin.spin img { animation: flip .95s cubic-bezier(.2,.75,.25,1) 1; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-16px) rotate(calc(var(--r) + 7deg)); } }
@keyframes flip { 0% { transform: rotateY(0) scale(1); } 35% { transform: rotateY(200deg) scale(1.12); } 100% { transform: rotateY(360deg) scale(1); } }

.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09); font-size: 13px; color: var(--soft); }
.avatars { display: inline-flex; }
.avatars i { width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-style: normal;
  font-size: 13px; line-height: 1; border: 2px solid #17132B; }
.avatars i + i { margin-left: -7px; }
.badge .live { width: 8px; height: 8px; border-radius: 999px; background: var(--gold-solid); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.gold-text { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

.foot { padding: 40px max(20px, env(safe-area-inset-right, 0px)) 32px max(20px, env(safe-area-inset-left, 0px)); border-top: 1px solid rgba(255,255,255,0.07); }
.foot > div { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--faint); }
.foot a { color: var(--faint); }
.foot .links { display: flex; gap: 20px; }

@media (max-width: 760px) { .hide-sm { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .coin .bob, .coin img, .badge .live, .rot ul, .caret, .rain i { animation: none !important; }
}

/* прогрес «перші 100»: реальна кількість заявок з /api/count */
.spots { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); text-align: left; }
.spots-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--muted); }
.spots-top b { color: #FFFFFF; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.spots-top .left { color: var(--gold-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: var(--gold);
  box-shadow: 0 0 14px rgba(255,194,58,.45); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%); animation: shine 2.6s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } .bar i::after { animation: none; } }
