/* ХІРО ХАБУ oCBot (apps/ocbot/public/hero.js). Кінематографічна темна сцена:
   малахітова ніч, золото, кремові плитки прошивки світяться на ній. Секція
   рівно на екран під шапкою й рядком крихт (--ob-top рахує land.js), сцена
   грає за часом. Токени — на .obh, не в :root. */
.obh { --night: #06110D; --night-2: #0C2019; --gold: #D4AF37; --gold-l: #E5C387; --paper: #F2EFE7; --ink-l: #F4EEDD;
  position: relative; background: var(--night); color: var(--ink-l); }
.obh-stage { position: relative; height: calc(100vh - var(--ob-top, 96px)); height: calc(100svh - var(--ob-top, 96px)); min-height: 440px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 38%, #123427 0%, var(--night-2) 45%, var(--night) 100%); }

/* ── 3D-сцена ───────────────────────────────────────────────────────────── */
.obh-scene { position: absolute; inset: 0; perspective: 1800px; perspective-origin: 50% 38%; }
.obh-world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.obh-board, .obh-t { position: absolute; left: 0; top: 0; }
.obh-board { border-radius: 28px; background: var(--paper);
  background-image: linear-gradient(#1B4D3E 0 0), repeating-linear-gradient(0deg, rgba(27, 77, 62, .05) 0 1px, transparent 1px 40px);
  background-size: 100% 22px, auto; background-repeat: no-repeat, repeat;
  box-shadow: 0 60px 120px rgba(0, 0, 0, .55), 0 0 0 1px rgba(229, 195, 135, .25); }
.obh-t { overflow: hidden; border-radius: 12px; background: var(--paper); will-change: transform;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .5) inset; }
.obh-t img { display: block; width: 100%; height: auto; }

/* ── Завіса й текст ────────────────────────────────────────────────────── */
.obh-veil { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(80% 70% at 50% 45%, rgba(6, 17, 13, .78), var(--night) 80%); }
.obh-copy { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px;
  padding: 0 16px; text-align: center; pointer-events: none; }
/* Центрована сітка стискає діти до вмісту — без межі довгі рядки вилазять за екран. */
.obh-copy > * { max-width: 100%; }
.obh-free { width: 100%; }
/* Логотип і підпис — окремий кадр посередині сцени, поза потоком: інакше, вже
   згаслі, вони штовхали б гасло й кнопки вниз і ті не влазили б в один екран. */
.obh-on .obh-logo { position: absolute; left: 50%; top: calc(50% - clamp(120px, 18vw, 220px) * .62); margin-left: calc(clamp(120px, 18vw, 220px) / -2); }
.obh-on .obh-tag { position: absolute; left: 16px; right: 16px; top: calc(50% + clamp(120px, 18vw, 220px) * .45); }
.obh-logo { width: clamp(120px, 18vw, 220px); height: auto; opacity: 0; visibility: hidden;
  filter: drop-shadow(0 0 28px rgba(212, 175, 55, .55)) drop-shadow(0 0 80px rgba(212, 175, 55, .25)); }
.obh-tag { margin: 6px 0 0; font: 500 clamp(.95rem, 1.6vw, 1.25rem)/1.4 'Onest', var(--font); letter-spacing: .02em;
  color: var(--gold-l); opacity: 0; visibility: hidden; }
.obh-slogan { --sweep: -20%; margin: 0; opacity: 0; visibility: hidden;
  font: 800 min(7.6vw, 6.6rem)/1.02 'Unbounded', var(--font-display); letter-spacing: -.02em; text-wrap: balance;
  background: linear-gradient(100deg, var(--ink-l) 0%, var(--ink-l) calc(var(--sweep) - 14%), var(--gold) var(--sweep), var(--ink-l) calc(var(--sweep) + 14%), var(--ink-l) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.obh-slogan em { font-style: normal; display: block; color: transparent; }
.obh-free { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; max-width: 980px; }
.obh-free li { display: inline-flex; border-radius: 999px;
  border: 1px solid rgba(229, 195, 135, .35); background: rgba(255, 255, 255, .04); opacity: 0; visibility: hidden;
  font: 500 clamp(.85rem, 1.3vw, 1.05rem) 'Onest', var(--font); color: var(--ink-l); transition: background .2s, border-color .2s; }
.obh-free li a { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: inherit; color: inherit; text-decoration: none; }
.obh-free li:hover { background: rgba(255, 255, 255, .1); border-color: rgba(229, 195, 135, .7); }
.obh-free li a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.obh-free li b { font: 700 1.25em 'Unbounded', var(--font-display); color: var(--gold); }
/* Шар тексту кліків не ловить (під ним сцена) — окрім чисел і кнопок. */
.obh-free li, .obh-cta { pointer-events: auto; }
.obh-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 18px 0 0; opacity: 0; visibility: hidden; }
.obh-ghost { background: transparent; color: var(--ink-l); border: 1px solid rgba(229, 195, 135, .55); }
.obh-ghost:hover { border-color: var(--gold); color: #fff; }
/* У Unbounded немає ∞ — запасний шрифт малює його дрібно; свій кегль. */
.obh-free li b.inf { font: 400 1.9em/.6 system-ui, sans-serif; }

.obh-skip { position: absolute; right: 20px; bottom: 20px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(244, 238, 221, .3); background: rgba(6, 17, 13, .5); color: var(--ink-l);
  font: 600 .82rem 'Onest', var(--font); cursor: pointer; }
.obh-skip:hover { border-color: var(--gold-l); }
.obh-skip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.obh-hint { position: absolute; left: 50%; bottom: 26px; margin: 0; transform: translateX(-50%); opacity: 0;
  font: 600 .74rem 'Onest', var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-l); }
.obh-hint::after { content: ''; display: block; width: 1px; height: 34px; margin: 10px auto 0;
  background: linear-gradient(var(--gold-l), transparent); animation: obh-drip 1.8s ease-in-out infinite; }
@keyframes obh-drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Без скрипта сцени немає — лишається текст на нічному тлі. */
.obh:not(.obh-on) { height: auto; }
.obh:not(.obh-on) .obh-stage { position: relative; height: auto; padding: 18vh 0 14vh; }
.obh:not(.obh-on) .obh-scene, .obh:not(.obh-on) .obh-skip, .obh:not(.obh-on) .obh-hint { display: none; }
.obh:not(.obh-on) .obh-copy { position: relative; }
.obh:not(.obh-on) :is(.obh-logo, .obh-tag, .obh-slogan, .obh-free li, .obh-cta) { opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  .obh-hint::after { animation: none; }
}
@media (max-width: 699px) {
  .obh-free { margin-top: 18px; gap: 8px; }
  .obh-free li { font-size: .82rem; }
  .obh-free li a { padding: 7px 12px; gap: 6px; }
  .obh-cta { margin-top: 14px; gap: 8px; }
  .obh-cta .ob-btn { padding: 10px 16px; font-size: .88rem; }
}
/* Низький екран (ноутбук 1366×768, телефон 360×640): менше повітря між рядками */
@media (max-height: 700px) {
  .obh-slogan { font-size: min(7.6vw, 4.6rem); }
  .obh-free { margin-top: 16px; }
}
