/**
 * Halaman awal — pemilih produk F&B / Retail
 */

body.product-hub-mode {
  background: #f4f7fc;
}

body.product-hub-mode .header {
  background: rgba(255, 255, 255, 0.65);
  border-bottom-color: transparent;
}

body.product-hub-mode .header--scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--line);
}

/* ——— Section shell ——— */
.product-hub {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 32px) 0 64px;
  min-height: min(100vh, 960px);
  display: flex;
  align-items: center;
}

.product-hub__inner {
  position: relative;
  z-index: 1;
}

.product-hub__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.product-hub__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: hubOrbFloat 18s ease-in-out infinite;
}

.product-hub__orb--a {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.45) 0%, transparent 70%);
}

.product-hub__orb--b {
  width: min(480px, 65vw);
  height: min(480px, 65vw);
  bottom: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
  animation-delay: -6s;
}

.product-hub__orb--c {
  width: min(320px, 50vw);
  height: min(320px, 50vw);
  top: 35%;
  left: 42%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, transparent 70%);
  animation-delay: -12s;
}

.product-hub__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.5;
}

@keyframes hubOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, 3%) scale(1.04); }
  66% { transform: translate(-2%, -2%) scale(0.98); }
}

/* ——— Header copy ——— */
.product-hub__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.product-hub__title {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 16px;
}

.product-hub__title-accent {
  background: linear-gradient(135deg, #059669 0%, #2563eb 55%, #0d9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-hub__lead {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--ink-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 24px;
}

.product-hub__lead strong {
  color: var(--ink);
  font-weight: 700;
}

.product-hub__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}

.product-hub__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.product-hub__trust .icon {
  color: var(--primary-hover);
}

/* ——— Product cards ——— */
.product-picker {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 48px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  z-index: 1;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s;
}

.product-card * {
  pointer-events: none;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-6px);
  outline: none;
  box-shadow:
    0 8px 16px rgba(15, 23, 42, 0.06),
    0 32px 64px rgba(15, 23, 42, 0.12);
}

.product-card--fnb:hover,
.product-card--fnb:focus-visible {
  border-color: rgba(16, 185, 129, 0.35);
}

.product-card--retail:hover,
.product-card--retail:focus-visible {
  border-color: rgba(37, 99, 235, 0.35);
}

.product-card__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-subtle);
}

.product-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card__visual img {
  transform: scale(1.05);
}

.product-card__visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.55) 100%);
  pointer-events: none;
}

.product-card__visual .product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  margin: 0;
  z-index: 2;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 24px 24px;
  flex: 1;
}

.product-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 12px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--primary-hover);
}

.product-card--retail .product-card__icon {
  color: #2563eb;
}

.product-card__badge {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(5, 150, 105, 0.92);
  padding: 6px 12px;
  border-radius: 999px;
}

.product-card__badge--retail {
  background: rgba(37, 99, 235, 0.92);
}

.product-card__name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.product-card__desc {
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.product-card__tags li {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--bg-subtle);
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover .product-card__cta {
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.45);
}

.product-card--retail .product-card__cta {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.product-card--retail:hover .product-card__cta {
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

.product-card__cta .icon {
  transform: rotate(-45deg);
  transition: transform 0.25s;
}

.product-card:hover .product-card__cta .icon {
  transform: rotate(0deg) translate(2px, -2px);
}

.product-hub__footnote {
  text-align: center;
  margin-top: 32px;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}

.product-hub__footnote a {
  color: var(--primary-hover);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-hub__footnote a:hover {
  color: var(--ink);
}

/* ——— Entrance animation ——— */
.hub-animate {
  opacity: 0;
  transform: translateY(24px);
  animation: hubFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hub-animate--1 { animation-delay: 0.12s; }
.hub-animate--2 { animation-delay: 0.22s; }
.hub-animate--3 { animation-delay: 0.32s; }

@keyframes hubFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-animate,
  .product-hub__orb {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .product-card:hover .product-card__visual img {
    transform: none;
  }
}

@media (max-width: 768px) {
  .product-hub {
    min-height: auto;
    padding-bottom: 48px;
  }

  .product-picker {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-hub__header {
    margin-bottom: 32px;
  }

  .product-card__icon {
    margin-top: -32px;
  }
}
