:root {
  --header-height: 64px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-height);
  padding: 0 clamp(20px, 3vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(9, 9, 11, .86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  background: linear-gradient(90deg, #fff, #a78bfa);
  color: transparent;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  background-clip: text;
  -webkit-background-clip: text;
}

.brand svg {
  flex: none;
  color: #8b5cf6;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, .4));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.access-link,
.header-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.access-link {
  padding: 8px 14px;
  color: #cbd5e1;
}

.access-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.header-buy {
  padding: 8px 18px;
  border: 1px solid rgba(167, 139, 250, .45);
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  box-shadow: 0 8px 22px rgba(109, 40, 217, .25);
}

.header-buy:hover {
  border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 10px 26px rgba(109, 40, 217, .42);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: calc(100svh - var(--header-height));
  min-height: 720px;
  padding: 28px 20px 20px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.hero-copy {
  flex: none;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  max-width: 840px;
  margin: 0 auto 14px;
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.055em;
}

.stationary-3d-text {
  display: inline-block;
  padding-bottom: 4px;
  text-shadow: 0 5px 15px rgba(167, 139, 250, .4);
}

.animated-3d-text-premium {
  display: inline-block;
  min-height: 1.12em;
  padding-bottom: 4px;
  perspective: 1000px;
  transform-style: preserve-3d;
  animation: hero-float 6s ease-in-out infinite alternate;
}

#heroAnimatedWord {
  display: inline-block;
  min-width: 3.8ch;
  transition: opacity .4s ease, transform .4s ease;
}

.gold-shimmer {
  background: linear-gradient(90deg, #f59e0b, #fde68a, #fbbf24, #fff7cc, #f59e0b);
  background-size: 240% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: gold-shimmer 5s linear infinite;
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(90deg, #a78bfa, #f472b6);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-sub {
  max-width: 760px;
  margin: 0 auto;
  color: #cbd5e1;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
}

.proof-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 18px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.proof-badge-icon {
  display: inline-flex;
  color: #fbbf24;
}

.proof-badge-icon,
#badgeRotatorText {
  transition: opacity .25s ease, transform .25s ease;
}

.demo-heading {
  margin: 18px 0 2px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
}

.demo-carousel-wrapper {
  --demo-card-width: 142px;
  --demo-card-height: 252px;
  --demo-carousel-gap: 16px;
  --demo-carousel-pad: 14px;
  position: relative;
  width: min(760px, 100%);
  height: calc(var(--demo-card-height) + (var(--demo-carousel-pad) * 2));
  margin: 0 auto;
  overflow: hidden;
}

.demo-carousel-wrapper::before,
.demo-carousel-wrapper::after {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: 42px;
  content: '';
  pointer-events: none;
}

.demo-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, #09090b, transparent);
}

.demo-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, #09090b, transparent);
}

.demo-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: var(--demo-carousel-pad) 2px;
  overflow-x: auto;
  overflow-y: clip;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  cursor: grab;
  contain: layout paint style;
  touch-action: pan-x pan-y;
}

.demo-carousel::-webkit-scrollbar {
  display: none;
}

.demo-carousel.is-dragging {
  cursor: grabbing;
}

.demo-carousel-virtual-spacer {
  display: block;
  height: 1px;
  pointer-events: none;
}

.demo-vid-card {
  position: absolute;
  top: var(--demo-carousel-pad);
  width: var(--demo-card-width);
  height: var(--demo-card-height);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: #000;
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .35);
  cursor: pointer;
  contain: layout paint style;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .3s ease, box-shadow .3s ease, opacity .3s ease;
}

.demo-vid-card:hover {
  z-index: 2;
  border-color: rgba(139, 92, 246, .65);
  transform: translateY(-7px) scale(1.035);
  box-shadow: 0 20px 38px rgba(0, 0, 0, .5), 0 0 26px rgba(139, 92, 246, .28);
}

.demo-vid-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.8);
  transition: opacity .25s ease, transform .25s ease;
  backdrop-filter: blur(6px);
}

.demo-vid-card:hover .demo-play-btn-overlay,
.demo-vid-card:focus-visible .demo-play-btn-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.demo-vid-label {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 8px 9px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .84), transparent);
  color: rgba(255, 255, 255, .8);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
  pointer-events: none;
}

.carousel-hint {
  margin: -4px auto 0;
  color: #94a3b8;
  font-size: 11px;
}

.hero-cta {
  position: relative;
  z-index: 10;
  display: flex;
  flex: none;
  justify-content: center;
  padding-top: 8px;
}

.hero-buy,
.demo-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid rgba(167, 139, 250, .55);
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(109, 40, 217, .3);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hero-buy:hover,
.demo-action-btn:hover {
  border-color: rgba(255, 255, 255, .6);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(109, 40, 217, .46);
}

.dynamic-bg-container {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background: #09090b;
  pointer-events: none;
}

.dynamic-bg-container::after {
  position: absolute;
  z-index: 8;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, transparent 0, rgba(9, 9, 11, .2) 45%, rgba(9, 9, 11, .72) 100%);
  content: '';
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .18;
  animation: ambient-drift 18s ease-in-out infinite alternate;
}

.bg-glow-1 {
  top: -25%;
  left: 18%;
  width: 58vw;
  height: 58vw;
  background: #7c3aed;
}

.bg-glow-2 {
  right: -12%;
  bottom: -28%;
  width: 48vw;
  height: 48vw;
  background: #db2777;
  animation-delay: -8s;
}

.space-starfield,
.bg-particles,
.bg-keywords,
.bg-floating-sites,
.bg-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.space-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: star-twinkle var(--star-speed, 7s) ease-in-out infinite alternate;
}

.bg-keyword {
  position: absolute;
  padding: 5px 12px;
  border: 1px solid rgba(139, 92, 246, .16);
  border-radius: 999px;
  background: rgba(139, 92, 246, .08);
  color: rgba(248, 250, 252, .42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: keyword-float var(--float-speed, 28s) ease-in-out infinite;
}

.bg-particle {
  position: absolute;
  top: -5%;
  border-radius: 50%;
  background: rgba(139, 92, 246, .45);
  animation: particle-fall var(--fall-speed, 22s) linear infinite;
}

.space-shooting-star {
  position: absolute;
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(-45deg, rgba(255, 255, 255, .75), transparent);
  opacity: 0;
  animation: shooting-star 18s ease-in-out infinite;
}

.s-star-1 { top: 15%; left: 72%; }
.s-star-2 { top: 38%; left: 88%; animation-delay: 7s; animation-duration: 25s; }

.bg-grid {
  opacity: .18;
  background-image: linear-gradient(rgba(139, 92, 246, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 92, 246, .08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, #000, transparent 74%);
}

.bg-site-card {
  position: absolute;
  width: var(--site-width);
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, .18);
  border-radius: 10px;
  background: rgba(15, 17, 23, .82);
  opacity: .5;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .4);
  transform: rotate(var(--site-rotation));
  animation: site-float var(--site-speed) ease-in-out infinite;
}

.bg-site-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.bg-site-card span {
  position: absolute;
  bottom: 6px;
  left: 50%;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(139, 92, 246, .35);
  color: rgba(255, 255, 255, .75);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.modal-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .78);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
  backdrop-filter: blur(12px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-box {
  position: relative;
  width: min(820px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: #09090b;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .75);
  transform: translateY(18px) scale(.97);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.modal-overlay.active .modal-box {
  transform: none;
}

.modal-close-btn {
  position: absolute;
  z-index: 20;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: rgba(9, 9, 11, .72);
  color: #fff;
  cursor: pointer;
}

.demo-preview-content {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) 1fr;
  min-height: 520px;
}

.demo-preview-video-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 680px;
  overflow: hidden;
  background: #000;
}

.demo-preview-video-container video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.demo-nav-btn {
  position: absolute;
  z-index: 10;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.demo-nav-btn:hover {
  background: rgba(124, 58, 237, .9);
}

.demo-nav-btn.prev { left: 12px; }
.demo-nav-btn.next { right: 12px; }

.demo-preview-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 38px;
  background: linear-gradient(135deg, #09090b, #111115);
  color: #fff;
}

.demo-badge {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 5px 10px;
  border: 1px solid rgba(139, 92, 246, .3);
  border-radius: 999px;
  background: rgba(139, 92, 246, .14);
  color: #c084fc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.demo-preview-details h2 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -.02em;
}

.demo-description {
  margin: 0 0 22px;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.6;
}

.demo-features {
  display: grid;
  gap: 11px;
  margin: 0 0 28px;
  padding: 0;
  color: #e4e4e7;
  font-size: 13px;
  list-style: none;
}

.demo-features li {
  position: relative;
  padding-left: 24px;
}

.demo-features li::before {
  position: absolute;
  left: 2px;
  color: #34d399;
  content: '✓';
  font-weight: 800;
}

.demo-action-btn {
  width: 100%;
}

body.modal-open {
  overflow: hidden;
}

@keyframes hero-float {
  0% { transform: perspective(1000px) rotateX(8deg) rotateY(-4deg) translateZ(8px); }
  50% { transform: perspective(1000px) rotateX(-4deg) rotateY(4deg) translateZ(20px); }
  100% { transform: perspective(1000px) rotateX(4deg) rotateY(8deg) translateZ(12px); }
}

@keyframes gold-shimmer {
  to { background-position: 240% center; }
}

@keyframes ambient-drift {
  to { transform: translate3d(7vw, 5vh, 0) scale(1.08); }
}

@keyframes star-twinkle {
  0%, 100% { opacity: .18; transform: scale(.85); }
  50% { opacity: .9; transform: scale(1.15); }
}

@keyframes keyword-float {
  0%, 100% { transform: rotate(var(--float-rotation)) translate3d(0, 0, 0); }
  50% { transform: rotate(calc(var(--float-rotation) + 2deg)) translate3d(12px, -22px, 0); }
}

@keyframes particle-fall {
  0% { opacity: 0; transform: translate3d(0, -10vh, 0); }
  10%, 90% { opacity: .45; }
  100% { opacity: 0; transform: translate3d(var(--particle-drift), 110vh, 0); }
}

@keyframes shooting-star {
  0%, 10%, 100% { opacity: 0; transform: translate3d(150px, -150px, 0) rotate(-45deg) scaleX(0); }
  3% { opacity: 1; transform: translate3d(40px, -40px, 0) rotate(-45deg) scaleX(1); }
  8% { opacity: 0; transform: translate3d(-200px, 200px, 0) rotate(-45deg) scaleX(0); }
}

@keyframes site-float {
  0%, 100% { transform: rotate(var(--site-rotation)) translate3d(0, 0, 0); }
  50% { transform: rotate(calc(var(--site-rotation) + 2deg)) translate3d(0, -18px, 0); }
}

@media (max-width: 767px) {
  :root { --header-height: 58px; }

  .site-header { gap: 8px; padding-inline: 14px; }
  .brand { gap: 0; }
  .brand span { display: none; }
  .header-actions { gap: 4px; }
  .access-link { padding-inline: 9px; }
  .header-buy { padding-inline: 12px; font-size: 12px; }

  .hero {
    min-height: 700px;
    padding: 16px 14px 12px;
  }

  .hero-title {
    margin-bottom: 10px;
    font-size: clamp(31px, 9.1vw, 42px);
    line-height: 1.08;
  }

  .hero-sub {
    max-width: 46ch;
    font-size: 14px;
    line-height: 1.5;
  }

  .proof-badge {
    min-height: 34px;
    margin-top: 12px;
    padding: 6px 12px;
    font-size: 11px;
  }

  .demo-heading { margin-top: 12px; font-size: 12px; }

  .demo-carousel-wrapper {
    --demo-card-width: clamp(120px, 34vw, 146px);
    --demo-card-height: clamp(213px, 60.44vw, 260px);
    --demo-carousel-gap: 10px;
    --demo-carousel-pad: 5px;
  }

  .carousel-hint { max-width: 52ch; padding-inline: 12px; line-height: 1.35; }
  .hero-cta { padding-top: 5px; }
  .hero-buy { min-height: 44px; padding: 9px 17px; font-size: 13px; }

  .space-starfield,
  .space-shooting-star,
  .bg-floating-sites {
    display: none;
  }

  .ambient-glow { filter: blur(65px); opacity: .1; animation: none; }
  .bg-keyword { padding: 4px 9px; font-size: 8px; }

  .modal-overlay {
    align-items: flex-start;
    padding: 12px;
    background: rgba(0, 0, 0, .9);
    backdrop-filter: none;
  }

  .modal-box { max-height: calc(100dvh - 24px); }
  .demo-preview-content { grid-template-columns: 1fr; min-height: 0; }
  .demo-preview-video-container { height: min(50dvh, 390px); }
  .demo-preview-details { padding: 22px 20px 24px; }
  .demo-description { margin-bottom: 16px; }
  .demo-features { margin-bottom: 20px; }
}

@media (max-height: 780px) and (min-width: 768px) {
  .hero { min-height: 650px; padding-top: 16px; }
  .hero-title { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; }
  .hero-sub { font-size: 15px; }
  .proof-badge { margin-top: 10px; }
  .demo-heading { margin-top: 10px; }
  .demo-carousel-wrapper {
    --demo-card-width: 122px;
    --demo-card-height: 217px;
    --demo-carousel-pad: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animated-3d-text-premium,
  .gold-shimmer,
  .ambient-glow,
  .space-star,
  .bg-keyword,
  .bg-particle,
  .space-shooting-star,
  .bg-site-card {
    animation: none !important;
    transform: none;
  }

  #heroAnimatedWord,
  .proof-badge-icon,
  #badgeRotatorText,
  .demo-vid-card,
  .modal-box {
    transition: none;
  }
}

/* Source-parity layer: copied from the production AI Talking Videos landing UI. */
.portal-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: transparent;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  height: 64px;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.portal-brand:hover {
  background: linear-gradient(to right, #ffffff, #d8b4fe);
  -webkit-background-clip: text;
  background-clip: text;
  transform: scale(1.02);
}

.portal-brand svg {
  flex-shrink: 0;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.portal-brand:hover svg {
  transform: rotate(-10deg) scale(1.1);
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.7));
}

.portal-user,
.unauth-nav-dock {
  display: flex;
  align-items: center;
  gap: 12px;
}

.unauth-nav-dock {
  gap: 6px;
}

.portal-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.portal-header .btn-ghost {
  color: #cbd5e1;
}

.portal-header .btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.portal-header .btn-accent {
  border: 1px solid rgba(167, 139, 250, .55);
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.3);
}

.portal-header .btn-accent:hover {
  border-color: rgba(255, 255, 255, .6);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.46);
}

.portal-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100svh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  text-align: center;
  padding: 40px 20px 28px;
  overflow: hidden;
}

.portal-hero__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.portal-hero__cta {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding-top: 28px;
  position: relative;
  z-index: 10;
}

.use-for-free-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 32px;
  border: 1px solid rgba(167, 139, 250, .55);
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(109, 40, 217, .38);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .3s cubic-bezier(0.16, 1, 0.3, 1), border-color .3s ease;
}

.use-for-free-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, .25), transparent);
  transform: rotate(30deg) translateX(-100%);
  transition: transform .75s ease;
}

.use-for-free-btn:hover::after { transform: rotate(30deg) translateX(100%); }

.use-for-free-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 16px 36px rgba(109, 40, 217, .55);
}

.use-for-free-btn svg { flex-shrink: 0; color: #fde68a; }

.hero-compact__text {
  max-width: 820px;
  margin: 0 auto;
  flex-shrink: 0;
}

.hero-compact__title {
  max-width: 760px;
  margin: 0 auto 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(30px, 8.5vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: break-word;
  letter-spacing: 0;
}

#heroAnimatedWord {
  display: inline-block;
  min-width: 0;
  text-align: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stationary-3d-text {
  display: inline-block;
  margin-top: 4px;
  padding-bottom: 8px;
  text-shadow: 0 5px 15px rgba(167, 139, 250, 0.4);
}

.animated-3d-text-premium {
  display: inline-block;
  margin-top: 4px;
  padding-bottom: 8px;
  perspective: 1000px;
  transform-style: preserve-3d;
  animation: float-3d-premium 6s ease-in-out infinite alternate;
}

@keyframes float-3d-premium {
  0% { transform: perspective(1000px) rotateX(10deg) rotateY(-5deg) translateZ(10px); text-shadow: 2px 2px 5px rgba(0,0,0,0.3), 0 5px 15px rgba(251,191,36,0.4); }
  50% { transform: perspective(1000px) rotateX(-5deg) rotateY(5deg) translateZ(25px); text-shadow: -2px 4px 5px rgba(0,0,0,0.3), 0 10px 25px rgba(245,158,11,0.6); }
  100% { transform: perspective(1000px) rotateX(5deg) rotateY(10deg) translateZ(15px); text-shadow: 3px -2px 5px rgba(0,0,0,0.3), -5px 5px 20px rgba(251,191,36,0.5); }
}

.hero-compact__sub {
  max-width: 650px;
  margin: 0 auto;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1.65;
}

.gold-shimmer {
  background: linear-gradient(90deg, #ca8a04 0%, #fbbf24 25%, #ffffff 50%, #fbbf24 75%, #ca8a04 100%);
  background-size: 600px 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gold-sweep 3s linear infinite;
}

@keyframes gold-sweep {
  from { background-position: 0 0; }
  to { background-position: 600px 0; }
}

.anything-glow {
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.75)) drop-shadow(0 0 24px rgba(251, 191, 36, 0.45));
}

.ai-rotator-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 16px;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.ai-rotator-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
}

.ai-rotator-icon,
.ai-rotator-text {
  position: relative;
  z-index: 1;
  transition: all 0.5s ease;
}

.badge-shimmer-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: badge-sweep 3s infinite linear;
  pointer-events: none;
  border-radius: 100px;
}

@keyframes badge-sweep {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.demo-heading-wrap {
  margin-top: 32px;
  text-align: center;
}

.demo-heading-wrap p {
  color: #94a3b8;
  font-size: 16px;
  margin: 0 0 12px;
  font-weight: 500;
}

.demo-carousel-wrapper {
  --demo-card-width: 150px;
  --demo-card-height: 266.667px;
  --demo-carousel-gap: 16px;
  --demo-carousel-pad-top: 18px;
  --demo-carousel-pad-bottom: 16px;
  position: relative;
  max-width: min(720px, 100%);
  width: 100%;
  height: calc(var(--demo-card-height) + var(--demo-carousel-pad-top) + var(--demo-carousel-pad-bottom) + 5px);
  min-height: calc(var(--demo-card-height) + var(--demo-carousel-pad-top) + var(--demo-carousel-pad-bottom) + 5px);
  margin: 0 auto;
  overflow: hidden;
}

.demo-carousel {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  column-gap: var(--demo-carousel-gap);
  padding: var(--demo-carousel-pad-top) 2px var(--demo-carousel-pad-bottom);
  overflow-x: auto;
  overflow-y: clip;
  contain: layout paint style;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.demo-carousel-wrapper::before,
.demo-carousel-wrapper::after {
  top: 0;
  bottom: 0;
  width: 40px;
  transition: opacity 0.4s ease;
}

.demo-carousel-wrapper::before { background: linear-gradient(to right, #09090b, transparent); }
.demo-carousel-wrapper::after { background: linear-gradient(to left, #09090b, transparent); }

.demo-carousel .demo-vid-card {
  position: absolute;
  top: var(--demo-carousel-pad-top);
  width: var(--demo-card-width);
  height: var(--demo-card-height);
  max-width: none;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: #000;
  box-shadow: 0 18px 42px rgba(0,0,0,0.34);
  contain: layout paint style;
  content-visibility: visible;
  animation: demoCardEntrance 0.6s cubic-bezier(0.16,1,0.3,1) both;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease, filter 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.4s ease;
}

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

.demo-carousel:hover .demo-vid-card:not(:hover) { opacity: 0.45; filter: grayscale(20%) blur(0.75px); }
.demo-vid-card:hover {
  transform: translateY(-10px) scale(1.06);
  box-shadow: 0 20px 38px rgba(0,0,0,0.45), 0 0 30px rgba(139,92,246,0.3), 0 0 12px rgba(139,92,246,0.18);
  border-color: rgba(139,92,246,0.5);
  z-index: 10;
}

.demo-vid-label {
  opacity: 1 !important;
  padding: 26px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%) !important;
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.demo-vid-card:hover .demo-vid-label { color: rgba(255,255,255,0.95); }

@keyframes bounce-down {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(4px); }
  60% { transform: translateY(2px); }
}

.bounce-down { animation: bounce-down 2s infinite; }

.dynamic-bg-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #060613 0%, #010103 100%);
  contain: strict;
}

.dynamic-bg-container::after { display: none; }

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.09;
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translate3d(0,0,0);
  contain: layout style paint;
}

.bg-glow-1 {
  width: 65vw; height: 65vw; top: -25vw; left: -25vw;
  background: radial-gradient(circle, rgba(139,92,246,0.5) 0%, rgba(139,92,246,0.12) 45%, transparent 72%);
  animation: float-glow-1 35s infinite alternate ease-in-out;
}

.bg-glow-2 {
  width: 55vw; height: 55vw; bottom: -15vw; right: -15vw;
  background: radial-gradient(circle, rgba(225,29,72,0.35) 0%, rgba(225,29,72,0.08) 45%, transparent 72%);
  animation: float-glow-2 42s infinite alternate ease-in-out;
}

.bg-glow-3 {
  position: absolute;
  width: 50vw; height: 50vw; top: 25vh; left: 40vw;
  background: radial-gradient(circle, rgba(30,27,75,0.55) 0%, rgba(30,27,75,0.1) 50%, transparent 72%);
  animation: float-glow-3 30s infinite alternate ease-in-out;
}

.bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(248,250,252,0.025) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center;
  z-index: 1;
}

.bg-grid {
  background-image: linear-gradient(to right, rgba(248,250,252,0.008) 1px, transparent 1px), linear-gradient(to bottom, rgba(248,250,252,0.008) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center;
  opacity: 1;
  mask-image: none;
  z-index: 2;
}

.cursor-glow-follower {
  position: fixed;
  width: 380px;
  height: 380px;
  top: -190px;
  left: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.14) 0%, rgba(225,29,72,0.05) 45%, transparent 70%);
  z-index: 0;
  mix-blend-mode: screen;
  filter: blur(28px);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1);
  transform: translate3d(0,0,0);
}

@keyframes float-glow-1 {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(6vw,8vh,0) scale(1.08); }
  100% { transform: translate3d(-3vw,4vh,0) scale(0.95); }
}
@keyframes float-glow-2 {
  0% { transform: translate3d(0,0,0) scale(0.95); }
  50% { transform: translate3d(-8vw,-6vh,0) scale(1.1); }
  100% { transform: translate3d(3vw,-10vh,0) scale(1); }
}
@keyframes float-glow-3 {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-4vw,7vh,0) scale(0.9); }
  100% { transform: translate3d(5vw,-3vh,0) scale(1.05); }
}

.space-starfield { z-index: 1; contain: layout style paint; }
.space-star { box-shadow: 0 0 3px rgba(255,255,255,0.4); }
.space-shooting-star { transform: translate3d(0,0,0) rotate(-45deg); }
.s-star-1 { top: 15%; left: 65%; animation: shooting-anim 18s infinite ease-in-out; }
.s-star-2 { top: 40%; left: 85%; animation: shooting-anim 26s infinite ease-in-out; animation-delay: 6s; }
.s-star-3 { top: 8%; left: 20%; animation: shooting-anim 22s infinite ease-in-out; animation-delay: 11s; }

.bg-keywords { z-index: 3; contain: layout style paint; }
.bg-keyword {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(248,250,252,0.55);
  background: rgba(139,92,246,0.1);
}
.bg-particles { z-index: 2; contain: layout style paint; }
.bg-floating-sites { z-index: 4; contain: layout style paint; }
.bg-site-card { opacity: 0.55; }

@keyframes shooting-anim {
  0% { transform: translate3d(150px,-150px,0) rotate(-45deg) scaleX(0); opacity: 0; }
  3% { opacity: 1; transform: translate3d(50px,-50px,0) rotate(-45deg) scaleX(1); }
  8% { transform: translate3d(-200px,200px,0) rotate(-45deg) scaleX(0); opacity: 0; }
  100% { transform: translate3d(-200px,200px,0) rotate(-45deg) scaleX(0); opacity: 0; }
}

.demo-preview-box {
  max-width: 820px;
  width: calc(100% - 32px);
  padding: 0 !important;
  overflow: hidden;
  background: #09090b;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 25px 60px -12px rgba(0,0,0,0.8);
  border-radius: 20px;
}

.demo-preview-content { grid-template-columns: 1.15fr 1fr; min-height: 520px; }
.demo-preview-video-container { aspect-ratio: 9 / 16; border-right: 1px solid rgba(255,255,255,0.06); }
.demo-preview-video-container video { object-fit: cover; }
.demo-nav-btn { width: 42px; height: 42px; background: rgba(0,0,0,0.55); opacity: 0.8; }
.demo-nav-btn:hover { background: rgba(139,92,246,0.85); opacity: 1; transform: translateY(-50%) scale(1.08); }
.demo-nav-btn.prev { left: 14px; }
.demo-nav-btn.next { right: 14px; }
.demo-preview-details { padding: 36px 40px; }
.demo-preview-details h3 { font-size: 24px; font-weight: 700; margin: 0 0 10px; color: #fff; letter-spacing: -0.02em; }
.demo-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.demo-feature-item { display: flex; align-items: center; gap: 10px; padding: 0; font-size: 13px; color: #e4e4e7; }
.demo-feature-item::before { display: none; }
.demo-feature-item svg { color: #10b981; flex-shrink: 0; }
.demo-action-btn { padding: 13px 20px; border-radius: 12px; font-size: 14.5px; font-weight: 700; }

@media (max-width: 768px) {
  .portal-header { height: var(--header-height); padding: 0 16px; background: rgba(9,9,11,0.96); backdrop-filter: none; }
  .portal-brand { font-size: 17px; }
  .portal-header .btn { min-height: 40px; padding: 8px 11px; font-size: 12px; }
  .portal-header .btn-ghost { display: none; }
  .portal-hero { padding: 24px 16px 20px; }
  .hero-compact__sub { font-size: 15px; line-height: 1.55; }
  .demo-heading-wrap { margin-top: 20px; }
  .demo-carousel-wrapper {
    --demo-card-width: clamp(118px, 34vw, 148px);
    --demo-card-height: clamp(209.778px, 60.444vw, 263.111px);
    --demo-carousel-gap: 10px;
    --demo-carousel-pad-top: 0px;
    --demo-carousel-pad-bottom: 4px;
  }
  .demo-carousel { padding: var(--demo-carousel-pad-top) 0 var(--demo-carousel-pad-bottom); }
  .demo-preview-content { grid-template-columns: 1fr; min-height: auto; }
  .demo-preview-video-container { max-height: 380px; }
  .demo-preview-details { padding: 24px 20px !important; }
  .ambient-glow { filter: none; mix-blend-mode: normal; opacity: 0.035; }
  .bg-floating-sites, .space-starfield, .space-shooting-star { display: none; }
}

@media (max-width: 480px) {
  :root { --header-height: 56px; }
  .portal-brand span { display: none; }
  .portal-hero { padding: 16px 12px 12px; }
  .hero-compact__title { font-size: clamp(30px, 8.5vw, 52px); }
  .hero-compact__sub { font-size: 14px; }
  .ai-rotator-wrapper { margin-top: 14px; padding: 7px 12px; font-size: 11px; }
  .demo-heading-wrap { margin-top: 14px; }
  .demo-heading-wrap p { margin-bottom: 8px; font-size: 13px; }
  .demo-carousel-wrapper { --demo-card-width: clamp(120px,36vw,156px); --demo-card-height: clamp(213.333px,64vw,277.333px); }
  .portal-hero__cta { padding-top: 16px; }
  .use-for-free-btn { min-height: 48px; padding: 12px 22px; font-size: 14px; }
  .bg-keywords { opacity: 0.65; }
  .bg-particles { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .animated-3d-text-premium,
  .gold-shimmer,
  .badge-shimmer-bg::before,
  .bounce-down,
  .ambient-glow,
  .space-star,
  .space-shooting-star,
  .bg-keyword,
  .bg-particle,
  .bg-site-card,
  .demo-vid-card { animation: none !important; transform: none; }
}

.star-slow { animation: star-twinkle 12s infinite alternate ease-in-out; }
.star-mid { animation: star-twinkle 7s infinite alternate ease-in-out; }
.star-fast { animation: star-twinkle 4s infinite alternate ease-in-out; }

.bg-keyword--gold {
  color: rgba(251,191,36,0.6);
  background: rgba(251,191,36,0.08);
  border-color: rgba(251,191,36,0.14);
}
.bg-keyword--rose {
  color: rgba(244,114,182,0.55);
  background: rgba(225,29,72,0.08);
  border-color: rgba(225,29,72,0.14);
}
.bg-keyword--cyan {
  color: rgba(56,189,248,0.55);
  background: rgba(56,189,248,0.08);
  border-color: rgba(56,189,248,0.14);
}

.bg-particle--dot {
  background: rgba(139,92,246,0.45);
  box-shadow: 0 0 4px rgba(139,92,246,0.35);
}
.bg-particle--line {
  width: 1px !important;
  height: 22px !important;
  border-radius: 2px;
  background: linear-gradient(to bottom, transparent, rgba(248,250,252,0.22), transparent);
  box-shadow: none;
}

.bg-site-card {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(15,17,23,0.82);
  border: 1px solid rgba(139,92,246,0.18);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  transform: translate3d(0,0,0);
}
.bg-site-card__video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #060613;
}
.bg-site-card__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bg-site-card__badge {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6px;
  font-weight: 700;
  color: rgba(248,250,252,0.7);
  background: rgba(139,92,246,0.35);
  padding: 2px 6px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes bg-float-drift {
  0%, 100% { transform: translate3d(0,0,0) rotate(var(--bg-rot,0deg)); }
  25% { transform: translate3d(12px,-18px,0) rotate(calc(var(--bg-rot,0deg) + 2deg)); }
  50% { transform: translate3d(-8px,-30px,0) rotate(calc(var(--bg-rot,0deg) - 1deg)); }
  75% { transform: translate3d(16px,-12px,0) rotate(calc(var(--bg-rot,0deg) + 1deg)); }
}
@keyframes bg-float-hover {
  0%, 100% { transform: translate3d(0,0,0) rotate(var(--bg-rot,0deg)) scale(1); }
  50% { transform: translate3d(0,-22px,0) rotate(calc(var(--bg-rot,0deg) + 3deg)) scale(1.03); }
}
@keyframes bg-fall-particle {
  0% { transform: translate3d(0,-10vh,0); opacity: 0; }
  8%, 92% { opacity: var(--bg-p-opacity,0.6); }
  100% { transform: translate3d(var(--bg-drift,30px),110vh,0); opacity: 0; }
}
@keyframes bg-site-float {
  0%, 100% { transform: translate3d(0,0,0) rotate(var(--bg-rot,-4deg)) scale(1); }
  33% { transform: translate3d(0,-16px,0) rotate(calc(var(--bg-rot,-4deg) + 2deg)) scale(1.02); }
  66% { transform: translate3d(0,8px,0) rotate(calc(var(--bg-rot,-4deg) - 1deg)) scale(0.98); }
}

/* Final responsive values mirror the source cascade. */
@media (max-width: 560px) {
  .portal-header { height: 58px; }
  .portal-hero { padding: 18px 16px 14px; }
  .hero-compact__title { max-width: 350px; margin-bottom: 10px; }
  .hero-compact__sub { font-size: 15px !important; }
  .demo-heading-wrap { margin-top: 14px; }
  .portal-hero__cta { padding-top: 16px; }
  .portal-brand span { display: inline; }
  .portal-brand { gap: 7px; font-size: 18px; }
  .portal-brand svg { width: 19px; height: 19px; }
  .portal-header .btn { padding: 9px 12px; min-height: 36px; font-size: 12px; }
}

/* Short desktop viewports: keep the hero column clear of the pinned CTA. */
@media (max-height: 960px) and (min-width: 768px) {
  .hero-compact__title { margin-bottom: 12px; font-size: clamp(30px, 6.4vw, 44px); }
  .ai-rotator-wrapper { margin-top: 14px; }
  .demo-heading-wrap { margin-top: 18px; }
  .demo-carousel-wrapper {
    --demo-card-width: 128px;
    --demo-card-height: 227.556px;
    --demo-carousel-pad-top: 12px;
    --demo-carousel-pad-bottom: 10px;
  }
}

@media (max-height: 800px) and (min-width: 768px) {
  .hero-compact__title { margin-bottom: 10px; font-size: clamp(28px, 5.2vw, 38px); }
  .hero-compact__sub { font-size: 15px; }
  .ai-rotator-wrapper { margin-top: 10px; }
  .demo-heading-wrap { margin-top: 12px; }
  .demo-carousel-wrapper {
    --demo-card-width: 104px;
    --demo-card-height: 184.889px;
    --demo-carousel-pad-top: 8px;
    --demo-carousel-pad-bottom: 8px;
  }
}
