/* ============================================================
   HERO — charging bulls, scroll-driven stampede
   Three directions toggled via [data-hero] on .hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 92px;
  overflow: hidden;
}

/* ---- Headline block ---- */
.hero-copy {
  position: relative;
  z-index: 6;
  max-width: 960px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 0.5px solid rgba(74, 222, 128, 0.28);
  font-size: 13px; font-weight: 600; color: var(--accent);
  letter-spacing: -0.01em;
  margin-bottom: 30px;
  white-space: nowrap;
}
.hero-badge .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.hero-badge b { color: var(--ink); font-weight: 700; }

.hero h1 {
  font-size: clamp(46px, 7.6vw, 116px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-wrap: balance;
}
.hero h1 .em {
  background: linear-gradient(105deg, var(--accent) 0%, #a7f3c9 55%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin-top: 30px;
  font-size: clamp(17px, 1.7vw, 22px);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 540px;
  text-wrap: pretty;
}
.hero-cta {
  margin-top: 38px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.hero-note {
  margin-top: 20px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-3);
  letter-spacing: -0.01em;
}
.hero-note .tick { color: var(--accent); }

/* ====================================================
   STAMPEDE FIELD — the charging bulls
   ==================================================== */
.field {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: min(50vh, 460px);
  z-index: 2;
  pointer-events: none;
}

/* ground line + horizon glow */
.field .ground {
  position: absolute; left: 0; right: 0; bottom: 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-2) 12%, var(--hairline-2) 88%, transparent);
}
.field .ground::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(74,222,128,0.05));
  mask: linear-gradient(180deg, black, transparent);
}

/* ====================================================
   INFINITE STAMPEDE — bulls charge in from the left,
   loop forever. Speed = --spd (set by Tweaks).
   ==================================================== */
.stampede { position: absolute; inset: 0; pointer-events: none; }
.charger {
  position: absolute; bottom: 9%; left: 0;
  height: var(--h, 200px); width: auto;
  opacity: var(--op, 0.7);
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.55));
  animation: stampede calc(var(--dur, 22s) / var(--spd, 1)) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
@keyframes stampede {
  from { transform: translateX(-40vw); }
  to   { transform: translateX(120vw); }
}

/* scrolling ticker tape — toggled by Tweaks (.hero.show-tape) */
.tape {
  display: none;
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 5;
  border-top: 0.5px solid var(--hairline);
  border-bottom: 0.5px solid var(--hairline);
  background: rgba(7, 9, 13, 0.6);
  backdrop-filter: blur(6px);
  overflow: hidden;
  padding: 13px 0;
}
.hero.show-tape .tape { display: block; }
.tape-track {
  display: flex; gap: 40px; width: max-content;
  animation: tape 38s linear infinite;
  font-family: var(--mono); font-size: 13.5px;
}
.tape-track .t { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.tape-track .sym { color: var(--ink); font-weight: 600; }
.tape-track .up { color: var(--buy); }
.tape-track .dn { color: var(--sell); }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 820px) {
  .hero { min-height: auto; padding-bottom: 60vw; padding-top: 120px; }
  .field { height: 46vh; }
}
@media (prefers-reduced-motion: reduce) {
  .charger { animation: none; }
  .charger:nth-child(1) { transform: translateX(6vw); }
  .charger:nth-child(2) { transform: translateX(34vw); }
  .charger:nth-child(3) { transform: translateX(60vw); }
  .charger:nth-child(4) { transform: translateX(82vw); }
  .charger:nth-child(5) { transform: translateX(20vw); }
  .charger:nth-child(6) { transform: translateX(48vw); }
}

/* ====================================================
   LIVE ANALYSIS WIDGET — self-populating, loops
   ==================================================== */
.live-card {
  position: absolute;
  right: max(28px, calc((100vw - 1200px) / 2));
  top: 47%; transform: translateY(-50%);
  width: 322px; z-index: 5;
  border-radius: 18px;
  background: rgba(18, 18, 20, 0.82);
  border: 0.5px solid var(--hairline-2);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 36px 80px -30px rgba(0,0,0,0.82), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 15px 16px 17px;
  overflow: hidden;
}
.lc-head { display: flex; align-items: center; gap: 8px; padding-bottom: 13px; border-bottom: 0.5px solid var(--hairline); }
.lc-logo { width: 22px; height: 22px; border-radius: 7px; overflow: hidden; flex: none; }
.lc-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-name { font-size: 13.5px; font-weight: 600; letter-spacing: -0.02em; }
.lc-status { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.lc-status.done { color: var(--accent); }
.lc-spin { width: 9px; height: 9px; border: 1.5px solid rgba(255,255,255,0.18); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
.lc-status.done .lc-spin { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.lc-video { display: flex; align-items: center; gap: 9px; margin-top: 13px; }
.lc-thumb {
  width: 34px; height: 24px; border-radius: 6px; flex: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 6px, rgba(255,255,255,0.02) 6px 12px), #14181f;
  border: 0.5px solid var(--hairline);
  display: grid; place-items: center; color: rgba(255,255,255,0.5); font-size: 9px;
}
.lc-vtitle { font-size: 11.5px; color: var(--ink-2); line-height: 1.3; }
.lc-sent {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 13px; padding: 9px 11px; border-radius: 10px;
  background: rgba(74,222,128,0.06); border: 0.5px solid rgba(74,222,128,0.16);
}
.lc-sent-k { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); }
.lc-sent-v { font-size: 12px; font-weight: 600; color: var(--accent); }
.lc-rows { margin-top: 11px; display: flex; flex-direction: column; gap: 8px; }
.lc-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 0.5px solid var(--hairline);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.lc-row.in { opacity: 1; transform: none; }
.lc-av {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 800; font-size: 9.5px; color: #fff;
  background: linear-gradient(145deg, #22c55e, #15803d); border: 0.5px solid rgba(74,222,128,0.4);
}
.lc-id { flex: 1; min-width: 0; }
.lc-sym { font-size: 12.5px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 5px; }
.lc-sym .top { font-size: 8px; color: var(--accent); font-weight: 600; }
.lc-co { font-size: 10px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.lc-buy { font-family: var(--mono); font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 5px; flex: none; background: rgba(74,222,128,0.15); color: var(--buy); border: 0.5px solid rgba(74,222,128,0.3); }
.lc-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.lc-chg { font-family: var(--mono); font-size: 9.5px; font-weight: 600; }
.lc-chg.up { color: var(--buy); }
.lc-chg.dn { color: var(--sell); }

@media (max-width: 1180px) { .live-card { display: none; } }
