/* SUNMI V3 — premium showcase with crossfade gallery */
.home-device-showcase__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-device-showcase {
  position: relative;
  z-index: 24;
  padding: clamp(2.75rem, 6vw, 5rem) 0;
  background: transparent;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.home-device-showcase__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 44%);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: center;
}

html[dir="ltr"] .home-device-showcase__info { order: 1; }
html[dir="ltr"] .home-device-showcase__stage { order: 2; }
html[dir="rtl"] .home-device-showcase__info { order: 2; }
html[dir="rtl"] .home-device-showcase__stage { order: 1; }

/* —— Left copy panel —— */
.home-device-showcase__info {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 560px;
}

.home-device-showcase__head {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--primary);
}

.home-device-showcase__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.home-device-showcase__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.home-device-showcase__title {
  margin: 0;
  font-family: "Tajawal", "Cairo", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary);
  text-shadow: 0 0 40px rgba(234, 59, 6, 0.25);
}

.home-device-showcase__badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.42rem 0.95rem;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  background: rgba(234, 59, 6, 0.18);
  border: 1px solid rgba(234, 59, 6, 0.45);
  border-radius: 999px;
}

.home-device-showcase__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-device-showcase__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0.55rem;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-device-showcase__feature:hover {
  border-color: rgba(234, 59, 6, 0.28);
  transform: translateY(-2px);
}

.home-device-showcase__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--primary);
  border-radius: 11px;
  background: rgba(234, 59, 6, 0.12);
  box-shadow: 0 0 20px rgba(234, 59, 6, 0.12);
}

.home-device-showcase__feature-icon svg {
  width: 20px;
  height: 20px;
}

.home-device-showcase__feature-label {
  font-size: clamp(0.72rem, 1.5vw, 0.84rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-secondary);
}

.home-device-showcase__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home-device-showcase__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 180px;
  padding: 0.95rem 1.85rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary) 0%, #c42f08 100%);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(234, 59, 6, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-device-showcase__cta::after {
  content: "←";
  font-size: 1.1em;
  line-height: 1;
  transition: transform 0.2s ease;
}

html[dir="ltr"] .home-device-showcase__cta::after {
  content: "→";
}

.home-device-showcase__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(234, 59, 6, 0.36);
}

.home-device-showcase__cta:hover::after {
  transform: translateX(-3px);
}

html[dir="ltr"] .home-device-showcase__cta:hover::after {
  transform: translateX(3px);
}

.home-device-showcase__cta:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* —— Fade gallery —— */
.home-device-showcase__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: 0;
}

.home-device-showcase__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 400px);
  height: min(90%, 460px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse 70% 60% at 50% 48%, rgba(234, 59, 6, 0.2) 0%, transparent 72%);
  pointer-events: none;
  filter: blur(12px);
}

.home-device-showcase__scene {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  outline: none;
  touch-action: pan-y;
  cursor: default;
}

.home-device-showcase__fade {
  position: relative;
  width: 100%;
  aspect-ratio: 10 / 16;
  max-height: min(52vh, 500px);
}

.home-device-showcase__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.home-device-showcase__slide.is-active {
  opacity: 1;
  z-index: 2;
}

.home-device-showcase__slide.is-leaving {
  opacity: 0;
  z-index: 1;
}

.home-device-showcase__slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.5));
}

.home-device-showcase__dots {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.home-device-showcase__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.home-device-showcase__dot.is-active {
  width: 22px;
  background: var(--primary);
}

.home-device-showcase__dot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .home-device-showcase__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(160px, 42vw);
    gap: 0.85rem;
  }

  .home-device-showcase__head {
    padding-inline-start: 0.75rem;
    gap: 0.6rem;
  }

  .home-device-showcase__features {
    gap: 0.45rem;
  }

  .home-device-showcase__feature {
    padding: 0.7rem 0.35rem;
  }
}

@media (max-width: 640px) {
  .home-device-showcase {
    padding: 2rem 0 2.25rem;
  }

  .home-device-showcase__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(140px, 43vw);
    gap: 0.6rem;
  }

  .home-device-showcase__info {
    gap: 0.75rem;
  }

  .home-device-showcase__eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .home-device-showcase__title {
    font-size: clamp(1.5rem, 6.5vw, 1.85rem);
  }

  .home-device-showcase__title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .home-device-showcase__badge {
    padding: 0.32rem 0.7rem;
    font-size: 0.72rem;
  }

  .home-device-showcase__features {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .home-device-showcase__feature {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.5rem 0.6rem;
    text-align: start;
  }

  .home-device-showcase__feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .home-device-showcase__feature-icon svg {
    width: 16px;
    height: 16px;
  }

  .home-device-showcase__feature-label {
    font-size: 0.7rem;
  }

  .home-device-showcase__cta {
    width: 100%;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-size: 0.86rem;
  }

  .home-device-showcase__fade {
    max-height: min(56vw, 300px);
  }

  .home-device-showcase__dots {
    gap: 0.35rem;
  }

  .home-device-showcase__dot {
    width: 6px;
    height: 6px;
  }

  .home-device-showcase__dot.is-active {
    width: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-device-showcase__slide {
    transition: none;
  }

  .home-device-showcase__feature {
    transition: none;
  }
}
