/* ---------- Base / reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  background: #0b0b10; /* shown before videos load */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Background video wall ---------- */
.bg-wall {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: grid;
  gap: 3px;
  background: #0b0b10;
  /* Phone: 2x2 grid */
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

/* Computer: 4 videos side by side */
@media (min-width: 768px) {
  .bg-wall {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
  }
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%),
    rgba(0, 0, 0, 0.35);
}

/* ---------- Hero content ---------- */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  gap: 1rem;
}

.avatar {
  width: clamp(96px, 22vw, 140px);
  height: clamp(96px, 22vw, 140px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background: linear-gradient(135deg, #25f4ee, #fe2c55) border-box;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.handle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.handle:hover {
  color: #fff;
  text-decoration: underline;
}

.headline {
  font-size: clamp(1.6rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 18ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

/* ---------- CTA button (dead center) ---------- */
.cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: clamp(0.9rem, 2.5vw, 1.15rem) clamp(2.4rem, 8vw, 3.6rem);
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #fe2c55, #ff6b3d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 6px rgba(0, 0, 0, 0.18),
    0 10px 35px rgba(254, 44, 85, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  animation: pulse 2.4s ease-in-out infinite;
  touch-action: manipulation;
}

/* Glossy sheen that sweeps across the button */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-110%);
  animation: sheen 3.4s ease-in-out infinite;
  pointer-events: none;
}

.cta-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 6px rgba(0, 0, 0, 0.18),
    0 14px 45px rgba(254, 44, 85, 0.6);
}

.cta:hover .cta-arrow,
.cta:focus-visible .cta-arrow {
  transform: translateX(4px);
}

.cta:active {
  transform: scale(0.97);
}

@keyframes pulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 6px rgba(0, 0, 0, 0.18), 0 10px 35px rgba(254, 44, 85, 0.45); }
  50%      { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 6px rgba(0, 0, 0, 0.18), 0 10px 50px rgba(254, 44, 85, 0.75); }
}

@keyframes sheen {
  0%        { transform: translateX(-110%); }
  60%, 100% { transform: translateX(110%); }
}

@media (prefers-reduced-motion: reduce) {
  .cta { animation: none; }
  .cta::before { animation: none; }
  .dropdown-panel { transition: none; }
  .chevron { transition: none; }
}

/* ---------- Recommended Products dropdown ---------- */
.dropdown {
  width: min(700px, 100%);
  margin-top: 1rem;
}

.dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  font: inherit;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.dropdown.open .chevron {
  transform: rotate(180deg);
}

/* Expand/collapse animation (grid-rows trick, works with unknown height) */
.dropdown-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease;
}

.dropdown.open .dropdown-panel {
  grid-template-rows: 1fr;
}

.dropdown-inner {
  overflow: hidden;
  min-height: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
  padding-top: 0; /* no gap when closed */
}

.dropdown.open .dropdown-inner {
  padding-top: 0.9rem;
}

@media (min-width: 480px) {
  .dropdown-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Product cards ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

.product-img {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.product-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.product-brand {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.2;
}

/* ---------- Coming soon card ---------- */
.product-card--soon {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.3);
  cursor: default;
}

.product-card--soon:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.4);
}

.product-img--placeholder {
  background: linear-gradient(135deg, rgba(37, 244, 238, 0.22), rgba(254, 44, 85, 0.28));
  color: rgba(255, 255, 255, 0.9);
}

.soon-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  padding: 0.22rem 0.55rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #25f4ee, #fe2c55);
  box-shadow: 0 4px 14px rgba(254, 44, 85, 0.45);
}

/* ---------- Larger screens ---------- */
@media (min-width: 768px) {
  .hero {
    gap: 1.25rem;
  }

  .headline {
    max-width: 22ch;
  }
}
