/* Dashboard / Hero Section */

.hero {
  position: relative;
  text-align: center;
  padding: 4rem 1rem 3.5rem;
  margin-bottom: 2.5rem;
  overflow: hidden;

  /* Grid pattern on page background — no card box */
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(6, 182, 212, 0.16) 0%, transparent 70%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* Subtle bottom fade so grid doesn't compete with cards below */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-primary) 100%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  position: relative;
  z-index: 1;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
  animation: hero-pulse 2s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}

.hero-title-accent {
  background: linear-gradient(90deg, #06b6d4 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  padding: 0 1.75rem;
  text-align: center;
}

.hero-stat:not(:last-child) {
  border-right: 1px solid var(--border-color);
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: 0.6rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.3);
}

.btn-hero-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.45);
}

.btn-hero-secondary {
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-color);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   Content gating — lock wall
───────────────────────────────────────────── */
.lock-wall {
  position: relative;
  margin-top: 1.25rem;
}

/* Blurred ghost cards */
.ghost-card {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
  /* Keep the same card shell so it looks real */
}

/* Skeleton placeholder bars inside ghost cards */
.ghost-skel {
  background: var(--bg-card-hover);
  border-radius: 4px;
  display: block;
}

/* Gradient fade + CTA overlay */
.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2.5rem;
  /* Fade from transparent (top, showing blurred cards) → dark (bottom, CTA zone) */
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0) 0%,
    rgba(15, 23, 42, 0.55) 35%,
    rgba(15, 23, 42, 0.92) 62%,
    rgba(15, 23, 42, 0.98) 100%
  );
  z-index: 2;
  border-radius: 0.75rem;
}

.lock-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.lock-cta-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.lock-cta-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lock-cta-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

/* ─────────────────────────────────────────────
   How It Works section
───────────────────────────────────────────── */
.how-it-works {
  padding: 0 0 3rem;
  margin-bottom: 1rem;
}

.how-it-works-label {
  margin: 0 0 2rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
}

.how-it-works-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
}

.hiw-step {
  background: var(--bg-card);
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hiw-num {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, rgba(6,182,212,0.55) 0%, rgba(129,140,248,0.35) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hiw-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hiw-step-desc {
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.how-it-works-cta {
  margin-top: 2rem;
  text-align: center;
}

/* ─────────────────────────────────────────────
   Why These Plays section
───────────────────────────────────────────── */
.why-plays {
  margin-top: 4rem;
  margin-bottom: 3rem;
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.why-plays-header {
  margin-bottom: 2rem;
}

.why-plays-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.why-plays-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.why-plays-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
}

.why-plays-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.why-plays-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.why-plays-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.why-plays-item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─────────────────────────────────────────────
   Responsive
───────────────────────────────────────────── */
/* Responsive */
@media (max-width: 900px) {
  .why-plays-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 1rem 2.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-stat {
    padding: 0 1.1rem;
  }

  .hero-stat-value {
    font-size: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    justify-content: center;
    width: 100%;
  }

  .why-plays {
    padding: 1.75rem 1.25rem;
  }

  .why-plays-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

  .hiw-step:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
  }
}
