/* Homepage — Binance-inspired hero counts & market list */

.hero-binance {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding: 3.5rem 0 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-binance .hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.bn-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: bnOrbFloat 9s ease-in-out infinite;
}

.bn-hero-orb-a {
  width: 340px;
  height: 340px;
  top: -8%;
  left: -6%;
  background: rgba(252, 213, 53, 0.16);
}

.bn-hero-orb-b {
  width: 280px;
  height: 280px;
  right: 8%;
  bottom: 4%;
  background: rgba(14, 203, 129, 0.12);
  animation-delay: -3.5s;
}

@keyframes bnOrbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.05); }
}

.bn-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(30, 35, 41, 0.7);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  animation: titleIn 0.7s ease both;
}

.bn-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.5);
  animation: bnPulse 1.8s ease-out infinite;
}

@keyframes bnPulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(14, 203, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0); }
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.bn-hero-count {
  margin: 0 0 0.35rem;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.bn-count-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.2rem, 8.5vw, 5.6rem);
  color: var(--yellow);
  -webkit-text-fill-color: var(--yellow);
  background: none;
  text-shadow: 0 0 40px rgba(252, 213, 53, 0.25);
  animation: countPop 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes countPop {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.bn-hero-label {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  margin-bottom: 1.35rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-main);
  animation: titleIn 0.8s ease 0.08s both;
}

.bn-hero-tagline {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 28rem;
  margin: 0 0 1.5rem;
}

.bn-signup-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  max-width: 420px;
  margin-bottom: 2rem;
  animation: titleIn 0.8s ease 0.16s both;
}

.bn-signup-input {
  flex: 1;
  min-height: 48px;
  border-radius: 10px !important;
  background: var(--input-bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-main) !important;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bn-signup-input:focus {
  border-color: rgba(252, 213, 53, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(252, 213, 53, 0.15) !important;
}

.bn-signup-input::placeholder {
  color: var(--text-secondary);
}

.bn-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.btn-bn-signup {
  min-width: 120px;
  min-height: 48px;
  font-size: 1rem;
  border-radius: 10px;
  white-space: nowrap;
}

.bn-kicker {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.bn-section-head {
  margin-bottom: 2rem;
}

.bn-trust-section {
  padding-top: 0;
  padding-bottom: 2.5rem;
}

.bn-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.bn-trust-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(252, 213, 53, 0.08), transparent 55%),
    var(--bg-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bn-trust-item:hover {
  transform: translateY(-4px);
  border-color: rgba(252, 213, 53, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.bn-trust-item i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(252, 213, 53, 0.12);
  color: var(--yellow);
  font-size: 1rem;
  flex-shrink: 0;
}

.bn-trust-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.bn-trust-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.bn-faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease;
}

.bn-faq details[open] {
  border-color: rgba(252, 213, 53, 0.35);
}

.bn-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bn-faq summary::after {
  content: "+";
  color: var(--yellow);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.bn-faq details[open] summary::after {
  content: "–";
}

.bn-faq summary::-webkit-details-marker {
  display: none;
}

.bn-faq details p {
  margin: 0.75rem 0 0.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.bn-cta-band {
  background:
    radial-gradient(ellipse 55% 90% at 100% 0%, rgba(252, 213, 53, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 70% at 0% 100%, rgba(14, 203, 129, 0.1), transparent 50%),
    var(--bg-card) !important;
}

.bn-cta-band .section-title {
  margin-bottom: 0.35rem;
}

.plan-card {
  border-top: 2px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(90deg, rgba(252, 213, 53, 0.0), rgba(252, 213, 53, 0.35), rgba(252, 213, 53, 0)) border-box;
}

.plan-card:hover {
  border-top-color: var(--yellow);
}

.btn-bn-signup {
  box-shadow: 0 8px 22px rgba(252, 213, 53, 0.22);
}

.btn-bn-signup:hover {
  box-shadow: 0 10px 28px rgba(252, 213, 53, 0.32);
}

.bn-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  max-width: 36rem;
}

.bn-metric {
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(30, 35, 41, 0.85), rgba(24, 26, 32, 0.55));
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.bn-metric:hover {
  border-color: rgba(252, 213, 53, 0.35);
  transform: translateY(-2px);
}

.bn-metric-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  color: var(--text-main);
  line-height: 1.2;
  word-break: break-word;
}

.bn-metric-value.green {
  color: var(--green);
}

.bn-metric-label {
  margin-top: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Right market list (Binance Popular panel) */
.bn-market-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(30, 35, 41, 0.98), rgba(24, 26, 32, 0.92));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1.1rem 0.85rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  animation: panelRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.bn-market-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: rgba(252, 213, 53, 0.12);
  filter: blur(30px);
  pointer-events: none;
}

@keyframes panelRise {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

[data-theme="light"] .hero-binance {
  background:
    radial-gradient(ellipse 55% 40% at 8% -5%, rgba(240, 185, 11, 0.07), transparent 60%),
    radial-gradient(ellipse 40% 35% at 96% 12%, rgba(14, 203, 129, 0.05), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #F7F8FA 100%);
}

[data-theme="light"] .bn-hero-orb-a {
  background: rgba(240, 185, 11, 0.1);
  opacity: 0.7;
}

[data-theme="light"] .bn-hero-orb-b {
  background: rgba(14, 203, 129, 0.07);
  opacity: 0.65;
}

[data-theme="light"] .bn-live-pill {
  background: #FFFFFF;
  border-color: #D8DCE1;
  color: #474D57;
  box-shadow: 0 4px 14px rgba(24, 26, 32, 0.06);
}

[data-theme="light"] .bn-count-num {
  color: #C99400;
  -webkit-text-fill-color: #C99400;
  text-shadow: none;
}

[data-theme="light"] .bn-signup-input {
  background: #FFFFFF !important;
  border-color: #D8DCE1 !important;
  box-shadow: 0 2px 8px rgba(24, 26, 32, 0.04);
}

[data-theme="light"] .bn-signup-input:focus {
  border-color: rgba(240, 185, 11, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.18) !important;
}

[data-theme="light"] .btn-bn-signup {
  box-shadow: 0 8px 20px rgba(240, 185, 11, 0.28);
}

[data-theme="light"] .bn-metric {
  background: linear-gradient(180deg, #FFFFFF, #F7F8FA);
  box-shadow: 0 6px 16px rgba(24, 26, 32, 0.05);
}

[data-theme="light"] .bn-market-panel {
  background: #FFFFFF;
  border-color: #E6E8EA;
  box-shadow: 0 16px 40px rgba(24, 26, 32, 0.08);
}

[data-theme="light"] .bn-market-glow {
  background: rgba(240, 185, 11, 0.16);
}

[data-theme="light"] .bn-coin-icon {
  background: rgba(240, 185, 11, 0.18);
  color: #C99400;
  border: 1px solid rgba(240, 185, 11, 0.28);
}

[data-theme="light"] .bn-market-row:hover {
  background: rgba(240, 185, 11, 0.06);
}

[data-theme="light"] .bn-trust-item {
  background:
    radial-gradient(circle at 0% 0%, rgba(240, 185, 11, 0.1), transparent 55%),
    #FFFFFF;
  box-shadow: 0 8px 22px rgba(24, 26, 32, 0.05);
}

[data-theme="light"] .bn-trust-item:hover {
  box-shadow: 0 14px 30px rgba(24, 26, 32, 0.1);
}

[data-theme="light"] .bn-trust-item i {
  background: rgba(240, 185, 11, 0.16);
  color: #C99400;
}

[data-theme="light"] .bn-faq details {
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(24, 26, 32, 0.04);
}

[data-theme="light"] .bn-cta-band {
  background:
    radial-gradient(ellipse 55% 90% at 100% 0%, rgba(240, 185, 11, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 70% at 0% 100%, rgba(14, 203, 129, 0.08), transparent 50%),
    #FFFFFF !important;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .plan-card {
  background:
    linear-gradient(#FFFFFF, #FFFFFF) padding-box,
    linear-gradient(90deg, rgba(240, 185, 11, 0), rgba(240, 185, 11, 0.4), rgba(240, 185, 11, 0)) border-box;
  box-shadow: 0 10px 28px rgba(24, 26, 32, 0.06);
}

[data-theme="light"] .plan-glow {
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(240, 185, 11, 0.14), transparent 45%);
}

.bn-market-tabs {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.65rem;
}

.bn-market-tabs button,
.bn-market-tabs a {
  background: none;
  border: none;
  padding: 0.25rem 0;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.bn-market-tabs .is-active,
.bn-market-tabs a:hover {
  color: var(--text-main);
}

.bn-market-tabs .is-active {
  box-shadow: inset 0 -2px 0 var(--yellow);
  padding-bottom: 0.65rem;
  margin-bottom: -0.65rem;
}

.bn-market-list {
  display: flex;
  flex-direction: column;
}

.bn-market-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.bn-market-row:last-child {
  border-bottom: none;
}

.bn-market-row:hover {
  background: rgba(252, 213, 53, 0.04);
  color: inherit;
}

.bn-market-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.bn-coin-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(252, 213, 53, 0.15);
  color: var(--yellow);
  font-weight: 700;
  flex-shrink: 0;
}

.bn-coin-sym {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.bn-coin-name {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.bn-market-mid {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bn-market-right {
  text-align: right;
  font-weight: 600;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.bn-market-right.up { color: var(--green); }
.bn-market-right.flat { color: var(--text-secondary); }

.bn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
}

.bn-view-all:hover {
  color: var(--yellow);
}

.bn-market-empty {
  padding: 1.5rem 0.5rem;
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Interactive cards */
.interactive-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card.interactive-card:hover,
.plan-card.interactive-card:hover,
.step-item.interactive-card:hover {
  transform: translateY(-6px);
  border-color: rgba(252, 213, 53, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .stat-card.interactive-card:hover,
[data-theme="light"] .plan-card.interactive-card:hover,
[data-theme="light"] .step-item.interactive-card:hover {
  box-shadow: 0 14px 36px rgba(20, 24, 35, 0.1);
}

.plan-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.plan-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(252, 213, 53, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.plan-card:hover .plan-glow {
  opacity: 1;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  color: var(--text-secondary);
}

.feature-list i {
  color: var(--yellow);
  margin-top: 0.2rem;
}

.qual-card {
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.qual-card:hover {
  transform: translateY(-4px);
  border-color: rgba(252, 213, 53, 0.4);
}

.mini-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-elevated);
  overflow: hidden;
  min-width: 72px;
}

.mini-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-hover));
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-visible .mini-progress span,
.qual-card:hover .mini-progress span {
  width: var(--p, 40%);
}

.step-icon {
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.step-item:hover .step-icon {
  color: var(--yellow);
  transform: scale(1.12);
}

.step-item:hover .step-num {
  background: var(--yellow);
  color: var(--btn-primary-text);
  transform: scale(1.05);
}

.step-num {
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.section-cta {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(252, 213, 53, 0.14), transparent),
    var(--bg-card);
  position: relative;
  overflow: hidden;
}

.btn-magnetic {
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.public-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991.98px) {
  .hero-binance {
    min-height: auto;
    padding: 2rem 0 2.75rem;
  }

  .bn-hero-cta .btn-nv,
  .btn-bn-signup {
    min-height: 46px;
  }

  .bn-metric-row {
    max-width: none;
  }

  .bn-trust-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 1.35rem 1.15rem;
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band .d-flex {
    width: 100%;
    flex-direction: column;
  }

  .cta-band .btn-nv {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .bn-hero-orb-a,
  .bn-hero-orb-b {
    opacity: 0.55;
    filter: blur(60px);
  }

  .bn-signup-row {
    flex-direction: column;
    max-width: none;
  }

  .bn-signup-row .btn-bn-signup {
    width: 100%;
  }

  .bn-hero-cta {
    flex-direction: column;
  }

  .bn-hero-cta .btn-nv {
    width: 100%;
    justify-content: center;
  }

  .bn-metric-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .bn-market-row {
    grid-template-columns: 1.3fr 0.7fr 0.8fr;
    padding: 0.75rem 0;
  }

  .bn-coin-name {
    display: none;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translateY(22px);
  }
}

@media (max-width: 575.98px) {
  .bn-count-num {
    font-size: clamp(2.6rem, 14vw, 3.4rem);
  }

  .bn-hero-label {
    font-size: 1.25rem;
  }

  .bn-market-mid {
    font-size: 0.9rem;
  }

  .bn-market-right {
    font-size: 0.78rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 0.65rem 0.75rem;
    padding: 0.9rem 1rem;
  }

  .step-num,
  .step-icon {
    margin-bottom: 0;
  }
}

@media (hover: none) and (pointer: coarse) {
  .plan-card.interactive-card:hover,
  .step-item.interactive-card:hover,
  .qual-card:hover,
  .bn-trust-item:hover,
  .bn-metric:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
  }

  .btn-magnetic {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bn-count-num,
  .bn-live-pill,
  .bn-hero-label,
  .bn-signup-row,
  .bn-market-panel,
  .bn-hero-orb,
  .bn-live-dot,
  [data-reveal] {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
