.hero-band {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + 128px);
  padding-bottom: 136px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 250, 250, 0.96)),
    var(--colors-canvas-soft);
}

.hero-band::before {
  position: absolute;
  inset: 32px 0 auto;
  height: 420px;
  background:
    radial-gradient(circle at 20% 45%, var(--colors-gradient-develop-start), transparent 30%),
    radial-gradient(circle at 38% 45%, var(--colors-gradient-develop-end), transparent 34%),
    radial-gradient(circle at 54% 42%, var(--colors-gradient-preview-start), transparent 33%),
    radial-gradient(circle at 68% 44%, var(--colors-gradient-preview-end), transparent 34%),
    radial-gradient(circle at 82% 46%, var(--colors-gradient-ship-start), transparent 30%),
    radial-gradient(circle at 92% 46%, var(--colors-gradient-ship-end), transparent 30%);
  content: "";
  filter: blur(72px);
  opacity: 0.09;
  pointer-events: none;
}

.hero-band::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--colors-hairline);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  justify-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 760px;
  text-align: center;
}

.mono-eyebrow {
  margin-bottom: 16px;
  color: var(--colors-body);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.badge-pill,
.mono-eyebrow {
  color: var(--colors-muted);
}

.hero-copy h1,
.section-heading h2,
.integration-copy h3,
.product-info h3 {
  margin: 0;
  color: var(--colors-ink);
  font-family: var(--font-display);
  font-weight: 600;
}

.hero-copy h1 {
  max-width: 780px;
  margin-top: 0;
  font-size: 64px;
  letter-spacing: -2.4px;
  line-height: 64px;
}

.hero-copy > p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--colors-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.scroll-down-arrow {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  color: var(--colors-ink);
  animation: bounce-down 2s ease infinite;
  transition: color 160ms ease;
}

.scroll-down-arrow:hover {
  color: var(--colors-muted);
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.brands-section {
  padding-block: 120px;
  background: var(--colors-canvas);
  border-block: 1px solid var(--colors-hairline-soft);
}

.section-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}

.section-heading h2 {
  max-width: 780px;
  font-size: 48px;
  letter-spacing: -2px;
  line-height: 48px;
}

.brands-disclaimer {
  max-width: 600px;
  margin: 0;
  color: var(--colors-muted);
  font-size: 13px;
  line-height: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1240px;
  margin-inline: auto;
}

.product-grid-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border: 1px dashed var(--colors-hairline);
  border-radius: 8px;
  color: var(--colors-muted);
  font-size: 15px;
  text-align: center;
}

.scroll-carousel {
  --carousel-fade: transparent;
}

.scroll-arrow {
  display: none;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.brand-slider {
  --brand-total: 14;
  --brand-visible: 5;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--colors-hairline);
  border-bottom: 1px solid var(--colors-hairline);
  background: var(--colors-canvas);
  box-shadow: var(--shadow-sm);
}

.brand-slider::before,
.brand-slider::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 72px;
  content: "";
  pointer-events: none;
}

.brand-slider::before {
  left: 0;
  background: linear-gradient(90deg, var(--colors-canvas), transparent);
}

.brand-slider::after {
  right: 0;
  background: linear-gradient(270deg, var(--colors-canvas), transparent);
}

.brand-track {
  display: flex;
  width: calc((var(--brand-total) / var(--brand-visible)) * 100%);
  animation: brandMarquee 34s linear infinite;
}

.brand-logo {
  display: inline-flex;
  flex: 0 0 calc(100% / var(--brand-total));
  min-height: 164px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--colors-hairline);
  cursor: pointer;
}

.brand-logo img {
  display: block;
  width: auto;
  max-width: 138px;
  max-height: 42px;
  filter: grayscale(1) brightness(0);
  opacity: 0.74;
  object-fit: contain;
}

@keyframes brandMarquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-track {
    animation: none;
  }
}

.bestsellers {
  background: var(--colors-canvas-soft);
  border-bottom: 1px solid var(--colors-hairline-soft);
}

.product-mockup-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 8px;
  align-content: start;
  background: var(--colors-canvas);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: box-shadow 160ms ease;
}
.product-mockup-card:hover {
  box-shadow: var(--shadow-lg);
}

.product-mockup-card,
.testimonial-card,
.cta-panel {
  border: 1px solid rgba(23, 21, 18, 0.08);
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 8px 8px 0 0;
  background: #f9f9f9;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 88px;
  align-items: start;
  padding: 14px 16px 12px;
  border-top: 1px solid var(--colors-hairline);
}

.product-info > div {
  min-width: 0;
}

.product-info h3 {
  overflow-wrap: anywhere;
  display: -webkit-box;
  overflow: hidden;
  font-size: 18px;
  letter-spacing: -0.6px;
  line-height: 24px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-info p {
  margin: 6px 0 0;
  color: var(--colors-muted);
  font-size: 14px;
  line-height: 20px;
}

.product-info strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--colors-ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.product-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.product-price-original {
  color: var(--colors-muted);
  font-size: 12px;
  font-weight: 400;
}

.bundle-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 16px;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border: none;
  background: #c0392b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.color-swatch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.color-swatch {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid rgba(23, 21, 18, 0.18);
  border-radius: 3px;
  background: var(--swatch-color);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.color-swatch-more {
  display: inline-flex;
  min-height: 16px;
  align-items: center;
  color: var(--colors-muted);
  font-size: 12px;
  line-height: 16px;
}

.arrivals-section {
  background: var(--colors-canvas);
  border-bottom: 1px solid var(--colors-hairline-soft);
}

.bundles-section {
  background: var(--colors-canvas-soft);
  border-bottom: 1px solid var(--colors-hairline-soft);
}

.testimonials-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--colors-primary);
  color: var(--colors-on-primary);
  border-top: 0;
}

.testimonials-section .section-heading h2 {
  color: var(--colors-on-primary);
}

.testimonials-section .badge-pill {
  color: var(--colors-on-primary);
}

.testimonial-card {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 24px;
  border-radius: 8px;
  background: var(--colors-primary-elevated);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0px 8px 24px -20px rgba(0, 0, 0, 0.6);
}

.testimonial-card figcaption {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
}

.testimonial-card strong {
  display: block;
  color: var(--colors-on-primary);
  font-size: 14px;
  font-weight: 600;
}

.testimonial-card small {
  color: var(--colors-muted);
  font-size: 13px;
}

.rating-stars {
  color: var(--colors-warning);
  font-size: 14px;
  letter-spacing: 1px;
}

.testimonial-card blockquote {
  margin: 0;
  color: var(--colors-on-primary-soft);
}

.cta-section {
  background: var(--colors-canvas-soft);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 64px 24px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 250, 250, 0.94)),
    var(--colors-canvas);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.cta-panel::before {
  position: absolute;
  inset: auto 12% -48px;
  height: 120px;
  background:
    radial-gradient(circle at 20% 50%, var(--colors-gradient-develop-start), transparent 34%),
    radial-gradient(circle at 50% 50%, var(--colors-gradient-preview-end), transparent 36%),
    radial-gradient(circle at 80% 50%, var(--colors-gradient-ship-end), transparent 34%);
  content: "";
  filter: blur(54px);
  opacity: 0.12;
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  margin: 0;
  color: var(--colors-ink);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 48px;
}

.cta-panel p {
  max-width: 520px;
  margin: 0;
  color: var(--colors-body);
  font-size: 16px;
  line-height: 24px;
}

.cart-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  width: min(480px, calc(100% - 32px));
  padding: 12px;
  border-radius: 8px;
  background: var(--colors-canvas);
  box-shadow: inset 0 0 0 1px #00000014, 0px 1px 1px #00000005, 0px 8px 16px -4px #0000000a, 0px 24px 32px -8px #0000000f;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cart-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cart-toast img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-toast-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cart-toast-copy span {
  color: var(--colors-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
}

.cart-toast-copy strong {
  overflow: hidden;
  color: var(--colors-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-action,
.toast-close {
  min-height: 32px;
  border: 1px solid var(--colors-hairline);
  background: var(--colors-canvas);
  color: var(--colors-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.toast-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 100px;
}

.toast-close {
  display: grid;
  place-items: center;
  width: 32px;
  padding: 0;
  border-radius: 9999px;
  line-height: 1;
}

.toast-action [data-lucide] {
  width: 14px;
  height: 14px;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-slider {
    --brand-visible: 4;
  }

  .product-info {
    min-height: 84px;
  }
}

@media (max-width: 767px) {
  .hero-band {
    padding-top: calc(var(--nav-height) + 56px);
  }

  .hero-copy h1 {
    font-size: 36px;
    letter-spacing: -1.2px;
    line-height: 40px;
  }

  .hero-copy > p {
    font-size: 16px;
    font-weight: 400;
  }

  .hero-actions,
  .hero-actions .button-primary,
  .hero-actions .button-secondary {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .section-heading h2 {
    font-size: 36px;
    letter-spacing: -1.2px;
    line-height: 40px;
  }

  .bestsellers .scroll-carousel,
  .arrivals-section .scroll-carousel,
  .bundles-section .scroll-carousel {
    position: relative;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .scroll-carousel .product-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    max-width: none;
    padding: 0 16px 8px;
    scroll-padding-inline: 16px;
  }

  .scroll-carousel .product-grid::-webkit-scrollbar {
    display: none;
  }

  .scroll-carousel .product-mockup-card {
    flex: 0 0 265px;
    scroll-snap-align: start;
    padding: 0;
  }

  .scroll-arrow {
    display: none !important;
  }

  .scroll-carousel::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 52px;
    background: linear-gradient(to right, transparent, rgba(23, 21, 18, 0.04));
    content: "";
    pointer-events: none;
  }

  .brand-slider {
    --brand-visible: 2;
  }

  .brand-logo {
    min-height: 132px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .product-mockup-card {
    padding: 0;
  }

  .product-info {
    min-height: auto;
    padding: 14px 16px 12px;
  }

  .product-info h3 {
    font-size: 18px;
    line-height: 24px;
  }

  .cta-panel h2 {
    font-size: 36px;
    letter-spacing: -1.2px;
    line-height: 40px;
  }

  .cart-toast {
    right: 16px;
    bottom: 16px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .toast-close {
    grid-column: 3;
    grid-row: 1;
  }

  .toast-action {
    grid-column: 2 / 4;
    justify-self: start;
  }
}
