.libralto-hero,
.libralto-hero * {
  box-sizing: border-box;
}

.libralto-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(135deg, #071A33 0%, #102B55 45%, #0C4A6E 100%);
  color: #EAF6FF;
  transition: background 900ms ease, color 900ms ease;
}

.libralto-hero .digitalGrid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.24) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.libralto-hero .lightOrb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.22;
  background: white;
  animation: libraltoFloat 8s ease-in-out infinite alternate;
}

.libralto-hero .orbOne { left: -120px; top: 8%; }
.libralto-hero .orbTwo { right: -120px; bottom: 4%; animation-delay: 1.5s; }

.libralto-hero .brandBackground {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(7rem, 19vw, 19rem);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 1;
  opacity: 0.16;
  white-space: nowrap;
  transition: color 900ms ease;
  user-select: none;
  color: #38BDF8;
}

.libralto-hero .hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 40px;
  padding: 72px clamp(32px, 7vw, 110px);
}

.libralto-hero .leftPanel { max-width: 560px; }

.libralto-hero .eyebrow {
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.72;
}

.libralto-hero .title {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  color: inherit;
  animation: libraltoSlideIn 700ms ease both;
}

.libralto-hero .subtitle {
  margin: 28px 0 0;
  max-width: 520px;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  opacity: 0.82;
  animation: libraltoFadeUp 850ms ease both;
}

.libralto-hero .controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
}

.libralto-hero .dot {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  transition: all 350ms ease;
  background-color: rgba(255,255,255,0.38);
  padding: 0;
}

.libralto-hero .dot.active { width: 48px; background-color: #38BDF8; }

.libralto-hero .carouselStage {
  position: relative;
  height: min(68vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.libralto-hero .mainObject {
  position: relative;
  width: min(520px, 78vw);
  aspect-ratio: 1.1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: libraltoObjectEnter 850ms cubic-bezier(.16, 1, .3, 1) both;
}

.libralto-hero .objectGlow {
  position: absolute;
  width: 74%;
  height: 74%;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.42;
  transition: background-color 900ms ease;
  background-color: #38BDF8;
}

.libralto-hero .illustrationCard {
  position: relative;
  width: min(430px, 72vw);
  min-height: 260px;
  padding: 22px;
  border-radius: 42px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 40px 120px rgba(0,0,0,0.32);
  backdrop-filter: blur(18px);
  transform: rotate(-4deg);
  animation: libraltoHoverObject 3.8s ease-in-out infinite alternate;
}

.libralto-hero .productImage {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
  object-fit: contain;
  mix-blend-mode: normal;
}

.libralto-hero .productImage[src=""] {
  display: none;
}

.libralto-hero .imagePlaceholder {
  display: none;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  color: #142B5C;
  font-weight: 700;
  text-align: center;
}

.libralto-hero .productImage[src=""] + .imagePlaceholder {
  display: flex;
}

.libralto-hero .sidePreview {
  position: absolute;
  width: 220px;
  height: 130px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  text-align: center;
  font-weight: 700;
  opacity: 0.34;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.08);
}

.libralto-hero .previous { left: 0; transform: translateX(-20%) rotateY(28deg) scale(0.85); }
.libralto-hero .next { right: 0; transform: translateX(20%) rotateY(-28deg) scale(0.85); }

.libralto-hero .bottomLabel {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  opacity: 0.76;
}

.libralto-hero .progressTrack {
  width: min(280px, 42vw);
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,0.3);
}

.libralto-hero .progressBar {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  animation: libraltoProgress 3.8s linear both;
  background-color: #38BDF8;
}

@keyframes libraltoSlideIn {
  from { opacity: 0; transform: translateX(-34px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes libraltoFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 0.82; transform: translateY(0); }
}

@keyframes libraltoObjectEnter {
  from { opacity: 0; transform: translateX(120px) rotateY(-20deg) scale(0.88); }
  to { opacity: 1; transform: translateX(0) rotateY(0deg) scale(1); }
}

@keyframes libraltoHoverObject {
  from { transform: translateY(-10px) rotate(-4deg); }
  to { transform: translateY(14px) rotate(3deg); }
}

@keyframes libraltoFloat {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(50px,30px,0) scale(1.1); }
}

@keyframes libraltoProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 900px) {
  .libralto-hero .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 52px;
    padding-bottom: 90px;
  }

  .libralto-hero .carouselStage { height: 360px; }
  .libralto-hero .sidePreview { display: none; }

  .libralto-hero .brandBackground {
    transform: translate(-50%, -50%) rotate(-90deg);
    font-size: 9rem;
  }
}
