/* TSW Finds luxury pass: layout, light, and motion layered over the original design. */
:root {
  --glass-line: rgba(126, 187, 255, .27);
  --glass-gold: rgba(255, 202, 90, .18);
}

body {
  overflow-x: clip;
  background:
    radial-gradient(circle at 78% 9%, rgba(16, 80, 161, .24), transparent 29%),
    radial-gradient(circle at 15% 34%, rgba(0, 77, 156, .12), transparent 28%),
    linear-gradient(180deg, #030812 0%, #07162b 46%, #030a17 77%, #02060d 100%);
}
html { overflow-x: clip; }
.ambient-one { right: 0; }
.ambient-two { left: 0; }

.glass {
  background:
    linear-gradient(120deg, rgba(255,255,255,.055), transparent 19%, transparent 72%, rgba(65,146,248,.035)),
    linear-gradient(145deg, rgba(9,29,58,.72), rgba(4,15,34,.67));
  border: 1px solid var(--glass-line);
  box-shadow:
    inset 0 1px 0 rgba(224,240,255,.13),
    inset 0 -1px 0 rgba(4,11,25,.55),
    0 22px 60px rgba(0,0,0,.32),
    0 0 0 1px rgba(255,193,72,.035);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
}
.glass:hover { border-color: rgba(255,201,92,.29); }
.site-header { transition: padding .35s ease; }
.site-header.scrolled { padding-top: 6px; }
.site-header.scrolled .header-inner {
  background:
    linear-gradient(120deg, rgba(255,255,255,.06), transparent 24%),
    rgba(5,18,39,.89);
  backdrop-filter: blur(24px) saturate(1.12);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
  border-color: rgba(157,197,255,.38);
}
.mobile-nav { background: rgba(5,18,39,.9); }
.mobile-nav .active { color: var(--gold); background: rgba(255,198,74,.08); }
.motion-ready .page-ready .brand-logo { animation: brandArrival .7s both; }
@keyframes brandArrival {
  from { opacity: 0; transform: translateY(-8px); filter: brightness(.7); }
  to { opacity: 1; transform: none; filter: brightness(1); }
}

.hero {
  min-height: min(740px, calc(100svh - 82px));
  grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr);
  gap: clamp(12px, 2.2vw, 34px);
  padding-block: clamp(54px, 6vw, 96px) 54px;
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  width: 72%;
  height: 83%;
  right: -9%;
  top: 1%;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(8,76,154,.24), transparent 68%);
  transform: translate3d(0, calc(var(--hero-scroll, 0) * 34px), 0);
}
.hero-copy {
  position: relative;
  z-index: 3;
  transform: translate3d(0, calc(var(--hero-scroll, 0) * -26px), 0);
  opacity: calc(1 - var(--hero-scroll, 0) * .19);
  will-change: transform;
}
.hero h1 {
  font-size: clamp(45px, 4.25vw, 64px);
  line-height: 1.03;
  margin-bottom: 20px;
}
.hero h1 .hero-line {
  display: block;
  width: fit-content;
  background: none;
  color: #f6f8ff;
  -webkit-background-clip: initial;
  background-clip: initial;
}
.hero h1 .hero-line-gold {
  position: relative;
  background: linear-gradient(105deg,#ffe89e 0%,#ffba37 25%,#fff2c9 43%,#ffba37 60%,#e89410 100%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero h1 .hero-line-gold::after {
  display: none;
}
.page-ready .hero h1 .hero-line-gold {
  animation: goldSweep 1.1s 1.05s ease-out both;
}
@keyframes goldSweep {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}
.motion-ready .hero-enter {
  opacity: 0;
  transform: translate3d(0, 25px, 0);
  filter: blur(4px);
}
.motion-ready .page-ready .hero-enter {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  transition: opacity .78s ease var(--enter-delay, 0s),
              transform .88s cubic-bezier(.2,.8,.2,1) var(--enter-delay, 0s),
              filter .72s ease var(--enter-delay, 0s);
}
.hero-subtitle { max-width: 530px; }
.trust-row { gap: clamp(16px, 2.3vw, 30px); }
.hero-visual {
  min-height: 0;
  width: 100%;
  aspect-ratio: 1672/941;
  isolation: isolate;
  transform: translate3d(0, calc(var(--hero-scroll, 0) * 32px), 0);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 1%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,165,32,.18), rgba(27,109,210,.11) 55%, transparent 72%);
  filter: blur(28px);
  animation: lightBreathe 7s ease-in-out infinite;
}
@keyframes lightBreathe {
  50% { transform: translateY(-6px) scale(1.03); opacity: .72; }
}
.hero-picture {
  display: block;
  width: 100%;
  aspect-ratio: 1672/941;
  z-index: 2;
  transform: scale(calc(1.035 - var(--hero-scroll, 0) * .035));
  transform-origin: center center;
}
.hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672/941;
  object-fit: contain;
  border-radius: 0;
  mask-image: radial-gradient(ellipse 72% 52% at 50% 50%, #000 65%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 72% 52% at 50% 50%, #000 65%, transparent 100%);
  filter: saturate(1.06) contrast(1.035);
  box-shadow: none;
}
.hero-badge {
  right: 8%;
  bottom: 4%;
  box-shadow: 0 8px 26px rgba(0,0,0,.38);
}
.orbit {
  pointer-events: none;
  z-index: 1;
  border-width: 1px;
  opacity: .5;
  animation: orbitDrift 7s ease-in-out infinite;
}
.orbit-a {
  width: 84%;
  height: 45%;
  border-color: rgba(255,183,56,.45);
  transform: rotate(-11deg);
}
.orbit-b {
  width: 76%;
  height: 37%;
  border-color: rgba(68,165,255,.49);
  animation-delay: -2.5s;
  transform: rotate(10deg);
}
@keyframes orbitDrift {
  50% { translate: 0 -6px; opacity: .72; }
}

.panel { scroll-margin-top: 112px; padding: 25px; }
.ecosystem { scroll-margin-top: 105px; }
.category-card, .brand-card, .product-card, .filter-chip {
  box-shadow: inset 0 1px 0 rgba(230,244,255,.08), 0 8px 24px rgba(0,0,0,.13);
}
.category-card, .product-card, .brand-card {
  background:
    linear-gradient(125deg, rgba(255,255,255,.045), transparent 23%),
    linear-gradient(165deg, rgba(14,39,72,.77), rgba(5,18,39,.73));
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}
.category-card::after, .product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg,transparent 34%,rgba(255,231,174,.14) 50%,transparent 64%);
  transform: translateX(-150%);
  transition: transform .75s ease;
}
.product-media::after { z-index: 2; }
.category-card:hover::after, .product-card:hover .product-media::after {
  transform: translateX(150%);
}
.category-card { contain: paint; }
.category-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  transition: filter .35s ease;
}
.category-card:hover img { filter: brightness(1.06); }
.category-card .category-label { min-height: 52px; }
.filter-row { padding: 6px 0 16px; contain: paint; }
.filter-chip {
  background: linear-gradient(135deg,rgba(18,43,74,.69),rgba(4,18,40,.66));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.product-card { min-width: 0; min-height: 330px; }
.product-media {
  aspect-ratio: 800/492;
  overflow: hidden;
  isolation: isolate;
  background: #07152a;
}
.product-media::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(4,14,30,.5), transparent 34%, transparent 66%, rgba(4,14,30,.5)),
    var(--media-image) center / cover no-repeat;
  filter: blur(16px) brightness(.7) saturate(1.1);
  opacity: 0;
}
.product-card[data-media-shape="square"] .product-media::before,
.product-card[data-media-shape="four-three"] .product-media::before { opacity: 1; }
.product-media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
.product-media .badge, .product-media .heart { z-index: 3; }
.product-body h3 { font-size: 16px; line-height: 1.23; }
.product-body p { font-size: 12px; }
.offer-card:hover, .brand-card:hover {
  border-color: rgba(255,201,86,.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 18px 36px rgba(0,0,0,.3), 0 0 25px rgba(255,178,34,.1);
}
.brand-card { transition: transform .3s ease,border-color .3s ease,box-shadow .3s ease; }
.brand-card:hover { transform: translateY(-4px); }
.brand-card img { object-fit: contain; }
.search-dialog, .modal-card {
  background:
    linear-gradient(120deg,rgba(255,255,255,.06),transparent 26%),
    rgba(5,18,40,.78);
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
}

/* Each element enters once as it reaches the viewport. */
.motion-ready .reveal-item {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(.982);
  transition: opacity .7s ease var(--reveal-delay, 0ms),
              transform .82s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms);
}
.motion-ready .reveal-item.reveal-left { transform: translate3d(-24px, 8px, 0); }
.motion-ready .reveal-item.reveal-right { transform: translate3d(24px, 8px, 0); }
.motion-ready .reveal-item.in-view {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
}
.offer-grid .coupon-card { --reveal-delay: 90ms; }
.ecosystem-grid .brand-card:nth-child(2) { --reveal-delay: 75ms; }
.ecosystem-grid .brand-card:nth-child(3) { --reveal-delay: 150ms; }
.ecosystem-grid .brand-card:nth-child(4) { --reveal-delay: 225ms; }
.ecosystem-grid .brand-card:nth-child(5) { --reveal-delay: 300ms; }

@media (min-width: 1500px) {
  .product-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
}
@media (min-width: 1101px) and (max-width: 1499px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (min-width: 720px) and (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 48px;
  }
  .hero-copy { transform: translate3d(0, calc(var(--hero-scroll,0) * -14px), 0); }
  .hero-visual { transform: translate3d(0, calc(var(--hero-scroll,0) * 14px), 0); }
  .hero-picture { transform: scale(calc(1.02 - var(--hero-scroll,0) * .02)); }
  .hero-badge { bottom: 2%; }
  .panel { scroll-margin-top: 90px; }
  .ecosystem { scroll-margin-top: 88px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 580px) {
  .hero { padding-top: 38px; padding-bottom: 34px; }
  .hero h1 { font-size: clamp(43px, 10vw, 55px); }
  .hero-visual { min-height: 0; }
  .hero-image { height: auto; border-radius: 0; }
  .hero-badge { right: 3%; bottom: 0; font-size: 10px; }
  .trust-row { gap: 14px; }
  .trust-icon { width: 37px; height: 37px; }
  .trust-item span:last-child { font-size: 12px; }
  .panel { padding: 16px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-media { aspect-ratio: 800/492; }
  .brand-card img { height: 72px; }
  .offer-card { min-height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy,.hero-visual,.hero-picture,.hero::before { transform: none !important; opacity: 1 !important; }
  .hero-enter,.reveal-item { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-line-gold::after { display: none; }
}
