/* Flexy-Pro public landing — self-contained design system */

/* ---------- Theme tokens ---------- */
html {
  --lp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lp-duration: 320ms;
  --lp-font-display: "Syne", system-ui, sans-serif;
  --lp-font-body: "DM Sans", system-ui, sans-serif;
  --lp-font-ar: "Noto Naskh Arabic", "DM Sans", system-ui, sans-serif;
  --lp-max: 1120px;
  --lp-radius: 16px;
  --lp-radius-sm: 10px;
  color-scheme: dark;
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  --lp-bg: #0A0A0F;
  --lp-bg-elevated: #12121A;
  --lp-bg-card: #16161F;
  --lp-bg-card-2: #1C1C28;
  --lp-border: rgba(232, 232, 232, 0.08);
  --lp-border-strong: rgba(232, 232, 232, 0.14);
  --lp-text: #E8E8E8;
  --lp-text-muted: #A0A0AE;
  --lp-text-faint: #6E6E7C;
  --lp-primary: #7B74E8;
  --lp-primary-soft: rgba(123, 116, 232, 0.16);
  --lp-primary-glow: rgba(123, 116, 232, 0.35);
  --lp-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --lp-nav-bg: rgba(10, 10, 15, 0.78);
  --lp-orb-1: rgba(123, 116, 232, 0.28);
  --lp-orb-2: rgba(90, 140, 200, 0.18);
}

html[data-theme="light"] {
  color-scheme: light;
  --lp-bg: #F6F6F9;
  --lp-bg-elevated: #FFFFFF;
  --lp-bg-card: #FFFFFF;
  --lp-bg-card-2: #F0F0F5;
  --lp-border: rgba(20, 20, 30, 0.08);
  --lp-border-strong: rgba(20, 20, 30, 0.14);
  --lp-text: #1A1A24;
  --lp-text-muted: #4A4A58;
  --lp-text-faint: #7A7A88;
  --lp-primary: #6C63FF;
  --lp-primary-soft: rgba(108, 99, 255, 0.12);
  --lp-primary-glow: rgba(108, 99, 255, 0.28);
  --lp-shadow: 0 18px 40px rgba(30, 30, 50, 0.1);
  --lp-nav-bg: rgba(246, 246, 249, 0.82);
  --lp-orb-1: rgba(108, 99, 255, 0.18);
  --lp-orb-2: rgba(80, 140, 200, 0.12);
}

html,
html[data-theme] {
  transition: background-color 320ms var(--lp-ease), color 320ms var(--lp-ease);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.lp {
  margin: 0;
  min-height: 100vh;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[dir="rtl"] body.lp {
  font-family: var(--lp-font-ar);
  line-height: 1.75;
  letter-spacing: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--lp-font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-family: var(--lp-font-ar);
  letter-spacing: 0;
  line-height: 1.35;
}

p {
  margin: 0;
}

/* ---------- Utilities ---------- */
.lp-skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 10000;
  padding: 0.6rem 1rem;
  background: var(--lp-primary);
  color: #fff;
  border-radius: 8px;
  transition: top var(--lp-duration) var(--lp-ease);
}

.lp-skip:focus {
  top: 1rem;
}

.lp-container {
  width: min(100% - 2rem, var(--lp-max));
  margin-inline: auto;
}

.lp-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-primary);
  margin-block-end: 0.75rem;
}

html[dir="rtl"] .lp-eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.lp-lead {
  color: var(--lp-text-muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin-block-start: 0.75rem;
}

.lp-section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.lp-section--alt {
  background: var(--lp-bg-elevated);
}

.lp-section__head {
  margin-block-end: clamp(2rem, 4vw, 3rem);
  max-width: 40rem;
}

.lp-section__head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* ---------- Buttons ---------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding-inline: 1.25rem;
  padding-block: 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--lp-duration) var(--lp-ease),
    background-color var(--lp-duration) var(--lp-ease),
    border-color var(--lp-duration) var(--lp-ease),
    box-shadow var(--lp-duration) var(--lp-ease),
    opacity var(--lp-duration) var(--lp-ease);
}

.lp-btn:hover {
  transform: scale(1.03);
}

.lp-btn:active {
  transform: scale(0.98);
}

.lp-btn__icon {
  flex-shrink: 0;
}

/* Android APK download CTA (mobile section) */
.lp-btn--android {
  background: #3ddc84;
  color: #073042;
  box-shadow: 0 8px 24px rgb(61 220 132 / 35%);
}

.lp-btn--android:hover {
  filter: brightness(1.06);
}

.lp-btn--primary {
  background: var(--lp-primary);
  color: #fff;
  box-shadow: 0 8px 24px var(--lp-primary-glow);
}

.lp-btn--primary:hover {
  filter: brightness(1.08);
}

.lp-btn--ghost {
  background: transparent;
  border-color: var(--lp-border-strong);
  color: var(--lp-text);
}

.lp-btn--ghost:hover {
  background: var(--lp-primary-soft);
  border-color: var(--lp-primary);
}

.lp-btn--sm {
  min-height: 2.35rem;
  padding-inline: 1rem;
  font-size: 0.875rem;
}

.lp-btn--lg {
  min-height: 3.1rem;
  padding-inline: 1.5rem;
  font-size: 1rem;
}

.lp-cta-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 1.75rem;
}

.lp-cta-pair--center {
  justify-content: center;
}

/* ---------- Nav ---------- */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--lp-nav-bg);
  border-block-end: 1px solid var(--lp-border);
  transition: background-color 320ms var(--lp-ease), border-color 320ms var(--lp-ease);
}

.lp-nav__inner {
  width: min(100% - 2rem, var(--lp-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.75rem;
}

.lp-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.lp-logo__img {
  height: 32px;
  width: auto;
  display: none;
}

.lp-nav .lp-logo__img {
  height: 52px;
}

.lp-nav .lp-logo__mark {
  display: block;
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.lp-nav .lp-logo__wordmark {
  display: none;
}

.lp-footer .lp-logo__img {
  height: 48px;
}

@media (min-width: 900px) {
  .lp-nav .lp-logo__mark {
    display: none;
  }

  .lp-nav .lp-logo__img {
    height: 58px;
  }

  .lp-footer .lp-logo__img {
    height: 56px;
  }

  /* Dark theme + LTR (default) — full wordmark logos on desktop */
  html[data-theme="dark"] .lp-nav .lp-logo__dark.lp-logo__ltr { display: block; }
  html[data-theme="light"] .lp-nav .lp-logo__light.lp-logo__ltr { display: block; }
  html[dir="rtl"][data-theme="dark"] .lp-nav .lp-logo__dark.lp-logo__ltr { display: none; }
  html[dir="rtl"][data-theme="light"] .lp-nav .lp-logo__light.lp-logo__ltr { display: none; }
  html[dir="rtl"][data-theme="dark"] .lp-nav .lp-logo__dark.lp-logo__rtl { display: block; }
  html[dir="rtl"][data-theme="light"] .lp-nav .lp-logo__light.lp-logo__rtl { display: block; }
}

/* Footer wordmarks (all breakpoints) */
html[data-theme="dark"] .lp-footer .lp-logo__dark.lp-logo__ltr { display: block; }
html[data-theme="light"] .lp-footer .lp-logo__light.lp-logo__ltr { display: block; }
html[dir="rtl"][data-theme="dark"] .lp-footer .lp-logo__dark.lp-logo__ltr { display: none; }
html[dir="rtl"][data-theme="light"] .lp-footer .lp-logo__light.lp-logo__ltr { display: none; }
html[dir="rtl"][data-theme="dark"] .lp-footer .lp-logo__dark.lp-logo__rtl { display: block; }
html[dir="rtl"][data-theme="light"] .lp-footer .lp-logo__light.lp-logo__rtl { display: block; }

.lp-nav__links {
  display: none;
  align-items: center;
  gap: 1.25rem;
  margin-inline-start: auto;
  margin-inline-end: 1rem;
}

.lp-nav__links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--lp-text-muted);
  padding-block: 0.35rem;
  transition: color var(--lp-duration) var(--lp-ease);
}

.lp-nav__links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--lp-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--lp-duration) var(--lp-ease);
}

.lp-nav__links a:hover,
.lp-nav__links a:focus-visible {
  color: var(--lp-text);
}

.lp-nav__links a:hover::after,
.lp-nav__links a:focus-visible::after {
  transform: scaleX(1);
}

.lp-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}

.lp-nav__cta {
  display: inline-flex;
}

.lp-lang {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-card);
}

.lp-lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 1.85rem;
  padding-inline: 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lp-text-muted);
  transition:
    background-color var(--lp-duration) var(--lp-ease),
    color var(--lp-duration) var(--lp-ease),
    transform var(--lp-duration) var(--lp-ease);
}

.lp-lang__flag {
  font-size: 1.15rem;
  line-height: 1;
}

.lp-lang__btn:hover {
  color: var(--lp-text);
  transform: scale(1.04);
}

.lp-lang__btn.is-active {
  background: var(--lp-primary-soft);
  color: var(--lp-primary);
}

.lp-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-card);
  color: var(--lp-text);
  cursor: pointer;
  transition:
    transform var(--lp-duration) var(--lp-ease),
    background-color var(--lp-duration) var(--lp-ease),
    border-color var(--lp-duration) var(--lp-ease);
}

.lp-theme:hover {
  transform: scale(1.06);
  border-color: var(--lp-border-strong);
}

.lp-theme__icon--moon { display: none; }
html[data-theme="light"] .lp-theme__icon--sun { display: none; }
html[data-theme="light"] .lp-theme__icon--moon { display: block; }

@media (min-width: 900px) {
  .lp-nav__links { display: flex; }
  .lp-nav__actions { margin-inline-start: 0; }
}

/* ---------- Hero ---------- */
.lp-hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
  overflow: clip;
}

.lp-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, var(--lp-orb-1), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, var(--lp-orb-2), transparent 70%);
  pointer-events: none;
}

.lp-hero__grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .lp-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.lp-hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  max-width: 14ch;
}

.lp-hero__sub {
  margin-block-start: 1.25rem;
  color: var(--lp-text-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 36rem;
}

.lp-hero__visual {
  position: relative;
  min-height: 280px;
}

.lp-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: lp-float 8s var(--lp-ease) infinite alternate;
}

.lp-hero__orb--1 {
  width: 180px;
  height: 180px;
  background: var(--lp-orb-1);
  inset-inline-end: -20px;
  top: -30px;
}

.lp-hero__orb--2 {
  width: 140px;
  height: 140px;
  background: var(--lp-orb-2);
  inset-inline-start: -10px;
  bottom: 10px;
  animation-delay: -3s;
}

/* Drift vars default to 0 — only the hero pointer-parallax (landing.js) sets them */
@keyframes lp-float {
  from { transform: translate3d(var(--lp-drift-x, 0px), var(--lp-drift-y, 0px), 0); }
  to { transform: translate3d(var(--lp-drift-x, 0px), calc(var(--lp-drift-y, 0px) + 18px), 0); }
}

.lp-mock-ops {
  display: flex;
  gap: 0.5rem;
}

.lp-mock-op {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--lp-border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lp-text-muted);
}

.lp-mock-op.is-active {
  background: var(--lp-primary-soft);
  border-color: var(--lp-primary);
  color: var(--lp-primary);
}

.lp-mock-field {
  border-radius: 10px;
  border: 1px solid var(--lp-border-strong);
  padding: 0.85rem 1rem;
  color: var(--lp-text-faint);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: start;
  box-shadow: 0 0 0 0 var(--lp-primary-glow);
  animation: lp-focus-glow 3.5s var(--lp-ease) infinite;
}

@keyframes lp-focus-glow {
  0%, 70%, 100% { box-shadow: 0 0 0 0 transparent; }
  80% { box-shadow: 0 0 0 3px var(--lp-primary-glow); }
}

.lp-mock-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.lp-mock-amounts span {
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--lp-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lp-text-muted);
}

.lp-mock-amounts span.is-active {
  background: var(--lp-primary);
  border-color: var(--lp-primary);
  color: #fff;
}

.lp-mock-cta {
  height: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lp-primary), color-mix(in srgb, var(--lp-primary) 70%, #88a));
}

.lp-mock-ops--compact .lp-mock-op { font-size: 0.7rem; padding: 0.4rem; }
.lp-mock-field--sm { padding: 0.65rem 0.75rem; font-size: 0.8rem; }
.lp-mock-amounts--sm { grid-template-columns: repeat(3, 1fr); }
.lp-mock-cta--sm { height: 2.1rem; }

/* ---------- Proof ---------- */
.lp-proof {
  padding-block: 2.5rem 3rem;
  border-block: 1px solid var(--lp-border);
  text-align: center;
}

.lp-proof__line {
  font-family: var(--lp-font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  margin-block-end: 1.5rem;
}

.lp-proof__ops-label {
  font-size: 0.8rem;
  color: var(--lp-text-faint);
  margin-block-end: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lp-proof__ops-label--catalog {
  margin-block-start: 2rem;
}

html[dir="rtl"] .lp-proof__ops-label {
  letter-spacing: 0;
  text-transform: none;
}

/* Operator marquee — continuous, seamless loop (two identical groups, -50% shift) */
.lp-marquee {
  overflow: hidden;
  direction: ltr; /* keep fade mask + loop math stable on RTL pages */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.lp-marquee__track {
  display: flex;
  width: max-content;
  direction: ltr; /* translateX(-50%) loop must not flip with page dir=rtl */
  animation: lp-marquee 26s linear infinite;
}

.lp-marquee--catalog .lp-marquee__track,
.lp-marquee__track--catalog {
  animation-duration: 38s;
  animation-direction: reverse;
}

.lp-marquee:hover .lp-marquee__track {
  animation-play-state: paused;
}

:dir(rtl) .lp-marquee__track {
  animation-direction: reverse;
}

:dir(rtl) .lp-marquee--catalog .lp-marquee__track,
:dir(rtl) .lp-marquee__track--catalog {
  animation-direction: normal;
}

.lp-marquee__group {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-inline-end: 3.5rem;
}

.lp-marquee__group--catalog {
  gap: 1.1rem;
  padding-inline-end: 1.1rem;
  align-items: stretch;
}

.lp-marquee__group img {
  height: 34px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(0.2);
}

.lp-proof-card {
  margin: 0;
  flex: 0 0 auto;
  width: 168px;
  aspect-ratio: 1.55 / 1;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-card);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform var(--lp-duration) var(--lp-ease), border-color var(--lp-duration) var(--lp-ease);
}

@media (min-width: 640px) {
  .lp-proof-card {
    width: 200px;
  }
}

.lp-proof-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
  display: block;
}

.lp-proof-card:hover {
  transform: translateY(-4px);
  border-color: var(--lp-border-strong);
}

.lp-proof-card--game {
  border-color: color-mix(in srgb, var(--lp-primary) 35%, var(--lp-border));
}

.lp-proof-card--game img {
  object-fit: cover;
}

@keyframes lp-marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Features ---------- */
.lp-feature {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-block-end: clamp(3rem, 6vw, 5rem);
}

.lp-feature:last-child {
  margin-block-end: 0;
}

@media (min-width: 860px) {
  .lp-feature {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.lp-feature h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-block-end: 0.85rem;
}

.lp-feature p {
  color: var(--lp-text-muted);
  font-size: 1.05rem;
}

.lp-panel {
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: linear-gradient(160deg, var(--lp-bg-card) 0%, var(--lp-bg-card-2) 100%);
  padding: 1.5rem;
  box-shadow: var(--lp-shadow);
  min-height: 200px;
  transition: transform var(--lp-duration) var(--lp-ease), border-color var(--lp-duration) var(--lp-ease);
}

.lp-panel:hover {
  transform: translateY(-4px);
  border-color: var(--lp-border-strong);
}

.lp-panel__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-block-end: 1.5rem;
}

.lp-panel__row img {
  height: 28px;
  width: auto;
}

/* ---------- Flexy live demo ---------- */
.lp-panel--flexy {
  --lp-flexy-accent: #2bb673;
  --lp-flexy-accent-soft: rgba(43, 182, 115, 0.18);
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  min-height: 280px;
  display: grid;
  gap: 1rem;
  isolation: isolate;
}

.lp-panel--flexy[data-op="mobilis"] {
  --lp-flexy-accent: #2bb673;
  --lp-flexy-accent-soft: rgba(43, 182, 115, 0.2);
}

.lp-panel--flexy[data-op="djezzy"] {
  --lp-flexy-accent: #e53935;
  --lp-flexy-accent-soft: rgba(229, 57, 53, 0.18);
}

.lp-panel--flexy[data-op="ooredoo"] {
  --lp-flexy-accent: #ed1c24;
  --lp-flexy-accent-soft: rgba(237, 28, 36, 0.18);
}

.lp-flexy__glow {
  position: absolute;
  inset: -30% -10% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, var(--lp-flexy-accent-soft) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  transition: background 480ms var(--lp-ease);
  animation: lp-flexy-glow 5.5s var(--lp-ease) infinite alternate;
}

.lp-flexy__ops,
.lp-flexy__screen,
.lp-flexy__trail {
  position: relative;
  z-index: 1;
}

.lp-flexy__ops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.lp-flexy__op {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--lp-border);
  background: color-mix(in srgb, var(--lp-bg) 70%, transparent);
  opacity: 0.45;
  filter: grayscale(0.35);
  transform: scale(0.96);
  transition:
    opacity 380ms var(--lp-ease),
    filter 380ms var(--lp-ease),
    transform 380ms var(--lp-ease),
    border-color 380ms var(--lp-ease),
    box-shadow 380ms var(--lp-ease),
    background-color 380ms var(--lp-ease);
}

.lp-flexy__op img {
  height: 20px;
  width: auto;
}

.lp-flexy__op.is-active {
  opacity: 1;
  filter: none;
  transform: scale(1);
  border-color: color-mix(in srgb, var(--lp-flexy-accent) 45%, var(--lp-border));
  background: color-mix(in srgb, var(--lp-flexy-accent-soft) 70%, var(--lp-bg));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--lp-flexy-accent) 22%, transparent);
}

.lp-flexy__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-inline-start: auto;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-text-faint);
}

.lp-flexy__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lp-flexy-accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--lp-flexy-accent) 45%, transparent);
  animation: lp-flexy-live 1.8s var(--lp-ease) infinite;
}

.lp-flexy__screen {
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: var(--lp-radius-sm);
  border: 1px solid var(--lp-border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--lp-bg) 55%, transparent), transparent),
    color-mix(in srgb, var(--lp-bg-card) 88%, transparent);
}

.lp-flexy__phone {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-family: var(--lp-font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  direction: ltr;
  min-height: 2rem;
}

.lp-flexy__caret {
  width: 2px;
  height: 1.15em;
  background: var(--lp-flexy-accent);
  border-radius: 1px;
  opacity: 0;
}

.lp-flexy__caret.is-on {
  animation: lp-flexy-caret 0.9s step-end infinite;
}

.lp-flexy__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-block: 0.85rem 1rem;
}

.lp-flexy__mode {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-text-faint);
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.lp-flexy__mode.is-on {
  color: var(--lp-flexy-accent);
  border-color: color-mix(in srgb, var(--lp-flexy-accent) 30%, transparent);
  background: var(--lp-flexy-accent-soft);
}

.lp-flexy__amount {
  font-family: var(--lp-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lp-text);
  direction: ltr;
  transition: transform 320ms var(--lp-ease), color 320ms var(--lp-ease);
}

.lp-flexy__amount.is-pop {
  color: var(--lp-flexy-accent);
  transform: scale(1.08);
}

.lp-flexy__beam {
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lp-bg) 80%, var(--lp-border));
  overflow: hidden;
  position: relative;
}

.lp-flexy__beam i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--lp-flexy-accent) 35%,
    #fff 55%,
    var(--lp-flexy-accent) 75%,
    transparent 100%
  );
  box-shadow: 0 0 16px var(--lp-flexy-accent);
}

.lp-flexy__beam i.is-run {
  animation: lp-flexy-beam 720ms var(--lp-ease) forwards;
}

:dir(rtl) .lp-flexy__beam i.is-run {
  animation-name: lp-flexy-beam-rtl;
}

.lp-flexy__status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-block-start: 0.95rem;
  min-height: 1.5rem;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--lp-flexy-accent);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 280ms var(--lp-ease), transform 280ms var(--lp-ease);
}

.lp-flexy__status.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lp-flexy__check {
  flex-shrink: 0;
}

.lp-flexy__burst {
  position: absolute;
  width: 28px;
  height: 28px;
  margin-inline-start: -5px;
  border-radius: 50%;
  border: 2px solid var(--lp-flexy-accent);
  opacity: 0;
  pointer-events: none;
}

.lp-flexy__status.is-on .lp-flexy__burst {
  animation: lp-flexy-burst 700ms var(--lp-ease);
}

.lp-flexy__trail {
  display: grid;
  gap: 0.4rem;
  min-height: 4.5rem;
}

.lp-flexy__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--lp-border);
  background: color-mix(in srgb, var(--lp-bg) 65%, transparent);
  font-size: 0.82rem;
  color: var(--lp-text-muted);
}

.lp-flexy__row img {
  height: 16px;
  width: auto;
}

.lp-flexy__row b {
  margin-inline-start: auto;
  font-family: var(--lp-font-display);
  font-weight: 700;
  color: var(--lp-text);
  direction: ltr;
}

.lp-flexy__row.is-new {
  animation: lp-flexy-row-in 480ms var(--lp-ease);
}

@keyframes lp-flexy-glow {
  from { transform: translate(0, 0) scale(1); opacity: 0.65; }
  to { transform: translate(-12%, 10%) scale(1.15); opacity: 1; }
}

@keyframes lp-flexy-live {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lp-flexy-accent) 45%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes lp-flexy-caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes lp-flexy-beam {
  0% { width: 0; transform: translateX(0); opacity: 0.4; }
  35% { opacity: 1; }
  100% { width: 100%; opacity: 1; }
}

@keyframes lp-flexy-beam-rtl {
  0% { width: 0; margin-inline-start: auto; opacity: 0.4; }
  35% { opacity: 1; }
  100% { width: 100%; margin-inline-start: auto; opacity: 1; }
}

@keyframes lp-flexy-burst {
  0% { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes lp-flexy-row-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .lp-flexy__live { width: 100%; margin-inline-start: 0; margin-block-start: 0.15rem; }
  .lp-panel--flexy { min-height: 0; }
}

.lp-panel--tree {
  text-align: center;
  padding: 1.35rem 1.1rem 1.5rem;
  overflow: hidden;
}

.lp-hier__caption {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  margin-block-end: 1.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--lp-primary-soft);
  color: var(--lp-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 280ms var(--lp-ease), transform 280ms var(--lp-ease);
}

html[dir="rtl"] .lp-hier__caption {
  letter-spacing: 0;
}

.lp-hier__tier {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.lp-hier__person {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 5.5rem;
  max-width: 7.5rem;
  padding: 0.7rem 0.55rem 0.65rem;
  border-radius: 14px;
  border: 1px solid var(--lp-border);
  background: var(--lp-bg);
  transition:
    transform 400ms var(--lp-ease),
    border-color 400ms var(--lp-ease),
    box-shadow 400ms var(--lp-ease),
    background-color 400ms var(--lp-ease);
}

.lp-hier__person--sm {
  min-width: 4.6rem;
  max-width: 6rem;
  padding: 0.55rem 0.4rem 0.5rem;
}

.lp-hier__person.is-source,
.lp-hier__person.is-target {
  border-color: color-mix(in srgb, var(--lp-primary) 55%, transparent);
  box-shadow: 0 10px 28px var(--lp-primary-glow);
  transform: translateY(-3px);
}

.lp-hier__person.is-source {
  background: color-mix(in srgb, var(--lp-primary-soft) 70%, var(--lp-bg));
}

.lp-hier__avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: #fff;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.lp-hier__person--sm .lp-hier__avatar {
  width: 2.35rem;
  height: 2.35rem;
}

.lp-hier__avatar::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 400ms var(--lp-ease), transform 400ms var(--lp-ease);
}

.lp-hier__person.is-source .lp-hier__avatar::after,
.lp-hier__person.is-target .lp-hier__avatar::after {
  border-color: color-mix(in srgb, var(--lp-primary) 70%, #fff);
  transform: scale(1.06);
}

.lp-hier__avatar--admin {
  background: linear-gradient(145deg, var(--lp-primary), color-mix(in srgb, var(--lp-primary) 55%, #1a1a2e));
}

.lp-hier__avatar--w {
  background: linear-gradient(145deg, color-mix(in srgb, var(--lp-primary) 80%, #6a8), color-mix(in srgb, var(--lp-primary) 40%, #222));
}

.lp-hier__avatar--r {
  background: linear-gradient(145deg, color-mix(in srgb, var(--lp-primary) 55%, #889), color-mix(in srgb, var(--lp-primary) 25%, #1c1c28));
}

.lp-hier__meta {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
}

.lp-hier__meta strong {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--lp-text);
}

.lp-hier__person--sm .lp-hier__meta strong {
  font-size: 0.65rem;
}

.lp-hier__chip {
  display: none;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.lp-hier__person.is-target .lp-hier__chip--fund.is-on,
.lp-hier__person.is-target .lp-hier__chip--gain.is-on,
.lp-hier__person.is-source .lp-hier__chip--gain.is-on {
  display: inline-flex;
  animation: lp-hier-chip 480ms var(--lp-ease);
}

.lp-hier__chip--fund {
  background: var(--lp-primary-soft);
  color: var(--lp-primary);
}

.lp-hier__chip--gain {
  background: color-mix(in srgb, #34d399 18%, transparent);
  color: #34d399;
}

@keyframes lp-hier-chip {
  from { opacity: 0; transform: translateY(6px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lp-hier__link {
  position: relative;
  height: 28px;
  margin-block: 0.15rem;
}

.lp-hier__line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  background: var(--lp-border-strong);
}

.lp-hier__link--wide {
  height: 36px;
  margin-block: 0.35rem 0.15rem;
}

.lp-hier__rail {
  position: absolute;
  top: 8px;
  left: 50%;
  width: min(78%, 240px);
  height: 2px;
  transform: translateX(-50%);
  background: var(--lp-border-strong);
}

.lp-hier__drop {
  position: absolute;
  top: 8px;
  width: 2px;
  height: 28px;
  background: var(--lp-border-strong);
}

.lp-hier__drop:nth-child(2) { left: calc(50% - min(39%, 120px)); }
.lp-hier__drop:nth-child(3) { left: 50%; transform: translateX(-50%); }
.lp-hier__drop:nth-child(4) { left: calc(50% + min(39%, 120px)); transform: translateX(-100%); }

.lp-hier__packet {
  position: absolute;
  left: 50%;
  top: 0;
  width: 9px;
  height: 9px;
  margin-inline-start: -4.5px;
  border-radius: 50%;
  background: var(--lp-primary);
  box-shadow: 0 0 12px var(--lp-primary-glow);
  opacity: 0;
  pointer-events: none;
}

.lp-panel--tree[data-phase="fund-down"] [data-link="a-w"] .lp-hier__packet {
  animation: lp-hier-down 900ms var(--lp-ease) forwards;
}

.lp-panel--tree[data-phase="fund-spread"] [data-link="w-r"] .lp-hier__packet {
  animation: lp-hier-down 1000ms var(--lp-ease) forwards;
}

.lp-panel--tree[data-phase="gain-up"] [data-link="w-r"] .lp-hier__packet {
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.45);
  animation: lp-hier-up 1000ms var(--lp-ease) forwards;
}

.lp-panel--tree[data-phase="gain-top"] [data-link="a-w"] .lp-hier__packet {
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.45);
  animation: lp-hier-up 900ms var(--lp-ease) forwards;
}

@keyframes lp-hier-down {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  15% { opacity: 1; transform: translateY(2px) scale(1); }
  85% { opacity: 1; transform: translateY(22px) scale(1); }
  100% { opacity: 0; transform: translateY(28px) scale(0.7); }
}

@keyframes lp-hier-up {
  0% { opacity: 0; transform: translateY(22px) scale(0.6); }
  15% { opacity: 1; transform: translateY(18px) scale(1); }
  85% { opacity: 1; transform: translateY(2px) scale(1); }
  100% { opacity: 0; transform: translateY(0) scale(0.7); }
}

.lp-panel--fund {
  display: grid;
  gap: 1.25rem;
  padding: 1.35rem;
  overflow: hidden;
  position: relative;
}

.lp-panel--fund::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, var(--lp-orb-2) 0%, transparent 70%);
  pointer-events: none;
  animation: lp-fund-glow 8s var(--lp-ease) infinite alternate;
}

.lp-fund-methods {
  display: grid;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.lp-fund-method {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: var(--lp-radius-sm);
  border: 1px solid var(--lp-border);
  background: color-mix(in srgb, var(--lp-bg) 72%, transparent);
  transition:
    border-color 480ms var(--lp-ease),
    background-color 480ms var(--lp-ease),
    transform 480ms var(--lp-ease),
    box-shadow 480ms var(--lp-ease);
}

.lp-fund-method.is-active {
  border-color: color-mix(in srgb, var(--lp-primary) 42%, var(--lp-border));
  background: color-mix(in srgb, var(--lp-primary-soft) 55%, var(--lp-bg));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.lp-fund-method__mark {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  flex-shrink: 0;
  animation: lp-fund-float 4.8s var(--lp-ease) infinite;
}

.lp-fund-method__mark--ccp {
  animation-delay: -2.4s;
}

.lp-fund-method.is-active .lp-fund-method__mark {
  animation-name: lp-fund-float-active;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.lp-fund-method__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
}

.lp-fund-method__logo--ccp {
  padding: 0;
  object-fit: cover;
}

.lp-fund-method__copy {
  min-width: 0;
}

.lp-fund-method__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-block-end: 0.35rem;
}

.lp-fund-method__head strong {
  font-family: var(--lp-font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lp-fund-method__badge {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  color: var(--lp-primary);
  background: var(--lp-primary-soft);
  border: 1px solid color-mix(in srgb, var(--lp-primary) 28%, transparent);
}

.lp-fund-method__badge--soft {
  color: var(--lp-text-muted);
  background: color-mix(in srgb, var(--lp-bg-card-2) 80%, transparent);
  border-color: var(--lp-border);
}

.lp-fund-method.is-active .lp-fund-method__badge--soft {
  color: var(--lp-primary);
  background: var(--lp-primary-soft);
  border-color: color-mix(in srgb, var(--lp-primary) 28%, transparent);
}

.lp-feature .lp-fund-method__copy p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--lp-text-muted);
}

.lp-fund-credit {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block-start: 0.35rem;
  border-top: 1px solid var(--lp-border);
}

.lp-fund-credit__label {
  display: block;
  margin-block: 0.65rem 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-text-faint);
}

.lp-fund-amount {
  font-family: var(--lp-font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--lp-primary);
  direction: ltr;
  animation: lp-fund-amount-pulse 3.2s var(--lp-ease) infinite;
}

@keyframes lp-fund-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes lp-fund-float-active {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.03); }
}

@keyframes lp-fund-glow {
  from { transform: translate(0, 0) scale(1); opacity: 0.55; }
  to { transform: translate(18%, 12%) scale(1.12); opacity: 0.9; }
}

@keyframes lp-fund-amount-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.88; transform: scale(1.02); }
}

@media (max-width: 520px) {
  .lp-fund-method {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.75rem;
  }

  .lp-fund-method__mark {
    width: 4rem;
    height: 4rem;
  }
}

/* ---------- Steps ---------- */
.lp-steps {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .lp-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.lp-step {
  padding: 1.75rem 1.5rem;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-card);
  transition: transform var(--lp-duration) var(--lp-ease), border-color var(--lp-duration) var(--lp-ease);
}

.lp-step:hover {
  transform: translateY(-4px);
  border-color: var(--lp-border-strong);
}

.lp-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-block-end: 1rem;
  border-radius: 12px;
  color: var(--lp-primary);
  background: var(--lp-primary-soft);
  border: 1px solid color-mix(in srgb, var(--lp-primary) 22%, transparent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--lp-primary) 20%, transparent);
  animation: lp-step-float 3.2s var(--lp-ease) infinite;
  will-change: transform;
}

.lp-step:nth-child(2) .lp-step__icon {
  animation-name: lp-step-float-b;
  animation-delay: -1.1s;
}

.lp-step:nth-child(3) .lp-step__icon {
  animation-name: lp-step-float-c;
  animation-delay: -2.2s;
}

.lp-step__icon svg {
  display: block;
  animation: lp-step-icon-tilt 3.2s var(--lp-ease) infinite;
}

.lp-step:nth-child(2) .lp-step__icon svg { animation-delay: -1.1s; }
.lp-step:nth-child(3) .lp-step__icon svg { animation-delay: -2.2s; }

@keyframes lp-step-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--lp-primary) 0%, transparent);
  }
  50% {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--lp-primary) 22%, transparent);
  }
}

@keyframes lp-step-float-b {
  0%, 100% {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--lp-primary) 12%, transparent);
  }
  50% {
    transform: translateY(4px) scale(1);
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes lp-step-float-c {
  0%, 100% {
    transform: translateY(2px) scale(1);
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    transform: translateY(-7px) scale(1.06);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--lp-primary) 24%, transparent);
  }
}

@keyframes lp-step-icon-tilt {
  0%, 100% { transform: rotate(0deg); }
  40% { transform: rotate(-6deg); }
  70% { transform: rotate(5deg); }
}

.lp-step h3 {
  font-size: 1.2rem;
  margin-block-end: 0.5rem;
}

.lp-step p {
  color: var(--lp-text-muted);
  font-size: 0.95rem;
}

/* ---------- Mobile ---------- */
.lp-mobile {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .lp-mobile {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.lp-mobile__copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.lp-mobile__benefits {
  display: grid;
  gap: 1rem;
  margin-block: 1.75rem;
}

.lp-mobile__benefits li {
  padding: 1rem 1.15rem;
  border-radius: var(--lp-radius-sm);
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-card);
  display: grid;
  gap: 0.25rem;
  transition: transform var(--lp-duration) var(--lp-ease), border-color var(--lp-duration) var(--lp-ease);
}

.lp-mobile__benefits li:hover {
  transform: translateY(-2px);
  border-color: var(--lp-border-strong);
}

.lp-mobile__benefits strong {
  font-size: 0.95rem;
}

.lp-mobile__benefits span {
  color: var(--lp-text-muted);
  font-size: 0.9rem;
}

.lp-mobile__download {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.lp-mobile__download-hint {
  color: var(--lp-text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.lp-mobile__phone {
  display: flex;
  justify-content: center;
}

.lp-phone {
  width: min(100%, 260px);
  border-radius: 36px;
  border: 3px solid color-mix(in srgb, var(--lp-text) 18%, transparent);
  background: var(--lp-bg-card-2);
  padding: 0.65rem;
  box-shadow: var(--lp-shadow);
  position: relative;
}

.lp-phone__notch {
  width: 90px;
  height: 18px;
  margin-inline: auto;
  margin-block-end: 0.5rem;
  border-radius: 999px;
  background: #000;
}

.lp-phone__screen {
  border-radius: 28px;
  background: var(--lp-bg);
  padding: 1rem 0.85rem 1.25rem;
  min-height: 420px;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.lp-phone__screen--shots {
  position: relative;
  padding: 0;
  min-height: 0;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 19.2;
  background: #0b1220;
}

.lp-phone__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 420ms var(--lp-ease);
}

/* Default / FR / EN → French shot; AR → Arabic shot */
.lp-phone__shot--fr,
html[lang="fr"] .lp-phone__shot--fr,
html[lang="en"] .lp-phone__shot--fr {
  opacity: 1;
}

html[lang="ar"] .lp-phone__shot--fr {
  opacity: 0;
}

html[lang="ar"] .lp-phone__shot--ar {
  opacity: 1;
}

.lp-phone__status {
  height: 6px;
  width: 40%;
  border-radius: 999px;
  background: var(--lp-border-strong);
  margin-inline: auto;
}

.lp-phone__title {
  font-family: var(--lp-font-display);
  font-weight: 700;
  text-align: center;
  margin-block: 0.35rem 0.5rem;
}

/* ---------- Testimonials ---------- */
.lp-quotes {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .lp-quotes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lp-quote {
  margin: 0;
  padding: 1.75rem 1.5rem;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--lp-duration) var(--lp-ease), border-color var(--lp-duration) var(--lp-ease);
}

.lp-quote:hover {
  transform: translateY(-4px);
  border-color: var(--lp-border-strong);
}

.lp-quote p {
  color: var(--lp-text);
  font-size: 1rem;
  flex: 1;
}

.lp-quote footer {
  display: grid;
  gap: 0.15rem;
}

.lp-quote cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
}

.lp-quote footer span {
  color: var(--lp-text-muted);
  font-size: 0.8rem;
}

/* ---------- Roles — clickable story cards ---------- */
.lp-roles {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .lp-roles {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.lp-role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background:
    radial-gradient(120% 80% at 100% 0%, var(--lp-primary-soft), transparent 55%),
    var(--lp-bg-card);
  color: inherit;
  text-align: start;
  cursor: pointer;
  overflow: hidden;
  font: inherit;
  transition:
    transform var(--lp-duration) var(--lp-ease),
    border-color var(--lp-duration) var(--lp-ease),
    box-shadow var(--lp-duration) var(--lp-ease);
}

.lp-role-card:hover,
.lp-role-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--lp-border-strong);
  box-shadow: var(--lp-shadow);
  outline: none;
}

.lp-role-card:focus-visible {
  box-shadow: var(--lp-shadow), 0 0 0 3px var(--lp-primary-soft);
}

.lp-role-card__index {
  font-family: var(--lp-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lp-primary);
}

.lp-role-card h3 {
  font-size: 1.75rem;
  margin-block-start: 0.25rem;
}

.lp-role-card > p {
  color: var(--lp-text-muted);
  max-width: 34ch;
  flex: 1;
}

.lp-role-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--lp-primary-soft);
  color: var(--lp-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color var(--lp-duration) var(--lp-ease), gap var(--lp-duration) var(--lp-ease);
}

.lp-role-card:hover .lp-role-card__cta,
.lp-role-card:focus-visible .lp-role-card__cta {
  background: var(--lp-primary);
  color: #fff;
  gap: 0.7rem;
}

html[dir="rtl"] .lp-role-card__cta svg {
  transform: scaleX(-1);
}

/* Mini sketch decorations on cards */
.lp-role-card__sketch {
  position: absolute;
  inset-inline-end: 1.25rem;
  top: 1.25rem;
  width: 72px;
  height: 72px;
  opacity: 0.55;
  pointer-events: none;
}

.lp-role-card__node {
  display: block;
  width: 14px;
  height: 14px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--lp-primary);
  box-shadow: 0 0 0 4px var(--lp-primary-soft);
}

.lp-role-card__line {
  display: block;
  width: 2px;
  height: 22px;
  margin: 4px auto;
  background: linear-gradient(to bottom, var(--lp-primary), transparent);
  transform-origin: top;
}

.lp-role-card__row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.lp-role-card__row i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lp-text-faint);
}

.lp-role-card:hover .lp-role-card__line {
  animation: lp-story-line-draw 0.7s var(--lp-ease) both;
}

.lp-role-card__sketch--retail {
  display: grid;
  place-items: center;
}

.lp-role-card__counter {
  width: 36px;
  height: 48px;
  border-radius: 8px;
  border: 2px solid var(--lp-primary);
  background: var(--lp-bg-elevated);
}

.lp-role-card__pulse {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lp-primary);
  inset-inline-end: 8px;
  bottom: 10px;
  box-shadow: 0 0 0 0 var(--lp-primary-glow);
}

.lp-role-card:hover .lp-role-card__pulse {
  animation: lp-story-pulse 1.4s var(--lp-ease) infinite;
}

@keyframes lp-story-line-draw {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes lp-story-pulse {
  0% { box-shadow: 0 0 0 0 var(--lp-primary-glow); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- Role story — horizontal animated slides ---------- */
.lp-story {
  position: fixed;
  inset: 0;
  z-index: 11000;
  pointer-events: none;
  visibility: hidden;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lp-story.is-open {
  pointer-events: auto;
  visibility: visible;
}

.lp-story__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 12, 0.68);
  opacity: 0;
  transition: opacity 380ms var(--lp-ease);
}

.lp-story.is-open .lp-story__backdrop {
  opacity: 1;
}

.lp-story__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(90% 60% at 50% 0%, var(--lp-primary-soft), transparent 60%),
    var(--lp-bg-elevated);
  border: 1px solid var(--lp-border);
  border-radius: 22px;
  box-shadow: var(--lp-shadow);
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  transition:
    transform 480ms var(--lp-ease),
    opacity 380ms var(--lp-ease);
  overflow: hidden;
}

.lp-story.is-open .lp-story__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.lp-story__header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 0.75rem 1rem;
  padding: 1.25rem 1.35rem 1rem;
  border-block-end: 1px solid var(--lp-border);
  flex-shrink: 0;
}

.lp-story__heading .lp-eyebrow {
  margin-block-end: 0.3rem;
}

.lp-story__heading h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.lp-story__progress {
  align-self: center;
  font-family: var(--lp-font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lp-primary);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.lp-story__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  background: transparent;
  color: var(--lp-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    color var(--lp-duration) var(--lp-ease),
    border-color var(--lp-duration) var(--lp-ease),
    background-color var(--lp-duration) var(--lp-ease);
}

.lp-story__close:hover,
.lp-story__close:focus-visible {
  color: var(--lp-text);
  border-color: var(--lp-border-strong);
  background: var(--lp-bg-card-2);
  outline: none;
}

.lp-story__stage {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-height: 0;
  padding: 0.5rem 0.4rem;
}

.lp-story__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-card);
  color: var(--lp-text);
  cursor: pointer;
  z-index: 2;
  transition:
    transform var(--lp-duration) var(--lp-ease),
    background-color var(--lp-duration) var(--lp-ease),
    border-color var(--lp-duration) var(--lp-ease),
    opacity var(--lp-duration) var(--lp-ease);
}

.lp-story__nav:hover:not(:disabled),
.lp-story__nav:focus-visible:not(:disabled) {
  transform: scale(1.06);
  border-color: var(--lp-primary);
  background: var(--lp-primary-soft);
  outline: none;
}

.lp-story__nav:disabled {
  opacity: 0.28;
  cursor: default;
}

html[dir="rtl"] .lp-story__nav svg {
  transform: scaleX(-1);
}

.lp-story__viewport {
  overflow: hidden;
  touch-action: pan-y;
  min-width: 0;
  min-height: 360px;
  direction: ltr; /* keep slide transform math consistent; copy dir set on slides */
}

.lp-story__track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 520ms var(--lp-ease);
}

.lp-story__track[hidden] {
  display: none !important;
}

.lp-story.is-reduced .lp-story__track {
  transition: none;
}

.lp-story__slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 1rem 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
  opacity: 0.35;
  transform: scale(0.94);
  transition:
    opacity 420ms var(--lp-ease),
    transform 520ms var(--lp-ease);
}

html[dir="rtl"] .lp-story__slide {
  direction: rtl;
}

.lp-story__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.lp-story__avatar {
  position: relative;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
}

.lp-avatar {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  color: var(--lp-primary);
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.lp-avatar__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 30%, var(--lp-primary-glow), transparent 60%);
  opacity: 0.55;
  pointer-events: none;
}

.lp-avatar svg {
  position: relative;
  z-index: 1;
}

.lp-story__slide.is-active .lp-avatar {
  animation: lp-avatar-pop 560ms var(--lp-ease) both;
}

.lp-story__slide.is-active .lp-avatar__glow {
  animation: lp-avatar-glow 1.8s var(--lp-ease) infinite alternate;
}

@keyframes lp-avatar-pop {
  0% { transform: scale(0.72) rotate(-4deg); opacity: 0.4; }
  65% { transform: scale(1.06) rotate(1deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes lp-avatar-glow {
  from { opacity: 0.35; transform: scale(0.95); }
  to { opacity: 0.75; transform: scale(1.08); }
}

.lp-avatar--desk { color: #7B74E8; }
.lp-avatar--wallet { color: #4DB6A0; }
.lp-avatar--network { color: #6C9BFF; }
.lp-avatar--transfer { color: #E0A24A; }
.lp-avatar--sell { color: #D46B8A; }
.lp-avatar--steer { color: #8B7CF0; }
.lp-avatar--gains { color: #49B57A; }
.lp-avatar--join { color: #6C9BFF; }
.lp-avatar--fuel { color: #4DB6A0; }
.lp-avatar--mobile { color: #E0A24A; }

.lp-story__copy {
  max-width: 34rem;
}

.lp-story__step {
  display: inline-block;
  margin-block-end: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-primary);
}

html[dir="rtl"] .lp-story__step {
  letter-spacing: 0;
  text-transform: none;
}

.lp-story__copy h3 {
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  margin-block-end: 0.55rem;
}

.lp-story__copy p {
  color: var(--lp-text-muted);
  font-size: 1rem;
  margin-block-end: 0.9rem;
}

.lp-story__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.lp-story__tags li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-card);
  color: var(--lp-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
}

.lp-story__slide.is-active .lp-story__tags li {
  animation: lp-story-tag-in 420ms var(--lp-ease) both;
}

.lp-story__slide.is-active .lp-story__tags li:nth-child(1) { animation-delay: 120ms; }
.lp-story__slide.is-active .lp-story__tags li:nth-child(2) { animation-delay: 180ms; }
.lp-story__slide.is-active .lp-story__tags li:nth-child(3) { animation-delay: 240ms; }
.lp-story__slide.is-active .lp-story__tags li:nth-child(4) { animation-delay: 300ms; }

.lp-story.is-reduced .lp-story__slide.is-active .lp-story__tags li,
.lp-story.is-reduced .lp-story__slide.is-active .lp-avatar {
  animation: none;
  opacity: 1;
  transform: none;
}

@keyframes lp-story-tag-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lp-story__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.25rem 1rem 0.75rem;
  flex-shrink: 0;
}

.lp-story__dot-btn {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--lp-border-strong);
  cursor: pointer;
  transition:
    width 280ms var(--lp-ease),
    background-color 280ms var(--lp-ease),
    transform 280ms var(--lp-ease);
}

.lp-story__dot-btn.is-active {
  width: 1.35rem;
  background: var(--lp-primary);
}

.lp-story__dot-btn:focus-visible {
  outline: 2px solid var(--lp-primary);
  outline-offset: 3px;
}

.lp-story__footer {
  flex-shrink: 0;
  padding: 0.85rem 1.35rem 1.25rem;
  border-block-start: 1px solid var(--lp-border);
  display: grid;
  gap: 0.75rem;
}

.lp-story__hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--lp-text-faint);
}

.lp-story__footer .lp-btn {
  width: 100%;
  justify-content: center;
}

html:has(.lp-story.is-open),
body:has(.lp-story.is-open) {
  overflow: hidden;
}

@media (max-width: 640px) {
  .lp-story {
    padding: 0;
    place-items: end center;
  }

  .lp-story__panel {
    width: 100%;
    max-height: min(94vh, 900px);
    border-radius: 20px 20px 0 0;
    transform: translateY(110%);
  }

  .lp-story.is-open .lp-story__panel {
    transform: translateY(0);
  }

  .lp-story__header {
    grid-template-columns: 1fr auto;
  }

  .lp-story__progress {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .lp-story__close {
    grid-column: 2;
    grid-row: 1;
  }

  .lp-story__nav {
    width: 2.4rem;
    height: 2.4rem;
  }

  .lp-story__viewport {
    min-height: 320px;
  }

  .lp-story__avatar {
    width: 120px;
    height: 120px;
  }

  .lp-avatar {
    width: 108px;
    height: 108px;
    border-radius: 26px;
  }

  .lp-avatar svg {
    width: 96px;
    height: 96px;
  }
}

/* ---------- FAQ ---------- */
.lp-faq {
  max-width: 760px;
}

.lp-faq__list {
  display: grid;
  gap: 0.65rem;
}

.lp-faq__item {
  border-radius: var(--lp-radius-sm);
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-card);
  overflow: hidden;
  transition: border-color var(--lp-duration) var(--lp-ease);
}

.lp-faq__item[open] {
  border-color: var(--lp-border-strong);
}

.lp-faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background-color var(--lp-duration) var(--lp-ease);
}

.lp-faq__item summary::-webkit-details-marker {
  display: none;
}

.lp-faq__item summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-inline-end: 2px solid var(--lp-text-muted);
  border-block-end: 2px solid var(--lp-text-muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform var(--lp-duration) var(--lp-ease);
}

:dir(rtl) .lp-faq__item summary::after {
  transform: rotate(-45deg);
}

.lp-faq__item[open] summary::after {
  transform: rotate(225deg);
}

:dir(rtl) .lp-faq__item[open] summary::after {
  transform: rotate(-225deg);
}

.lp-faq__item summary:hover {
  background: var(--lp-primary-soft);
}

.lp-faq__item p {
  padding: 0 1.25rem 1.25rem;
  color: var(--lp-text-muted);
  font-size: 0.95rem;
}

.lp-faq__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 1.25rem 1.25rem;
}

.lp-faq__call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--lp-radius-sm);
  border: 1px solid var(--lp-border-strong);
  background: var(--lp-primary-soft);
  color: var(--lp-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color var(--lp-duration) var(--lp-ease),
    background var(--lp-duration) var(--lp-ease),
    transform var(--lp-duration) var(--lp-ease);
}

.lp-faq__call:hover {
  border-color: var(--lp-primary);
  transform: translateY(-1px);
}

.lp-faq__call-icon {
  flex-shrink: 0;
}

.lp-faq__call--whatsapp {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
}

.lp-faq__call--whatsapp .lp-faq__call-icon {
  color: #25d366;
}

.lp-faq__call--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.65);
}

/* ---------- Final CTA ---------- */
/* Glow moved to an animated ::before (see "Premium motion enhancements") */
.lp-final {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  text-align: center;
  position: relative;
  overflow: clip;
  background: var(--lp-bg);
}

.lp-final h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  max-width: 18ch;
  margin-inline: auto;
}

.lp-final p {
  margin-block: 1rem 0;
  color: var(--lp-text-muted);
  max-width: 32rem;
  margin-inline: auto;
}

/* ---------- Footer ---------- */
.lp-footer {
  border-block-start: 1px solid var(--lp-border);
  background: var(--lp-bg-elevated);
  padding-block: 3.5rem 2rem;
}

.lp-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .lp-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.lp-footer__brand p {
  color: var(--lp-text-muted);
  margin-block: 1rem;
  font-size: 0.95rem;
}

.lp-footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp-text-faint);
  margin-block-end: 0.85rem;
}

html[dir="rtl"] .lp-footer h4 {
  letter-spacing: 0;
  text-transform: none;
}

.lp-footer ul {
  display: grid;
  gap: 0.5rem;
}

.lp-footer a {
  color: var(--lp-text-muted);
  font-size: 0.95rem;
  transition: color var(--lp-duration) var(--lp-ease);
}

.lp-footer a:hover {
  color: var(--lp-text);
}

.lp-footer__social-label {
  margin-block: 1.25rem 0.5rem;
  font-size: 0.8rem;
  color: var(--lp-text-faint);
}

.lp-social {
  display: flex;
  gap: 0.5rem;
}

.lp-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  color: var(--lp-text-muted);
  transition:
    transform var(--lp-duration) var(--lp-ease),
    color var(--lp-duration) var(--lp-ease),
    border-color var(--lp-duration) var(--lp-ease);
}

.lp-social__link:hover {
  transform: scale(1.08);
  color: var(--lp-text);
  border-color: var(--lp-border-strong);
}

.lp-lang--footer {
  margin-block-start: 1rem;
  width: fit-content;
}

.lp-footer__bottom {
  margin-block-start: 2.5rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--lp-border);
  text-align: center;
}

.lp-footer__bottom p {
  font-size: 0.85rem;
  color: var(--lp-text-faint);
}

.lp-footer a.lp-footer__credit {
  color: var(--lp-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--lp-duration) var(--lp-ease), filter var(--lp-duration) var(--lp-ease);
}

html[data-theme="dark"] .lp-footer a.lp-footer__credit {
  color: #fff;
}

.lp-footer a.lp-footer__credit:hover {
  color: var(--lp-primary);
  filter: brightness(1.08);
}

html[data-theme="dark"] .lp-footer a.lp-footer__credit:hover {
  color: #fff;
  filter: brightness(0.92);
}

/* ---------- Terms modal (same content as login) ---------- */
.lp-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}

.lp-modal.show {
  display: block;
}

.lp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--lp-duration) var(--lp-ease);
}

.lp-modal.show .lp-modal__backdrop {
  opacity: 1;
}

.lp-modal__panel {
  position: relative;
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  margin: 14px auto;
  border-radius: var(--lp-radius);
  overflow: hidden;
  border: 1px solid var(--lp-border-strong);
  background: var(--lp-bg-elevated);
  box-shadow: var(--lp-shadow);
  display: flex;
  flex-direction: column;
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition:
    transform var(--lp-duration) var(--lp-ease),
    opacity var(--lp-duration) var(--lp-ease);
}

.lp-modal.show .lp-modal__panel {
  transform: none;
  opacity: 1;
}

.lp-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-block-end: 1px solid var(--lp-border);
}

html[dir="rtl"] .lp-modal__header {
  flex-direction: row-reverse;
}

.lp-modal__title {
  margin: 0;
  font-family: var(--lp-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lp-text);
  line-height: 1.3;
}

.lp-modal__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-sm);
  background: var(--lp-bg-card-2);
  color: var(--lp-text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--lp-duration) var(--lp-ease), background var(--lp-duration) var(--lp-ease);
}

.lp-modal__close:hover {
  color: var(--lp-text);
  background: var(--lp-primary-soft);
}

.lp-modal__close:focus-visible {
  outline: 2px solid var(--lp-primary);
  outline-offset: 2px;
}

.lp-modal__body {
  padding: 1.1rem 1.25rem 1.5rem;
  overflow-y: auto;
  color: var(--lp-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.lp-modal__body h4 {
  margin: 1.15rem 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--lp-text);
}

.lp-modal__body h4:first-child {
  margin-block-start: 0;
}

.lp-modal__body p {
  margin: 0 0 0.65rem;
}

.lp-modal__body ul {
  margin: 0 0 0.75rem;
  padding-inline-start: 1.2rem;
}

html[dir="rtl"] .lp-modal__body ul {
  padding-inline-start: 0;
  padding-inline-end: 1.2rem;
}

.lp-modal__body li {
  margin-block-end: 0.35rem;
}

.lp-modal__body .terms-footer {
  margin-block-start: 1.25rem;
  padding-block-start: 0.85rem;
  border-block-start: 1px solid var(--lp-border);
  font-size: 0.85rem;
  color: var(--lp-text-faint);
}

html:has(.lp-modal.show),
body:has(.lp-modal.show) {
  overflow: hidden;
}

/* ---------- Welcome platform chooser ---------- */
.lp-modal.lp-welcome.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lp-welcome__panel {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  margin: 0;
  overflow: visible;
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--lp-primary-soft), transparent 55%),
    var(--lp-bg-elevated);
  box-shadow:
    0 0 0 1px var(--lp-border-strong),
    0 28px 64px rgba(0, 0, 0, 0.42);
}

.lp-welcome.show .lp-welcome__panel {
  animation: lp-welcome-in 520ms var(--lp-ease) both;
}

.lp-welcome.show .lp-modal__backdrop {
  animation: lp-welcome-fade 420ms var(--lp-ease) both;
}

@keyframes lp-welcome-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lp-welcome-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lp-welcome__close {
  position: absolute;
  top: 0.85rem;
  inset-inline-end: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--lp-text-faint);
  cursor: pointer;
  transition:
    color var(--lp-duration) var(--lp-ease),
    background-color var(--lp-duration) var(--lp-ease),
    border-color var(--lp-duration) var(--lp-ease);
}

.lp-welcome__close:hover {
  color: var(--lp-text);
  background: var(--lp-bg-card-2);
  border-color: var(--lp-border);
}

.lp-welcome__close:focus-visible {
  outline: 2px solid var(--lp-primary);
  outline-offset: 2px;
}

.lp-welcome__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 1.35rem;
  text-align: center;
}

.lp-welcome__mark {
  width: 112px;
  height: 112px;
  margin-block-end: 1.25rem;
  object-fit: contain;
  border-radius: 22px;
}

.lp-welcome__title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--lp-font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--lp-text);
}

.lp-welcome__subtitle {
  margin: 0.45rem 0 0;
  max-width: 28ch;
  color: var(--lp-text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.lp-welcome__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  margin-block-start: 1.5rem;
}

.lp-welcome__choice {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--lp-duration) var(--lp-ease),
    box-shadow var(--lp-duration) var(--lp-ease),
    filter var(--lp-duration) var(--lp-ease);
}

.lp-welcome__choice:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.lp-welcome__choice:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.lp-welcome__choice:focus-visible {
  outline: 2px solid var(--lp-primary);
  outline-offset: 3px;
}

.lp-welcome__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.lp-welcome__choice--android {
  background: #3ddc84;
  color: #073042;
  box-shadow: 0 8px 20px rgba(61, 220, 132, 0.32);
}

.lp-welcome__choice--web {
  background: var(--lp-primary);
  color: #fff;
  box-shadow: 0 8px 20px var(--lp-primary-glow);
}

.lp-welcome__choice-label {
  font-family: var(--lp-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.lp-welcome__explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.15rem;
  margin-block-start: 0.75rem;
  padding: 0.75rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--lp-bg-card-2);
  color: var(--lp-text);
  font-family: var(--lp-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--lp-border-strong);
  transition:
    transform var(--lp-duration) var(--lp-ease),
    background-color var(--lp-duration) var(--lp-ease),
    box-shadow var(--lp-duration) var(--lp-ease),
    filter var(--lp-duration) var(--lp-ease);
}

.lp-welcome__explore:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--lp-primary-soft) 70%, var(--lp-bg-card-2));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--lp-primary) 35%, var(--lp-border-strong)),
    0 8px 18px rgba(0, 0, 0, 0.12);
}

.lp-welcome__explore:active {
  transform: translateY(0);
}

.lp-welcome__explore:focus-visible {
  outline: 2px solid var(--lp-primary);
  outline-offset: 2px;
}

@media (max-width: 380px) {
  .lp-welcome__body {
    padding-inline: 1.1rem;
  }

  .lp-welcome__choice {
    padding-inline: 0.7rem;
  }

  .lp-welcome__choice-label,
  .lp-welcome__explore {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-welcome.show .lp-welcome__panel,
  .lp-welcome.show .lp-modal__backdrop {
    animation: none;
  }

  .lp-welcome__choice:hover,
  .lp-welcome__explore:hover {
    transform: none;
  }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 500ms var(--lp-ease),
    transform 500ms var(--lp-ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-stagger].is-visible > * {
  opacity: 0;
  transform: translateY(18px);
  animation: lp-stagger-in 480ms var(--lp-ease) forwards;
}

[data-stagger].is-visible > *:nth-child(1) { animation-delay: 0ms; }
[data-stagger].is-visible > *:nth-child(2) { animation-delay: 100ms; }
[data-stagger].is-visible > *:nth-child(3) { animation-delay: 200ms; }
[data-stagger].is-visible > *:nth-child(4) { animation-delay: 300ms; }
[data-stagger].is-visible > *:nth-child(5) { animation-delay: 400ms; }
[data-stagger].is-visible > *:nth-child(6) { animation-delay: 500ms; }

@keyframes lp-stagger-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Premium motion enhancements: force final states with motion off */
  .lp-hero__copy.reveal > *,
  .reveal .lp-panel--tree > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .lp-hero__orb,
  .lp-mock-field,
  .lp-final::before,
  .lp-mock-cta,
  .lp-stage__grid,
  .lp-card-float,
  .lp-marquee__track,
  .lp-marquee__track--catalog,
  .lp-hier__packet,
  .lp-tx__bar i,
  .lp-fund-amount,
  .lp-fund-method__mark,
  .lp-panel--fund::before,
  .lp-flexy__glow,
  .lp-flexy__live i,
  .lp-flexy__caret,
  .lp-flexy__beam i,
  .lp-flexy__burst,
  .lp-flexy__row,
  .lp-step__icon,
  .lp-step__icon svg,
  .lp-role-card__line,
  .lp-role-card__pulse,
  .lp-avatar,
  .lp-avatar__glow,
  .lp-story__tags li,
  .lp-story__track {
    animation: none !important;
  }

  .lp-fund-method {
    transform: none !important;
    box-shadow: none !important;
  }

  .lp-flexy__op {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .lp-flexy__status {
    opacity: 1 !important;
    transform: none !important;
  }

  .lp-flexy__beam i {
    width: 100% !important;
  }

  /* Kinetic hero + hierarchy: static final states with motion off */
  .lp-tx__check { transform: scale(1) !important; }
  .lp-toast { display: none !important; }
  .lp-hier__chip { display: none !important; }
  .lp-hier__person { transform: none !important; box-shadow: none !important; }
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--lp-primary);
  outline-offset: 3px;
}

.lp-btn:focus-visible,
.lp-theme:focus-visible,
.lp-lang__btn:focus-visible {
  outline-offset: 2px;
}

/* ---------- Premium motion enhancements ---------- */
/* Additive only. Reuses --lp-ease, --lp-orb-1 and @keyframes lp-float.
   Reduced-motion final states are handled in the existing
   @media (prefers-reduced-motion: reduce) block above. */

/* 1. Hero mock UI demo loop (state cycling driven by landing.js) */
.lp-mock-op,
.lp-mock-amounts span {
  transition:
    background-color 300ms var(--lp-ease),
    border-color 300ms var(--lp-ease),
    color 300ms var(--lp-ease);
}

/* "Just completed" pulse on the mock CTA — class toggled by landing.js */
@keyframes lp-cta-pulse {
  0% { transform: scale(1); filter: brightness(1); }
  35% { transform: scale(1.03); filter: brightness(1.18); }
  100% { transform: scale(1); filter: brightness(1); }
}

.lp-mock-cta.is-pulsing {
  animation: lp-cta-pulse 620ms var(--lp-ease);
}

/* 3. Hierarchy schema sequences in by tier on reveal */
.reveal .lp-panel--tree > * {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 480ms var(--lp-ease),
    transform 480ms var(--lp-ease);
}

.reveal .lp-panel--tree > .lp-hier__link {
  transform: scaleY(0.4);
  transform-origin: top center;
}

.reveal.is-visible .lp-panel--tree > * {
  opacity: 1;
  transform: none;
}

.reveal.is-visible .lp-panel--tree > :nth-child(1) { transition-delay: 0ms; }
.reveal.is-visible .lp-panel--tree > :nth-child(2) { transition-delay: 100ms; }
.reveal.is-visible .lp-panel--tree > :nth-child(3) { transition-delay: 200ms; }
.reveal.is-visible .lp-panel--tree > :nth-child(4) { transition-delay: 320ms; }
.reveal.is-visible .lp-panel--tree > :nth-child(5) { transition-delay: 420ms; }
.reveal.is-visible .lp-panel--tree > :nth-child(6) { transition-delay: 540ms; }

/* 5. Ambient drift on the final CTA glow — same lp-float rhythm as hero orbs */
.lp-final::before {
  content: "";
  position: absolute;
  inset-inline: -10%;
  bottom: -20%;
  height: 90%;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, var(--lp-orb-1), transparent 70%);
  pointer-events: none;
  animation: lp-float 9s var(--lp-ease) -2s infinite alternate;
}

.lp-final .lp-container {
  position: relative;
}

/* 6. Hero entrance choreography: children stagger instead of the shared block reveal.
   The parent .lp-hero__copy keeps its .reveal opacity fade; movement lives on children. */
.lp-hero__copy.reveal {
  transform: none;
}

.lp-hero__copy.reveal > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 560ms var(--lp-ease),
    transform 560ms var(--lp-ease);
}

.lp-hero__copy.reveal.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.lp-hero__copy.reveal.is-visible > :nth-child(1) { transition-delay: 0ms; }
.lp-hero__copy.reveal.is-visible > :nth-child(2) { transition-delay: 90ms; }
.lp-hero__copy.reveal.is-visible > :nth-child(3) { transition-delay: 180ms; }

/* ---------- Concept 2: kinetic live-desk components ---------- */

/* Hero stage: floating cards over a slow-panning grid */
.lp-stage {
  position: relative;
  z-index: 1;
  min-height: 440px;
}

@media (min-width: 960px) {
  .lp-stage { min-height: 480px; }
}

.lp-stage__grid {
  position: absolute;
  inset: -12%;
  background-image:
    linear-gradient(var(--lp-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--lp-border) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 45%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 62% at 50% 45%, #000 25%, transparent 72%);
  animation: lp-grid-pan 26s linear infinite;
  pointer-events: none;
}

/* Pans exactly one cell, so the loop is seamless */
@keyframes lp-grid-pan {
  to { transform: translate3d(42px, 42px, 0); }
}

.lp-card-float {
  position: absolute;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border-strong);
  background: linear-gradient(160deg, var(--lp-bg-card) 0%, var(--lp-bg-card-2) 100%);
  box-shadow: var(--lp-shadow);
  padding: 1rem 1.15rem;
  animation: lp-float 7s var(--lp-ease) infinite alternate;
}

.lp-card-float--net {
  inset-inline-start: 2%;
  top: 4%;
  width: min(62%, 260px);
  animation-duration: 9s;
  z-index: 1;
}

.lp-card-float--tx {
  inset-inline-end: 0;
  top: 26%;
  width: min(68%, 280px);
  animation-delay: -2.5s;
  z-index: 3;
}

.lp-net__op-item {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.lp-net__op-item.is-active {
  display: flex;
}

.lp-net__op-item img {
  height: 28px;
  width: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* Transaction / shared card chrome */
.lp-tx__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lp-tx__op-item {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.lp-tx__op-item.is-active {
  display: flex;
}

.lp-tx__op-item img {
  height: 18px;
  width: auto;
}

.lp-tx__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lp-primary);
  color: #fff;
  transform: scale(0);
}

.lp-tx__check.is-done {
  animation: lp-check-pop 420ms var(--lp-ease) forwards;
}

@keyframes lp-check-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.lp-tx__amount {
  font-family: var(--lp-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--lp-primary);
  margin-block-start: 0.6rem;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: start;
}

.lp-tx__bar {
  height: 7px;
  border-radius: 999px;
  background: var(--lp-bg);
  overflow: hidden;
  margin-block-start: 0.7rem;
}

.lp-tx__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lp-primary), color-mix(in srgb, var(--lp-primary) 60%, transparent));
  transform-origin: 0 50%;
  transform: scaleX(1);
}

:dir(rtl) .lp-tx__bar i {
  transform-origin: 100% 50%;
}

.lp-tx__bar i.is-run {
  animation: lp-tx-fill 2.1s var(--lp-ease) forwards;
}

@keyframes lp-tx-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.lp-tx__meta {
  display: flex;
  gap: 0.4rem;
  margin-block-start: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lp-text-faint);
}

/* Success toast — slides in when a mock operation completes */
.lp-toast {
  position: absolute;
  top: 8%;
  inset-inline-end: 4%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--lp-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 8px 24px var(--lp-primary-glow);
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  transition:
    opacity 300ms var(--lp-ease),
    transform 300ms var(--lp-ease);
  pointer-events: none;
}

.lp-toast.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Live operations feed */
.lp-feed {
  position: absolute;
  bottom: 0;
  inset-inline-start: 4%;
  width: min(62%, 260px);
  display: grid;
  gap: 0.5rem;
  z-index: 2;
}

.lp-feed__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-card);
  font-size: 0.76rem;
  color: var(--lp-text-muted);
  box-shadow: var(--lp-shadow);
}

.lp-feed__game {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-weight: 600;
  color: var(--lp-text);
}

.lp-feed__game img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

.lp-feed__row b {
  color: var(--lp-text);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  white-space: nowrap;
}

.lp-feed__row.is-new {
  animation: lp-feed-in 480ms var(--lp-ease);
}

@keyframes lp-feed-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
}
