/* ════════════════════════════════════════════════════════════════
   LANDING PAGE — Premium SaaS Design System
   بنك الأسئلة المركزي والامتحانات
   ════════════════════════════════════════════════════════════════ */

:root {
    /* ── Design Tokens — Premium neutral + refined violet/emerald ── */
    --lp-ink-900:  #0e0d12;
    --lp-ink-700:  #423f4a;
    --lp-ink-500:  #6f6c78;
    --lp-ink-300:  #a6a3ad;
    --lp-ink-100:  #eceaf0;

    --lp-bg:            #faf9f6;
    --lp-bg-2:          #ffffff;
    --lp-surface:       #ffffff;
    --lp-surface-2:     #f4f2ee;
    --lp-border:        rgba(14,13,18,.08);
    --lp-border-strong: rgba(14,13,18,.14);

    --lp-primary:       #5b4fe8;
    --lp-primary-2:     #4338ca;
    --lp-accent:        #10b981;
    --lp-accent-2:      #2563eb;
    --lp-warn:          #e0654a;

    --lp-text:          var(--lp-ink-900);
    --lp-text-dim:      var(--lp-ink-700);
    --lp-text-dim-2:    var(--lp-ink-500);

    --lp-grad-primary:  linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-accent-2) 55%, var(--lp-accent) 100%);
    --lp-grad-radial:   radial-gradient(circle at 25% 15%, rgba(91,79,232,.14), transparent 55%),
                        radial-gradient(circle at 85% 55%, rgba(16,185,129,.10), transparent 50%),
                        radial-gradient(circle at 35% 90%, rgba(37,99,235,.10), transparent 55%);

    --lp-radius-sm: 10px;
    --lp-radius:    18px;
    --lp-radius-lg: 28px;

    --lp-shadow:    0 20px 60px rgba(14,13,18,.10);
    --lp-shadow-sm: 0 8px 24px rgba(14,13,18,.07);
    --lp-shadow-lg: 0 40px 100px rgba(14,13,18,.16);

    --lp-font:      'Almarai', sans-serif;
    --lp-font-head: 'Almarai', sans-serif;

    /* Fluid type scale */
    --lp-fs-display: clamp(2.6rem, 5.2vw, 4.6rem);
    --lp-fs-h1:      clamp(2.2rem, 4vw, 3.4rem);
    --lp-fs-h2:      clamp(1.75rem, 3.2vw, 2.6rem);
    --lp-fs-h3:      clamp(1.3rem, 2vw, 1.7rem);
    --lp-fs-lead:    clamp(1.05rem, 1.4vw, 1.25rem);
    --lp-fs-body:    1rem;

    --lp-container: 1280px;
    --lp-header-h: 84px;
    --lp-ease: cubic-bezier(.16,1,.3,1);
}

/* Dark mode overrides (toggle) */
body.theme-dark {
    --lp-bg:            #07070b;
    --lp-bg-2:          #0c0c12;
    --lp-surface:       #121219;
    --lp-surface-2:     #181822;
    --lp-border:        rgba(255,255,255,.08);
    --lp-border-strong: rgba(255,255,255,.16);
    --lp-text:          #f5f5f8;
    --lp-text-dim:      #b3b1bd;
    --lp-text-dim-2:    #7d7a89;
    --lp-shadow:    0 20px 60px rgba(0,0,0,.4);
    --lp-shadow-sm: 0 8px 24px rgba(0,0,0,.3);
    --lp-shadow-lg: 0 40px 100px rgba(0,0,0,.5);
    --lp-grad-radial:   radial-gradient(circle at 25% 15%, rgba(91,79,232,.30), transparent 55%),
                        radial-gradient(circle at 85% 55%, rgba(16,185,129,.18), transparent 50%),
                        radial-gradient(circle at 35% 90%, rgba(37,99,235,.20), transparent 55%);
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body.landing-body {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: var(--lp-font);
    line-height: 1.7;
    transition: background .4s ease, color .4s ease;
    letter-spacing: -.01em;
}

h1, h2, h3, h4, h5 {
    font-family: var(--lp-font-head);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.02em;
    margin: 0;
}

p { margin: 0; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.lp-container {
    max-width: var(--lp-container);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.lp-section {
    padding: 7rem 0;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
}

@media (max-width: 768px) {
    .lp-section { padding: 4.5rem 0; }
}

/* ── Accessibility utilities ── */
.lp-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.lp-skip-link {
    position: absolute;
    top: -100%;
    inset-inline-start: 1rem;
    z-index: 200;
    padding: .8rem 1.4rem;
    border-radius: 0 0 12px 12px;
    background: var(--lp-surface);
    color: var(--lp-text);
    font-weight: 700;
    font-size: .9rem;
    box-shadow: var(--lp-shadow);
    transition: top .25s ease;
}
.lp-skip-link:focus { top: 0; }

/* Focus-visible for all interactive elements */
:focus-visible {
    outline: 2px solid var(--lp-primary);
    outline-offset: 3px;
    border-radius: 4px;
}
.lp-btn:focus-visible { outline-offset: 4px; }
.lp-nav__links a:focus-visible,
.lp-footer ul li a:focus-visible {
    outline-offset: 4px;
    border-radius: 4px;
}
.lp-faq-item__q:focus-visible { outline-offset: -2px; }
.lp-theme-toggle:focus-visible,
.lp-nav__burger:focus-visible,
.lp-mobile-menu__close:focus-visible { outline-offset: 2px; }

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    background: rgba(91,79,232,.10);
    border: 1px solid rgba(91,79,232,.30);
    color: var(--lp-primary-2);
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.lp-section-head {
    max-width: 680px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.lp-section-head h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    margin-bottom: 1rem;
}

.lp-section-head p {
    color: var(--lp-text-dim);
    font-size: 1.05rem;
}

.lp-gradient-text {
    background: var(--lp-grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Buttons ── */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .95rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    border: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    white-space: nowrap;
}

.lp-btn--primary {
    background: var(--lp-grad-primary);
    color: #fff;
    box-shadow: 0 12px 30px rgba(91,79,232,.30);
}

.lp-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(91,79,232,.42);
}

.lp-btn--ghost {
    background: rgba(60,50,30,.06);
    color: var(--lp-text);
    border: 1px solid var(--lp-border-strong);
    backdrop-filter: blur(10px);
}

.lp-btn--ghost:hover {
    background: rgba(60,50,30,.10);
    transform: translateY(-3px);
}

.lp-btn--sm { padding: .65rem 1.4rem; font-size: .85rem; }

/* ── Glass Card ── */
.lp-glass {
    background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.60));
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* ── Decorative Background ── */
.lp-bg-decor {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--lp-grad-radial);
    opacity: .8;
}

.lp-noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .5;
    z-index: 0;
    animation: lpFloat 12s ease-in-out infinite;
}

@keyframes lpFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(20px,-30px) scale(1.08); }
}

@keyframes lpGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ══════════════ NAVBAR ══════════════ */
.lp-nav {
    position: fixed;
    top: 0; inset-inline: 0;
    z-index: 100;
    height: var(--lp-header-h);
    display: flex;
    align-items: center;
    transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease, height .35s ease;
    border-bottom: 1px solid transparent;
    contain: layout paint;
}

.lp-nav.scrolled {
    height: 68px;
    background: rgba(250,249,246,.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--lp-border);
}

body.theme-dark .lp-nav.scrolled {
    background: rgba(6,7,13,.72);
}

.lp-nav__inner {
    max-width: var(--lp-container);
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800;
    font-size: 1.15rem;
    font-family: var(--lp-font-head);
}

.lp-brand__icon {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: var(--lp-grad-primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
}

.lp-nav__links {
    display: flex;
    align-items: center;
    gap: 2.1rem;
}

.lp-nav__links a {
    font-size: .92rem;
    font-weight: 600;
    color: var(--lp-text-dim);
    transition: color .2s ease;
    position: relative;
}

.lp-nav__links a:hover { color: var(--lp-text); }
.lp-nav__links a.active { color: var(--lp-primary-2); }

.lp-nav__actions {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.lp-theme-toggle {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(60,50,30,.06);
    border: 1px solid var(--lp-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--lp-text);
    font-size: 1.05rem;
}

.lp-nav__burger {
    display: none;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: rgba(60,50,30,.06);
    border: 1px solid var(--lp-border);
    color: var(--lp-text);
    align-items: center; justify-content: center;
    font-size: 1.2rem;
}

@media (max-width: 960px) {
    .lp-nav__links { display: none; }
    .lp-nav__burger { display: flex; }
}
@media (max-width: 480px) {
    .lp-nav__actions .lp-btn--ghost,
    .lp-nav__actions .lp-btn--primary.lp-btn--sm { display: none; }
}

.lp-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: #faf9f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform .4s ease;
    overflow-y: auto;
    padding: 5rem 1.5rem 2rem;
}
body.theme-dark .lp-mobile-menu { background: #07070b; }

.lp-mobile-menu.open { transform: translateY(0); }

.lp-mobile-menu a { font-size: 1.4rem; font-weight: 700; }
.lp-mobile-menu__close {
    position: absolute; top: 24px; left: 24px;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(60,50,30,.08); border: 1px solid var(--lp-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--lp-text); font-size: 1.2rem;
}

/* ══════════════ HERO ══════════════ */
.lp-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--lp-header-h) + 1rem);
    padding-bottom: 3rem;
    overflow: hidden;
}

.lp-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 960px) {
    .lp-hero__grid { grid-template-columns: 1fr; text-align: center; }
    .lp-hero__grid .lp-hero__cta,
    .lp-hero__grid .lp-hero__badges,
    .lp-hero__grid .lp-hero__metrics { justify-content: center; }
}
@media (max-width: 480px) {
    .lp-hero { min-height: auto; padding-top: calc(var(--lp-header-h) + 2rem); padding-bottom: 4rem; }
    .lp-hero__metrics { gap: 1.2rem; }
    .lp-hero__metric b { font-size: 1.25rem; }
    .lp-hero__cta { flex-direction: column; align-items: stretch; gap: .7rem; }
    .lp-hero__cta .lp-btn { width: 100%; }
    .lp-hero__badges { flex-direction: column; gap: .6rem; align-items: center; }
}

.lp-hero__eyebrow-row { display: flex; justify-content: flex-start; }
@media (max-width: 960px) { .lp-hero__eyebrow-row { justify-content: center; } }

.lp-hero h1 {
    font-size: var(--lp-fs-display);
    letter-spacing: -.03em;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.lp-hero h1 .lp-split-line {
    display: block;
    overflow: hidden;
    padding-bottom: .08em;
}

.lp-hero h1 .lp-split-line > span {
    display: inline-block;
    will-change: transform;
}

.lp-hero p.lp-hero__lead {
    font-size: var(--lp-fs-lead);
    color: var(--lp-text-dim);
    max-width: 560px;
    margin-bottom: 2.2rem;
}

.lp-hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.4rem;
}

.lp-hero__badges {
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
    margin-bottom: 2.2rem;
}

.lp-hero__badge {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--lp-text-dim);
    font-weight: 600;
}

.lp-hero__badge i { color: var(--lp-accent); }

/* Live metric strip under badges */
.lp-hero__metrics {
    display: flex;
    gap: 1.8rem;
    flex-wrap: wrap;
    padding-top: 1.6rem;
    border-top: 1px solid var(--lp-border);
}

.lp-hero__metric b {
    display: block;
    font-family: var(--lp-font-head);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--lp-grad-primary);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.lp-hero__metric span { font-size: .78rem; color: var(--lp-text-dim-2); font-weight: 600; }

/* ── Live Dashboard mockup ── */
.lp-dash-stage {
    position: relative;
    perspective: 1600px;
}

.lp-dashboard {
    position: relative;
    border-radius: var(--lp-radius-lg);
    overflow: hidden;
    box-shadow: var(--lp-shadow-lg);
    border: 1px solid var(--lp-border-strong);
    background: var(--lp-surface);
    transform: rotateY(-9deg) rotateX(4deg);
    transition: transform .6s var(--lp-ease);
    z-index: 2;
    contain: layout paint;
}

.lp-dash-stage:hover .lp-dashboard {
    transform: rotateY(-3deg) rotateX(1.5deg);
}

.lp-dashboard__bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.1rem;
    background: var(--lp-surface-2);
    border-bottom: 1px solid var(--lp-border);
}

.lp-dashboard__dot { width: 10px; height: 10px; border-radius: 50%; }
.lp-dashboard__dot:nth-child(1) { background: #ff5f57; }
.lp-dashboard__dot:nth-child(2) { background: #febc2e; }
.lp-dashboard__dot:nth-child(3) { background: #28c840; }

.lp-dashboard__url {
    margin-inline-start: .8rem;
    flex: 1;
    background: rgba(14,13,18,.05);
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .72rem;
    color: var(--lp-text-dim-2);
    display: flex; align-items: center; gap: .4rem;
}

.lp-dashboard__live {
    display: flex; align-items: center; gap: .35rem;
    font-size: .68rem; font-weight: 700; color: var(--lp-accent);
}

.lp-dashboard__live::before {
    content: '';
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--lp-accent);
    animation: lpPulse 1.6s ease-in-out infinite;
}

@keyframes lpPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
    50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.lp-dashboard__body {
    padding: 1.2rem;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 1rem;
}

.lp-dashboard__nav {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.lp-dashboard__nav span {
    height: 34px;
    border-radius: 10px;
    background: rgba(14,13,18,.05);
    display: flex; align-items: center; justify-content: center;
    color: var(--lp-text-dim-2);
    font-size: .95rem;
}

.lp-dashboard__nav span.active {
    background: var(--lp-grad-primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(91,79,232,.35);
}

.lp-dashboard__main { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }

.lp-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
@media (max-width: 400px) { .lp-kpi-row { grid-template-columns: 1fr; } .lp-kpi { text-align: center; } }

.lp-kpi {
    padding: .85rem .9rem;
    border-radius: 13px;
    background: rgba(14,13,18,.035);
    border: 1px solid var(--lp-border);
    position: relative;
    overflow: hidden;
}

.lp-kpi__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .3rem; }
.lp-kpi__icon { font-size: .85rem; color: var(--lp-primary); opacity: .8; }
.lp-kpi__trend { font-size: .65rem; font-weight: 700; color: var(--lp-accent); display: flex; align-items: center; gap: 2px; }
.lp-kpi b { font-size: 1.35rem; display: block; font-family: var(--lp-font-head); }
.lp-kpi span.lp-kpi__label { font-size: .68rem; color: var(--lp-text-dim-2); }

.lp-dash-chart {
    height: 128px;
    border-radius: 13px;
    background: rgba(14,13,18,.035);
    border: 1px solid var(--lp-border);
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 12px;
}

.lp-dash-chart span {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: var(--lp-grad-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
}

.lp-dash-feed {
    border-radius: 13px;
    background: rgba(14,13,18,.035);
    border: 1px solid var(--lp-border);
    padding: .7rem .85rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.lp-dash-feed__item {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .72rem;
    color: var(--lp-text-dim);
    opacity: 0;
    transform: translateX(10px);
}

.lp-dash-feed__item i { color: var(--lp-accent); font-size: .8rem; flex-shrink: 0; }

/* Floating glass cards around dashboard */
.lp-float-card {
    position: absolute;
    padding: .65rem 1rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .78rem;
    font-weight: 700;
    box-shadow: var(--lp-shadow-sm);
    z-index: 3;
    will-change: transform;
}

.lp-float-card i { font-size: 1rem; }
.lp-float-card--1 { top: -5%; right: -10%; }
.lp-float-card--2 { bottom: 10%; left: -12%; }
.lp-float-card--3 { top: 42%; left: -14%; }

@media (max-width: 640px) {
    .lp-float-card { display: none; }
}

/* SVG connector lines */
.lp-connectors {
    position: absolute;
    inset: -10% -14%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.lp-connectors path {
    fill: none;
    stroke: url(#lpLineGrad);
    stroke-width: 1.5;
    stroke-dasharray: 6 6;
    opacity: .5;
}

.lp-scroll-cue {
    position: absolute;
    bottom: 1.6rem;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    z-index: 4;
}

.lp-scroll-cue__pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: var(--lp-text-dim-2);
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
}

.lp-scroll-cue__track {
    width: 26px; height: 40px;
    border-radius: 999px;
    border: 2px solid var(--lp-border-strong);
    display: flex;
    justify-content: center;
    padding-top: 7px;
}

.lp-scroll-cue__dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--lp-grad-primary);
    animation: lpScrollDot 1.8s ease infinite;
}

@keyframes lpScrollDot {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(14px); opacity: 0; }
    100% { opacity: 0; }
}

/* ══════════════ PROBLEM / SOLUTION ══════════════ */
.lp-ps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 860px) { .lp-ps-grid { grid-template-columns: 1fr; } }

.lp-ps-card {
    padding: 2rem;
    border-radius: var(--lp-radius);
}

.lp-ps-card--bad {
    border: 1px solid rgba(255,107,107,.3);
    background: linear-gradient(180deg, rgba(255,107,107,.08), transparent);
}

.lp-ps-card--good {
    border: 1px solid rgba(0,229,199,.3);
    background: linear-gradient(180deg, rgba(0,229,199,.08), transparent);
}

.lp-ps-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.lp-ps-card li {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .55rem 0;
    color: var(--lp-text-dim);
    font-size: .95rem;
    border-bottom: 1px dashed var(--lp-border);
}

.lp-ps-card li:last-child { border-bottom: none; }
.lp-ps-card--bad i { color: var(--lp-warn); }
.lp-ps-card--good i { color: var(--lp-accent); }

/* "Versus" divider glow between comparison cards */
.lp-ps-grid { position: relative; }
.lp-ps-grid::after {
    content: '';
    position: absolute;
    top: 6%; bottom: 6%;
    inset-inline-start: 50%;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--lp-primary), var(--lp-accent), transparent);
    transform: translateX(-50%) scaleY(0);
    transition: transform .9s var(--lp-ease);
}
.lp-ps-grid.in-view::after { transform: translateX(-50%) scaleY(1); }
@media (max-width: 860px) { .lp-ps-grid::after { display: none; } }

/* Device screenshot blur-to-clear reveal */
.lp-device-reveal { filter: blur(16px); transition: filter 1.1s var(--lp-ease); }
.lp-device-reveal.in-view { filter: blur(0); }

/* ══════════════ HOW IT WORKS — Timeline ══════════════ */
.lp-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 18px;
}

.lp-steps__track,
.lp-steps__progress {
    position: absolute;
    top: 0;
    inset-inline: 8%;
    height: 2px;
    z-index: 0;
}

.lp-steps__track { background: var(--lp-border-strong); }
.lp-steps__progress {
    background: linear-gradient(90deg, var(--lp-primary), var(--lp-accent));
    transform: scaleX(0);
    transform-origin: right;
}
[dir="ltr"] .lp-steps__progress { transform-origin: left; }

@media (max-width: 900px) {
    .lp-steps { grid-template-columns: 1fr; }
    .lp-steps__track, .lp-steps__progress { display: none; }
}

.lp-step {
    position: relative;
    padding: 2rem 1.6rem;
    border-radius: var(--lp-radius);
    text-align: center;
    transition: transform .4s var(--lp-ease), box-shadow .4s ease, border-color .35s ease;
}

.lp-step:hover { transform: translateY(-8px); border-color: var(--lp-border-strong); box-shadow: var(--lp-shadow); }
.lp-step:hover .lp-step__icon { color: #fff; background: var(--lp-grad-primary); transform: scale(1.1) rotate(-6deg); }

.lp-step__num {
    position: absolute;
    top: -18px;
    inset-inline-start: 50%;
    transform: translateX(50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--lp-grad-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    box-shadow: 0 8px 20px rgba(91,79,232,.35);
}

.lp-step__icon {
    width: 64px; height: 64px;
    margin: .6rem auto 1.2rem;
    border-radius: 18px;
    background: rgba(14,13,18,.05);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    color: var(--lp-accent-2);
    transition: all .35s ease;
}

.lp-step h4 { font-size: 1.05rem; margin-bottom: .6rem; }
.lp-step p { font-size: .88rem; color: var(--lp-text-dim); }

.lp-step__arrow {
    display: none;
    position: absolute;
    top: 50%;
    inset-inline-end: -2.4rem;
    transform: translateY(-50%);
    color: var(--lp-text-dim-2);
    font-size: 1.4rem;
}

@media (min-width: 901px) {
    .lp-step:not(:nth-child(3n)) .lp-step__arrow { display: block; }
}

/* ══════════════ FEATURES ══════════════ */
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 960px) { .lp-features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .lp-features-grid { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .lp-feature { padding: 1.4rem; } }

.lp-feature {
    padding: 2rem;
    border-radius: var(--lp-radius);
    position: relative;
    overflow: hidden;
    transition: transform .4s var(--lp-ease), box-shadow .4s ease, border-color .4s ease;
}

.lp-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .4s ease;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(91,79,232,.16), transparent 65%);
    pointer-events: none;
}

.lp-feature::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--lp-grad-primary);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.lp-feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--lp-shadow);
}

.lp-feature:hover::before,
.lp-feature:hover::after { opacity: 1; }

.lp-feature:hover .lp-feature__icon {
    background: var(--lp-grad-primary);
    color: #fff;
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 10px 24px rgba(91,79,232,.38);
}

.lp-feature__icon {
    width: 56px; height: 56px;
    border-radius: 15px;
    background: rgba(14,13,18,.05);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--lp-accent-2);
    margin-bottom: 1.3rem;
    transition: all .35s ease;
    animation: lpIconFloat 4.5s ease-in-out infinite;
}

@keyframes lpIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.lp-feature:hover .lp-feature__icon { animation-play-state: paused; }

.lp-feature h4 { font-size: 1.08rem; margin-bottom: .7rem; }
.lp-feature p { font-size: .9rem; color: var(--lp-text-dim); }

/* ══════════════ SCREENSHOTS / DEVICE MOCKUPS ══════════════ */
.lp-devices {
    display: grid;
    grid-template-columns: .8fr 1.3fr .8fr;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 900px) {
    .lp-devices { grid-template-columns: 1fr; justify-items: center; }
}
@media (max-width: 480px) {
    .lp-device-phone { width: 180px; }
    .lp-device-tablet { max-width: 100%; }
    .lp-device-laptop { width: 100%; }
}

.lp-device-phone {
    width: 220px;
    border-radius: 34px;
    border: 6px solid #e0d9cd;
    background: #e0d9cd;
    box-shadow: var(--lp-shadow);
    overflow: hidden;
}

.lp-device-phone__screen {
    background: var(--lp-surface);
    aspect-ratio: 9/19;
    border-radius: 26px;
    overflow: hidden;
    padding: 1.1rem .8rem;
}

.lp-device-tablet {
    width: 100%;
    max-width: 620px;
    border-radius: 22px;
    border: 10px solid #e0d9cd;
    background: #e0d9cd;
    box-shadow: var(--lp-shadow);
}

.lp-device-tablet__screen {
    background: var(--lp-surface);
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    padding: 1.4rem;
}

.lp-device-laptop {
    width: 220px;
    border-radius: 16px;
    border: 6px solid #e0d9cd;
    background: #e0d9cd;
    box-shadow: var(--lp-shadow);
    overflow: hidden;
}

.lp-device-laptop__screen {
    background: var(--lp-surface);
    aspect-ratio: 4/5;
    border-radius: 10px;
    overflow: hidden;
    padding: 1rem;
}

.lp-mini-ui__row { display: flex; gap: .4rem; margin-bottom: .5rem; }
.lp-mini-ui__box { flex: 1; height: 18px; border-radius: 5px; background: rgba(60,50,30,.08); }
.lp-mini-ui__box.accent { background: var(--lp-grad-primary); }
.lp-mini-ui__block { height: 46px; border-radius: 8px; background: rgba(60,50,30,.04); margin-bottom: .5rem; border: 1px solid var(--lp-border); }

/* ══════════════ STATS ══════════════ */
.lp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 760px) { .lp-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .lp-stats { grid-template-columns: 1fr; } }

.lp-stat {
    text-align: center;
    padding: 2.2rem 1rem 1.6rem;
    border-radius: var(--lp-radius);
    transition: transform .35s var(--lp-ease);
}

.lp-stat:hover { transform: translateY(-6px); }

.lp-stat__icon {
    width: 46px; height: 46px;
    margin: 0 auto .9rem;
    border-radius: 12px;
    background: rgba(14,13,18,.05);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: var(--lp-primary);
}

.lp-stat__num {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    font-family: var(--lp-font-head);
    background: var(--lp-grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lp-stat__label {
    margin-top: .5rem;
    font-size: .88rem;
    color: var(--lp-text-dim);
    font-weight: 600;
}

.lp-stat__spark {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 30px;
    margin-top: 1.1rem;
}

.lp-stat__spark span {
    width: 6px;
    border-radius: 3px 3px 0 0;
    background: var(--lp-grad-primary);
    opacity: .35;
    transform: scaleY(0);
    transform-origin: bottom;
}

/* Circular progress ring variant */
.lp-stat--ring .lp-stat__ring {
    position: relative;
    width: 108px;
    height: 108px;
    margin: 0 auto .6rem;
}

.lp-stat__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lp-stat__ring-bg { fill: none; stroke: var(--lp-border); stroke-width: 7; }
.lp-stat__ring-fg {
    fill: none;
    stroke: url(#lpRingGrad);
    stroke-width: 7;
    stroke-linecap: round;
}

.lp-stat__ring-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-stat__ring-num .lp-stat__num { font-size: 1.5rem; }

/* ══════════════ MODULES — floating connected cards ══════════════ */
.lp-modules {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

@media (max-width: 900px) { .lp-modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .lp-modules { grid-template-columns: 1fr; } }

.lp-module {
    padding: 1.6rem 1.2rem;
    border-radius: var(--lp-radius);
    text-align: center;
    animation: lpModuleFloat 6s ease-in-out infinite;
}

.lp-module:nth-child(odd) { animation-delay: .4s; }
.lp-module:nth-child(3n) { animation-delay: .9s; }

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

.lp-module i {
    font-size: 1.6rem;
    color: var(--lp-accent-2);
    margin-bottom: .7rem;
    display: block;
}

.lp-module span { font-size: .85rem; font-weight: 700; }

/* ══════════════ PROCESS TIMELINE (vertical) ══════════════ */
.lp-timeline {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}

.lp-timeline::before {
    content: '';
    position: absolute;
    inset-inline-start: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--lp-border-strong);
    transform: translateX(50%);
}

.lp-timeline__progress {
    position: absolute;
    inset-inline-start: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--lp-primary), var(--lp-accent));
    transform: translateX(50%) scaleY(0);
    transform-origin: top;
    z-index: 1;
}

@media (max-width: 720px) {
    .lp-timeline::before,
    .lp-timeline__progress { inset-inline-start: 20px; transform: none; }
    .lp-timeline__progress { transform: scaleY(0); transform-origin: top; }
}

.lp-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 720px) {
    .lp-timeline__item { grid-template-columns: 40px 1fr; padding-inline-start: 0; }
}

.lp-timeline__dot {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--lp-surface);
    border: 2px solid var(--lp-border-strong);
    display: flex; align-items: center; justify-content: center;
    color: var(--lp-text-dim-2);
    font-size: 1.1rem;
    justify-self: center;
    box-shadow: 0 0 0 6px var(--lp-bg);
    z-index: 2;
    transition: all .45s var(--lp-ease);
}

.lp-timeline__item.is-active .lp-timeline__dot {
    background: var(--lp-grad-primary);
    border-color: transparent;
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 0 0 6px var(--lp-bg), 0 8px 22px rgba(91,79,232,.4);
}

.lp-timeline__content { transition: transform .4s var(--lp-ease), box-shadow .4s ease; }
.lp-timeline__item.is-active .lp-timeline__content {
    transform: scale(1.03);
    box-shadow: var(--lp-shadow);
}

.lp-timeline__content {
    padding: 1.4rem 1.6rem;
    border-radius: var(--lp-radius);
}

.lp-timeline__item:nth-child(odd) .lp-timeline__content { grid-column: 1; text-align: end; }
.lp-timeline__item:nth-child(even) .lp-timeline__content { grid-column: 3; text-align: start; }

@media (max-width: 720px) {
    .lp-timeline__item:nth-child(odd) .lp-timeline__content,
    .lp-timeline__item:nth-child(even) .lp-timeline__content {
        grid-column: 2; text-align: start;
    }
}

.lp-timeline__content h4 { font-size: 1rem; margin-bottom: .4rem; }
.lp-timeline__content p { font-size: .87rem; color: var(--lp-text-dim); }

/* ══════════════ TESTIMONIALS ══════════════ */
.lp-testi-card {
    padding: 2.2rem;
    border-radius: var(--lp-radius);
    height: 100%;
}

.lp-testi-card__stars { color: #ffc93c; margin-bottom: 1rem; font-size: .9rem; }
.lp-testi-card p.quote { font-size: .98rem; color: var(--lp-text-dim); margin-bottom: 1.4rem; }

.lp-testi-card__person {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.lp-testi-card__avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--lp-grad-primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800;
}

.lp-testi-card__person b { display: block; font-size: .9rem; }
.lp-testi-card__person span { font-size: .78rem; color: var(--lp-text-dim-2); }

.swiper { padding-bottom: 3rem !important; }
.swiper-pagination-bullet { background: var(--lp-text-dim-2) !important; opacity: .5; }
.swiper-pagination-bullet-active { background: var(--lp-primary-2) !important; opacity: 1; }

/* ══════════════ FAQ ══════════════ */
.lp-faq { max-width: 800px; margin: 0 auto; }

.lp-faq-item {
    border-radius: var(--lp-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--lp-border);
}

.lp-faq-item__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 1.6rem;
    font-weight: 700;
    font-size: .98rem;
}

.lp-faq-item__q i { transition: transform .3s ease; color: var(--lp-primary-2); }
.lp-faq-item.open .lp-faq-item__q i { transform: rotate(180deg); }

.lp-faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.lp-faq-item__a p {
    padding: 0 1.6rem 1.4rem;
    color: var(--lp-text-dim);
    font-size: .9rem;
}

/* ══════════════ CTA ══════════════ */
.lp-cta {
    text-align: center;
    padding: 5rem 2.5rem;
    border-radius: var(--lp-radius-lg);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(91,79,232,.10), rgba(16,185,129,.08));
    border: 1px solid var(--lp-border-strong);
}
@media (max-width: 480px) {
    .lp-cta { padding: 3rem 1.2rem; }
    .lp-cta .lp-hero__cta { flex-direction: column; align-items: stretch; gap: .7rem; }
    .lp-cta .lp-hero__cta .lp-btn { width: 100%; }
}

.lp-cta h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.lp-cta p { color: var(--lp-text-dim); max-width: 560px; margin: 0 auto 2rem; }
.lp-cta .lp-hero__cta { justify-content: center; }

.lp-cta::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(circle at 50% 50%, rgba(91,79,232,.35), transparent 70%);
    animation: lpCtaPulse 3.2s ease-in-out infinite;
}

.lp-cta.in-view::before { opacity: 1; }

@keyframes lpCtaPulse {
    0%, 100% { transform: scale(1); opacity: .5; }
    50% { transform: scale(1.06); opacity: .9; }
}

/* ══════════════ FOOTER ══════════════ */
.lp-footer {
    padding: 4.5rem 0 2rem;
    border-top: 1px solid var(--lp-border);
    position: relative;
    z-index: 2;
}

.lp-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 800px) { .lp-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .lp-footer__grid { grid-template-columns: 1fr; gap: 1.8rem; } .lp-footer__bottom { flex-direction: column; text-align: center; } }

.lp-footer__brand p { color: var(--lp-text-dim); font-size: .88rem; margin-top: 1rem; max-width: 300px; }

.lp-footer h5 { font-size: .9rem; margin-bottom: 1.1rem; }
.lp-footer ul li { margin-bottom: .7rem; }
.lp-footer ul li a { color: var(--lp-text-dim); font-size: .87rem; transition: color .2s; }
.lp-footer ul li a:hover { color: var(--lp-accent-2); }

.lp-footer__social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.lp-footer__social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(60,50,30,.06);
    border: 1px solid var(--lp-border);
    display: flex; align-items: center; justify-content: center;
}

.lp-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--lp-border);
    font-size: .82rem;
    color: var(--lp-text-dim-2);
}

/* ══════════════ Reveal utility (JS controlled) ══════════════ */
.lp-reveal { opacity: 0; transform: translateY(30px); filter: blur(6px); }
.lp-reveal.in-view { opacity: 1; transform: translateY(0); filter: blur(0); transition: opacity .8s ease, transform .8s ease, filter .8s ease; }

/* Custom cursor-follow glow (desktop only) */
.lp-cursor-glow {
    position: fixed;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91,79,232,.14), transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%,-50%);
    transition: opacity .3s ease;
    display: none;
}

@media (min-width: 992px) { .lp-cursor-glow { display: block; } }
