:root {
  --primary: #7e1417;
  --background-dark: #120808;
  --text-muted: #a1a1aa;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #7e1417 #120808;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
}

/* Sam Zia scrollbar - consistent site-wide */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #120808;
}
::-webkit-scrollbar-thumb {
  background: #7e1417;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a01a1d;
}

body {
  font-family: 'Space Grotesk', sans-serif;
}

/* Material Symbols icons - ensure clean rendering */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Sam Zia background - black with accent glows */
.bg-mesh {
  background-color: #000000;
  position: relative;
  overflow: hidden;
}
.bg-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  filter: contrast(110%) brightness(100%);
}
.spotlight {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
@keyframes pulse-soft {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.05); }
}
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(50px, -30px); }
  66% { transform: translate(-40px, 40px); }
}

/* Sam Zia brand gradient - rich reds with subtle white shine */
.text-gradient {
  background: linear-gradient(90deg, #7e1417 0%, #5a0f11 6%, #8b1a1d 14%, #a01a1d 22%, #c92a2a 32%, #e63946 40%, #fff5f5 44%, #ff6b6b 46%, #e63946 52%, #d63031 60%, #b82c2f 72%, #8b1a1d 86%, #7e1417 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShine 3s linear infinite;
}

@keyframes gradientShine {
  to { background-position: 200% center; }
}

/* Section header accent - gradient fill in text (like syrex purple gradient) */
.text-section-accent {
  background: linear-gradient(90deg, #e63946 0%, #c92a2a 40%, #7e1417 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.btn-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

/* Primary CTA button - standard site-wide (matches index VSL CTA) */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  background: linear-gradient(180deg, #7e1417 0%, #5a0f11 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 30px rgba(126, 20, 23, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  background: linear-gradient(180deg, #5a0f11 0%, #7e1417 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.btn-primary .icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-primary:hover .icon {
  transform: translateX(4px);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.cta-btn {
  background: linear-gradient(180deg, #7e1417 0%, #5a0f11 100%);
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(126, 20, 23, 0.4);
}

.card-hover {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(126, 20, 23, 0.15);
  border-color: rgba(126, 20, 23, 0.4) !important;
}

/* Testimonial & Remember cards - refined glow */
.testimonial-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(126, 20, 23, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(126, 20, 23, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 32px rgba(126, 20, 23, 0.08);
}

.testimonial-avatar {
  background: linear-gradient(135deg, rgba(126, 20, 23, 0.4) 0%, rgba(126, 20, 23, 0.15) 100%);
  border: 1px solid rgba(126, 20, 23, 0.4);
  box-shadow: 0 0 20px rgba(126, 20, 23, 0.15);
}

.remember-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(126, 20, 23, 0.08);
  border-left: 3px solid rgba(126, 20, 23, 0.6);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.remember-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(126, 20, 23, 0.8);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 32px rgba(126, 20, 23, 0.08);
}

/* Site-wide hover effects */
.link-hover {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.link-hover:hover {
  color: #7e1417 !important;
}

.logo-hover {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.logo-hover:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.input-hover {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-hover:hover {
  border-color: rgba(126, 20, 23, 0.4) !important;
}

.embed-shell-hover {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.embed-shell-hover:hover {
  border-color: rgba(126, 20, 23, 0.35) !important;
  box-shadow: 0 0 24px rgba(126, 20, 23, 0.1);
}

.video-thumb-hover {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.group:hover .video-thumb-hover {
  opacity: 0.7 !important;
}

.vsl-thumb-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 10%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

.vsl-thumb-shell .play-btn-hover,
.vsl-thumb-shell .absolute.inset-0.flex.items-center.justify-center {
  z-index: 2;
}

.vsl-thumb-shell:focus-visible {
  outline: 2px solid rgba(126, 20, 23, 0.8);
  outline-offset: 3px;
}

.vsl-thumb-shell:hover .video-thumb-hover {
  transform: scale(1.03);
  opacity: 0.8 !important;
}

.play-btn-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vsl-play-btn {
  width: 68px;
  height: 68px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, #b91e27 0%, #7e1417 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 12px 32px rgba(126, 20, 23, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.vsl-play-icon {
  font-size: 34px;
  transform: translateX(1px);
}

.group:hover .play-btn-hover {
  transform: scale(1.08);
  box-shadow:
    0 18px 40px rgba(126, 20, 23, 0.55),
    0 0 0 8px rgba(126, 20, 23, 0.12);
}

@media (min-width: 640px) {
  .vsl-play-btn {
    width: 78px;
    height: 78px;
  }
}

.group:hover .embed-shell-hover {
  border-color: rgba(126, 20, 23, 0.35) !important;
  box-shadow: 0 0 24px rgba(126, 20, 23, 0.1);
}

.section-glow {
  position: absolute;
  border-radius: 9999px;
  background: #7e1417;
  filter: blur(110px);
  opacity: 0.05;
  pointer-events: none;
}

.embed-shell {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  background: #111;
}

.placeholder-embed {
  min-height: 280px;
  border: 1px dashed rgba(126, 20, 23, 0.45);
  border-radius: 1rem;
  background: rgba(126, 20, 23, 0.08);
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
}

.small-note {
  color: #71717a;
  font-size: 0.75rem;
}

.legal-copy {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  line-height: 1.55;
}

.fade-in-up {
  animation: fadeInUp 0.65s ease forwards;
}

.delay-1 {
  animation-delay: 0.12s;
  opacity: 0;
}

.delay-2 {
  animation-delay: 0.24s;
  opacity: 0;
}

.delay-3 {
  animation-delay: 0.36s;
  opacity: 0;
}

.delay-4 {
  animation-delay: 0.5s;
  opacity: 0;
}

.reveal {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(10px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: filter, opacity, transform;
}

.reveal.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  will-change: auto;
}

/* Staggered fade-in-up for section content when reveal becomes visible */
.reveal .animate-in {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.visible .animate-in {
  animation: fadeInUp 0.65s ease forwards;
}
.reveal.visible .animate-in.delay-1 { animation-delay: 0.12s; }
.reveal.visible .animate-in.delay-2 { animation-delay: 0.24s; }
.reveal.visible .animate-in.delay-3 { animation-delay: 0.36s; }

.modal-shell {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(126, 20, 23, 0.4), 0 0 40px rgba(126, 20, 23, 0.12);
  }
  50% {
    box-shadow: 0 0 36px rgba(126, 20, 23, 0.6), 0 0 72px rgba(126, 20, 23, 0.2);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Mobile & Tablet Responsive Optimizations ── */

/* Touch targets – minimum 44px for interactive elements */
@media (max-width: 768px) {
  .btn-primary {
    min-height: 48px;
    padding: 14px 24px;
    font-size: 14px;
    gap: 8px;
    touch-action: manipulation;
  }

  .btn-primary .icon {
    font-size: 18px;
  }

  /* Reduce spotlight blur radius on mobile for better performance */
  .spotlight {
    filter: blur(80px) !important;
  }

  /* Prevent text overflow in badges */
  .legal-copy {
    font-size: 0.7rem;
    padding: 0 0.25rem;
  }
}

/* Eliminate 300ms tap delay and improve touch responsiveness */
a, button, [role="button"], label, select {
  touch-action: manipulation;
}

/* Small phone specific – very tight viewports */
@media (max-width: 480px) {
  html {
    scroll-behavior: auto;
  }

  /* Disable expensive decorative animations only */
  .spotlight,
  .section-glow {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  /* Ensure any element that relies on animation for its final visible state
     is forced visible when animations are skipped */
  .fade-in-up,
  .animate-in,
  .delay-1,
  .delay-2,
  .delay-3,
  .delay-4 {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
  }

  /* Disable gradient-text shine loop — keep gradient fill, just static */
  .text-gradient,
  .gradient-text {
    animation: none !important;
    background-position: 0% center !important;
  }

  .cta-btn:hover,
  .card-hover:hover {
    transform: none;
    box-shadow: none;
  }

  /* Full-width primary button on smallest screens */
  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  /* Tighten section glows to prevent layout bleed */
  .section-glow {
    opacity: 0.03;
  }
}

/* Touch-device hover state resets – prevents stuck hover states on iOS/Android */
@media (hover: none) and (pointer: coarse) {
  .btn-primary:hover {
    transform: none;
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .btn-primary:hover::after {
    left: -100%;
  }

  .card-hover:hover,
  .testimonial-card:hover,
  .remember-card:hover {
    transform: none;
  }

  .logo-hover:hover {
    opacity: 1;
    transform: none;
  }

  .embed-shell-hover:hover {
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none;
  }

  /* Keep active state for tactile feedback */
  .btn-primary:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/* Tablet optimizations (481px – 1024px) */
@media (min-width: 481px) and (max-width: 1024px) {
  .spotlight {
    filter: blur(100px);
  }
}

/* Screenshot testimonial carousel (Harp-style) */
.testimonial-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
}
.testimonial-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  contain: content;
}
.testimonial-carousel__viewport::-webkit-scrollbar {
  display: none;
}
.testimonial-carousel__track {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  min-width: min-content;
}
.testimonial-carousel__slide {
  flex: 0 0 auto;
  width: 320px;
  max-width: 85vw;
  scroll-snap-align: start;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d0d12;
  aspect-ratio: 9 / 16;
  cursor: zoom-in;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.testimonial-carousel__slide:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 20, 23, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 28px rgba(126, 20, 23, 0.14);
}
.testimonial-carousel__slide:focus-within {
  outline: 2px solid rgba(126, 20, 23, 0.55);
  outline-offset: 2px;
}
.testimonial-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0d0d12;
  display: block;
}
.testimonial-carousel__prev,
.testimonial-carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, border-color 0.2s;
}
.testimonial-carousel__prev:hover,
.testimonial-carousel__next:hover {
  background: rgba(126, 20, 23, 0.4);
  border-color: rgba(126, 20, 23, 0.6);
}
.testimonial-carousel__prev:disabled,
.testimonial-carousel__next:disabled,
.testimonial-carousel__prev.is-disabled,
.testimonial-carousel__next.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(80, 80, 80, 0.28);
  box-shadow: none;
}
.testimonial-carousel__prev {
  left: -12px;
}
.testimonial-carousel__next {
  right: -12px;
}

/* Lightbox style for larger preview */
.testimonial-lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}
.testimonial-lightbox.open {
  display: flex;
}
.testimonial-lightbox__img {
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.testimonial-lightbox__close,
.testimonial-lightbox__prev,
.testimonial-lightbox__next {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-lightbox__close {
  top: 16px;
  right: 16px;
}
.testimonial-lightbox__prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.testimonial-lightbox__next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .testimonial-carousel__prev { left: 4px; }
  .testimonial-carousel__next { right: 4px; }
  .testimonial-carousel__slide { width: 280px; }
  .testimonial-lightbox__prev,
  .testimonial-lightbox__next {
    width: 38px;
    height: 38px;
  }
}
