/* ==========================================================================
   Statis guest landing overlay
   --------------------------------------------------------------------------
   Rendered only for signed-out visitors on the plain home page (see the
   show_lander gate in templates/home.html). Everything is scoped under
   .lander / html.lander-* so the app's existing styles are untouched.
   ========================================================================== */

@font-face { font-family: 'Statis Avenir'; font-weight: 400; font-style: normal; font-display: swap;
    src: url('../fonts/AvenirNextCyr-Regular.woff2') format('woff2'), url('../fonts/AvenirNextCyr-Regular.woff') format('woff'); }
@font-face { font-family: 'Statis Avenir'; font-weight: 500; font-style: normal; font-display: swap;
    src: url('../fonts/AvenirNextCyr-Medium.woff2') format('woff2'), url('../fonts/AvenirNextCyr-Medium.woff') format('woff'); }
@font-face { font-family: 'Statis Avenir'; font-weight: 600; font-style: normal; font-display: swap;
    src: url('../fonts/AvenirNextCyr-Demi.woff2') format('woff2'), url('../fonts/AvenirNextCyr-Demi.woff') format('woff'); }
@font-face { font-family: 'Statis Avenir'; font-weight: 700; font-style: normal; font-display: swap;
    src: url('../fonts/AvenirNextCyr-Bold.woff2') format('woff2'), url('../fonts/AvenirNextCyr-Bold.woff') format('woff'); }

@property --lander-beam {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

/* --- Lock the page while the lander covers it ---------------------------- */
/* State classes on <html> (set by the head gate and landing.js):
     lander-ready   JS is on and the lander is in the page (stowed above the viewport by default)
     lander-active  the lander covers the app
     lander-lock    page scrolling is locked while it covers / lifts
     lander-peeking the visitor is pulling it back down from the top of the page
     lander-reveal  the app's hero is rising in after a lift */
html.lander-lock,
html.lander-lock body { overflow: hidden; }

.lander { display: none; }
html.lander-ready .lander { display: flex; }

/* --- Shell ---------------------------------------------------------------- */
.lander {
    --l-bg: #0a0820;
    --l-ink: #f6f4ff;
    --l-muted: rgba(232, 227, 255, .70);
    --l-faint: rgba(232, 227, 255, .46);
    --l-line: rgba(255, 255, 255, .09);
    --l-line-strong: rgba(255, 255, 255, .16);
    --l-violet: #a78bfa;
    --l-lilac: #d8ccff;
    --l-cyan: #7dd3fc;
    --l-mint: #6ee7b7;
    --l-font: 'Statis Avenir', 'AvenirNextLight', 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --l-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
    --l-ease: cubic-bezier(.2, .8, .2, 1);

    position: fixed;
    inset: 0;
    z-index: 10050;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: pinch-zoom;
    color: var(--l-ink);
    font-family: var(--l-font);
    font-weight: 400;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--l-bg);
    background-image:
        radial-gradient(1100px 620px at 50% -14%, rgba(134, 41, 163, .58), transparent 64%),
        radial-gradient(820px 520px at 4% 16%, rgba(89, 102, 202, .40), transparent 62%),
        radial-gradient(760px 520px at 98% 10%, rgba(167, 72, 203, .30), transparent 60%),
        linear-gradient(180deg, #19134a 0%, #0f0b2b 52%, var(--l-bg) 100%);
    /* Stowed: parked just above the viewport, hidden once the lift finishes. */
    transform: translate3d(0, -104%, 0);
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;
    box-shadow: 0 40px 120px rgba(4, 2, 18, .55);
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 1s cubic-bezier(.76, 0, .24, 1),
        border-radius 1s cubic-bezier(.76, 0, .24, 1),
        box-shadow 1s ease,
        visibility 0s linear 1s;
}
/* Covering the app. */
html.lander-active .lander {
    transform: translate3d(0, 0, 0);
    border-radius: 0;
    box-shadow: none;
    visibility: visible;
    pointer-events: auto;
    transition:
        transform 1s cubic-bezier(.76, 0, .24, 1),
        border-radius 1s cubic-bezier(.76, 0, .24, 1),
        box-shadow 1s ease,
        visibility 0s;
}
/* Pulled down a little from the top of the page (landing.js sets the offset). */
html.lander-peeking .lander {
    visibility: visible;
    transition: transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}
.lander:focus { outline: none; }
/* Nothing needs to animate while the lander is parked out of view. */
html:not(.lander-active):not(.lander-peeking) .lander *,
html:not(.lander-active):not(.lander-peeking) .lander *::before,
html:not(.lander-active):not(.lander-peeking) .lander *::after { animation-play-state: paused; }

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

/* Neutralise the app's global element styles inside the lander. */
:where(.lander) :is(h1, p, a, button, span, nav) {
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 0;
}
:where(.lander) a { text-decoration: none; }
:where(.lander) button {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
}
.lander :focus-visible {
    outline: 2px solid rgba(216, 204, 255, .9);
    outline-offset: 3px;
    border-radius: 999px;
}

/* --- Backdrop: aurora, grid, grain ---------------------------------------- */
.lander-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lander-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .55;
    mix-blend-mode: screen;
    will-change: transform;
}
.lander-aurora.a1 { width: 46vw; height: 46vw; left: -10vw; top: -18vw; background: #5966ca; animation: lander-drift-a 22s ease-in-out infinite alternate; }
.lander-aurora.a2 { width: 40vw; height: 40vw; right: -8vw; top: -14vw; background: #8629a3; animation: lander-drift-b 26s ease-in-out infinite alternate; }
.lander-aurora.a3 { width: 34vw; height: 22vw; left: 33vw; top: 30vh; background: #4c3fb8; opacity: .35; animation: lander-drift-c 30s ease-in-out infinite alternate; }
@keyframes lander-drift-a { to { transform: translate3d(8vw, 6vh, 0) scale(1.08); } }
@keyframes lander-drift-b { to { transform: translate3d(-7vw, 8vh, 0) scale(1.12); } }
@keyframes lander-drift-c { to { transform: translate3d(-6vw, -4vh, 0) scale(.92); } }

.lander-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 72px 72px;
    background-position: center -1px;
    -webkit-mask-image: radial-gradient(ellipse 62% 52% at 50% 26%, #000 20%, transparent 78%);
            mask-image: radial-gradient(ellipse 62% 52% at 50% 26%, #000 20%, transparent 78%);
}
.lander-noise {
    position: absolute;
    inset: -50%;
    opacity: .07;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Everything that moves with the curtain sits in .lander-inner. */
.lander-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    transform: translate3d(0, 14%, 0) scale(.97);
    opacity: .25;
    transition: transform 1s cubic-bezier(.76, 0, .24, 1), opacity .7s ease;
}
html.lander-active .lander-inner { transform: none; opacity: 1; }

/* --- Nav ------------------------------------------------------------------- */
.lander-nav {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px clamp(18px, 4vw, 40px);
}
.lander-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.lander-brand img { display: block; height: 22px; width: auto; }
.lander-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 auto;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--l-line);
    background: rgba(255, 255, 255, .035);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.lander .lander-links > * {
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--l-muted);
    transition: color .2s ease, background-color .2s ease;
}
.lander .lander-links > *:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.lander-nav-cta { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lander .lander-login {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--l-muted);
    border-radius: 999px;
    transition: color .2s ease;
}
.lander .lander-login:hover { color: #fff; }

/* --- Buttons --------------------------------------------------------------- */
.lander .lander-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.005em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: transform .25s var(--l-ease), box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}
.lander .lander-btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .25s var(--l-ease); }
.lander .lander-btn:hover svg { transform: translateX(3px); }
.lander .lander-btn:active { transform: translateY(0) scale(.98); }
.lander .lander-btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

.lander .lander-btn-light {
    color: #150f36;
    background: linear-gradient(180deg, #ffffff 0%, #eeeaff 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .6) inset,
        0 1px 0 rgba(255, 255, 255, .9) inset,
        0 10px 34px -6px rgba(167, 139, 250, .55),
        0 2px 6px rgba(10, 8, 32, .25);
}
.lander .lander-btn-light:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .7) inset,
        0 1px 0 rgba(255, 255, 255, .9) inset,
        0 16px 44px -6px rgba(167, 139, 250, .75),
        0 2px 6px rgba(10, 8, 32, .25);
}
/* Light sweep on hover */
.lander .lander-btn-light::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(167, 139, 250, .28) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .7s var(--l-ease);
}
.lander .lander-btn-light:hover::after { transform: translateX(120%); }

.lander .lander-btn-glass {
    color: #fff;
    border: 1px solid var(--l-line-strong);
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset;
}
.lander .lander-btn-glass:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .26);
}

/* --- Hero copy ------------------------------------------------------------- */
.lander-hero {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(8px, 4.2vh, 56px) 20px 0;
}

.lander .lander-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--l-line-strong);
    background: rgba(255, 255, 255, .045);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 500;
    color: var(--l-muted);
    line-height: 1.2;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.lander .lander-pill:hover { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .07); }
.lander-pill-tag {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #140f33 !important;
    background: linear-gradient(90deg, var(--l-lilac), var(--l-cyan));
}
.lander .lander-pill svg { width: 14px; height: 14px; transition: transform .25s var(--l-ease); }
.lander .lander-pill:hover svg { transform: translateX(2px); }

.lander .lander-title {
    margin-top: clamp(16px, 2.8vh, 28px);
    font-size: clamp(40px, min(6.4vw, 8.2vh), 80px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.045em;
    color: #fff;
    text-wrap: balance;
}
.lander-title > span { display: block; }
.lander .lander-title-grad {
    padding-bottom: .08em; /* keep descenders inside the clipped gradient */
    background: linear-gradient(95deg, #ffffff 0%, var(--l-lilac) 28%, var(--l-violet) 58%, var(--l-cyan) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: lander-sheen 9s ease-in-out infinite alternate;
}
@keyframes lander-sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.lander .lander-sub {
    max-width: 700px;
    margin-top: clamp(14px, 2.2vh, 20px);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.55;
    color: var(--l-muted);
    text-wrap: balance;
}

.lander-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: clamp(20px, 3.2vh, 32px);
}

.lander-proof {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-top: clamp(14px, 2.2vh, 22px);
    font-size: 13px;
    font-weight: 500;
    color: var(--l-faint);
}
.lander-proof > span { display: inline-flex; align-items: center; gap: 7px; }
.lander-proof svg { width: 15px; height: 15px; color: var(--l-mint); flex-shrink: 0; }

/* --- Product stage ----------------------------------------------------------- */
.lander-stage {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    margin-top: clamp(22px, 4.4vh, 48px);
    padding: 0 20px;
    perspective: 2000px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 48px), transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 48px), transparent 100%);
}
.lander-glow {
    position: absolute;
    left: 50%;
    top: -40px;
    width: min(1100px, 90vw);
    height: 360px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(139, 92, 246, .45), rgba(89, 102, 202, .18) 55%, transparent);
    filter: blur(30px);
    pointer-events: none;
}

.lander-demo {
    --lander-demo-tilt: 9deg;
    position: relative;
    width: min(1080px, 100%);
    margin: 0 auto;
    border-radius: 18px;
    text-align: left;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)),
        rgba(18, 14, 46, .78);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .10) inset,
        0 50px 120px -20px rgba(4, 2, 18, .85),
        0 30px 60px -30px rgba(76, 29, 149, .6);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    transform-origin: 50% 0;
    transform: rotateX(var(--lander-demo-tilt));
}
/* Travelling light on the card's border */
.lander-demo::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--lander-beam), transparent 0deg 250deg, rgba(167, 139, 250, .0) 260deg, rgba(167, 139, 250, .95) 300deg, rgba(125, 211, 252, .95) 330deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: lander-beam 7s linear infinite;
    pointer-events: none;
}
@keyframes lander-beam { to { --lander-beam: 360deg; } }

.ld-chrome {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 44px;
    padding: 0 16px;
    border-bottom: 1px solid var(--l-line);
}
.ld-dots { display: flex; gap: 7px; }
.ld-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.ld-tag {
    /* Disclose the entire demo, including its code and logic views. */
    margin-right: auto;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--l-faint);
    pointer-events: none;
}
.lander .ld-playback {
    padding: 4px 8px;
    border: 1px solid var(--l-line);
    border-radius: 6px;
    background: rgba(255, 255, 255, .035);
    color: var(--l-muted);
    font-size: 11px;
}
.lander .ld-playback[hidden] { display: none; }
.lander .ld-tab, .lander .ld-playback, .lander .ld-flow-choice {
    appearance: none;
    margin: 0;
    font-family: inherit;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
}
.lander .ld-tab:focus-visible, .lander .ld-playback:focus-visible, .lander .ld-flow-choice:focus-visible {
    outline: 2px solid var(--l-cyan);
    outline-offset: 3px;
}
.lander .ld-playback:hover { color: #fff; border-color: var(--l-line-strong); }

.ld-body { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.ld-left { padding: 22px 22px 24px; border-right: 1px solid var(--l-line); }
.ld-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--l-faint);
}
.ld-prompt {
    position: relative;
    min-height: 104px;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(246, 244, 255, .92);
    transition: border-color .3s ease, box-shadow .3s ease;
}
.lander-demo.is-typing .ld-prompt { border-color: rgba(167, 139, 250, .55); box-shadow: 0 0 0 4px rgba(167, 139, 250, .12); }
.ld-caret {
    display: inline-block;
    width: 2px;
    height: 1.15em;
    margin-left: 1px;
    vertical-align: -.2em;
    background: var(--l-violet);
    border-radius: 2px;
    animation: lander-blink 1s steps(1) infinite;
}
.lander-demo:not(.is-typing) .ld-caret { opacity: 0; animation: none; }
@keyframes lander-blink { 50% { opacity: 0; } }

.ld-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ld-chip {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--l-muted);
    border: 1px solid var(--l-line);
    background: rgba(255, 255, 255, .03);
}

.ld-run {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 42px;
    margin-top: 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(225, 220, 255, .28);
    background: linear-gradient(135deg, rgba(202, 192, 255, .24), rgba(255, 255, 255, .08));
    box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset;
    transition: transform .2s ease, box-shadow .3s ease, background-color .3s ease;
}
.ld-run i {
    display: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    animation: lander-spin .8s linear infinite;
}
.lander-demo.is-pressed .ld-run { transform: scale(.97); box-shadow: 0 0 0 6px rgba(167, 139, 250, .18), 0 1px 0 rgba(255, 255, 255, .12) inset; }
.lander-demo.is-running .ld-run i { display: block; }
.lander-demo.is-running .ld-run { box-shadow: 0 0 28px rgba(167, 139, 250, .35), 0 1px 0 rgba(255, 255, 255, .12) inset; }
@keyframes lander-spin { to { transform: rotate(360deg); } }

.ld-steps { display: grid; gap: 10px; margin-top: 18px; }
.ld-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--l-faint);
    transition: color .3s ease;
}
.ld-step i {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .18);
    transition: border-color .3s ease, background-color .3s ease;
}
.ld-step.is-active { color: #fff; }
.ld-step.is-active i { border-color: rgba(255, 255, 255, .15); border-top-color: var(--l-violet); animation: lander-spin .8s linear infinite; }
.ld-step.is-done { color: var(--l-muted); }
.ld-step.is-done i { border-color: transparent; background: linear-gradient(135deg, var(--l-violet), var(--l-cyan)); }
.ld-step.is-done i::after {
    content: '';
    position: absolute;
    left: 5.5px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid #140f33;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ld-right { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 22px 22px; }
.ld-tabs { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; border-bottom: 1px solid var(--l-line); }
.lander .ld-tab {
    position: relative;
    padding: 8px 12px 12px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: var(--l-faint);
    border: 0;
    border-radius: 0;
    background: transparent;
    transition: color .3s ease;
}
.ld-tab::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--l-violet), var(--l-cyan));
    transform: scaleX(0);
    transition: transform .35s var(--l-ease);
}
.lander .ld-tab:hover, .lander .ld-tab.is-active { color: #fff; }
.ld-tab.is-active::after { transform: scaleX(1); }

.ld-views { position: relative; flex: 1; min-height: 300px; margin-top: 14px; }
.ld-view {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .4s ease, transform .4s var(--l-ease), visibility 0s linear .4s;
}
.ld-view.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .4s ease, transform .4s var(--l-ease), visibility 0s; }

.ld-code {
    font-family: var(--l-mono);
    font-size: 12.5px;
    line-height: 1.75;
    color: rgba(232, 227, 255, .78);
    white-space: pre;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
            mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.ld-code .ln { display: block; opacity: 0; transform: translateX(-4px); transition: opacity .25s ease, transform .25s ease; }
.ld-code .ln.is-in { opacity: 1; transform: none; }
.ld-code .ln-no { display: inline-block; width: 2.2em; color: rgba(255, 255, 255, .2); user-select: none; }
.ld-code .k { color: #c4b5fd; }
.ld-code .s { color: #f0abfc; }
.ld-code .f { color: #7dd3fc; }
.ld-code .n { color: #fcd34d; }
.ld-code .c { color: rgba(255, 255, 255, .34); }

.ld-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
}
.ld-flow-input { color: var(--l-muted); font-size: 11.5px; }
.ld-flow-arrow { color: var(--l-violet); font-size: 17px; line-height: 1; }
.ld-flow-decision {
    max-width: 100%;
    padding: 8px 14px;
    border: 1px solid rgba(167, 139, 250, .32);
    border-radius: 11px;
    background: rgba(167, 139, 250, .08);
    color: var(--l-ink);
}
.ld-flow-branches {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--ld-branches, 2), minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    margin-top: 5px;
}
.ld-flow-branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(50% / var(--ld-branches, 2));
    right: calc(50% / var(--ld-branches, 2));
    height: 1px;
    background: rgba(167, 139, 250, .34);
}
.ld-flow-branch { position: relative; min-width: 0; padding-top: 13px; }
.ld-flow-branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 13px;
    background: rgba(167, 139, 250, .34);
}
.lander .ld-flow-choice {
    width: 100%;
    min-height: 35px;
    padding: 6px;
    border: 1px solid rgba(167, 139, 250, .22);
    border-radius: 9px;
    background: rgba(255, 255, 255, .035);
    color: var(--l-muted);
    font-size: 11px;
    font-weight: 500;
}
.lander .ld-flow-choice:hover { color: #fff; background: rgba(167, 139, 250, .12); }
.ld-flow-steps { display: grid; gap: 6px; margin: 7px 0 0; padding: 0; list-style: none; }
.ld-flow-node {
    padding: 7px 6px;
    border: 1px solid var(--l-line);
    border-radius: 9px;
    background: rgba(255, 255, 255, .035);
    color: var(--l-muted);
    overflow-wrap: anywhere;
}
.ld-flow-branch.is-active .ld-flow-node, .lander .ld-flow-branch.is-active .ld-flow-choice {
    border-color: rgba(110, 231, 183, .44);
    background: rgba(110, 231, 183, .09);
    color: var(--l-ink);
}

.ld-perf { display: flex; flex-direction: column; }
.ld-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    padding-bottom: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--l-faint);
    opacity: 0;
    transition: opacity .4s ease;
}
.lander-demo.is-result .ld-legend { opacity: 1; }
.ld-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ld-legend i { display: inline-block; width: 16px; height: 2px; border-radius: 2px; }
.ld-legend .lg-s i { background: linear-gradient(90deg, var(--l-violet), var(--l-cyan)); }
.ld-legend .lg-b i { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 4px, transparent 4px 7px); }

.ld-chart-wrap { position: relative; height: 180px; margin-top: 4px; }
.ld-chart { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ld-grid-line { stroke: rgba(255, 255, 255, .07); stroke-width: 1; stroke-dasharray: 3 5; }
.ld-bench { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 1.5; stroke-dasharray: 4 4; stroke-linejoin: round; }
/* Area and benchmark wipe in left-to-right, in step with the line draw. */
.ld-bench, .ld-area { clip-path: inset(-10px 100% -10px 0); }
.ld-perf.is-drawn .ld-bench,
.ld-perf.is-drawn .ld-area { clip-path: inset(-10px 0 -10px 0); transition: clip-path 1.5s cubic-bezier(.55, .05, .3, 1); }
.ld-line {
    fill: none;
    stroke: url(#ldStroke);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    filter: drop-shadow(0 4px 10px rgba(139, 92, 246, .45));
}
.ld-perf.is-drawn .ld-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s cubic-bezier(.55, .05, .3, 1); }
.ld-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(125, 211, 252, .25), 0 0 18px rgba(125, 211, 252, .8);
    opacity: 0;
    transform: scale(.4);
    transition: opacity .3s ease, transform .4s var(--l-ease);
}
.ld-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(125, 211, 252, .7);
    animation: lander-ping 1.8s ease-out infinite;
}
@keyframes lander-ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.ld-perf.is-done .ld-dot { opacity: 1; transform: none; }

.ld-years {
    position: relative;
    height: 14px;
    margin: 8px 8px 0 0;
    font-size: 11px;
    font-weight: 500;
    color: rgba(232, 227, 255, .36);
    font-variant-numeric: tabular-nums;
}
.ld-years span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ld-years span:last-child { transform: translateX(-100%); }

/* Stat chips stay on one line; a soft fade covers any overflow on narrow cards. */
.ld-metrics {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin-top: 16px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
}
.ld-metric {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 5px 8px 5px 7px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--l-muted);
    border: 1px solid var(--l-line);
    background: rgba(255, 255, 255, .035);
    opacity: 0;
    transform: translate3d(0, 6px, 0) scale(.96);
    transition: opacity .35s ease, transform .35s var(--l-ease);
}
.ld-metric svg { width: 12px; height: 12px; color: var(--l-mint); }
.ld-metric.is-in { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }

.ld-toast {
    position: absolute;
    top: -2px;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    border: 1px solid rgba(110, 231, 183, .3);
    background: rgba(16, 38, 40, .75);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    opacity: 0;
    transform: translate3d(0, -6px, 0);
    transition: opacity .35s ease, transform .35s var(--l-ease);
    pointer-events: none;
}
.ld-toast i { width: 7px; height: 7px; border-radius: 50%; background: var(--l-mint); box-shadow: 0 0 10px var(--l-mint); }
.lander-demo.is-saved .ld-toast { opacity: 1; transform: translate3d(0, 0, 0); }

/* --- Scroll cue --------------------------------------------------------------- */
.lander .lander-scroll {
    position: absolute;
    left: 50%;
    bottom: clamp(14px, 2.6vh, 26px);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 8px;
    transform: translateX(-50%);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--l-muted);
    border: 1px solid var(--l-line-strong);
    background: rgba(14, 11, 36, .62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(4, 2, 18, .45);
    transition: color .2s ease, border-color .2s ease;
}
.lander .lander-scroll:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.lander-mouse {
    position: relative;
    width: 16px;
    height: 24px;
    border-radius: 9px;
    border: 1.5px solid currentColor;
}
.lander-mouse::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 5px;
    width: 2px;
    height: 5px;
    margin-left: -1px;
    border-radius: 2px;
    background: currentColor;
    animation: lander-wheel 1.8s var(--l-ease) infinite;
}
@keyframes lander-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(7px); opacity: 0; } 100% { opacity: 0; } }
.lander-scroll .when-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
    .lander-scroll .when-pointer { display: none; }
    .lander-scroll .when-touch { display: inline; }
}

/* --- Entrance choreography ------------------------------------------------ */
.lander [data-enter] {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
    animation: lander-enter .9s var(--l-ease) forwards;
    animation-delay: calc(var(--d, 0) * 1ms + 80ms);
}
/* End on filter:none so finished elements don't become backdrop roots. */
@keyframes lander-enter { to { opacity: 1; transform: none; filter: none; } }
.lander .lander-demo[data-enter] {
    transform: rotateX(24deg) translateY(60px);
    filter: none;
    animation: lander-enter-demo 1.4s var(--l-ease) forwards;
    animation-delay: 420ms;
}
@keyframes lander-enter-demo { to { opacity: 1; transform: rotateX(var(--lander-demo-tilt)) translateY(0); } }

/* --- Reveal: the app rises in as the lander lifts ------------------------------ */

html.lander-reveal body > h1,
html.lander-reveal body > p.hero-subtitle,
html.lander-reveal body > p.hero-note,
html.lander-reveal body > .strategy-panel {
    animation: lander-app-rise .9s var(--l-ease) both;
}
/* The curtain uncovers the bottom first, so the panel rises before the title. */
html.lander-reveal body > .strategy-panel { animation-delay: .18s; }
html.lander-reveal body > h1 { animation-delay: .34s; }
html.lander-reveal body > p.hero-subtitle { animation-delay: .4s; }
html.lander-reveal body > p.hero-note { animation-delay: .46s; }
@keyframes lander-app-rise { from { opacity: 0; transform: translateY(42px); } to { opacity: 1; transform: none; } }

/* Brief halo on the strategy panel after "Test an idea free" */
body > .strategy-panel.lander-spotlight { animation: lander-spotlight 2.4s ease .1s both; }
@keyframes lander-spotlight {
    0%   { box-shadow: 0 16px 48px rgba(12, 9, 35, .12), 0 0 0 0 rgba(216, 204, 255, 0); }
    25%  { box-shadow: 0 16px 48px rgba(12, 9, 35, .12), 0 0 0 4px rgba(216, 204, 255, .45); }
    100% { box-shadow: 0 16px 48px rgba(12, 9, 35, .12), 0 0 0 0 rgba(216, 204, 255, 0); }
}

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 900px) {
    .lander-links { display: none; }
    .lander-nav-cta { margin-left: auto; }
    .ld-body { grid-template-columns: minmax(0, 1fr); }
    .ld-left { border-right: 0; border-bottom: 1px solid var(--l-line); padding: 16px 16px 18px; }
    .ld-steps, .ld-meta, .ld-run { display: none; }
    .ld-prompt { min-height: 0; margin-top: 10px; font-size: 13.5px; }
    .ld-right { padding: 10px 16px 16px; }
    .ld-views { min-height: 250px; }
    .ld-chart-wrap { height: 150px; }
}

@media (max-width: 640px) {
    .lander-nav { padding: 14px 16px; }
    .lander-brand img { height: 19px; }
    .lander .lander-login { display: none; }
    .lander .lander-title { font-size: clamp(36px, 10.6vw, 46px); letter-spacing: -.04em; }
    .lander .lander-sub { font-size: 15.5px; }
    .lander-ctas { width: 100%; max-width: 420px; flex-wrap: nowrap; gap: 10px; }
    .lander .lander-ctas .lander-btn { flex: 1 1 0; min-width: 0; height: 50px; padding: 0 14px; font-size: 14.5px; }
    .lander .lander-ctas .lander-btn-glass svg { display: none; }
    .lander-proof > span + span { display: none; }
    .lander-stage { padding: 0 14px; }
    /* Keep one entrance animation so resizing cannot replay it from opacity 0. */
    .lander-demo { --lander-demo-tilt: 6deg; border-radius: 14px; }
    .ld-chrome { height: 34px; padding: 0 14px; }
    .ld-dots i { width: 9px; height: 9px; }
    /* Phones: the prompt being typed, the code it generates, then the chart. */
    .ld-left { padding: 10px 12px 12px; }
    .ld-label, .ld-legend { display: none; }
    .ld-prompt { margin-top: 0; min-height: 58px; padding: 9px 12px; font-size: 12.5px; line-height: 1.5; border-radius: 12px; }
    .ld-right { padding: 4px 12px 12px; }
    .lander .ld-tab { padding: 8px 7px 10px; font-size: 11.5px; }
    .ld-tab::after { left: 10px; right: 10px; }
    .ld-views { min-height: 230px; margin-top: 10px; }
    .ld-chart-wrap { height: 138px; }
    .ld-code { font-size: 10.5px; line-height: 1.65; }
    .ld-code .ln-no { width: 1.9em; }
    .ld-flow { font-size: 10.5px; gap: 5px; }
    .ld-flow-input { font-size: 10.5px; }
    .ld-flow-decision { padding: 6px 8px; }
    .ld-flow-branches { gap: 5px; margin-top: 3px; }
    .lander .ld-flow-choice { font-size: 10px; min-height: 38px; padding: 5px 3px; }
    .ld-flow-node { padding: 6px 3px; }
    .ld-years span:nth-child(even) { display: none; }
    .lander-stage {
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
                mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
    }
}

/* Short viewports: keep the hero on one screen. */
@media (max-height: 1050px) and (min-width: 901px) {
    .lander-nav { padding-top: 12px; padding-bottom: 12px; }
    .lander-hero { padding-top: 8px; }
    .lander .lander-title { margin-top: 14px; font-size: clamp(40px, 6vh, 58px); }
    .lander .lander-sub { margin-top: 12px; font-size: 16px; }
    .lander-ctas { margin-top: 20px; }
    .lander-proof { display: none; }
    .lander-stage {
        margin-top: 16px;
        /* Keep the complete result visible instead of fading at 60% of the remaining space. */
        -webkit-mask-image: none;
                mask-image: none;
    }
    .ld-chrome { height: 34px; }
    .ld-left { padding: 12px 18px 14px; }
    .ld-meta { margin-top: 10px; }
    .ld-run { height: 36px; margin-top: 12px; }
    .ld-steps { gap: 8px; margin-top: 12px; }
    .ld-right { padding-top: 12px; padding-bottom: 14px; }
    .ld-views { min-height: 240px; margin-top: 10px; }
    .ld-chart-wrap { height: 148px; }
    .ld-metrics { margin-top: 12px; }
}
@media (max-height: 820px) and (min-width: 641px) {
    .lander-proof { display: none; }
    .lander-nav { padding-top: 12px; padding-bottom: 12px; }
}
@media (max-height: 640px) {
    .lander .lander-pill { display: none; }
    .lander .lander-title { margin-top: 0; }
}
@media (max-height: 760px) and (min-width: 901px) {
    .lander-nav { padding-top: 8px; padding-bottom: 8px; }
    .lander .lander-pill, .ld-label { display: none; }
    .ld-prompt { margin-top: 0; }
    .ld-views { min-height: 220px; }
}
@media (max-height: 1000px) and (min-width: 641px) and (max-width: 900px) {
    .lander-nav { padding-top: 12px; padding-bottom: 12px; }
    .lander-hero { padding-top: 8px; }
    .lander .lander-title { margin-top: 12px; font-size: clamp(40px, 5.5vh, 52px); }
    .lander .lander-sub { margin-top: 10px; font-size: 15px; line-height: 1.45; }
    .lander-ctas { margin-top: 16px; }
    .lander .lander-ctas .lander-btn { height: 44px; }
    .lander-proof { display: none; }
    .lander-stage { margin-top: 16px; -webkit-mask-image: none; mask-image: none; }
    .ld-chrome { height: 34px; }
    .ld-left { padding-top: 12px; padding-bottom: 12px; }
    .ld-right { padding-top: 8px; padding-bottom: 12px; }
    .ld-views { min-height: 200px; margin-top: 10px; }
    .ld-chart-wrap { height: 130px; }
}
@media (max-height: 900px) and (max-width: 640px) {
    .lander-nav { padding-top: 12px; padding-bottom: 12px; }
    .lander-hero { padding-top: 8px; }
    .lander .lander-pill, .lander-proof { display: none; }
    .lander .lander-title { margin-top: 12px; font-size: clamp(30px, 9vw, 40px); }
    .lander .lander-sub { margin-top: 10px; font-size: 14px; line-height: 1.45; }
    .lander-ctas { margin-top: 16px; }
    .lander .lander-ctas .lander-btn { height: 44px; }
    .lander-stage { margin-top: 16px; -webkit-mask-image: none; mask-image: none; }
    .ld-views { min-height: 190px; margin-top: 8px; }
    .ld-chart-wrap { height: 118px; }
    .ld-metrics { margin-top: 12px; }
}
@media (max-height: 780px) and (max-width: 900px) {
    .lander-nav { padding-top: 8px; padding-bottom: 8px; }
    .lander .lander-pill, .ld-label { display: none; }
    .ld-prompt { margin-top: 0; }
    .ld-views { min-height: 180px; }
    .ld-chart-wrap { height: 108px; }
}
@media (max-height: 780px) and (max-width: 640px) {
    .lander .lander-title { margin-top: 8px; font-size: clamp(28px, 8.5vw, 36px); }
    .lander .lander-sub { font-size: 13px; line-height: 1.4; }
    .lander-ctas { margin-top: 12px; }
    .lander .lander-ctas .lander-btn { height: 42px; }
    .lander-stage { margin-top: 12px; }
}
@media (max-width: 360px) {
    .lander .ld-tab { padding-left: 4px; padding-right: 4px; }
}
@media (max-height: 700px) and (max-width: 640px) {
    .lander-hero { padding-top: 4px; }
    .lander .lander-title { font-size: 28px; }
    .lander .lander-sub { font-size: 12px; }
    .lander-stage { margin-top: 8px; }
    .ld-views { min-height: 160px; }
    .ld-chart-wrap { height: 90px; }
}

/* --- Motion & print ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .lander, html.lander-active .lander, html.lander-peeking .lander, .lander-inner { transition: none !important; }
    .lander-aurora, .lander-title-grad, .lander-demo::before, .lander-mouse::after, .ld-dot::after { animation: none; }
    .lander [data-enter], .lander .lander-demo[data-enter] { animation: none; opacity: 1; filter: none; }
    .lander .lander-demo[data-enter] { transform: rotateX(var(--lander-demo-tilt)); }
    .lander [data-enter]:not(.lander-demo) { transform: none; }
    .lander-demo *, .lander-demo *::before, .lander-demo *::after { transition: none !important; animation: none !important; }
    html.lander-reveal body > * { animation: none !important; }
    body > .strategy-panel.lander-spotlight { animation: none; }
}
@media print {
    .lander { display: none !important; }
    html.lander-lock, html.lander-lock body { overflow: visible; }
}
