/* ==========================================================================
   DEVSTUDIO — HOMEPAGE SECTIONS & INTERACTIVE COMPONENTS
   Hero Showcase, Category Universe, Grids, Pillars & Briefings
   ========================================================================== */

/* 1. Hero Showcase Slider */
.hero-slider-section {
  position: relative;
  background-color: var(--ds-color-gray-950);
  color: var(--ds-color-white);
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-slide {
  width: 100%;
  padding: 80px 0 100px 0;
  display: none;
  opacity: 0;
  transition: opacity var(--ds-transition-smooth);
}

.hero-slide.active {
  display: block;
  opacity: 1;
}

.hero-slide-content {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: var(--ds-font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #70b4ff;
  background: rgba(0, 102, 204, 0.2);
  border: 1px solid rgba(112, 180, 255, 0.3);
  padding: 4px 14px;
  border-radius: var(--ds-radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  color: var(--ds-color-white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-description {
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ds-color-gray-300);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 32px;
}

.hero-price-tag .price-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-color-gray-400);
}

.hero-price-tag .price-value {
  font-size: 1.75rem;
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-color-white);
  letter-spacing: -0.02em;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.device-render-mockup {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(145deg, #232734, #12141c);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.device-screen-inner {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 40%, #1e3a8a 0%, #0a0e1a 75%);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ambient-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.45) 0%, transparent 70%);
  filter: blur(20px);
}

.render-spec-tag {
  position: relative;
  z-index: 2;
  font-size: 0.875rem;
  font-weight: var(--ds-font-weight-semibold);
  letter-spacing: 0.05em;
  color: var(--ds-color-white);
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: var(--ds-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Hero Controls */
.hero-controls {
  position: absolute;
  bottom: 24px;
  left: 0;
  width: 100%;
  z-index: 5;
}

.hero-controls-inner {
  display: flex;
  justify-content: center;
}

.hero-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
}

.indicator-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.25);
  transition: background-color var(--ds-transition-fast), width var(--ds-transition-fast);
}

.indicator-dot.active {
  background-color: var(--ds-color-white);
  width: 48px;
}

/* 2. Primary Category Tiles Grid */
.category-grid-section {
  background-color: var(--ds-bg-page);
  border-bottom: 1px solid var(--ds-border-subtle);
}

.category-tiles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-tile {
  position: relative;
  background-color: var(--ds-bg-surface-secondary);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-md);
  padding: 28px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
  transition: transform var(--ds-transition-fast), border-color var(--ds-transition-fast), box-shadow var(--ds-transition-fast);
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: var(--ds-border-strong);
  box-shadow: var(--ds-shadow-md);
}

.category-tile-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 90% 10%, rgba(0, 102, 204, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.category-tile-info {
  position: relative;
  z-index: 2;
}

.category-count {
  display: block;
  font-size: 0.75rem;
  font-weight: var(--ds-font-weight-medium);
  color: var(--ds-text-tertiary);
  margin-bottom: 6px;
}

.category-name {
  font-size: 1.125rem;
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-text-primary);
  margin-bottom: 4px;
}

.category-sub {
  font-size: 0.8125rem;
  color: var(--ds-text-secondary);
}

/* 3. Featured Flagship Products Section */
.featured-products-section {
  background-color: var(--ds-bg-surface);
}

.section-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--ds-bg-surface-secondary);
  padding: 4px;
  border-radius: var(--ds-radius-sm);
  border: 1px solid var(--ds-border-subtle);
}

.filter-tab {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: var(--ds-font-weight-medium);
  color: var(--ds-text-secondary);
  border-radius: var(--ds-radius-xs);
  transition: background-color var(--ds-transition-fast), color var(--ds-transition-fast);
}

.filter-tab.active {
  background-color: var(--ds-color-white);
  color: var(--ds-text-primary);
  box-shadow: var(--ds-shadow-xs);
  font-weight: var(--ds-font-weight-semibold);
}

.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  background-color: var(--ds-bg-surface);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform var(--ds-transition-fast), border-color var(--ds-transition-fast), box-shadow var(--ds-transition-fast);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--ds-border-default);
  box-shadow: var(--ds-shadow-md);
}

.product-wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: var(--ds-radius-full);
  background-color: var(--ds-bg-surface);
  border: 1px solid var(--ds-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-text-tertiary);
  transition: background-color var(--ds-transition-fast), color var(--ds-transition-fast), border-color var(--ds-transition-fast);
}

.product-wishlist-btn:hover {
  color: var(--ds-color-danger);
  border-color: var(--ds-color-danger);
  background-color: var(--ds-color-danger-bg);
}

.product-wishlist-btn.is-active {
  color: var(--ds-color-danger);
  background-color: var(--ds-color-danger-bg);
  border-color: var(--ds-color-danger);
}

.product-card-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--ds-bg-surface-secondary);
  border-radius: var(--ds-radius-md);
  margin-bottom: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #ffffff 0%, #f2f4f7 100%);
  padding: 16px;
}

.product-canvas-label {
  font-size: 0.875rem;
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text-tertiary);
  text-align: center;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand-tag {
  font-size: 0.75rem;
  font-weight: var(--ds-font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-brand-accent);
  margin-bottom: 4px;
}

.product-card-title {
  font-size: 1.0625rem;
  font-weight: var(--ds-font-weight-bold);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card-title a {
  color: var(--ds-text-primary);
}

.product-card-title a:hover {
  color: var(--ds-brand-accent);
}

.product-card-summary {
  font-size: 0.8125rem;
  color: var(--ds-text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ds-border-subtle);
}

.price-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.current-price {
  font-size: 1.1875rem;
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-text-primary);
}

.compare-price {
  font-size: 0.875rem;
  color: var(--ds-text-muted);
  text-decoration: line-through;
}

.save-tag {
  font-size: 0.6875rem;
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-color-success);
  background-color: var(--ds-color-success-bg);
  padding: 2px 6px;
  border-radius: var(--ds-radius-xs);
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* 4. Split Dual Promotional Banners */
.promo-banners-section {
  background-color: var(--ds-bg-page);
  padding-top: 0;
}

.promo-grid-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.promo-banner-card {
  border-radius: var(--ds-radius-lg);
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.promo-dark {
  background: linear-gradient(135deg, #101216 0%, #1c1f26 100%);
  color: var(--ds-color-white);
  border: 1px solid var(--ds-border-dark);
}

.promo-dark .promo-kicker {
  color: #70b4ff;
}

.promo-dark .promo-title {
  color: var(--ds-color-white);
}

.promo-dark .promo-desc {
  color: var(--ds-color-gray-300);
}

.promo-accent {
  background: linear-gradient(135deg, #f0f4f8 0%, #e6eff7 100%);
  color: var(--ds-text-primary);
  border: 1px solid var(--ds-border-default);
}

.promo-kicker {
  font-size: 0.8125rem;
  font-weight: var(--ds-font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.promo-title {
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: var(--ds-font-weight-bold);
  margin-bottom: 12px;
  line-height: 1.2;
}

.promo-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 480px;
}

/* 5. Signature Customer Services Pillars */
.services-feature-section {
  background-color: var(--ds-bg-surface-secondary);
  border-top: 1px solid var(--ds-border-subtle);
  border-bottom: 1px solid var(--ds-border-subtle);
}

.services-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-pillar-card {
  background-color: var(--ds-bg-surface);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: transform var(--ds-transition-fast), box-shadow var(--ds-transition-fast);
}

.service-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ds-shadow-md);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--ds-radius-sm);
  background-color: var(--ds-brand-accent-subtle);
  color: var(--ds-brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pillar-title {
  font-size: 1.125rem;
  font-weight: var(--ds-font-weight-bold);
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ds-text-secondary);
  margin-bottom: 20px;
  flex: 1;
}

.pillar-link {
  font-size: 0.8125rem;
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-brand-accent);
  display: inline-flex;
  align-items: center;
}

.pillar-link:hover {
  color: var(--ds-brand-accent-hover);
}

/* 6. Physical Flagship Experience Stores Teaser */
.stores-teaser-section {
  background-color: var(--ds-bg-page);
}

.stores-teaser-card {
  background: linear-gradient(135deg, #090a0f 0%, #161a23 100%);
  border-radius: var(--ds-radius-xl);
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 48px;
  border: 1px solid var(--ds-border-dark);
}

.stores-teaser-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stores-title {
  font-size: clamp(1.75rem, 2.5vw, 2.375rem);
  color: var(--ds-color-white);
  margin-top: 8px;
  margin-bottom: 14px;
}

.stores-desc {
  font-size: 1rem;
  color: var(--ds-color-gray-300);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 520px;
}

.stores-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stores-cities-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.city-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ds-radius-md);
  padding: 14px 20px;
  font-size: 0.9375rem;
  color: var(--ds-color-gray-200);
}

.city-pill span {
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-color-white);
}

/* 7. Verified Newsletter / Technical Release Briefing */
.newsletter-section {
  background-color: var(--ds-bg-surface-secondary);
  border-top: 1px solid var(--ds-border-subtle);
}

.newsletter-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  margin-top: 6px;
  margin-bottom: 10px;
}

.newsletter-desc {
  font-size: 0.9375rem;
  color: var(--ds-text-secondary);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.newsletter-input-group {
  display: flex;
  width: 100%;
  max-width: 520px;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 18px;
  font-size: 0.9375rem;
  border-radius: var(--ds-radius-sm);
  border: 1px solid var(--ds-border-default);
  background-color: var(--ds-color-white);
  color: var(--ds-text-primary);
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--ds-brand-accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.newsletter-status-msg {
  font-size: 0.875rem;
  font-weight: var(--ds-font-weight-medium);
  min-height: 20px;
}

.newsletter-status-msg.success {
  color: var(--ds-color-success);
}

.newsletter-status-msg.error {
  color: var(--ds-color-danger);
}

.newsletter-disclaimer {
  font-size: 0.75rem;
  color: var(--ds-text-tertiary);
}

.newsletter-disclaimer a {
  color: var(--ds-text-secondary);
  text-decoration: underline;
}

/* ------------------------------------------------------------------
   HOME HERO DATA-LOADING SKELETON
   These are direct children of #home-hero-content, so they land in the
   same two grid columns as .hero-text-col / .hero-visual-col (no layout
   shift). home.js overwrites them the moment the hero product arrives,
   and hides the whole section when no product is live.
------------------------------------------------------------------- */
.home-hero-skeleton-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.home-hero-skeleton-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 440px;
  border-radius: 28px;
}

@media (max-width: 768px) {
  .home-hero-skeleton-text {
    align-items: center;
  }
}
