/* -------------------------------------------------------------
   HERO / TAKEOVER LAYOUT
------------------------------------------------------------- */
.takeover-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff; /* White foundation background color */
  z-index: 10;
  overflow: hidden; /* Prevent overflow on split background */
}

.hero-left-bg {
  position: absolute;
  top: 0; /* Fully touches the top corner */
  left: 0; /* Flush with left edge */
  width: 100vw; /* Full width background overlay */
  height: 100%; /* Fully touches the bottom corner */
  background-image: url('https://yadvhvt9zjohl7ms.public.blob.vercel-storage.com/Gradient%20assets/4%20comprsd.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  border-radius: 0; /* Flat edges, no rounded corners */
}


/* -------------------------------------------------------------
   ABSOLUTE HERO LAYOUT & TYPOGRAPHY
------------------------------------------------------------- */
.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none; /* Let pointer pass to background but intercept on interactive items */
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 8% 0 5%; /* Reduced left padding to 5% to shift text stack to the left */
  box-sizing: border-box;
}

/* Enable interactivity on buttons, links, and video player inside the hero overlay */
.hero-content button,
.hero-content a,
.hero-video-wrapper {
  pointer-events: auto;
}

/* Modular Hero Text Stack */
.hero-text-stack {
  position: relative;
  transform: translateY(30px); /* Start slightly lowered */
  opacity: 0; /* Start hidden */
  
  max-width: 46%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  
  transition: 
    opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hero-revealed .hero-text-stack {
  opacity: 1;
  transform: translateY(0); /* Reveal in place */
}

/* Right-aligned Premium Product Video Card Player */
.hero-video-wrapper {
  position: relative;
  width: 48vw;
  max-width: 700px;
  z-index: 5;
  
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center; /* Center Book A Demo button under video */
  margin-top: -24px; /* Shift the video card 0.5 cm (~24px) above */
  
  opacity: 0;
  transform: translateX(30px);
  transition: 
    opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  transition-delay: 200ms;
}

.hero-revealed .hero-video-wrapper {
  opacity: 1;
  transform: translateX(0);
}

.video-card-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
  background: transparent; /* Prevent subpixel background bleed */
  background-color: transparent;
}

.hero-video-element {
  width: 100%;
  height: calc(100% + 8px); /* Taller height combined with negative margin crops out unwanted video edge lines */
  margin-top: -4px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  background: transparent; /* Filter out user agent background */
  background-color: transparent;
  border: none;
  outline: none;
}


/* Trust Rating Badge Styles */
.hero-trust-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: #fffbf2; /* Solid premium cream to make it more whole */
  border: 1px solid rgba(11, 25, 44, 0.15);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #0b192c;
  box-shadow: 0 4px 14px rgba(11, 25, 44, 0.08);
}

.star-rating {
  color: #d97706; /* Premium amber star color */
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}




.hero-heading {
  font-family: 'Outfit', sans-serif; /* Outfit for Brand Moments */
  font-size: 4.5rem; /* ~72px (Hero 72-88px range) - slightly smaller for better layout fit */
  font-weight: 700; /* Outfit 700 (Bold) */
  line-height: 1.08; /* Increased line-height for better word spacing */
  letter-spacing: -0.04em;
  color: #0b192c; /* Deep slate blue */
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

.hero-description {
  font-family: 'Inter', sans-serif; /* Inter for Reading */
  font-size: 1.15rem; /* ~18px (Body 18-20px range) */
  font-weight: 400; /* Inter 400 (Regular) */
  line-height: 1.75; /* Increased spacing for better legibility */
  color: #1e293b; /* Premium slate gray */
  max-width: 480px; /* Kept slightly narrower for premium editorial hierarchy */
}

.btn-glass-hero,
.btn-glass-hero * {
  text-decoration: none !important;
}

.btn-glass-hero {
  align-self: center; /* Center horizontally under the video card */
  margin-top: 38px; /* Positioned 1 cm (~38px) below the current placement */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px; /* Increased gap */
  
  padding: 16px 36px; /* Increased padding to make button bigger */
  background-color: #fffbf2; /* Warm Cream */
  border: 1px solid rgba(11, 25, 44, 0.15);
  border-radius: 50px;
  color: #0b192c;
  
  font-family: 'Inter', sans-serif; /* Inter for buttons */
  font-size: 1.05rem; /* Increased font-size for better visibility */
  font-weight: 600; /* Inter 600 (SemiBold) */
  cursor: pointer;
  box-shadow: 
    0 4px 12px rgba(11, 25, 44, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
    
  transition: 
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-glass-hero .arrow-icon {
  width: 16px;
  height: 16px;
  color: #0b192c;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-glass-hero:hover {
  background-color: #ffffff;
  border-color: rgba(11, 25, 44, 0.3);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 20px rgba(11, 25, 44, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.btn-glass-hero:hover .arrow-icon {
  transform: translateX(4px);
}

.btn-glass-hero:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(11, 25, 44, 0.06);
}

/* -------------------------------------------------------------
   SPACER SECTION (TO ALLOW SCROLL)
------------------------------------------------------------- */
.spacer-section {
  height: 100vh;
  background-color: #ffffff; /* White background */
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  z-index: 10;
  position: relative;
}

.spacer-content {
  max-width: 600px;
  text-align: center;
  padding: 24px;
}

.scroll-badge {
  font-family: 'Inter', sans-serif; /* Inter for Labels */
  font-size: 0.75rem; /* ~12px (Caption 14px range / small label) */
  font-weight: 500; /* Inter 500 (Medium) */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7e8191;
  display: block;
  margin-bottom: 16px;
}

.spacer-content h2 {
  font-family: 'Inter', sans-serif; /* Inter for Massive Section Statements */
  font-size: 2.8rem; /* ~45px (Section Title 42-52px range) */
  font-weight: 600; /* Inter 600 (SemiBold) */
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 18px;
}

.spacer-content p {
  font-family: 'Inter', sans-serif; /* Inter for Reading */
  font-size: 1.15rem; /* ~18px (Body 18-20px range) */
  font-weight: 400; /* Inter 400 (Regular) */
  line-height: 1.6;
  color: #525252;
}

/* Responsive Layout Adjustments */
@media (max-width: 1024px) {
  .hero-content {
    padding: 0 4%;
  }
  .hero-text-stack {
    max-width: 48%;
  }
  .hero-video-wrapper {
    width: 46vw;
  }
}

@media (max-width: 768px) {
  .takeover-container {
    height: auto;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    border-radius: 0;
  }
  .hero-left-bg {
    width: 100vw; /* Full width on mobile instead of 50vw half-split */
  }
  .takeover-container .takeover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero-content {
    position: relative;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 120px 5% 60px 5%;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .hero-heading {
    font-size: 2.6rem;
    text-align: center;
  }
  .hero-description {
    font-size: 1rem;
    text-align: center;
    max-width: 100%;
  }
  .hero-text-stack {
    position: relative;
    max-width: 100%;
    text-align: center;
    align-items: center;
    gap: 20px;
  }
  .hero-revealed .hero-text-stack {
    transform: none;
  }
  .hero-video-wrapper {
    position: relative;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 30px auto 0 auto;
    opacity: 1;
  }
  .hero-revealed .hero-video-wrapper {
    transform: none;
  }
  .video-card-container {
    border-radius: 14px;
  }
  .hero-video-element {
    border-radius: 14px;
  }
  .btn-glass-hero {
    padding: 12px 26px;
    font-size: 0.9rem;
  }
  .hero-trust-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
  }
  /* Hide cloud on mobile to reduce visual clutter */
  .floating-cloud {
    display: none;
  }
  .spacer-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 110px 4% 40px 4%;
  }
  .hero-heading {
    font-size: 2.1rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }
}

/* Floating Backdrop Cloud Layer */
.floating-cloud {
  position: absolute;
  top: calc(66% + 20px); /* Shifted 0.5 cm (~20px) down from its current placement */
  left: -5%; /* Shifted further left */
  width: 55vw; /* Restored to 55vw for wider backdrop */
  max-width: 700px;
  height: auto;
  opacity: 0.88; /* Whiter and more opaque to frame black text clearly */
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: normal;
  animation: floatCloud 18s ease-in-out infinite alternate;
}

@keyframes floatCloud {
  0% {
    transform: translateY(-50%) translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-50%) translate(20px, -20px) rotate(1deg) scale(1.02); /* Kept translation minor towards the right */
  }
  100% {
    transform: translateY(-50%) translate(-60px, 20px) rotate(-1deg) scale(0.97); /* Flow more towards the left margin */
  }
}

/* -------------------------------------------------------------
   TRANSITION TEXT SECTION
------------------------------------------------------------- */
.transition-section {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F9F7F2; /* Cream background matching home */
  padding: 196px 8% 100px 8%; /* Top padding increased by 96px (~1 inch) */
  box-sizing: border-box;
  z-index: 15;
}

.transition-container {
  max-width: 1200px;
  width: 100%;
  text-align: left;
}

.transition-logo {
  width: 32px; /* Smaller brand icon size */
  height: 32px;
  margin: 0 auto 24px auto; /* Centered horizontally, 24px gap below */
  opacity: 0.65;
  display: block;
}

.transition-text {
  font-family: 'Inter', sans-serif; /* Same font as Platform title */
  font-size: 2.3rem; /* Reduced to a clean, proper reading size */
  font-weight: 600; /* Matching weight */
  line-height: 1.55;
  color: rgba(11, 25, 44, 0.08); /* Initial light state */
  word-break: keep-all;
}

.reveal-word {
  color: rgba(11, 25, 44, 0.08); /* Starts light/unrevealed */
  transition: color 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-block;
  white-space: pre-wrap;
}

.reveal-word.revealed {
  color: rgba(11, 25, 44, 1.0); /* Fully typed / active color */
}

@media (max-width: 768px) {
  .transition-text {
    font-size: 1.40rem; /* Significantly reduced for mobile browser layouts to prevent long scrolls */
    line-height: 1.5;
  }
}
