/* ==========================================================================
   AgentX landing page — dark, animated (GSAP + Lenis + Three.js).
   Everything is scoped to body.lx so base.css pages (dashboard etc.) are
   untouched. Animation hooks: [data-reveal], [data-hero-fade], [data-tilt]…
   ========================================================================== */

body.lx {
    --lx-bg: #05060a;
    --lx-bg-2: #0b0d14;
    --lx-surface: rgba(255, 255, 255, 0.035);
    --lx-surface-2: rgba(255, 255, 255, 0.06);
    --lx-line: rgba(255, 255, 255, 0.09);
    --lx-text: #eef0f6;
    --lx-muted: #a0a6b8;
    --lx-dim: #666b7f;
    --lx-c1: #818cf8;
    --lx-c2: #c084fc;
    --lx-c3: #fb7185;
    --lx-grad: linear-gradient(100deg, var(--lx-c1), var(--lx-c2) 48%, var(--lx-c3));
    --lx-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --lx-pad: clamp(20px, 5vw, 72px);
    --lx-radius: 22px;

    background: var(--lx-bg);
    color: var(--lx-text);
    overflow-x: hidden;
}

/* Lenis owns scrolling; base.css's `scroll-behavior: smooth` would fight it. */
html:has(body.lx) { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body.lx h1, body.lx h2, body.lx h3, body.lx h4 { color: var(--lx-text); font-family: var(--lx-display); }
body.lx p { color: var(--lx-muted); }
body.lx a { color: inherit; }
body.lx ::selection { background: var(--lx-c2); color: #fff; }
body.lx main { position: relative; z-index: 2; }

/* Hidden until GSAP animates them in — only when JS is confirmed running. */
.lx-js [data-reveal], .lx-js [data-hero-fade] { opacity: 0; }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.lx-loader {
    position: fixed; inset: 0; z-index: 1000;
    display: grid; place-items: center;
    background: var(--lx-bg);
}
html:not(.lx-js) .lx-loader { display: none; }
.lx-loader-mark { width: 96px; height: 96px; }
.lx-loader-stroke { stroke: var(--lx-text); stroke-width: 9; stroke-linecap: round; }
.lx-loader-mark circle { fill: var(--lx-c2); }
.lx-loader-count {
    position: absolute; right: var(--lx-pad); bottom: 28px;
    font: 600 clamp(3rem, 10vw, 8rem)/1 var(--lx-display);
    letter-spacing: -0.04em; color: var(--lx-text);
}

/* --------------------------------------------------------------------------
   Cursor, canvas, grain
   -------------------------------------------------------------------------- */
/* Hidden unless landing.js actually starts it (fine pointer, motion allowed). */
.lx-cursor { display: none; position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; mix-blend-mode: difference; }
body.has-cursor .lx-cursor { display: block; }
.lx-cursor-dot, .lx-cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; }
.lx-cursor-dot { width: 6px; height: 6px; background: #fff; }
.lx-cursor-ring { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.7); transition: width .25s, height .25s, background .25s; }
.lx-cursor.is-hover .lx-cursor-ring { width: 64px; height: 64px; background: rgba(255, 255, 255, 0.95); }
@media (hover: hover) and (pointer: fine) { body.lx.has-cursor, body.lx.has-cursor a, body.lx.has-cursor button { cursor: none; } }

.lx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* Shown when WebGL is unavailable or disabled. */
.lx-canvas.is-fallback {
    background:
        radial-gradient(40% 50% at 70% 40%, rgba(129, 140, 248, 0.25), transparent 70%),
        radial-gradient(35% 40% at 80% 70%, rgba(251, 113, 133, 0.18), transparent 70%);
}
.lx-grain {
    position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: lx-grain 8s steps(8) infinite;
}
@keyframes lx-grain {
    0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
    50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); }
}

/* --------------------------------------------------------------------------
   Nav & buttons
   -------------------------------------------------------------------------- */
.lx-nav {
    position: fixed; top: 16px; left: 0; right: 0; margin: 0 auto; z-index: 50;
    width: min(1180px, calc(100% - 32px));
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px 10px 10px 18px;
    background: rgba(10, 11, 18, 0.55);
    border: 1px solid var(--lx-line); border-radius: 999px;
    backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.lx-brand { display: flex; align-items: center; gap: 10px; font: 700 1.05rem var(--lx-display); letter-spacing: -0.01em; }
.lx-brand img { border-radius: 8px; background: #fff; padding: 2px; }
.lx-nav-links { display: flex; gap: 4px; }
.lx-nav-links a { padding: 8px 14px; border-radius: 999px; font-size: .9rem; color: var(--lx-muted) !important; transition: color .2s, background .2s; }
.lx-nav-links a:hover { color: var(--lx-text) !important; background: var(--lx-surface-2); }

.lx-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 26px; border-radius: 999px; overflow: hidden;
    font: 600 .98rem var(--lx-display); color: #0a0a12 !important;
    background: var(--lx-grad); border: 0; white-space: nowrap;
    box-shadow: 0 10px 40px -10px rgba(192, 132, 252, 0.6);
    will-change: transform;
}
.lx-btn::after {   /* sheen that sweeps across on hover */
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .7s ease;
}
.lx-btn:hover::after { transform: translateX(120%); }
.lx-btn span, .lx-btn i { position: relative; z-index: 1; font-style: normal; }
.lx-btn i { transition: transform .3s; }
.lx-btn:hover i { transform: translateX(4px); }
.lx-btn-ghost { background: transparent; color: var(--lx-text) !important; border: 1px solid var(--lx-line); box-shadow: none; }
.lx-btn-ghost:hover { background: var(--lx-surface-2); }
.lx-btn-sm { padding: 10px 18px; font-size: .88rem; }
.lx-btn-lg { padding: 20px 36px; font-size: 1.1rem; }
.lx-btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.lx-hero {
    position: relative; min-height: 100svh;
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 48px;
    padding: 120px var(--lx-pad) 90px; max-width: 1400px; margin: 0 auto;
}
.lx-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
    padding: 7px 14px; border: 1px solid var(--lx-line); border-radius: 999px;
    background: var(--lx-surface); font-size: .85rem; color: var(--lx-muted) !important;
}
.lx-pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: lx-pulse 2s infinite; }
@keyframes lx-pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.lx-hero-title {
    font: 700 clamp(2.9rem, 7.2vw, 6.4rem)/0.95 var(--lx-display) !important;
    letter-spacing: -0.045em; margin-bottom: 28px;
}
.lx-hero-title em, .lx-statement em, .lx-cta em {
    font-style: normal; background: var(--lx-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lx-hero-sub { max-width: 540px; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.7; margin-bottom: 36px; }
.lx-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.lx-demo { position: relative; justify-self: end; width: min(400px, 100%); }
.lx-demo-card {
    position: relative; padding: 18px; border-radius: 26px;
    /* Frosted, not opaque: the particle X sits behind this card and should glow through it. */
    background: linear-gradient(160deg, rgba(24, 26, 42, 0.5), rgba(10, 11, 18, 0.62));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%);
}
.lx-demo-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--lx-line); }
.lx-demo-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 700 1.05rem var(--lx-display); background: var(--lx-grad); color: #0a0a12; }
.lx-demo-name { font-weight: 600; font-size: .95rem; }
.lx-demo-status { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--lx-muted); }
.lx-demo-status span { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.lx-demo-body { height: 290px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 16px 2px; }
.lx-msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .88rem; line-height: 1.55; }
.lx-msg-user { align-self: flex-end; background: var(--lx-grad); color: #0a0a12; border-bottom-right-radius: 5px; font-weight: 500; }
.lx-msg-bot { align-self: flex-start; background: var(--lx-surface-2); border: 1px solid var(--lx-line); border-bottom-left-radius: 5px; color: var(--lx-text); }
.lx-msg-bot .w { display: inline; }
.lx-msg-src { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .72rem; color: var(--lx-c1); background: rgba(129, 140, 248, .1); border: 1px solid rgba(129, 140, 248, .25); }
.lx-typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 14px; border-radius: 16px; background: var(--lx-surface-2); }
.lx-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--lx-muted); animation: lx-dot 1.2s infinite; }
.lx-typing i:nth-child(2) { animation-delay: .15s; } .lx-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lx-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.lx-demo-input { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 16px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--lx-line); font-size: .85rem; color: var(--lx-dim); }
.lx-demo-input b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lx-grad); color: #0a0a12; }
.lx-demo-float { position: absolute; padding: 9px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: rgba(15, 16, 26, .9); border: 1px solid var(--lx-line); box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .8); animation: lx-float 6s ease-in-out infinite; }
.lx-demo-float-a { top: 18%; left: -44px; }
.lx-demo-float-b { bottom: 14%; right: -30px; animation-delay: -3s; color: #6ee7b7; }
@keyframes lx-float { 50% { transform: translateY(-12px); } }

.lx-scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--lx-dim) !important; }
.lx-scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--lx-muted), transparent); position: relative; overflow: hidden; }
.lx-scroll-cue i::after { content: ''; position: absolute; left: 0; top: -46px; width: 1px; height: 46px; background: var(--lx-text); animation: lx-cue 2s infinite; }
@keyframes lx-cue { to { top: 46px; } }

/* --------------------------------------------------------------------------
   Marquee & statement
   -------------------------------------------------------------------------- */
.lx-marquee { position: relative; z-index: 2; padding: 26px 0; overflow: hidden; border-block: 1px solid var(--lx-line); background: rgba(5, 6, 10, .6); backdrop-filter: blur(6px); }
.lx-marquee-track { display: flex; width: max-content; }
.lx-marquee-row { display: flex; align-items: center; gap: 36px; padding-right: 36px; font: 600 clamp(1.6rem, 3.4vw, 2.8rem) var(--lx-display); letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; }
.lx-marquee-row span:nth-child(4n+1) { color: transparent; -webkit-text-stroke: 1px rgba(238, 240, 246, .55); }
.lx-marquee-row b { font-size: .5em; color: var(--lx-c2); }

.lx-statement { min-height: 100svh; display: grid; place-items: center; padding: 120px var(--lx-pad); }
.lx-statement em .lx-w { background: var(--lx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-statement p {
    max-width: 1120px; text-align: center; color: var(--lx-text) !important;
    font: 600 clamp(1.8rem, 4.3vw, 3.8rem)/1.12 var(--lx-display); letter-spacing: -0.03em;
}

/* --------------------------------------------------------------------------
   Shared section heads
   -------------------------------------------------------------------------- */
.lx-kicker { display: inline-block; margin-bottom: 18px; font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--lx-c2) !important; }
.lx-h2 { font: 700 clamp(2.1rem, 4.8vw, 4.2rem)/1.02 var(--lx-display) !important; letter-spacing: -0.04em; margin-bottom: 56px; }
.lx-pipeline, .lx-features, .lx-pricing { max-width: 1280px; margin: 0 auto; padding: 110px var(--lx-pad); }

/* --------------------------------------------------------------------------
   How it works (horizontal scroll)
   -------------------------------------------------------------------------- */
.lx-how { position: relative; overflow: hidden; }
.lx-how-head { padding: 120px var(--lx-pad) 0; max-width: 1280px; margin: 0 auto; }
.lx-how-head .lx-h2 { margin-bottom: 28px; }
.lx-how-progress { height: 2px; background: var(--lx-line); border-radius: 2px; overflow: hidden; margin-bottom: 48px; }
.lx-how-progress i { display: block; height: 100%; width: 100%; background: var(--lx-grad); transform: scaleX(0); transform-origin: left; }
.lx-how-track { display: flex; gap: 28px; width: max-content; padding: 0 var(--lx-pad) 120px; }
.lx-panel {
    position: relative; flex: 0 0 auto; width: min(560px, 42vw); min-height: 440px;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
    padding: 34px; border-radius: 28px; overflow: hidden;
    background: linear-gradient(170deg, var(--lx-surface-2), var(--lx-surface)); border: 1px solid var(--lx-line);
}
.lx-panel-num { position: absolute; top: 18px; right: 26px; font: 700 5.5rem/1 var(--lx-display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .14); }
.lx-panel h3 { font-size: 1.7rem; letter-spacing: -0.02em; }
.lx-panel p { font-size: 1rem; line-height: 1.65; max-width: 440px; }
.lx-panel-art { position: relative; flex: 1; min-height: 170px; margin-bottom: 8px; }
.lx-art-sources { display: flex; flex-wrap: wrap; align-content: center; gap: 10px; }
.lx-art-sources span { padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--lx-line); font-size: .9rem; }
.lx-art-sources span:nth-child(odd) { transform: rotate(-3deg); } .lx-art-sources span:nth-child(even) { transform: rotate(2deg) translateY(8px); }
.lx-art-embed { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-content: center; }
.lx-art-embed i { aspect-ratio: 1; border-radius: 6px; background: var(--lx-grad); opacity: .15; animation: lx-cell 2.4s calc(var(--d) * -0.13s) ease-in-out infinite; }
@keyframes lx-cell { 50% { opacity: .85; transform: scale(.82); } }
.lx-art-play { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.lx-mini-q, .lx-mini-a { padding: 10px 14px; border-radius: 14px; font-size: .88rem; width: fit-content; max-width: 80%; }
.lx-mini-q { align-self: flex-end; background: var(--lx-grad); color: #0a0a12; }
.lx-mini-a { background: rgba(255, 255, 255, .06); border: 1px solid var(--lx-line); }
.lx-mini-a u { color: var(--lx-c1); text-decoration: none; margin-left: 6px; font-size: .75rem; }
.lx-mini-slider { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: .75rem; color: var(--lx-dim); }
.lx-mini-slider i { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--lx-line); }
.lx-mini-slider b { position: absolute; top: 50%; left: 28%; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); animation: lx-slide 4s ease-in-out infinite; }
@keyframes lx-slide { 50% { left: 62%; } }
.lx-art-deploy { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.lx-art-deploy code { padding: 16px 18px; border-radius: 14px; background: #0a0b12; border: 1px solid var(--lx-line); font: .82rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--lx-c1); }
.lx-art-bubble { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: var(--lx-grad); box-shadow: 0 0 0 10px rgba(192, 132, 252, .12); animation: lx-float 4s ease-in-out infinite; }

/* --------------------------------------------------------------------------
   Pipeline
   -------------------------------------------------------------------------- */
.lx-pipe { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.lx-pipe-line { position: absolute; pointer-events: none; overflow: visible; }
.lx-pipe-line path { fill: none; stroke: var(--lx-c2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.lx-pipe-line-h { left: 0; right: 0; top: 34px; width: 100%; height: 40px; }
.lx-pipe-line-v { display: none; }
.lx-pipe-step { position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.lx-pipe-step i {
    display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 22px;
    color: var(--lx-c2); font-style: normal; background: #0d0f18; border: 1px solid var(--lx-line);
    box-shadow: 0 0 0 6px var(--lx-bg);
}
.lx-pipe-step.is-lit i { border-color: rgba(192, 132, 252, .7); box-shadow: 0 0 0 6px var(--lx-bg), 0 0 40px rgba(192, 132, 252, .45); }
.lx-pipe-step h4 { font-size: 1.15rem; margin-bottom: 6px; }
.lx-pipe-step p { font-size: .9rem; line-height: 1.55; }

/* --------------------------------------------------------------------------
   Bento
   -------------------------------------------------------------------------- */
.lx-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1400px; }
.lx-tile {
    --mx: 50%; --my: 50%;
    position: relative; padding: 28px; border-radius: var(--lx-radius); overflow: hidden;
    background: var(--lx-surface); border: 1px solid var(--lx-line);
    transform-style: preserve-3d; will-change: transform;
}
.lx-tile-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(192, 132, 252, .16), transparent 60%); }
.lx-tile:hover .lx-tile-glow { opacity: 1; }
.lx-tile h3 { font-size: 1.22rem; letter-spacing: -0.015em; margin-bottom: 10px; }
.lx-tile p { font-size: .93rem; line-height: 1.6; }
.lx-tile-xl { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.lx-tile-wide { grid-column: span 2; }
.lx-tile-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 13px; font-size: 1.1rem; background: rgba(192, 132, 252, .12); color: var(--lx-c2); border: 1px solid rgba(192, 132, 252, .25); }
.lx-stream { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.lx-stream-q { align-self: flex-end; padding: 10px 14px; border-radius: 14px; background: var(--lx-grad); color: #0a0a12; font-size: .9rem; font-weight: 500; }
.lx-stream-a { min-height: 96px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--lx-line); font-size: .92rem; line-height: 1.6; color: var(--lx-text); }
.lx-stream-old { opacity: .45; min-height: 0; }
.lx-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--lx-c2); animation: lx-blink 1s steps(1) infinite; }
@keyframes lx-blink { 50% { opacity: 0; } }
.lx-code { margin: 18px 0 0; padding: 16px 18px; border-radius: 14px; overflow-x: auto; background: #0a0b12; border: 1px solid var(--lx-line); font: .8rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--lx-muted); white-space: pre; }
.lx-code .t { color: var(--lx-c3); } .lx-code .a { color: var(--lx-c1); } .lx-code .s { color: #6ee7b7; }
.lx-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: .78rem; }
.lx-flow span { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--lx-line); }
.lx-flow b { width: 14px; height: 1px; background: var(--lx-c2); }
.lx-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 20px; }
.lx-bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: var(--lx-grad); opacity: .85; transform-origin: bottom; }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.lx-stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1280px; margin: 0 auto; padding: 0 var(--lx-pad); border-block: 1px solid var(--lx-line); }
.lx-stat { padding: 56px 12px; text-align: center; }
.lx-stat + .lx-stat { border-left: 1px solid var(--lx-line); }
.lx-stat b { display: block; font: 700 clamp(2.4rem, 4.6vw, 4rem)/1 var(--lx-display); letter-spacing: -0.04em; background: var(--lx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.lx-stat > span { font-size: .9rem; color: var(--lx-muted); }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.lx-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; perspective: 1400px; }
.lx-plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--lx-radius); background: var(--lx-surface); border: 1px solid var(--lx-line); transform-style: preserve-3d; }
.lx-plan h3 { font-size: 1.15rem; margin-bottom: 14px; color: var(--lx-muted) !important; }
.lx-price { font: 700 3.4rem/1 var(--lx-display); letter-spacing: -0.04em; margin-bottom: 24px; }
.lx-price sup { font-size: 1.2rem; vertical-align: 1.5rem; margin-right: 2px; }
.lx-price small { font-size: .95rem; font-weight: 500; color: var(--lx-dim); letter-spacing: 0; }
.lx-plan ul { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.lx-plan li { display: flex; gap: 10px; padding: 7px 0; font-size: .92rem; color: var(--lx-muted); }
.lx-plan li::before { content: '✓'; color: var(--lx-c2); font-weight: 700; }
.lx-plan-featured { background: linear-gradient(170deg, rgba(129, 140, 248, .12), rgba(251, 113, 133, .06)); border-color: transparent; }
.lx-plan-featured::before {   /* rotating gradient border */
    content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
    background: conic-gradient(from var(--lx-angle, 0deg), var(--lx-c1), var(--lx-c2), var(--lx-c3), var(--lx-c1));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: lx-spin 5s linear infinite;
}
@property --lx-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes lx-spin { to { --lx-angle: 360deg; } }
.lx-plan-badge { position: absolute; top: -12px; left: 26px; padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; background: var(--lx-grad); color: #0a0a12; }
.lx-note { margin-top: 28px; text-align: center; font-size: .9rem; color: var(--lx-dim) !important; }

/* --------------------------------------------------------------------------
   CTA & footer
   -------------------------------------------------------------------------- */
.lx-cta { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 48px; padding: 180px var(--lx-pad); text-align: center; }
.lx-cta-glow { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; max-width: 160vw; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(192, 132, 252, .22), rgba(129, 140, 248, .08) 40%, transparent 68%); pointer-events: none;
    -webkit-mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); }
.lx-cta h2 { position: relative; font: 700 clamp(2.8rem, 8.4vw, 8rem)/0.95 var(--lx-display) !important; letter-spacing: -0.05em; }

.lx-footer { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; max-width: 1280px; margin: 0 auto; padding: 36px var(--lx-pad) 48px; border-top: 1px solid var(--lx-line); font-size: .88rem; }
.lx-footer-brand { display: flex; align-items: center; gap: 10px; font: 700 1rem var(--lx-display); }
.lx-footer-brand img { border-radius: 7px; background: #fff; padding: 2px; }
.lx-footer-links { display: flex; gap: 24px; }
.lx-footer-links a { color: var(--lx-muted) !important; } .lx-footer-links a:hover { color: var(--lx-text) !important; }
.lx-footer p { margin: 0; color: var(--lx-dim) !important; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .lx-bento { grid-template-columns: repeat(2, 1fr); }
    .lx-plans { grid-template-columns: repeat(2, 1fr); }
    .lx-stats { grid-template-columns: repeat(2, 1fr); }
    .lx-stat:nth-child(3) { border-left: 0; }
    .lx-stat:nth-child(n+3) { border-top: 1px solid var(--lx-line); }
}
/* Desktop: the pinned "how" section has to fit inside one viewport. */
@media (min-width: 901px) {
    .lx-how { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
    .lx-how-head { padding-top: 96px; width: 100%; }
    .lx-how-head .lx-h2 { font-size: clamp(2rem, 3.6vw, 3.2rem) !important; }
    .lx-how-progress { margin-bottom: 32px; }
    .lx-how-track { padding-bottom: 56px; }
    .lx-panel { min-height: clamp(320px, 50vh, 440px); }
}
/* Below 900px the "how" panels stack vertically instead of scrolling sideways. */
@media (max-width: 900px) {
    .lx-hero { grid-template-columns: 1fr; padding-top: 110px; gap: 56px; }
    .lx-demo { justify-self: center; }
    .lx-nav-links { display: none; }
    .lx-how-track { flex-direction: column; width: auto; }
    .lx-panel { width: 100%; min-height: 380px; }
    .lx-pipe { grid-template-columns: 1fr; gap: 34px; padding-left: 8px; }
    .lx-pipe-line-h { display: none; }
    .lx-pipe-line-v { display: block; left: 8px; top: 0; bottom: 0; width: 72px; height: 100%; }
    .lx-pipe-step { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; text-align: left; align-items: center; }
    .lx-pipe-step i { margin: 0; grid-row: span 2; }
    .lx-pipe-step p { margin: 0; }
}
@media (max-width: 640px) {
    .lx-scroll-cue { display: none; }
    .lx-bento, .lx-plans { grid-template-columns: 1fr; }
    .lx-tile-xl, .lx-tile-wide { grid-column: auto; grid-row: auto; }
    .lx-demo-float-a { left: -6px; top: -18px; }
    .lx-demo-float-b { right: -4px; bottom: -18px; }
    .lx-demo-body { height: 250px; }
    .lx-plan-featured { order: -1; }
    .lx-footer { flex-direction: column; text-align: center; }
    .lx-art-deploy { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    body.lx *, body.lx *::before, body.lx *::after { animation: none !important; transition: none !important; }
    .lx-grain { display: none; }
}
