/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  padding: 5rem 0 4.5rem; border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(79,70,229,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 15% 70%, rgba(139,92,246,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35; pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .hero::after { background-image: radial-gradient(circle, #334155 1px, transparent 1px); opacity: 0.5; }
  .hero::before {
    background:
      radial-gradient(ellipse 80% 60% at 65% 40%, rgba(99,102,241,0.12) 0%, transparent 65%),
      radial-gradient(ellipse 50% 50% at 15% 70%, rgba(139,92,246,0.08) 0%, transparent 60%);
  }
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: flex-start;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary-light); border: 1px solid rgba(79,70,229,0.18);
  color: var(--primary); font-size: 0.8125rem; font-weight: 600;
  padding: 0.3rem 0.75rem; border-radius: 100px; margin-bottom: 1.25rem;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }
.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.25rem;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__sub { font-size: 1.0625rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; max-width: 420px; }
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.hero__note { font-size: 0.8125rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }

/* ── Hero visual ── */
.hero__visual {
  position: relative;
  min-width: 0;
  width: 100%;
}
.hero__glow {
  position: absolute; inset: -15%;
  background: radial-gradient(ellipse, rgba(79,70,229,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__legend {
  margin-top: 1rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Product card (Discover-style) ── */
.pcard {
  position: relative; z-index: 1;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 100%;
}

/* Image area */
.pcard-img {
  height: 160px; position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end; padding: 0.75rem 1rem;
}
.pcard-preview {
  position: absolute; top: 0; left: 0;
  width: 1200px; height: 640px;
  transform-origin: top left;
  border: none; pointer-events: none;
  z-index: 0;
}
.pcard-cover {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
  z-index: 0;
}
.pcard-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.08), rgba(15, 23, 42, 0.04));
  z-index: 0;
}
.pcard-img-label {
  position: relative; z-index: 1;
  font-size: 0.625rem; font-weight: 500;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.35); border-radius: 4px;
  padding: 2px 6px; backdrop-filter: blur(4px);
}

/* Card body */
.pcard-body { padding: 0.875rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }

.pcard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; min-width: 0; }
.pcard-title {
  font-size: 0.9375rem; font-weight: 700;
  color: inherit; text-decoration: none;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pcard-title:hover { text-decoration: underline; }
.pcard-ext { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; flex-shrink: 0; }

.pcard-tagline { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.pcard-badges { display: flex; gap: 0.375rem; flex-wrap: wrap; }

.pcard-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.25rem; gap: 0.5rem; min-width: 0; }
.pcard-fcount { font-size: 0.8rem; color: var(--text-muted); min-width: 0; overflow-wrap: anywhere; }
.btn-leave {
  display: inline-flex; align-items: center;
  padding: 0.3rem 0.75rem; border-radius: 99px;
  font-size: 0.75rem; font-weight: 600;
  background: var(--primary); color: #fff;
  text-decoration: none; white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.btn-leave:hover { opacity: 0.85; }

/* Badge variants */
.badge-secondary {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 99px;
  background: var(--bg-subtle); border: 1px solid var(--border);
  font-size: 0.6875rem; font-weight: 500; color: var(--text-muted);
}
.badge-success-soft {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 99px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  font-size: 0.6875rem; font-weight: 500; color: #15803d;
}
@media (prefers-color-scheme: dark) {
  .badge-success-soft { background: #052e16; border-color: #166534; color: #4ade80; }
}

/* ── 3-card stacked showcase ── */
.cards-stage {
  position: relative;
  width: 100%;
  height: 480px;
}

.hero__cards-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__cards-placeholder.is-error {
  color: #b91c1c;
}

/* All slots share transition — only left/top/width/opacity animate */
.card-slot {
  position: absolute;
  top: 0;
  transition:
    left   0.5s cubic-bezier(0.34, 1.4, 0.64, 1),
    top    0.5s cubic-bezier(0.34, 1.4, 0.64, 1),
    width  0.45s ease,
    opacity 0.4s ease;
}

.card-slot--center {
  width: 300px;
  left: calc(50% - 150px);
  top: 0;
  z-index: 10;
  opacity: 1;
  cursor: default;
}

.card-slot--left {
  width: 300px;
  left: calc(50% - 350px);
  top: 50px;
  opacity: 0.72;
  z-index: 1;
  cursor: pointer;
}

.card-slot--right {
  width: 300px;
  left: calc(50% + 50px);
  top: 50px;
  opacity: 0.72;
  z-index: 1;
  cursor: pointer;
}

/* Hover lift on all cards */
.pcard {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-slot--left:hover .pcard,
.card-slot--right:hover .pcard,
.card-slot--center:hover .pcard {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}
.card-slot--left:hover,
.card-slot--right:hover {
  opacity: 0.9;
}
.card-slot--center {
  cursor: pointer;
}
