html {
  scroll-behavior: smooth;
}

body {
  background: #fcf7f2;
  color: #2f241d;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  border-radius: 9999px;
  background: #2f241d;
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.grid-bg {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(214, 119, 59, 0.18), transparent 24%),
    radial-gradient(circle at 80% 0%, rgba(143, 78, 45, 0.1), transparent 22%);
}

.hero-water {
  background:
    radial-gradient(circle at 40% 50%, rgba(241, 201, 143, 0.4), transparent 25%),
    radial-gradient(circle at 70% 60%, rgba(214, 119, 59, 0.24), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(230, 176, 126, 0.2) 100%);
  filter: blur(2px);
}

.hero-ribbon {
  background:
    radial-gradient(circle at 30% 30%, rgba(241, 201, 143, 0.9), rgba(241, 201, 143, 0.18) 34%, transparent 64%),
    radial-gradient(circle at 68% 64%, rgba(214, 119, 59, 0.3), transparent 56%);
  filter: blur(6px);
}

.hero-ribbon-alt {
  transform: scale(1.08);
  opacity: 0.8;
}

.glass-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.gradient-border {
  position: relative;
  background: white;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(214, 119, 59, 0.22), rgba(143, 78, 45, 0.16));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-device::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.text-gradient {
  background: linear-gradient(90deg, #b85f2a, #d6773b 55%, #f1c98f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testimonial-marquee {
  position: relative;
  overflow: hidden;
  padding-block: 0.5rem;
}

.testimonial-marquee::before,
.testimonial-marquee::after {
  content: '';
  position: absolute;
  inset-block: 0;
  width: 4rem;
  z-index: 2;
  pointer-events: none;
}

.testimonial-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #fcf7f2 0%, rgba(252, 247, 242, 0) 100%);
}

.testimonial-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #fcf7f2 0%, rgba(252, 247, 242, 0) 100%);
}

.testimonial-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
}

.testimonial-track.is-ready {
  animation: testimonial-marquee-scroll var(--testimonial-duration, 24s) linear infinite;
}

.testimonial-marquee:hover .testimonial-track.is-ready {
  animation-play-state: paused;
}

.testimonial-card {
  display: flex;
  min-height: 25rem;
  flex: 0 0 min(24rem, calc(100vw - 3rem));
}

@keyframes testimonial-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

@media (min-width: 768px) {
  .testimonial-card {
    min-height: 25.5rem;
    flex-basis: min(26rem, calc(50vw - 3rem));
  }
}

@media (min-width: 1280px) {
  .testimonial-card {
    min-height: 26rem;
    flex-basis: 25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .testimonial-track.is-ready {
    animation: none !important;
    transition: none !important;
  }
}
