/* ============================================================
   Home landing — 1:1 with marketing screenshot, scoped under .hl
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&display=swap');

.app-frame:has(.hl) .top-nav {
  padding: 12px 14px 6px;
  min-height: 56px;
  align-items: flex-start;
}
.app-frame:has(.hl) .brand-bot { color: #F0B90B; }
.app-frame:has(.hl) .icon-btn .badge-dot {
  background: #F6465D;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
}
.app-frame:has(.hl) .brand-text {
  gap: 3px;
  min-width: 0;
}
.app-frame:has(.hl) .brand-tagline {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(234, 236, 239, 0.9);
  text-transform: uppercase;
  margin-top: 2px;
  line-height: 1.15;
  white-space: nowrap;
}
.app-frame:has(.hl) .brand-name {
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.app-frame:has(.hl) a.brand {
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
  padding-top: 2px;
}
.app-frame:has(.hl) .hl-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  isolation: isolate;
}
.app-frame:has(.hl) .hl-header-actions a {
  position: relative;
  z-index: 21;
  pointer-events: auto;
}
.app-frame:has(.hl) .hl-header-link {
  font-size: 12px;
  font-weight: 600;
  color: #EAECEF;
  text-decoration: none;
  padding: 6px 8px;
  white-space: nowrap;
}
.app-frame:has(.hl) .hl-header-btn {
  font-size: 11px;
  font-weight: 700;
  color: #0B0E11;
  background: linear-gradient(180deg, #FCD535 0%, #F0B90B 100%);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.app-content:has(> .hl) {
  padding: 0 12px 24px;
  /* overflow-x:hidden forces overflow-y to auto and clips the rising candles */
  overflow: visible;
}
.app-frame:has(.hl) {
  overflow-x: hidden;
}

.hl {
  --hl-gold: #F0B90B;
  --hl-gold-bright: #FCD535;
  --hl-panel: #080A0E;
  --hl-line: rgba(240, 185, 11, 0.32);
  --hl-muted: #9AA3AF;
  --hl-green: #0ECB81;
  --hl-purple: #A855F7;
  --hl-pad: 12px;
  position: relative;
}
.hl::before {
  content: '';
  position: absolute;
  inset: -20px -40px auto -40px;
  height: 420px;
  background:
    linear-gradient(118deg, transparent 42%, rgba(240, 185, 11, 0.14) 49%, transparent 56%),
    linear-gradient(152deg, transparent 38%, rgba(252, 213, 53, 0.1) 48%, transparent 58%),
    linear-gradient(98deg, transparent 55%, rgba(240, 185, 11, 0.08) 62%, transparent 70%),
    radial-gradient(ellipse 55% 40% at 78% 18%, rgba(240, 185, 11, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hl > * { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hl-hero {
  position: relative;
  padding: 8px 2px 22px;
  margin-bottom: 0;
  overflow: visible;
  z-index: 1;
}
.hl-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(234, 236, 239, 0.78);
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
.hl-pills i {
  width: 1px;
  height: 8px;
  background: rgba(255, 255, 255, 0.35);
  display: inline-block;
}

.hl-hero-grid {
  position: relative;
  display: block;
  min-height: 236px;
  z-index: 1;
}
.hl-hero-copy {
  position: relative;
  z-index: 3;
  width: min(240px, 56%);
  padding-bottom: 0;
  isolation: isolate;
}
.hl-h1 {
  margin: 0;
  font-size: clamp(28px, 8vw, 34px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
  text-wrap: balance;
}
.hl-h1 em {
  font-style: normal;
  color: var(--hl-gold);
  text-shadow: 0 0 24px rgba(240, 185, 11, 0.35);
}
.hl-h1-line {
  white-space: nowrap;
}
.hl-lead {
  margin: 14px 0 0;
  max-width: 220px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(234, 236, 239, 0.82);
}
.hl-hero-ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 6px;
  position: relative;
  z-index: 10;
  isolation: isolate;
}
.hl-hero-ctas .hl-btn {
  height: 36px;
  padding: 0 14px;
  font-size: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
  position: relative;
  z-index: 11;
  pointer-events: auto;
}
.hl-hero-ctas .hl-btn.ghost {
  padding-left: 8px;
  padding-right: 12px;
}

.hl-hero-art {
  position: absolute;
  right: -6px;
  top: 0;
  width: min(52%, 220px);
  height: 230px;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.hl-chart {
  position: relative;
  display: block;
  width: 100%;
  height: 78%;
  overflow: visible;
  z-index: 1;
}
.hl-cndl {
  transform-box: fill-box;
  transform-origin: center bottom;
}
.hl-cndl.is-up .hl-cndl-wick { stroke: #0ECB81; stroke-width: 1.6; }
.hl-cndl.is-up .hl-cndl-body {
  fill: #0ECB81;
  filter: drop-shadow(0 0 4px rgba(14, 203, 129, 0.55));
}
.hl-cndl.is-dn .hl-cndl-wick { stroke: #F6465D; stroke-width: 1.6; }
.hl-cndl.is-dn .hl-cndl-body {
  fill: #F6465D;
  filter: drop-shadow(0 0 4px rgba(246, 70, 93, 0.45));
}
.hl-cndl.is-live .hl-cndl-body {
  animation: hlCandlePulse 0.9s ease-in-out infinite;
}
@keyframes hlCandlePulse {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}
.hl-streaks {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 70%;
  overflow: visible;
  mix-blend-mode: screen;
  opacity: .65;
  z-index: 0;
  animation: hlFlarePulse 3.4s ease-in-out infinite;
}
@keyframes hlFlarePulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.75; }
}
.hl-script {
  display: block;
  position: absolute;
  right: 0;
  bottom: 8px;
  max-width: 148px;
  font-family: 'Caveat', cursive;
  font-size: 23px;
  font-weight: 700;
  line-height: 0.95;
  color: #FCD535;
  transform: rotate(-12deg);
  text-shadow:
    0 0 12px rgba(240, 185, 11, 0.55),
    0 1px 0 rgba(11, 14, 17, 0.6);
  text-align: right;
  z-index: 2;
  text-decoration: none;
  opacity: 0.95;
  letter-spacing: 0.01em;
  white-space: normal;
}
.hl-script::after {
  content: '';
  display: block;
  width: 88%;
  height: 1.5px;
  margin: 5px 0 0 auto;
  background: linear-gradient(90deg, transparent, #FCD535 20%, #FCD535);
  opacity: 0.85;
  border-radius: 2px;
}

.hl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity .15s, transform .1s;
}
.hl-btn:active { transform: scale(0.98); opacity: 0.92; }
.hl-btn.compact {
  height: 32px;
  padding: 0 14px;
  font-size: 11.5px;
  width: fit-content;
  max-width: 100%;
}
.hl-btn.mini {
  height: 26px;
  padding: 0 8px;
  font-size: 10px;
  width: 100%;
}
.hl-btn.solid {
  background: linear-gradient(180deg, #FCD535 0%, #F0B90B 100%);
  color: #0B0E11;
  box-shadow: 0 4px 16px rgba(240, 185, 11, 0.28);
}
.hl-btn.ghost {
  background: rgba(11, 14, 17, 0.35);
  color: #fff;
  border: 1.4px solid rgba(240, 185, 11, 0.85);
  backdrop-filter: blur(6px);
}
.hl-btn.outline {
  background: transparent;
  color: var(--hl-gold);
  border: 1.3px solid var(--hl-gold);
}
.hl-play {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.4px solid var(--hl-gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hl-play i {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 3.5px 0 3.5px 6px;
  border-color: transparent transparent transparent var(--hl-gold);
  margin-left: 1px;
}


/* ---------- Shared panels ---------- */
.hl-panel {
  position: relative;
  z-index: 2;
  margin: 18px 0 14px;
  padding: 14px 12px 12px;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(240, 185, 11, 0.08), transparent 55%),
    radial-gradient(ellipse at 95% 100%, rgba(240, 185, 11, 0.04), transparent 50%),
    var(--hl-panel);
  border: 1px solid rgba(240, 185, 11, 0.22);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(240, 185, 11, 0.04) inset,
    0 8px 28px rgba(0, 0, 0, 0.35);
}
.hl-panel-row {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.hl-panel-row.is-rewards {
  grid-template-columns: 132px minmax(0, 1fr);
}
.hl-panel-intro {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding-top: 2px;
}
.hl-panel-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hl-h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hl-h2 em {
  font-style: normal;
  color: #F0B90B;
}
.hl-h2-ico {
  display: grid;
  place-items: center;
  color: var(--hl-gold);
  flex-shrink: 0;
}
.hl-h2-ico svg { width: 14px; height: 14px; }
.hl-panel-desc {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.35;
  color: rgba(234, 236, 239, 0.84);
}
.hl-panel-intro > .hl-btn {
  margin-top: auto;
  margin-bottom: 2px;
}
.hl-see {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 3px;
  margin: 0 0 6px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--hl-gold);
  white-space: nowrap;
  line-height: 1;
  height: 16px;
}
.hl-see-spacer {
  visibility: hidden;
  pointer-events: none;
}
.hl-panel-main > .hl-carousel,
.hl-panel-main > .hl-rewards-row {
  flex: 1;
  min-height: 0;
}

/* Keep title row + See All on one baseline */
.hl-panel-row > .hl-panel-intro > .hl-h2,
.hl-panel-row > .hl-panel-main > .hl-see {
  min-height: 16px;
}

/* ---------- Bot / trader cards ---------- */
.hl-carousel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hl-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
}
.hl-bot-card,
.hl-trader-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 5px 9px;
  background: linear-gradient(180deg, #141820 0%, #0A0C10 100%);
  border: 1px solid rgba(240, 185, 11, 0.28);
  border-radius: 14px;
  min-width: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.hl-bot-card.is-hot,
.hl-trader-card.is-hot {
  border-color: rgba(240, 185, 11, 0.75);
  background: linear-gradient(180deg, #1A1608 0%, #0C0A06 100%);
  box-shadow:
    0 0 0 1px rgba(240, 185, 11, 0.12),
    0 0 20px rgba(240, 185, 11, 0.22);
}
.hl-popular {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 16px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--hl-gold);
  color: #0B0E11;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(240, 185, 11, 0.35);
  z-index: 2;
}
.hl-popular svg { width: 9px; height: 9px; }
.hl-bot-av {
  width: 52px;
  height: 52px;
  margin: 2px 0 4px;
  display: grid;
  place-items: center;
}
.hl-bot-av.tone-blue { filter: drop-shadow(0 0 10px rgba(91, 140, 255, 0.55)); }
.hl-bot-av.tone-gold { filter: drop-shadow(0 0 10px rgba(240, 185, 11, 0.55)); }
.hl-bot-av.tone-purple { filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.55)); }
.hl-bot-face {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
}
.hl-bot-name,
.hl-trader-name {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hl-bot-meta {
  margin: 2px 0 0;
  font-size: 7.5px;
  color: var(--hl-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.hl-bot-profit,
.hl-trader-roi {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--hl-green);
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease;
  font-variant-numeric: tabular-nums;
}
.hl-bot-profit.is-tick-up,
.hl-trader-roi.is-tick-up {
  color: #0ECB81;
  text-shadow: 0 0 10px rgba(14, 203, 129, 0.45);
  transform: translateY(-1px);
}
.hl-bot-profit.is-tick-dn,
.hl-trader-roi.is-tick-dn {
  color: #2EE59D;
  text-shadow: 0 0 8px rgba(14, 203, 129, 0.25);
  transform: translateY(1px);
}
.hl-bot-profit-l,
.hl-trader-roi-l {
  margin: 2px 0 6px;
  font-size: 7.5px;
  color: var(--hl-muted);
}
.hl-bot-card > .hl-btn,
.hl-trader-card > .hl-btn {
  margin-top: auto;
}

.hl-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0 148px;
  min-height: 24px;
  position: relative;
}
.hl-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hl-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3A404A;
  display: block;
}
.hl-dots i.on {
  width: 14px;
  border-radius: 999px;
  background: var(--hl-gold);
}
.hl-arrows {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 5px;
}
.hl-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.2px solid rgba(240, 185, 11, 0.7);
  color: var(--hl-gold);
  display: grid;
  place-items: center;
}
.hl-arrow svg { width: 11px; height: 11px; }

/* ---------- Rewards ---------- */
.hl-rewards-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 6px;
  align-items: stretch;
}
.hl-reward-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.hl-reward-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  text-align: center;
  min-width: 0;
}
.hl-reward-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0 auto 5px;
  border-radius: 50%;
}
.hl-reward-ico svg { width: 14px; height: 14px; }
.hl-reward-card.tone-green .hl-reward-ico {
  background: rgba(14, 203, 129, 0.14);
  color: var(--hl-green);
}
.hl-reward-card.tone-gold .hl-reward-ico {
  background: rgba(240, 185, 11, 0.14);
  color: var(--hl-gold);
}
.hl-reward-card.tone-purple .hl-reward-ico {
  background: rgba(168, 85, 247, 0.16);
  color: var(--hl-purple);
}
.hl-reward-val {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hl-reward-card.tone-green .hl-reward-val { color: var(--hl-green); }
.hl-reward-card.tone-gold .hl-reward-val { color: var(--hl-gold); }
.hl-reward-card.tone-purple .hl-reward-val { color: var(--hl-purple); }
.hl-reward-lab {
  margin-top: 2px;
  font-size: 8.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}
.hl-reward-sub {
  margin: 4px 0 0;
  font-size: 7px;
  line-height: 1.25;
  color: var(--hl-muted);
}
.hl-gift-art {
  width: 82px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px rgba(240, 185, 11, 0.4));
}
.hl-gift-art img {
  width: 82px;
  height: auto;
  max-height: 120px;
  display: block;
  object-fit: contain;
}

/* ---------- Traders ---------- */
.hl-trader-card { padding-top: 14px; }
.hl-crown {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--hl-gold);
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(240, 185, 11, 0.65));
  z-index: 2;
}
.hl-crown svg { width: 14px; height: 14px; display: block; }
.hl-trader-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(240, 185, 11, 0.45);
  margin-bottom: 5px;
}
.hl-trader-card.is-hot .hl-trader-av {
  border-color: var(--hl-gold);
  box-shadow: 0 0 10px rgba(240, 185, 11, 0.4);
}

/* ---------- Stats (always one row — matches product screenshot) ---------- */
.hl-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0 12px;
  padding: 4px 0 6px;
  align-items: start;
}
.hl-stat {
  text-align: center;
  padding: 2px 4px;
  min-width: 0;
}
.hl-stat + .hl-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.hl-stat-ico {
  display: grid;
  place-items: center;
  color: var(--hl-gold);
  margin-bottom: 4px;
}
.hl-stat-ico svg { width: 16px; height: 16px; }
.hl-stat-v {
  font-size: 15px;
  font-weight: 800;
  color: var(--hl-gold);
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}
.hl-stat-l {
  margin-top: 3px;
  font-size: 9px;
  color: var(--hl-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Binance banner ---------- */
.hl-binance {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #080A0D;
  border: 1px solid rgba(240, 185, 11, 0.45);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(240, 185, 11, 0.08) inset,
    0 0 22px rgba(240, 185, 11, 0.2);
}
.hl-binance-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.hl-binance-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.hl-binance-k {
  font-size: 8px;
  color: #EAECEF;
  line-height: 1.05;
}
.hl-binance-n {
  font-size: 12px;
  font-weight: 800;
  color: var(--hl-gold);
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.hl-binance-s {
  margin-top: 1px;
  font-size: 5.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(234, 236, 239, 0.72);
  white-space: nowrap;
}
.hl-binance-msg {
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  color: #EAECEF;
}
.hl-binance .hl-btn {
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  font-size: 11px;
}

/* ---------- Footer tagline ---------- */
.hl-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 2px 8px;
}
.hl-foot-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 185, 11, 0.55), transparent);
}
.hl-foot-tag {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(234, 236, 239, 0.88);
  white-space: nowrap;
}

/* Narrow phones: keep screenshot-1 hero — copy left, candles right (never stack) */
@media (max-width: 420px) {
  .hl-hero-grid {
    min-height: 220px;
  }
  .hl-hero-copy {
    width: min(210px, 58%);
  }
  .hl-h1 {
    font-size: clamp(26px, 7.2vw, 30px);
  }
  .hl-lead {
    max-width: 200px;
    font-size: 11.5px;
  }
  .hl-hero-ctas {
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 12px;
  }
  .hl-hero-ctas .hl-btn {
    height: 34px;
    padding: 0 11px;
    font-size: 11px;
  }
  .hl-hero-ctas .hl-btn.ghost {
    padding-left: 7px;
    padding-right: 10px;
  }
  .hl-hero-art {
    position: absolute;
    right: -8px;
    top: 0;
    width: min(48%, 190px);
    height: 210px;
  }
  .hl-script {
    font-size: 20px;
    bottom: 4px;
    max-width: 130px;
  }
}
