*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.vidu-seo-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Header: gradient fade over hero (avoid solid black bar) */
#vidu-root header {
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 100%) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#vidu-root header[data-open="true"] {
  background-color: rgba(19, 12, 20, 0.8) !important;
  background-image: none !important;
}

/* Hero background: fill top of viewport (scraped parallax offset leaves black gap) */
#vidu-root [class*="100svh"] > .absolute.inset-0.h-full.w-full.overflow-hidden {
  transform: translateY(0) scale(1.08) !important;
}

/* Hero slides: scraped -z-20 hides video behind page background */
#vidu-root [class*="100svh"] .absolute.inset-0.h-full.w-full.overflow-hidden > div.absolute.top-0.left-0,
#vidu-root [class*="100svh"] .absolute.inset-0.h-full.w-full.overflow-hidden > div[class*="-z-20"] {
  z-index: 0 !important;
}

/* Preserve full-bleed hero / section imagery */
img, video {
  max-width: none;
}

picture img,
video.h-full,
video.w-full,
img.object-cover,
img.size-full {
  max-width: none;
}

/* Hero carousel slide visibility */
.h-\[100svh\] .absolute.inset-0 > div.absolute.top-0.left-0 {
  transition: opacity 0.35s ease;
}

/* Feature sections: poster fallback until video plays */
.relative.aspect-video {
  overflow: hidden;
}

.relative.aspect-video picture,
.relative.aspect-video picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.relative.aspect-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.relative.aspect-video.vidu-video-playing picture {
  opacity: 0;
  visibility: hidden;
}

/* Testimonial marquee columns */
#vidu-root .animate-scroll-up,
#vidu-root .animate-scroll-down {
  animation-duration: 40s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

#vidu-root .animate-scroll-up {
  animation-name: scrollUp;
}

#vidu-root .animate-scroll-down {
  animation-name: scrollDown;
}

@keyframes scrollUp {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes scrollDown {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

/* FAQ open state helper */
.rounded-16.bg-system-white08 .overflow-hidden.max-h-\[500px\] {
  max-height: 500px;
  opacity: 1;
}

/* Busy modal */
.vidu-busy-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.vidu-busy-modal[hidden] {
  display: none !important;
}

.vidu-busy-modal-open {
  overflow: hidden;
}

.vidu-busy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.vidu-busy-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  background: linear-gradient(180deg, #1a1220 0%, #0d0a0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.vidu-busy-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.vidu-busy-modal__header {
  display: flex;
  justify-content: center;
  padding: 32px 24px 8px;
}

.vidu-busy-modal__header img {
  filter: brightness(1.1);
}

.vidu-busy-modal__body {
  padding: 8px 28px 28px;
  text-align: center;
}

.vidu-busy-modal__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.vidu-busy-modal__desc {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.vidu-busy-modal__desc strong {
  color: #fff;
  font-weight: 600;
}

.vidu-busy-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vidu-busy-modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.vidu-busy-modal__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.vidu-busy-modal__btn--primary {
  background: #fff;
  color: #000;
}

.vidu-busy-modal__btn--primary:not(:disabled):hover {
  opacity: 0.9;
}

.vidu-busy-modal__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.vidu-busy-modal__btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
