/* ============================================================
   HERO SECTION — Digital Samaaj Premium Redesign
   ============================================================ */

/* ── Slider shell ───────────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.slider-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* ── Individual slide ───────────────────────────────────────── */
.slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 24px 40px;
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

/* Slide gradient backgrounds */
.slide-1 {
  background: linear-gradient(135deg, #0f0c2e 0%, #1a0f3d 40%, #2d1b69 75%, #1e0f45 100%);
}
.slide-2 {
  background: linear-gradient(135deg, #0a1628 0%, #0d2040 40%, #0f3460 75%, #0a1628 100%);
}
.slide-3 {
  background: linear-gradient(135deg, #1a0a0a 0%, #2d0f0f 40%, #4a1518 75%, #2d0f0f 100%);
}

/* Decorative radial glow */
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 15% 50%, rgba(91,76,255,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% 30%, rgba(139,92,246,.12) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle grid texture */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ── Slide content (left column) ────────────────────────────── */
.slide-content {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Badge pill */
.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: #e0d9ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  width: fit-content;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91,76,255,.3); }
  50%       { box-shadow: 0 0 0 8px rgba(91,76,255,0); }
}

/* Main headline */
.slide-content h1 {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 14px;
  letter-spacing: -.5px;
}

.slide-content h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #a78bfa, #7c3aed, #5b4cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.slide-content p {
  font-size: clamp(13px, 2vw, 16px);
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 480px;
}

/* CTA row */
.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.slide-actions .btn-primary {
  background: linear-gradient(135deg, #5b4cff 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(91,76,255,.4);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.slide-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(91,76,255,.55);
}

.slide-actions .btn-ghost {
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.slide-actions .btn-ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.35);
  transform: translateY(-2px);
}

/* ── Trust badges row ───────────────────────────────────────── */
.slide-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 500;
}

.trust-badge .tb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  box-shadow: 0 0 6px #4ade80;
}

/* ── Hero image (right column) ──────────────────────────────── */
.slide-img {
  flex: 0 0 auto;
  width: clamp(110px, 26vw, 280px);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0,0,0,.4),
    0 0 0 1px rgba(255,255,255,.08);
  position: relative;
  z-index: 2;
  transition: transform .4s ease;
}

.slide:hover .slide-img {
  transform: translateY(-4px) scale(1.01);
}

/* ── Slide dots ─────────────────────────────────────────────── */
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: width .3s, background .3s;
}
.dot.active {
  width: 22px;
  border-radius: 4px;
  background: #fff;
}

/* ── Stats strip ────────────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--border, #e8eaf0);
  position: relative;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  gap: 4px;
  border-right: 1px solid var(--border, #e8eaf0);
  position: relative;
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary, #5b4cff), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #6b7280);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}

/* ── Ecosystem strip ────────────────────────────────────────── */
.ecosystem-strip {
  padding: 20px 24px;
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--border, #e8eaf0);
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ecosystem-strip::-webkit-scrollbar { display: none; }

.eco-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted, #6b7280);
  white-space: nowrap;
  flex-shrink: 0;
}

.eco-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.eco-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  border: 1.5px solid var(--border, #e8eaf0);
  background: var(--surface, #fff);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  min-width: 76px;
}
.eco-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.eco-step.free   { border-color: #4ade8066; background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.eco-step.silver { border-color: #94a3b866; background: linear-gradient(135deg, #f8fafc, #f1f5f9); }
.eco-step.gold   { border-color: #f59e0b66; background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.eco-step.diamond{ border-color: #5b4cff66; background: linear-gradient(135deg, #f5f3ff, #ede9fe); }

.eco-icon { font-size: 22px; line-height: 1; }
.eco-name { font-size: 11px; font-weight: 700; text-align: center; line-height: 1.3; color: var(--text, #1a1a2e); }
.eco-tag  { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted, #6b7280); }
.eco-arrow { font-size: 14px; color: var(--muted, #6b7280); flex-shrink: 0; }

/* ── Dark theme overrides ───────────────────────────────────── */
.dark-theme .slide-1 { background: linear-gradient(135deg, #0b0820 0%, #130d30 40%, #1e1250 75%, #130d30 100%); }
.dark-theme .slide-2 { background: linear-gradient(135deg, #06101f 0%, #091929 40%, #0c2648 75%, #091929 100%); }
.dark-theme .slide-3 { background: linear-gradient(135deg, #140808 0%, #200b0b 40%, #360e11 75%, #200b0b 100%); }

.dark-theme .stats-strip  { background: var(--surface); border-color: var(--border); }
.dark-theme .ecosystem-strip { background: var(--surface); border-color: var(--border); }
.dark-theme .eco-step     { background: var(--surface-2); }
.dark-theme .eco-step.free    { background: #052e16; border-color: #16653a55; }
.dark-theme .eco-step.silver  { background: #1e293b; border-color: #33415555; }
.dark-theme .eco-step.gold    { background: #2d1a00; border-color: #78350f55; }
.dark-theme .eco-step.diamond { background: #1e1040; border-color: #4c1d9555; }

/* ── Tablet (768px+) ────────────────────────────────────────── */
@media (min-width: 768px) {
  .slide {
    padding: 56px 32px 48px;
    min-height: 380px;
    gap: 32px;
  }

  .slide-content h1 { font-size: clamp(32px, 4vw, 48px); }
  .slide-content p  { font-size: 16px; }

  .slide-actions .btn-primary,
  .slide-actions .btn-ghost { height: 50px; font-size: 15px; }

  .stats-strip { padding: 0; }
  .stat-item   { padding: 22px 16px; }

  .ecosystem-strip { padding: 20px 32px; }
}

/* ── Desktop (1024px+) ──────────────────────────────────────── */
@media (min-width: 1024px) {
  .hero-slider { border-radius: 0; }

  .slide {
    padding: 72px 64px 64px;
    min-height: 440px;
    max-width: 1440px;
    margin: 0 auto;
    gap: 48px;
  }

  .slide-content { max-width: 580px; }
  .slide-content h1 { font-size: clamp(36px, 3.5vw, 56px); }
  .slide-content p  { font-size: 17px; }

  .slide-actions .btn-primary,
  .slide-actions .btn-ghost { height: 52px; padding: 0 28px; font-size: 15px; }

  .slide-img {
    width: clamp(200px, 24vw, 340px);
    border-radius: 24px;
  }

  .stat-item { padding: 26px 24px; }
  .stat-num  { font-size: 36px; }
  .stat-label { font-size: 12px; }

  .ecosystem-strip { padding: 22px 64px; }
}

/* ── Wide desktop (1280px+) ─────────────────────────────────── */
@media (min-width: 1280px) {
  .slide {
    padding: 80px 80px 72px;
    min-height: 480px;
  }

  .slide-content h1 { font-size: clamp(42px, 3.2vw, 62px); }
}

/* ── Mobile refinements (< 480px) ──────────────────────────── */
@media (max-width: 479px) {
  .slide {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 20px 44px;
    min-height: auto;
    gap: 20px;
  }

  .slide-img {
    width: 100%;
    max-width: 320px;
    align-self: center;
    border-radius: 16px;
  }

  .slide-content h1 { font-size: 26px; }
  .slide-content p  { font-size: 14px; }

  .slide-badge { font-size: 11px; padding: 5px 12px; }

  .slide-actions { gap: 8px; }
  .slide-actions .btn-primary,
  .slide-actions .btn-ghost { height: 44px; padding: 0 18px; font-size: 13px; }

  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

  .ecosystem-strip { gap: 10px; padding: 16px 20px; }
  .eco-step { min-width: 64px; padding: 8px 10px; }
}

/* ── 360px extreme small ─────────────────────────────────────── */
@media (max-width: 360px) {
  .slide-img { display: none; }
  .slide { padding: 28px 16px 36px; }
  .slide-content h1 { font-size: 24px; }
}
