/* FormaLex homepage premium layer — works with styles.css variables + Tailwind CDN */

@keyframes fl-shimmer {
  0% {
    transform: translateX(-120%) skewX(-15deg);
    opacity: 0;
  }
  8% {
    opacity: 0.55;
  }
  18% {
    transform: translateX(120%) skewX(-15deg);
    opacity: 0;
  }
  100% {
    transform: translateX(120%) skewX(-15deg);
    opacity: 0;
  }
}

@keyframes fl-hero-char {
  0% {
    opacity: 0;
    transform: translateY(0.35em);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

body#premium-index .premium-glass-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  background: rgba(7, 10, 18, 0.55);
  transition:
    padding 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    box-shadow 0.35s ease;
}

[data-theme="light"] body#premium-index .premium-glass-nav {
  background: rgba(247, 248, 251, 0.78);
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

body#premium-index .premium-glass-nav.is-compact {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 35, 73, 0.08);
  background: rgba(7, 10, 18, 0.78);
}

[data-theme="light"] body#premium-index .premium-glass-nav.is-compact {
  background: rgba(255, 255, 255, 0.92);
}

body#premium-index .premium-hero-bg {
  will-change: transform;
  transition: transform 0.15s ease-out;
}

body#premium-index .btn-shimmer {
  position: relative;
  overflow: hidden;
}

body#premium-index .btn-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  animation: fl-shimmer 5s ease-in-out infinite;
}

[data-theme="light"] body#premium-index .btn-shimmer::after {
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 60%
  );
}

body#premium-index .reveal-on-scroll {
  opacity: 0;
  transform: translateY(1.75rem);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

body#premium-index .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body#premium-index .bento-card {
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 12px 24px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
}

[data-theme="light"] body#premium-index .bento-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 35, 73, 0.06);
}

@media (hover: hover) {
  body#premium-index .bento-card:hover {
    transform: scale(1.05) translateZ(0);
    box-shadow:
      0 32px 64px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(197, 160, 89, 0.2),
      0 0 40px rgba(197, 160, 89, 0.12);
    border-color: rgba(197, 160, 89, 0.35);
  }
}

body#premium-index .hero-title-char {
  display: inline-block;
  opacity: 0;
  animation: fl-hero-char 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body#premium-index .premium-hero-shell {
  position: relative;
  overflow: hidden;
}

body#premium-index .premium-glow-cta {
  box-shadow:
    0 0 32px rgba(197, 160, 89, 0.45),
    0 0 64px rgba(0, 35, 73, 0.25),
    0 12px 32px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] body#premium-index .premium-glow-cta {
  box-shadow:
    0 0 28px rgba(197, 160, 89, 0.35),
    0 8px 24px rgba(0, 35, 73, 0.12);
}

body#premium-index .bento-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.28);
  color: var(--brand-navy);
}

body#premium-index .bento-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

[data-theme="light"] body#premium-index .bento-icon {
  background: rgba(197, 160, 89, 0.16);
  border-color: rgba(0, 35, 73, 0.12);
}
