/* Landing enhancements — animations & polish (scoped to .landing-home) */

@keyframes home-orb-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(18px, -22px, 0) scale(1.04); }
  66% { transform: translate3d(-14px, 16px, 0) scale(0.97); }
}

@keyframes home-blob-morph {
  0%, 100% {
    border-radius: 37% 63% 50% 50% / 45% 44% 56% 55%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    border-radius: 58% 42% 38% 62% / 52% 58% 42% 48%;
    transform: rotate(8deg) scale(1.05);
  }
}

@keyframes home-star-twinkle {
  0%, 100% { opacity: 0.72; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.14) rotate(12deg); }
}

@keyframes home-book-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}

@keyframes home-note-bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

@keyframes home-gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes home-shimmer {
  0% { transform: translateX(-130%) skewX(-12deg); }
  55%, 100% { transform: translateX(130%) skewX(-12deg); }
}

@keyframes home-line-flow {
  0% { background-position: 0% 50%; opacity: 0.28; }
  50% { opacity: 0.55; }
  100% { background-position: 200% 50%; opacity: 0.28; }
}

@keyframes home-spread-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.07); }
}

@keyframes home-shield-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes home-glow-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.98); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

/* Ambient orbs */
.landing-home .bg-orb {
  animation: home-orb-drift 14s ease-in-out infinite;
  will-change: transform, margin-top;
}

.landing-home .bg-orb-two { animation-delay: -4s; animation-duration: 17s; }
.landing-home .bg-orb-three { animation-delay: -8s; animation-duration: 19s; }

/* Hero */
.landing-home .hero-title-accent,
.landing-home .ll-headline-accent {
  background: var(--gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: home-gradient-flow 6s ease infinite;
}

.landing-home .hero-blob,
.landing-home .ll-hero-blob {
  animation: home-blob-morph 12s ease-in-out infinite;
  will-change: transform, border-radius;
}

.landing-home .hero-glow,
.landing-home .ll-hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 183, 41, 0.22), transparent 68%);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  pointer-events: none;
  animation: home-glow-pulse 5s ease-in-out infinite;
  z-index: 0;
}

.landing-home .star,
.landing-home .ll-hero-star {
  animation: home-star-twinkle 3.6s ease-in-out infinite;
  will-change: transform, opacity;
}

.landing-home .star-one,
.landing-home .ll-hero-star-one { animation-delay: 0s; }
.landing-home .star-two,
.landing-home .ll-hero-star-two { animation-delay: -1.1s; }
.landing-home .star-three,
.landing-home .ll-hero-star-three { animation-delay: -2.2s; }
.landing-home .star-four,
.landing-home .ll-hero-star-four {
  color: #29d8ff;
  left: 18px;
  bottom: 140px;
  font-size: 32px;
  animation-delay: -0.6s;
}

.landing-home .book-mockup,
.landing-home .ll-hero-book-card {
  animation: home-book-float 5.5s ease-in-out infinite;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 2;
}

.landing-home .floating-note,
.landing-home .ll-hero-note {
  animation: home-note-bob 4.2s ease-in-out infinite;
  z-index: 3;
  border: 2px solid rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
}

.landing-home .note-love,
.landing-home .ll-hero-note-love { animation-delay: 0s; }
.landing-home .note-pdf,
.landing-home .ll-hero-note-pdf {
  left: 10px;
  bottom: 28px;
  right: auto;
  animation-delay: -1.8s;
}

.landing-home .ll-hero-btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: home-gradient-flow 6s ease infinite;
}

.landing-home .ll-hero-btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.38) 50%, transparent 62%);
  transform: translateX(-130%) skewX(-12deg);
  animation: home-shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}

.landing-home .button-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.landing-home .button-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.38) 50%, transparent 62%);
  transform: translateX(-130%) skewX(-12deg);
  animation: home-shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}

.landing-home .hero-metrics article,
.landing-home .ll-hero-metrics .ll-metric-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
}

.landing-home .hero-metrics article::before,
.landing-home .ll-hero-metrics .ll-metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(122, 77, 255, 0.14),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.landing-home .hero-metrics article:hover,
.landing-home .ll-hero-metrics .ll-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(122, 77, 255, 0.14);
  border-color: rgba(122, 77, 255, 0.22);
}

.landing-home .hero-metrics article:hover::before,
.landing-home .ll-hero-metrics .ll-metric-card:hover::before {
  opacity: 1;
}

/* Steps */
.landing-home .steps,
.landing-home .ll-steps {
  overflow: hidden;
}

.landing-home .ll-steps-title-accent {
  animation: home-gradient-flow 6s ease infinite;
}

.landing-home .step-card,
.landing-home .ll-step-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.landing-home .ll-step-visual img {
  transition: transform 0.32s ease, filter 0.32s ease;
}

.landing-home .step-card:hover,
.landing-home .ll-step-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 60px rgba(20, 27, 77, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.landing-home .ll-step-card:hover .ll-step-visual img {
  transform: translateY(-4px) scale(1.03);
}

/* Live catalog grid */
.landing-home .home-catalog-status {
  min-height: 1.1rem;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: #5921ff;
}

.landing-home .stories-grid--live {
  min-height: 120px;
}

.landing-home .home-story-card {
  height: 100%;
  border-radius: 22px;
  border: 2px solid rgba(122, 77, 255, 0.12);
  background: #fff;
  box-shadow:
    0 14px 36px rgba(20, 27, 77, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.landing-home .home-story-card:hover {
  transform: translateY(-5px);
  border-color: rgba(122, 77, 255, 0.28);
  box-shadow: 0 22px 52px rgba(122, 77, 255, 0.16);
}

.landing-home .home-story-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  cursor: pointer;
}

.landing-home .home-story-media {
  position: relative;
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #eef4ff;
  flex-shrink: 0;
}

.landing-home .home-story-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.landing-home .home-story-card:hover .home-story-media img {
  transform: scale(1.06);
}

.landing-home .home-story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 27, 77, 0.12));
  pointer-events: none;
}

.landing-home .home-story-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 14px 14px;
  gap: 6px;
}

.landing-home .home-story-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.landing-home .home-story-top h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.18;
  color: var(--deep);
}

.landing-home .home-story-body p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.landing-home .home-story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.landing-home .home-story-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(122, 77, 255, 0.08);
  border: 1px solid rgba(122, 77, 255, 0.12);
  color: #5921ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.landing-home .home-story-tag--style {
  background: rgba(255, 159, 67, 0.1);
  border-color: rgba(255, 159, 67, 0.18);
  color: #c45a00;
}

.landing-home .home-story-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: rgba(20, 27, 77, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.landing-home .home-story-pages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.landing-home .home-story-pages svg {
  flex-shrink: 0;
  opacity: 0.72;
}

.landing-home .home-story-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 4px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: var(--gradient);
  background-size: 200% auto;
  animation: home-gradient-flow 8s ease infinite;
  transition: transform 0.2s ease;
}

.landing-home .home-story-card:hover .home-story-link {
  transform: scale(1.02);
}

.landing-home .chip {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.landing-home .chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(122, 77, 255, 0.12);
}

.landing-home .chip--style {
  border-color: rgba(255, 159, 67, 0.22);
  color: #9a4d00;
  background: rgba(255, 159, 67, 0.08);
}

.landing-home .chip--style:hover {
  border-color: rgba(255, 159, 67, 0.36);
  box-shadow: 0 8px 20px rgba(255, 159, 67, 0.12);
}

.landing-home .chip--style.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.22);
}

.landing-home .more-link {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-home .more-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(122, 77, 255, 0.12);
}

/* Spread slider */
.landing-home .spread-slider {
  border: 2px solid rgba(122, 77, 255, 0.12);
}

.landing-home .spread-slide.is-active img {
  animation: home-spread-zoom 5s ease-out forwards;
}

.landing-home .slider-dots button.active {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(122, 77, 255, 0.18);
}

/* Benefits & security */
.landing-home .benefits-grid article {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.landing-home .benefits-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(122, 77, 255, 0.12);
  border-color: rgba(122, 77, 255, 0.22);
}

.landing-home .benefit-icon {
  transition: transform 0.3s ease;
}

.landing-home .benefits-grid article:hover .benefit-icon {
  transform: scale(1.08) rotate(-4deg);
}

.landing-home .shield {
  animation: home-shield-float 5s ease-in-out infinite;
}

/* Final CTA */
.landing-home .final-cta {
  background-size: 220% 220%;
  animation: home-gradient-flow 10s ease infinite;
}

.landing-home .final-cta-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.landing-home .final-cta-stars span {
  position: absolute;
  font-size: 28px;
  opacity: 0.28;
  animation: home-star-twinkle 4s ease-in-out infinite;
}

.landing-home .final-cta-stars span:nth-child(1) { top: 18%; left: 8%; color: #fff; }
.landing-home .final-cta-stars span:nth-child(2) { top: 22%; right: 12%; color: #ffb729; animation-delay: -1s; font-size: 36px; }
.landing-home .final-cta-stars span:nth-child(3) { bottom: 16%; left: 22%; color: #29d8ff; animation-delay: -2s; }
.landing-home .final-cta-stars span:nth-child(4) { bottom: 10%; right: 28%; color: #ff4bc3; animation-delay: -0.5s; font-size: 22px; }

/* Staggered reveal */
.landing-home [data-reveal] {
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .landing-home .bg-orb,
  .landing-home .hero-blob,
  .landing-home .ll-hero-blob,
  .landing-home .star,
  .landing-home .ll-hero-star,
  .landing-home .book-mockup,
  .landing-home .ll-hero-book-card,
  .landing-home .floating-note,
  .landing-home .ll-hero-note,
  .landing-home .button-primary::after,
  .landing-home .ll-hero-btn-primary::after,
  .landing-home .steps-grid::before,
  .landing-home .ll-steps-connectors,
  .landing-home .spread-slide.is-active img,
  .landing-home .shield,
  .landing-home .final-cta,
  .landing-home .hero-title-accent,
  .landing-home .ll-headline-accent,
  .landing-home .ll-steps-title-accent,
  .landing-home .ll-steps-star,
  .landing-home .home-story-link,
  .landing-home .hero-glow,
  .landing-home .ll-hero-glow,
  .landing-home .final-cta-stars span {
    animation: none !important;
  }

  .landing-home .hero-metrics article:hover,
  .landing-home .ll-hero-metrics .ll-metric-card:hover,
  .landing-home .step-card:hover,
  .landing-home .ll-step-card:hover,
  .landing-home .home-story-card:hover,
  .landing-home .benefits-grid article:hover,
  .landing-home .chip:hover,
  .landing-home .more-link:hover {
    transform: none;
  }

  .landing-home .home-story-card:hover .home-story-media img {
    transform: none;
  }
}

@media (max-width: 1120px) {
  .landing-home .steps-grid::before,
  .landing-home .ll-steps-connectors {
    display: none;
  }

  .landing-home .note-pdf,
  .landing-home .ll-hero-note-pdf {
    display: none;
  }
}

@media (max-width: 760px) {
  .landing-home .star-four,
  .landing-home .ll-hero-star-four {
    display: none;
  }
}
