/* BpExch — hero + dashboard mockup */
/* =========================================================================
   HERO
   ========================================================================= */

/* Lock hero dark regardless of the light page theme — rescope tokens here. */
.hero {
  --text-strong: #fff;
  --text: var(--dark-text);
  --text-2: var(--dark-text-2);
  --text-3: var(--dark-text-3);
  --border: var(--dark-border);
  --border-strong: var(--dark-border-strong);
  --hairline: var(--dark-hairline);
  --bg: var(--dark-bg-2);
  --bg-2: var(--dark-bg-3);
  --bg-3: var(--dark-bg-4);
  --card-grad: var(--dark-card-grad);
  background-color: var(--dark-bg-2);
  color: var(--dark-text);
}

.hero {
  position: relative;
  min-height: min(92svh, 52rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
  padding-bottom: 2rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.15;
}
.hero-bg-grad1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2, 12, 8, 0.9),
    rgba(4, 21, 15, 0.95),
    var(--dark-bg-2)
  );
}
.hero-bg-grad2 {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 30%, rgba(4, 120, 87, 0.12), transparent);
}
.hero-bg-grad3 {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 80% 70%, rgba(6, 95, 70, 0.1), transparent);
}
.hero-rings {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--r-circle);
}
.hero-ring-1 {
  width: 900px;
  height: 900px;
  border: 1px solid rgba(255, 255, 255, 0.025);
}
.hero-ring-2 {
  width: 650px;
  height: 650px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.hero-ring-3 {
  width: 400px;
  height: 400px;
  border: 1px solid rgba(4, 120, 87, 0.08);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0;
}
.hero-layout {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual-card {
  width: min(100%, 28rem);
  padding: 0.75rem;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 64px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(4, 120, 87, 0.08) inset;
}
.hero-visual-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 3 / 4;
  background: #f7fbf9;
}
.hero-visual-tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0 0.8rem;
  border-radius: var(--r-pill);
  background: rgba(7, 19, 15, 0.78);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0;
  backdrop-filter: blur(6px);
}
.hero-visual-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 1rem;
}
.hero-visual-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.9rem;
}
.hero-visual-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0 0.8rem;
  border-radius: var(--r-pill);
  background: rgba(4, 120, 87, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.16);
  color: var(--dark-text);
  font-size: var(--text-xs);
  font-weight: 600;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 1rem;
  border-radius: var(--r-pill);
  background: rgba(4, 120, 87, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: var(--green);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 1.1rem;
}
@media (min-width: 768px) {
  .hero-badge {
    gap: 0.5rem;
    letter-spacing: var(--ls-ultra);
  }
}
.live-dot {
  position: relative;
  display: inline-flex;
  height: 0.375rem;
  width: 0.375rem;
}
.live-dot span:first-child {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: var(--r-pill);
  background: var(--green);
  opacity: 0.75;
  animation: betpro-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.live-dot span:last-child {
  position: relative;
  display: inline-flex;
  height: 0.375rem;
  width: 0.375rem;
  border-radius: var(--r-pill);
  background: var(--green);
}
@keyframes betpro-ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero-title {
  /* Fluid: ~3rem on phones → 6rem on large screens, smoothly, no breakpoints. */
  font-size: clamp(3rem, 1.2rem + 8vw, 6rem);
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 1.1rem;
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  max-width: 56rem;
  text-wrap: balance;
}
/* Laptops and larger: fixed 4.4rem instead of the fluid size. */
@media (min-width: 1024px) {
  .hero-title {
    font-size: var(--text-6xl);
  }
}

.hero-lede {
  font-size: var(--text-md);
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 36rem;
  line-height: 1.7;
}
@media (min-width: 768px) {
  .hero-lede {
    font-size: var(--text-lg);
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
}
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}
.hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.25rem;
  padding: 0 1.75rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--t);
}
.hero-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-strong);
}

.hero-app-preview {
  position: relative;
  width: min(100%, 36rem);
  max-height: 30rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-app-img {
  width: 100%;
  max-height: 30rem;
  height: auto;
  display: block;
  border-radius: var(--r-3);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: contain;
}
@media (min-width: 1024px) {
  .hero {
    min-height: min(88svh, 48rem);
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 1.02fr);
    gap: 4rem;
  }
  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .hero-visual {
    justify-content: flex-end;
    margin-top: 1.5rem;
  }
  .hero-visual-card {
    width: min(100%, 30rem);
  }
  .hero-visual-img {
    /* Anchor to the bottom so overflow is cropped off the top instead of the bottom. */
    object-position: center bottom;
  }
  .hero-title {
    font-size: 4.05rem;
    max-width: 34rem;
  }
  .hero-lede {
    max-width: 31rem;
  }
}

/* Hero dashboard mockup */
.hero-dash {
  position: relative;
  width: 100%;
  max-width: 64rem;
}
.hero-dash-glow {
  position: absolute;
  left: -5rem;
  right: -5rem;
  top: 2.5rem;
  height: 12rem;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    rgba(4, 120, 87, 0.1) 0%,
    transparent 70%
  );
}
.hero-dash-frame {
  position: relative;
  border-radius: var(--r-2) 1rem 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 0;
  box-shadow:
    0 -20px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, var(--dark-bg-3) 0%, var(--dark-bg-2) 100%);
}
.dash-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 12, 8, 0.82);
}
.dash-dots {
  display: flex;
  gap: 0.375rem;
}
.dash-dots span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: var(--r-pill);
}
.dash-dots .red {
  background: var(--macos-close);
}
.dash-dots .amber {
  background: var(--macos-min);
}
.dash-dots .green {
  background: var(--macos-zoom);
}
.dash-url {
  flex: 1;
  margin: 0 1rem;
  height: 1.5rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-url span {
  color: var(--text-2);
  font-size: var(--text-xs);
  font-weight: 500;
}
.dash-live {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-xs);
  color: var(--text);
  font-weight: 500;
}
.dash-live span {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: var(--r-pill);
  background: var(--green);
  animation: betpro-pulse 2s infinite;
}
@keyframes betpro-pulse {
  50% {
    opacity: 0.4;
  }
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  min-height: 380px;
}
@media (min-width: 768px) {
  .dash-grid {
    min-height: 440px;
  }
}
.dash-side {
  display: none;
  grid-column: span 2;
  flex-direction: column;
  border-right: 1px solid var(--hairline);
  padding: 1rem;
  gap: 0.75rem;
}
.dash-side-item {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  transition: background 0.2s;
}
.dash-side-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.dash-side-item.active {
  background: rgba(4, 120, 87, 0.15);
  border: 1px solid rgba(4, 120, 87, 0.2);
}
.dash-main {
  grid-column: span 12;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dash-right {
  display: none;
  grid-column: span 3;
  flex-direction: column;
  border-left: 1px solid var(--hairline);
  padding: 1rem;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .dash-side {
    display: flex;
  }
  .dash-right {
    display: flex;
  }
  .dash-main {
    grid-column: span 7;
  }
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-head-title {
  color: var(--text-strong);
  font-weight: 600;
  font-size: var(--text-sm);
}
.dash-head-sub {
  color: var(--text);
  font-size: var(--text-xs);
}
.dash-tabs {
  display: flex;
  gap: 0.5rem;
}
.dash-tab {
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.dash-tab.active {
  background: rgba(4, 120, 87, 0.15);
  color: var(--green);
}
.dash-matches {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.dash-match {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--hairline);
}
.dash-match-info {
  flex: 1;
  min-width: 0;
}
.dash-match-sport {
  font-size: var(--text-xs);
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-open);
  margin-bottom: 0.25rem;
}
.dash-match-teams {
  color: var(--text-strong);
  font-size: var(--text-sm);
  font-weight: 600;
}
.dash-match-teams .vs {
  color: var(--text);
  font-weight: 400;
}
.dash-match-score {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.dash-score {
  color: var(--green);
  font-weight: 700;
  font-size: var(--text-xs);
  padding: 0.125rem 0.5rem;
  background: rgba(4, 120, 87, 0.1);
  border-radius: var(--r-sm);
}
.dash-time {
  color: var(--text-2);
  font-size: var(--text-xs);
}
.dash-odds {
  display: flex;
  gap: 0.375rem;
}
.dash-odd {
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  background: rgba(4, 120, 87, 0.08);
  color: var(--green);
  border: 1px solid rgba(4, 120, 87, 0.15);
}
.bet-slip {
  padding: 1rem;
  border-radius: var(--r);
  margin-top: auto;
  background: linear-gradient(135deg, rgba(4, 120, 87, 0.06), rgba(16, 185, 129, 0.03));
  border: 1px solid rgba(4, 120, 87, 0.12);
}
.bet-slip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.bet-slip-head .label {
  color: var(--green);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-open);
}
.bet-slip-head .count {
  color: var(--text);
  font-size: var(--text-xs);
}
.bet-slip-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bet-slip-pick {
  color: var(--text-strong);
  font-size: var(--text-sm);
  font-weight: 600;
}
.bet-slip-odds {
  color: var(--text);
  font-size: var(--text-xs);
  margin-top: 0.125rem;
}
.bet-slip-amt {
  color: var(--green);
  font-weight: 700;
  font-size: var(--text-lg);
  text-align: right;
}
.bet-slip-win {
  color: var(--text);
  font-size: var(--text-xs);
  text-align: right;
}
.dash-right-title {
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-open);
  margin-bottom: 0.25rem;
}
.win-card {
  padding: 0.75rem;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--hairline);
}
.win-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.win-card-name {
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: 600;
}
.win-card-amt {
  color: var(--green);
  font-size: var(--text-xs);
  font-weight: 700;
}
.win-card-bet {
  color: var(--text-2);
  font-size: var(--text-xs);
}
.payout-card {
  margin-top: auto;
  padding: 0.75rem;
  border-radius: var(--r);
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.1);
}
.payout-card .label {
  color: rgba(16, 185, 129, 0.7);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-open);
  margin-bottom: 0.25rem;
}
.payout-card .val {
  color: var(--gold);
  font-size: var(--text-xl);
  font-weight: 700;
}
.payout-card .delta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(16, 185, 129, 0.5);
  font-size: var(--text-xs);
  margin-top: 0.25rem;
}
