/* Rwasem — Premium interactive home layer */

.lp-page--home {
  --pr-navy: #1e3a5f;
  --pr-navy-soft: #2d4a73;
  --pr-green: #2dd4bf;
  --pr-green-light: #5eead4;
  --pr-green-muted: #ccfbf1;
  --pr-white: #ffffff;
  --pr-glass: rgba(255, 255, 255, 0.72);
  --pr-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Scroll reveal ── */
.lp-premium-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s var(--pr-ease),
    transform 0.75s var(--pr-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.lp-premium-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .lp-premium-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Header premium scroll ── */
.lp-page--home .lp-header.lp-header--premium {
  background: #ffffff;
  border-bottom-color: rgba(45, 212, 191, 0.12);
  box-shadow: 0 8px 28px rgba(30, 58, 95, 0.06);
}

/* ── Hero premium ── */
.lp-hero--premium {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #ffffff 100%) !important;
  padding-bottom: 0 !important;
}

.lp-premium-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.lp-premium-grid {
  position: absolute;
  inset: -40% -20%;
  background-image:
    linear-gradient(rgba(30, 58, 95, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #1e3a5f 20%, transparent 72%);
  animation: lp-premium-grid-drift 28s linear infinite;
}

@keyframes lp-premium-grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(48px, 48px); }
}

.lp-premium-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.38;
  will-change: transform;
}

.lp-premium-orb--1 {
  width: 420px;
  height: 420px;
  top: -8%;
  inset-inline-end: -6%;
  background: rgba(45, 212, 191, 0.14);
}

.lp-premium-orb--2 {
  width: 320px;
  height: 320px;
  bottom: 10%;
  inset-inline-start: -4%;
  background: rgba(45, 212, 191, 0.08);
}

.lp-premium-orb--3 {
  width: 200px;
  height: 200px;
  top: 35%;
  inset-inline-start: 42%;
  background: rgba(30, 58, 95, 0.04);
}

.lp-premium-badge {
  position: relative;
  overflow: hidden;
}

.lp-premium-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pr-green);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.5);
  animation: lp-premium-pulse 2s ease infinite;
}

@keyframes lp-premium-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
}

.lp-premium-title {
  font-size: clamp(2.1rem, 5vw, 3.45rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--pr-navy);
}

.lp-premium-title__line {
  display: block;
  background: linear-gradient(120deg, var(--pr-navy) 0%, var(--pr-navy-soft) 55%, #14b8a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-premium-search {
  position: relative;
  border: 1px solid rgba(45, 212, 191, 0.22) !important;
  box-shadow:
    0 20px 50px rgba(30, 58, 95, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
  transition: box-shadow 0.3s var(--pr-ease), border-color 0.3s;
}

.lp-premium-search:focus-within {
  border-color: rgba(45, 212, 191, 0.55) !important;
  box-shadow:
    0 24px 60px rgba(45, 212, 191, 0.14),
    0 0 0 4px rgba(45, 212, 191, 0.12) !important;
}

.lp-premium-btn {
  position: relative;
  overflow: hidden;
}

.lp-premium-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--pr-ease);
}

.lp-premium-btn:hover::after {
  transform: translateX(120%);
}

.lp-premium-tld {
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s var(--pr-ease), background 0.2s, border-color 0.2s;
}

.lp-premium-tld:hover {
  transform: translateY(-2px);
}

.lp-premium-tld:active {
  transform: scale(0.97);
}

.lp-premium-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--pr-ease), box-shadow 0.35s, border-color 0.35s;
  will-change: transform;
}

.lp-premium-card__arrow {
  position: absolute;
  bottom: 0.85rem;
  inset-inline-end: 0.85rem;
  opacity: 0;
  transform: translateX(8px);
  color: var(--pr-green);
  font-size: 0.85rem;
  transition: opacity 0.25s, transform 0.25s var(--pr-ease);
}

[dir="ltr"] .lp-premium-card__arrow {
  transform: translateX(-8px) scaleX(-1);
}

.lp-premium-card:hover .lp-premium-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

[dir="ltr"] .lp-premium-card:hover .lp-premium-card__arrow {
  transform: translateX(0) scaleX(-1);
}

/* Hero visual */
.lp-premium-visual {
  position: relative;
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.15s ease-out;
}

.lp-premium-visual__glow {
  position: absolute;
  inset: 10% 5% -5%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.1), transparent 68%);
  filter: blur(24px);
  z-index: 0;
}

.lp-premium-slider {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  box-shadow:
    0 32px 80px rgba(30, 58, 95, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}

.lp-premium-float {
  position: absolute;
  z-index: 3;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  background: var(--pr-glass);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.12);
  animation: lp-premium-float 5s ease-in-out infinite;
}

.lp-premium-float--stats {
  top: 8%;
  inset-inline-start: -8%;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  animation-delay: -1s;
}

.lp-premium-float--stats strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--pr-navy);
  line-height: 1;
}

.lp-premium-float--stats span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}

.lp-premium-float--badge {
  bottom: 14%;
  inset-inline-end: -6%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--pr-navy);
  animation-delay: -2.5s;
}

.lp-premium-float--badge i {
  color: var(--pr-green);
}

@keyframes lp-premium-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Marquee */
.lp-premium-marquee {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  padding: 1rem 0;
  border-block: 1px solid rgba(30, 58, 95, 0.06);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #1e3a5f 4%, #1e3a5f 96%, transparent);
}

.lp-premium-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: lp-premium-marquee 36s linear infinite;
}

.lp-premium-marquee__group {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  flex-shrink: 0;
  padding-inline-end: 2.25rem;
  white-space: nowrap;
}

.lp-premium-marquee__group span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--pr-navy);
}

.lp-premium-marquee__group i {
  font-size: 0.42rem;
  color: var(--pr-green);
  flex-shrink: 0;
}

@keyframes lp-premium-marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(calc(-100% / 3), 0, 0); }
}

[dir="rtl"] .lp-premium-marquee__track {
  animation-name: lp-premium-marquee-rtl;
}

@keyframes lp-premium-marquee-rtl {
  0% { transform: translate3d(calc(-100% / 3), 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Bento grid */
.lp-premium-bento {
  position: relative;
  padding: 4rem 1.25rem 4.5rem;
  background: #ffffff;
  overflow: hidden;
}

.lp-premium-bento::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(45, 212, 191, 0.07), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.lp-premium-bento .lp-section__inner {
  position: relative;
  z-index: 1;
}

.lp-premium-kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: var(--pr-green-muted);
  border: 1px solid rgba(20, 184, 166, 0.28);
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.lp-premium-bento__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.lp-premium-bento__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 248px;
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: 0 14px 40px rgba(30, 58, 95, 0.06);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s var(--pr-ease), box-shadow 0.35s, border-color 0.35s;
}

.lp-premium-bento__cell::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--pr-green) 0%, var(--pr-green-light) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.lp-premium-bento__cell:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 212, 191, 0.38);
  box-shadow: 0 22px 50px rgba(45, 212, 191, 0.14);
}

.lp-premium-bento__cell:hover::after {
  opacity: 1;
}

.lp-premium-bento__cell.is-featured {
  background: linear-gradient(155deg, #1e3a5f 0%, #2d4a73 58%, #1e3a5f 100%);
  border-color: rgba(45, 212, 191, 0.28);
  box-shadow: 0 20px 48px rgba(30, 58, 95, 0.22);
}

.lp-premium-bento__cell.is-featured::before {
  content: '';
  position: absolute;
  inset-inline-end: -20%;
  top: -30%;
  width: 55%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18), transparent 68%);
  pointer-events: none;
}

.lp-premium-bento__cell.is-featured::after {
  opacity: 1;
  background: linear-gradient(90deg, #2dd4bf 0%, #5eead4 100%);
}

.lp-premium-bento__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.lp-premium-bento__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ccfbf1 0%, #f0fdfa 100%);
  border: 1px solid rgba(45, 212, 191, 0.25);
  color: #0d9488;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.lp-premium-bento__cell.is-featured .lp-premium-bento__icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #5eead4;
  backdrop-filter: blur(8px);
}

.lp-premium-bento__go {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(30, 58, 95, 0.04);
  color: #64748b;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.lp-premium-bento__cell:hover .lp-premium-bento__go {
  background: rgba(45, 212, 191, 0.15);
  color: #0d9488;
  transform: translateX(-3px);
}

[dir="ltr"] .lp-premium-bento__cell:hover .lp-premium-bento__go {
  transform: translateX(3px);
}

.lp-premium-bento__cell.is-featured .lp-premium-bento__go {
  background: rgba(255, 255, 255, 0.1);
  color: #ccfbf1;
}

.lp-premium-bento__cell.is-featured:hover .lp-premium-bento__go {
  background: rgba(45, 212, 191, 0.25);
  color: #ffffff;
}

.lp-premium-bento__cell h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--pr-navy);
}

.lp-premium-bento__cell.is-featured h3 {
  color: #ffffff;
}

.lp-premium-bento__cell p {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #64748b;
}

.lp-premium-bento__cell.is-featured p {
  color: rgba(255, 255, 255, 0.82);
}

.lp-premium-bento__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.lp-premium-bento__tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.2);
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.lp-premium-bento__cell.is-featured .lp-premium-bento__tags span {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ccfbf1;
}

.lp-premium-bento__link {
  margin-top: auto;
  padding-top: 0.65rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: #14b8a6;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lp-premium-bento__cell.is-featured .lp-premium-bento__link {
  color: #5eead4;
}

@media (min-width: 1100px) {
  .lp-premium-bento__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .lp-premium-bento__cell {
    min-height: 270px;
    padding: 1.45rem 1.3rem 1.25rem;
  }

  .lp-premium-bento__cell h3 {
    font-size: 1.08rem;
  }
}

/* Enhanced home sections */
.lp-page--home .lp-feature {
  border-radius: 20px;
  transition: transform 0.35s var(--pr-ease), box-shadow 0.35s, border-color 0.35s;
}

.lp-page--home .lp-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.25);
}

.lp-page--home .lp-section--dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--pr-navy) 0%, var(--pr-navy-soft) 100%) !important;
}

.lp-page--home .lp-section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(45, 212, 191, 0.08), transparent 35%);
  pointer-events: none;
}

.lp-page--home .lp-step {
  position: relative;
  transition: transform 0.3s var(--pr-ease);
}

.lp-page--home .lp-step:hover {
  transform: translateY(-4px);
}

.lp-page--home .lp-stat strong {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  background: linear-gradient(135deg, #ffffff, var(--pr-green-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-page--home .lp-clients--wall img {
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}

.lp-page--home .lp-clients--wall img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 640px) {
  .lp-premium-bento__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .lp-premium-float {
    display: none;
  }

  .lp-premium-bento__cell {
    grid-column: auto;
    grid-row: auto;
    min-height: auto;
  }

  .lp-premium-marquee__track {
    animation-duration: 22s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-premium-grid,
  .lp-premium-marquee__track,
  .lp-premium-float,
  .lp-premium-badge__dot {
    animation: none !important;
  }
}
