:root {
  --bg: #05070d;
  --bg-elevated: rgba(15, 20, 34, 0.86);
  --panel: #0f1525;
  --text: #f2f7ff;
  --muted: #9da9c6;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #42c4ff;
  --available: #35d78d;
  --reserved: #f2bc63;
  --sold: #a98161;
  --radius: 1.1rem;
  --max: 1160px;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  background: radial-gradient(circle at 10% 0%, #162039 0%, transparent 38%), radial-gradient(circle at 100% 100%, #0d2735 0%, transparent 30%), var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  scroll-behavior: smooth;
}

body {
  padding: 1rem 0.9rem 4rem;
  min-height: 100vh;
}

main,
section,
header {
  max-width: var(--max);
  margin: 0 auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Syne, Inter, sans-serif;
  letter-spacing: -0.03em;
}

p { margin: 0; }

.ambient-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(95px);
  z-index: -1;
  animation: floatGlow 9s ease-in-out infinite alternate;
}

.ambient-glow--top {
  top: -140px;
  left: -100px;
  background: rgba(56, 133, 255, 0.26);
}

.ambient-glow--bottom {
  right: -130px;
  bottom: -150px;
  background: rgba(0, 209, 255, 0.18);
}


.hero {
  border: 1px solid rgba(138, 176, 255, 0.2);
  background:
    radial-gradient(circle at 50% 12%, rgba(90, 142, 255, 0.22), transparent 48%),
    radial-gradient(circle at 82% 78%, rgba(255, 168, 84, 0.08), transparent 36%),
    linear-gradient(150deg, #080d19 0%, #060912 38%, #05070d 100%);
  border-radius: 1.4rem;
  padding: 1.05rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(196, 215, 255, 0.16), 0 25px 55px rgba(2, 5, 14, 0.66);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background: radial-gradient(circle at 50% 46%, transparent 35%, rgba(0, 0, 0, 0.52) 100%);
  z-index: 1;
}

.hero::after {
  width: 160%;
  height: 76%;
  left: -30%;
  top: 10%;
  background: linear-gradient(105deg, transparent 37%, rgba(151, 204, 255, 0.15) 50%, transparent 63%);
  animation: heroSweep 9.5s linear infinite;
  z-index: 2;
}

.hero-bg-layer {
  position: absolute;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-layer--one {
  background: radial-gradient(circle at 32% 36%, rgba(72, 136, 255, 0.2), transparent 46%), radial-gradient(circle at 68% 58%, rgba(70, 223, 255, 0.15), transparent 42%);
  filter: blur(28px);
  animation: gradientDrift 14s ease-in-out infinite alternate;
}

.hero-bg-layer--two {
  background: radial-gradient(circle at 50% 70%, rgba(255, 160, 84, 0.09), transparent 44%);
  filter: blur(36px);
  animation: gradientDriftReverse 16s ease-in-out infinite alternate;
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 0.4px, transparent 0.4px);
  background-size: 3px 3px;
  opacity: 0.14;
  mix-blend-mode: soft-light;
}

.hero-content,
.hero-feature {
  position: relative;
  z-index: 4;
}

.hero-content {
  text-align: center;
  animation: heroReveal 760ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.68rem;
  color: #ccddff;
}

h1 {
  margin-top: 0.58rem;
  font-size: clamp(2rem, 8.8vw, 3.8rem);
  line-height: 1;
}

.hero-copy {
  color: #afbddc;
  margin-top: 0.72rem;
  line-height: 1.46;
  max-width: 54ch;
  margin-inline: auto;
}

.hero-actions {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.btn {
  min-height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(130deg, #62dcff, #367bff);
  color: #031224;
  box-shadow: 0 12px 28px rgba(42, 119, 245, 0.32);
}

.btn-secondary {
  border: 1px solid rgba(212, 224, 255, 0.22);
  color: #e8f0ff;
  background: rgba(255, 255, 255, 0.04);
}

.hero-feature {
  margin-top: 1.2rem;
  animation: heroReveal 920ms 90ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-quantum-stage {
  --hero-tilt-x: 0deg;
  --hero-tilt-y: 0deg;
  position: relative;
  min-height: clamp(320px, 70vw, 560px);
  border-radius: 1.25rem;
  border: 1px solid rgba(124, 167, 255, 0.28);
  background: radial-gradient(circle at 50% 0%, rgba(76, 138, 255, 0.2), transparent 36%), linear-gradient(156deg, #050812 0%, #070d1d 56%, #060912 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3.4vw, 1.8rem);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(76, 125, 219, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(76, 125, 219, 0.16) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.36;
  pointer-events: none;
}

.hero-light-trail {
  position: absolute;
  width: min(72vw, 520px);
  height: min(72vw, 520px);
  border-radius: 50%;
  pointer-events: none;
  border: 2px solid rgba(113, 189, 255, 0.44);
  filter: blur(0.3px) drop-shadow(0 0 14px rgba(74, 170, 255, 0.4));
}

.hero-light-trail--one {
  transform: rotate(20deg);
  animation: orbitSpin 15s linear infinite;
}

.hero-light-trail--two {
  width: min(62vw, 440px);
  height: min(62vw, 440px);
  border-color: rgba(255, 158, 84, 0.54);
  transform: rotate(-24deg);
  animation: orbitSpinReverse 11s linear infinite;
}

.hero-shoe-wrap {
  --hero-tilt-x: 0deg;
  --hero-tilt-y: 0deg;
  position: relative;
  z-index: 2;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  width: min(86%, 500px);
  transform-style: preserve-3d;
  transform: perspective(980px) rotateX(var(--hero-tilt-x)) rotateY(var(--hero-tilt-y));
  transition: transform 220ms ease;
  cursor: pointer;
}

.hero-shoe-image {
  width: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.7));
}

.hero-shoe-glow {
  position: absolute;
  inset: auto 16% -9%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 149, 84, 0.54), rgba(53, 123, 255, 0));
  filter: blur(18px);
  pointer-events: none;
}

.hero-cta-shell {
  position: absolute;
  z-index: 3;
  bottom: clamp(0.9rem, 2.4vw, 1.2rem);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding: 0.7rem 0.8rem;
}

.mini-label {
  color: #8cb8ff;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-cta-shell h3 {
  font-size: clamp(0.95rem, 2.3vw, 1.2rem);
  margin-top: 0.25rem;
}

.hero-feature-meta {
  color: #adc2ea;
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.hero-quantum-btn {
  margin-top: 0.52rem;
  border: 1px solid rgba(255, 183, 133, 0.58);
  background: linear-gradient(175deg, rgba(255, 185, 122, 0.2), rgba(26, 18, 10, 0.84));
  color: #ffd9b8;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  min-height: 46px;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 232, 214, 0.2), 0 10px 20px rgba(0, 0, 0, 0.42);
  cursor: pointer;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.6rem;
  margin: 1.4rem 0 0.8rem;
}

.section-meta { color: var(--muted); font-size: 0.82rem; }

.featured-rail,
.chip-row {
  display: flex;
  overflow-x: auto;
  gap: 0.7rem;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}

.featured-tile {
  border: 1px solid var(--line);
  border-radius: 1rem;
  min-width: min(84vw, 330px);
  background: linear-gradient(140deg, rgba(67, 111, 227, 0.22), rgba(11, 15, 28, 0.92));
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 0.65rem;
  padding: 0.65rem;
  cursor: pointer;
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 560ms ease forwards;
}

.featured-tile img {
  width: 100%;
  height: 104px;
  border-radius: 0.9rem;
  object-fit: cover;
}

.featured-tile p,
.featured-tile span {
  color: var(--muted);
  font-size: 0.8rem;
}

.controls {
  position: sticky;
  top: 0;
  z-index: 22;
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(9, 13, 24, 0.86);
  backdrop-filter: blur(12px);
  padding: 0.68rem;
}

.search-shell input,
select {
  width: 100%;
  min-height: 46px;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: #0a1020;
  color: var(--text);
  padding: 0.68rem 0.82rem;
  font-size: 0.92rem;
}

.control-row { margin-top: 0.65rem; }

.compact-row {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #c8d3ee;
  border-radius: 999px;
  padding: 0.52rem 0.86rem;
  white-space: nowrap;
  min-height: 42px;
  font-weight: 600;
  transition: all 220ms ease;
}

.chip.active {
  border-color: rgba(107, 212, 255, 0.6);
  color: white;
  background: rgba(47, 146, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(102, 181, 255, 0.32) inset;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 480ms ease forwards;
  position: relative;
}

.card button {
  all: unset;
  display: block;
  cursor: pointer;
}

.card button:active { transform: scale(0.985); }

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.12) 52%, transparent 66%);
  transform: translateX(-150%);
  transition: transform 580ms ease;
  pointer-events: none;
}

.card:hover::before { transform: translateX(150%); }

.card-image-wrap {
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.card-content { padding: 0.65rem; }

.card-title { font-size: 0.88rem; font-weight: 700; }
.card-meta { color: var(--muted); margin-top: 0.3rem; font-size: 0.79rem; }
.card-price { margin-top: 0.48rem; font-weight: 700; font-size: 0.88rem; }

.card--available { box-shadow: 0 0 0 1px rgba(53, 215, 141, 0.161), 0 9px 28px rgba(24, 116, 73, 0.23); }
.card--reserved { filter: saturate(0.86) brightness(0.95); }
.card--sold {
  filter: saturate(0.6) brightness(0.86);
  box-shadow: 0 0 0 1px rgba(210, 164, 126, 0.196), 0 9px 28px rgba(169, 129, 97, 0.23);
}
.card--archive { background: rgba(15, 19, 31, 0.76); }

.badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.58rem;
  border: 1px solid transparent;
  transition: background 240ms ease, color 240ms ease;
}

.badge.available { color: var(--available); background: rgba(53, 215, 141, 0.14); border-color: rgba(53, 215, 141, 0.32); }
.badge.reserved { color: var(--reserved); background: rgba(242, 188, 99, 0.16); border-color: rgba(242, 188, 99, 0.3); }
.badge.sold { color: #d2a47e; background: rgba(169, 129, 97, 0.18); border-color: rgba(169, 129, 97, 0.34); }

.archive { margin-top: 0.35rem; }

.trust-strip {
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(13, 18, 31, 0.86);
  padding: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.trust-title { font-weight: 700; }
.trust-copy { color: var(--muted); font-size: 0.82rem; margin-top: 0.2rem; line-height: 1.4; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(2, 5, 10, 0.78);
  backdrop-filter: blur(14px);
  display: grid;
  align-items: end;
}

.modal-backdrop[hidden] { display: none; }

.product-panel {
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  background: var(--panel);
  border-top-left-radius: 1.2rem;
  border-top-right-radius: 1.2rem;
  border: 1px solid var(--line);
  animation: slideUp 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.detail-media,
.modal-skeleton {
  width: 100%;
  max-height: 42vh;
  min-height: 230px;
  object-fit: cover;
}

.detail-body { padding: 1rem; }
.detail-body h3 { margin-top: 0.6rem; }

.detail-pills {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.detail-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.38rem 0.65rem;
}

.detail-description { color: #d2def7; line-height: 1.5; margin-top: 0.82rem; }

.whatsapp-row {
  margin-top: 1rem;
  display: grid;
  gap: 0.58rem;
}

.cta {
  border-radius: 0.8rem;
  min-height: 48px;
  text-decoration: none;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.cta.primary { background: linear-gradient(130deg, #3fe895, #17b569); color: #05150d; }
.cta.secondary { background: rgba(255, 255, 255, 0.06); color: white; border: 1px solid var(--line); }

.close-btn {
  position: sticky;
  top: 0.6rem;
  margin-left: auto;
  margin-right: 0.6rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(11, 16, 30, 0.9);
  color: white;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}

.skeleton-card { min-height: 220px; }
.skeleton-image { aspect-ratio: 1/1; }
.skeleton-line { height: 0.66rem; border-radius: 8px; margin-bottom: 0.48rem; }
.skeleton-line.short { width: 60%; }
.skeleton-line.tiny { width: 35%; }

.shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  background-size: 240% 100%;
  animation: shimmer 1.2s linear infinite;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes shimmer { 0% { background-position: 190% 0; } 100% { background-position: -100% 0; } }
@keyframes heroSweep { 0% { transform: translateX(-120%); } 100% { transform: translateX(135%); } }
@keyframes floatGlow { from { transform: translateY(0) scale(1); } to { transform: translateY(-20px) scale(1.06); } }
@keyframes heroReveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gradientDrift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(3%, -4%, 0) scale(1.06); } }
@keyframes gradientDriftReverse { from { transform: translate3d(2%, 3%, 0) scale(1); } to { transform: translate3d(-3%, -2%, 0) scale(1.08); } }
@keyframes orbFloat { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-10px, 12px, 0) scale(1.08); } }
@keyframes orbFloatReverse { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(10px, -10px, 0) scale(1.05); } }
@keyframes heroModelFloat { 0%, 100% { transform: perspective(980px) rotateX(var(--hero-tilt-x)) rotateY(var(--hero-tilt-y)) translateY(0); } 50% { transform: perspective(980px) rotateX(var(--hero-tilt-x)) rotateY(var(--hero-tilt-y)) translateY(-8px); } }
@keyframes heroTagDrift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-10px, 8px, 0); } }
@keyframes heroTagDriftReverse { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(9px, -7px, 0); } }
@keyframes glowPulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.16); } }
@keyframes orbitSpin { from { transform: rotate(20deg); } to { transform: rotate(380deg); } }
@keyframes orbitSpinReverse { from { transform: rotate(-24deg); } to { transform: rotate(-384deg); } }

@media (min-width: 760px) {
  body { padding: 1.4rem 1.8rem 4rem; }
  .hero { padding: 1.45rem; }
  .hero-content { max-width: 620px; text-align: left; }
  .hero-actions { grid-template-columns: auto auto; justify-content: start; }
  .hero-feature { margin-top: 1.7rem; }
  .hero-quantum-stage { min-height: clamp(360px, 42vw, 560px); }
  .hero-cta-shell { bottom: 1.2rem; }
  .compact-row { grid-template-columns: repeat(3, 220px); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-panel {
    margin: auto;
    border-radius: 1rem;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .detail-media,
  .modal-skeleton {
    max-height: 100%;
    height: 100%;
  }
  .close-btn {
    position: absolute;
    right: 1rem;
    top: 1rem;
    margin: 0;
  }
  .card:hover { transform: translateY(-3px); }
  .card:hover img { transform: scale(1.05); }
}

@media (min-width: 1024px) {
  .hero { padding: 1.7rem; }
  .hero-content { max-width: 680px; }
  .hero-copy { max-width: 52ch; }
  .hero-shoe-wrap { width: min(78%, 540px); }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
