/* Public main page (Views/Home/Index.cshtml, Views/Shared/_PublicLayout.cshtml). Prefix lp- = landing page. */

:root,
[data-lp-theme="dark"] {
    --lp-bg: #070b14;
    --lp-bg-alt: #0b1120;
    --lp-surface: rgba(255, 255, 255, .045);
    --lp-surface-strong: rgba(255, 255, 255, .08);
    --lp-surface-solid: #0f172a;
    --lp-border: rgba(255, 255, 255, .09);
    --lp-border-strong: rgba(255, 255, 255, .18);
    --lp-text: #e8eefb;
    --lp-muted: #9aa9c2;
    --lp-faint: #64748b;
    --lp-primary: #5b8cff;
    --lp-primary-2: #22d3ee;
    --lp-accent: #a78bfa;
    --lp-success: #34d399;
    --lp-danger: #f87171;
    --lp-header-bg: rgba(7, 11, 20, .72);
    --lp-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
    --lp-glow: 0 0 0 1px rgba(91, 140, 255, .25), 0 18px 40px -18px rgba(91, 140, 255, .55);
    --lp-input-bg: rgba(255, 255, 255, .04);
    color-scheme: dark;
}

[data-lp-theme="light"] {
    --lp-bg: #f7f9fc;
    --lp-bg-alt: #eef2f9;
    --lp-surface: #ffffff;
    --lp-surface-strong: #f1f5fb;
    --lp-surface-solid: #ffffff;
    --lp-border: rgba(15, 23, 42, .09);
    --lp-border-strong: rgba(15, 23, 42, .18);
    --lp-text: #0f172a;
    --lp-muted: #4b5a73;
    --lp-faint: #8391a7;
    --lp-primary: #2f6bff;
    --lp-primary-2: #0891b2;
    --lp-accent: #7c3aed;
    --lp-success: #059669;
    --lp-danger: #dc2626;
    --lp-header-bg: rgba(247, 249, 252, .8);
    --lp-shadow: 0 20px 45px -24px rgba(15, 23, 42, .28);
    --lp-glow: 0 0 0 1px rgba(47, 107, 255, .2), 0 18px 40px -20px rgba(47, 107, 255, .45);
    --lp-input-bg: #ffffff;
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
    /* Nothing may widen the page sideways on phones (body overflow alone does not stop that on mobile browsers). */
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--lp-bg);
    color: var(--lp-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color .3s, color .3s;
}

body.lp-locked { overflow: hidden; }

img { max-width: 100%; }

a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--lp-primary);
    outline-offset: 3px;
    border-radius: 6px;
}

.lp-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.lp-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.lp-skip {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--lp-primary);
    color: #fff;
    text-decoration: none;
    transition: top .2s;
}
.lp-skip:focus { top: 12px; }

/* ---------- Buttons and links ---------- */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s, color .2s;
}
.lp-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.lp-btn:hover svg { transform: translateX(3px); }
.lp-btn:active { transform: translateY(1px); }
.lp-btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.lp-btn-lg { padding: 14px 24px; font-size: 16px; }

.lp-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-accent));
    box-shadow: var(--lp-glow);
}
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(91, 140, 255, .35), 0 22px 46px -16px rgba(91, 140, 255, .7); }

.lp-btn-ghost {
    color: var(--lp-text);
    background: var(--lp-surface);
    border-color: var(--lp-border-strong);
    backdrop-filter: blur(8px);
}
.lp-btn-ghost:hover { border-color: var(--lp-primary); transform: translateY(-2px); }

.lp-btn-light { background: #fff; color: #0f172a; }
.lp-btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .45); }

.lp-link {
    color: var(--lp-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s, gap .2s;
}
.lp-link:hover { color: var(--lp-primary-2); text-decoration: underline; text-underline-offset: 3px; }
.lp-link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }

.lp-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid var(--lp-border);
    background: var(--lp-surface);
    color: var(--lp-text);
    cursor: pointer;
    transition: border-color .2s, background-color .2s, transform .2s, opacity .2s;
}
.lp-icon-btn svg { width: 19px; height: 19px; }
.lp-icon-btn:hover:not(:disabled) { border-color: var(--lp-primary); transform: translateY(-1px); }
.lp-icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Header ---------- */

.lp-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    transition: background-color .3s, border-color .3s, box-shadow .3s;
    border-bottom: 1px solid transparent;
}
.lp-header.is-scrolled,
.lp-header.is-open {
    background: var(--lp-header-bg);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: var(--lp-border);
}

.lp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 72px;
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -.01em;
    text-decoration: none;
    color: var(--lp-text);
    flex-shrink: 0;
}
.lp-brand-mark {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-2));
    box-shadow: var(--lp-glow);
}
.lp-brand-mark svg { width: 20px; height: 20px; }

.lp-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.lp-nav-links::-webkit-scrollbar { display: none; }

.lp-nav-links a {
    position: relative;
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--lp-muted);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s, background-color .2s;
}
.lp-nav-links a:hover { color: var(--lp-text); background: var(--lp-surface); }
.lp-nav-links a.is-active { color: var(--lp-text); }
.lp-nav-links a.is-active::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--lp-primary), var(--lp-primary-2));
}

.lp-nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* "More" menu for links that do not fit on one row (desktop only). */
.lp-nav-more { position: relative; flex-shrink: 0; margin-left: -20px; }
.lp-nav-more[hidden] { display: none; }
.lp-nav-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px 8px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--lp-muted);
    font: inherit;
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s, background-color .2s;
}
.lp-nav-more-btn svg { width: 15px; height: 15px; transition: transform .2s; }
.lp-nav-more-btn:hover,
.lp-nav-more.is-open .lp-nav-more-btn,
.lp-nav-more.has-active .lp-nav-more-btn { color: var(--lp-text); background: var(--lp-surface); }
.lp-nav-more.is-open .lp-nav-more-btn svg { transform: rotate(180deg); }
.lp-nav-more-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10;
    min-width: 220px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    background: var(--lp-surface-solid);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.lp-nav-more.is-open .lp-nav-more-menu { display: block; }
.lp-nav-more-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--lp-muted);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}
.lp-nav-more-menu a:hover,
.lp-nav-more-menu a.is-active { color: var(--lp-text); background: var(--lp-surface); }

.lp-lang {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--lp-border);
    background: var(--lp-surface);
    color: var(--lp-muted);
    transition: border-color .2s;
}
.lp-lang:hover, .lp-lang:focus-within { border-color: var(--lp-primary); }
.lp-lang svg { position: absolute; left: 11px; width: 17px; height: 17px; pointer-events: none; }
.lp-lang select {
    appearance: none;
    -webkit-appearance: none;
    height: 100%;
    padding: 0 14px 0 34px;
    border: 0;
    background: transparent;
    color: var(--lp-text);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}
.lp-lang option { background: var(--lp-surface-solid); color: var(--lp-text); }

[data-lp-theme="dark"] .lp-theme-sun,
[data-lp-theme="light"] .lp-theme-moon { display: none; }

.lp-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid var(--lp-border);
    background: var(--lp-surface);
    cursor: pointer;
}
.lp-nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--lp-text);
    transition: transform .25s, opacity .2s;
}
.lp-header.is-open .lp-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-header.is-open .lp-nav-toggle span:nth-child(2) { opacity: 0; }
.lp-header.is-open .lp-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lp-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.lp-progress span {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--lp-primary), var(--lp-primary-2), var(--lp-accent));
}

/* ---------- Hero ---------- */

.lp-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 120px 0 90px;
    overflow: hidden;
    isolation: isolate;
}

.lp-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    animation: lp-float 18s ease-in-out infinite;
}
.lp-blob-1 { width: 520px; height: 520px; left: -140px; top: -120px; background: radial-gradient(circle, var(--lp-primary), transparent 65%); }
.lp-blob-2 { width: 460px; height: 460px; right: -120px; top: 10%; background: radial-gradient(circle, var(--lp-accent), transparent 65%); animation-delay: -6s; }
.lp-blob-3 { width: 420px; height: 420px; left: 35%; bottom: -220px; background: radial-gradient(circle, var(--lp-primary-2), transparent 65%); animation-delay: -12s; opacity: .4; }
[data-lp-theme="light"] .lp-blob { opacity: .28; }

.lp-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--lp-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--lp-border) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
}

@keyframes lp-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.06); }
    66% { transform: translate(-30px, 25px) scale(.96); }
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 64px;
    align-items: center;
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--lp-border-strong);
    background: var(--lp-surface);
    backdrop-filter: blur(8px);
    color: var(--lp-muted);
    font-size: 14px;
    font-weight: 500;
}
.lp-pulse-dot, .lp-live-dot {
    position: relative;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--lp-success);
    flex-shrink: 0;
}
.lp-pulse-dot::after, .lp-live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--lp-success);
    animation: lp-ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes lp-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

.lp-hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.3rem, 5.2vw, 4.1rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.035em;
    background: linear-gradient(180deg, var(--lp-text) 30%, color-mix(in srgb, var(--lp-text) 60%, var(--lp-primary)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lp-hero-lead {
    margin: 0;
    max-width: 590px;
    color: var(--lp-muted);
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}

.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.lp-hero-visual { position: relative; display: grid; gap: 18px; }

.lp-hero-image {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--lp-border);
    box-shadow: var(--lp-shadow);
}
.lp-hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.lp-stats-card {
    position: relative;
    padding: 26px 26px 0;
    border-radius: 24px;
    border: 1px solid var(--lp-border-strong);
    background: linear-gradient(160deg, var(--lp-surface-strong), var(--lp-surface));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--lp-shadow);
    overflow: hidden;
    color: var(--lp-primary);
}
.lp-stats-card.is-overlay { margin: -90px 24px 0; }

.lp-stats-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--lp-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.lp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 18px; margin: 0; }
.lp-stat dt { color: var(--lp-muted); font-size: 14px; }
.lp-stat dd {
    margin: 2px 0 0;
    color: var(--lp-text);
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.lp-sparkline { display: block; width: calc(100% + 52px); height: 70px; margin: 14px -26px 0; }
.lp-spark-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: lp-draw 2.4s .4s ease forwards; }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }

.lp-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 26px; height: 42px;
    margin-left: -13px;
    border-radius: 14px;
    border: 2px solid var(--lp-border-strong);
}
.lp-scroll-cue span {
    position: absolute;
    left: 50%; top: 8px;
    width: 4px; height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--lp-muted);
    animation: lp-scroll 1.8s ease-in-out infinite;
}
@keyframes lp-scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */

.lp-section { position: relative; padding: 110px 0; }
.lp-section-alt { background: linear-gradient(180deg, transparent, var(--lp-bg-alt) 18%, var(--lp-bg-alt) 82%, transparent); }

.lp-section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.lp-section-head h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.03em;
}
.lp-section-head p { margin: 16px 0 0; color: var(--lp-muted); font-size: 1.08rem; }

/* Rich text from the editor. */
.lp-rich { color: var(--lp-muted); overflow-wrap: anywhere; }
.lp-rich > :first-child { margin-top: 0; }
.lp-rich > :last-child { margin-bottom: 0; }
.lp-rich p { margin: .6em 0; }
.lp-rich h1, .lp-rich h2, .lp-rich h3, .lp-rich h4 { color: var(--lp-text); line-height: 1.25; margin: 1em 0 .4em; }
.lp-rich a { color: var(--lp-primary); }
.lp-rich ul, .lp-rich ol { padding-left: 1.3em; margin: .6em 0; }
.lp-rich li { margin: .25em 0; }
.lp-rich blockquote { margin: .8em 0; padding: .6em 1em; border-left: 3px solid var(--lp-primary); background: var(--lp-surface); border-radius: 0 10px 10px 0; }
.lp-rich pre, .lp-rich code { background: var(--lp-surface-strong); border-radius: 8px; font-size: .92em; }
.lp-rich code { padding: .1em .35em; }
.lp-rich pre { padding: .8em 1em; overflow: auto; }
.lp-rich img { display: block; height: auto; border-radius: 14px; margin: .8em 0; }
.lp-rich iframe, .lp-rich video { display: block; width: 100% !important; max-width: 100%; aspect-ratio: 16 / 9; height: auto !important; border: 0; border-radius: 14px; margin: .8em 0; }
.lp-rich .ql-video-wrapper { width: 100% !important; max-width: 100%; }
.lp-video { position: relative; margin: .8em 0; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.lp-rich .lp-video iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; margin: 0; border-radius: 0; aspect-ratio: auto; }

/* Video preview on a card: thumbnail with a play button; opens the dialog with the player. */
.lp-video-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--lp-primary) 45%, transparent), transparent 60%), linear-gradient(135deg, #0f172a, #1e1b4b);
}
.lp-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-feature .lp-video-thumb { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; }
.lp-play {
    position: absolute;
    left: 50%; top: 50%;
    display: grid;
    place-items: center;
    width: 62px; height: 62px;
    margin: -31px 0 0 -31px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 0, 0, .88);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
    transition: transform .25s, background-color .25s;
}
.lp-play svg { width: 28px; height: 28px; margin-left: 3px; }
.lp-video-thumb:hover .lp-play, .lp-video-thumb:focus-visible .lp-play { transform: scale(1.1); background: #f00; }
.lp-rich .ql-align-center { text-align: center; }
.lp-rich .ql-align-right { text-align: right; }

/* Cards (carousel and grid) */
.lp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 24px; }
.lp-cards .lp-card.is-featured { grid-column: 1 / -1; }

.lp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid var(--lp-border);
    background: var(--lp-surface);
    overflow: hidden;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.lp-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, var(--lp-primary), transparent 40%, transparent 60%, var(--lp-accent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.lp-card:hover { transform: translateY(-6px); box-shadow: var(--lp-shadow); }
.lp-card:hover::before { opacity: 1; }
.lp-card.is-clickable { cursor: pointer; }

.lp-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--lp-surface-strong); }
.lp-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.lp-card:hover .lp-card-media img { transform: scale(1.04); }

.lp-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 26px; }
.lp-card h3, .lp-feature h3, .lp-step h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; }
.lp-card-sub { margin: 0; color: var(--lp-primary); font-size: 14px; font-weight: 600; }
.lp-card-text { margin: 0; color: var(--lp-muted); }
.lp-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: auto; padding-top: 8px; }

.lp-card.is-featured .lp-card-body { padding: 34px; }
.lp-card.is-featured h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
@media (min-width: 900px) {
    .lp-card.is-featured:has(.lp-card-media) { flex-direction: row; }
    .lp-card.is-featured .lp-card-media { flex: 0 0 48%; aspect-ratio: auto; min-height: 320px; }
}

.lp-icon {
    display: inline-grid;
    place-items: center;
    width: 50px; height: 50px;
    border-radius: 14px;
    color: var(--lp-primary);
    background: linear-gradient(140deg, color-mix(in srgb, var(--lp-primary) 22%, transparent), color-mix(in srgb, var(--lp-accent) 14%, transparent));
    border: 1px solid color-mix(in srgb, var(--lp-primary) 28%, transparent);
    flex-shrink: 0;
}
.lp-icon svg { width: 25px; height: 25px; }
.lp-icon i { font-size: 22px; }
.lp-icon-text { font-size: 24px; line-height: 1; }
.lp-icon-img { background: var(--lp-surface-strong); overflow: hidden; }
.lp-icon-img img { width: 70%; height: 70%; object-fit: contain; }

/* Carousel */
.lp-carousel { position: relative; }
.lp-carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 3);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    padding: 8px 4px 28px;
    margin: -8px -4px 0;
    scrollbar-width: none;
}
.lp-carousel-track::-webkit-scrollbar { display: none; }
.lp-carousel-track > .lp-card { scroll-snap-align: start; }
.lp-carousel-track > .lp-card.is-featured { grid-column: span 2; }
.lp-carousel-track:focus-visible { outline-offset: 6px; }

.lp-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 6px; }
.lp-carousel-dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lp-carousel-dots button {
    width: 8px; height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--lp-border-strong);
    cursor: pointer;
    transition: width .3s, background-color .3s;
}
.lp-carousel-dots button.is-active { width: 26px; background: linear-gradient(90deg, var(--lp-primary), var(--lp-primary-2)); }

/* Features */
.lp-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.lp-feature {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid var(--lp-border);
    background: var(--lp-surface);
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.lp-feature p { margin: 0; color: var(--lp-muted); }
.lp-feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--lp-primary) 45%, transparent); box-shadow: var(--lp-shadow); }
.lp-feature .lp-link, .lp-feature .lp-link-btn { margin-top: auto; }
.lp-feature.is-featured { grid-column: 1 / -1; }
.lp-feature.is-clickable { cursor: pointer; }

/* Logos */
.lp-logos { position: relative; overflow: hidden; }
.lp-logos-track { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; }
.lp-logos.is-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.lp-logos.is-marquee .lp-logos-track { flex-wrap: nowrap; width: max-content; animation: lp-marquee 40s linear infinite; }
.lp-logos.is-marquee:hover .lp-logos-track { animation-play-state: paused; }
@keyframes lp-marquee { to { transform: translateX(-50%); } }

.lp-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 170px;
    height: 88px;
    padding: 16px 26px;
    border-radius: 18px;
    border: 1px solid var(--lp-border);
    background: var(--lp-surface);
    color: var(--lp-muted);
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    transition: color .3s, border-color .3s, transform .3s;
}
.lp-logo img { max-height: 46px; max-width: 150px; object-fit: contain; filter: grayscale(1) opacity(.75); transition: filter .3s; }
[data-lp-theme="dark"] .lp-logo img { filter: grayscale(1) brightness(1.6) opacity(.75); }
a.lp-logo[href]:hover, .lp-logo:hover { color: var(--lp-text); border-color: var(--lp-border-strong); transform: translateY(-3px); }
.lp-logo:hover img { filter: none; }
.lp-logo-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; font-size: 26px; }
.lp-logo-icon svg { width: 26px; height: 26px; }

/* FAQ */
.lp-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.lp-faq-item {
    border-radius: 16px;
    border: 1px solid var(--lp-border);
    background: var(--lp-surface);
    transition: border-color .3s, background-color .3s;
}
.lp-faq-item[open] { border-color: color-mix(in srgb, var(--lp-primary) 40%, transparent); }
.lp-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--lp-primary); transition: transform .3s; }
.lp-faq-item[open] summary svg { transform: rotate(45deg); }
.lp-faq-body { padding: 0 24px 22px; }

/* Steps */
.lp-steps { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 860px; display: grid; gap: 22px; }
.lp-steps::before {
    content: "";
    position: absolute;
    left: 27px; top: 30px; bottom: 30px;
    width: 2px;
    background: linear-gradient(var(--lp-primary), var(--lp-accent));
    opacity: .4;
}
.lp-step { position: relative; display: flex; gap: 24px; align-items: flex-start; }
.lp-step-num {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 18px;
    flex-shrink: 0;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-accent));
    box-shadow: var(--lp-glow);
}
.lp-step-body {
    flex: 1;
    display: grid;
    gap: 8px;
    padding: 22px 26px;
    border-radius: 18px;
    border: 1px solid var(--lp-border);
    background: var(--lp-surface);
}

/* Testimonials */
.lp-quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.lp-quote {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 0;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--lp-border);
    background: var(--lp-surface);
}
.lp-quote.is-featured { grid-column: 1 / -1; }
.lp-quote.is-featured blockquote { font-size: 1.25rem; }
.lp-quote-mark { position: absolute; right: 24px; top: 20px; width: 40px; height: 40px; color: var(--lp-primary); opacity: .2; }
.lp-quote blockquote { margin: 0; color: var(--lp-text); font-size: 1.04rem; }
.lp-quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.lp-quote figcaption img, .lp-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.lp-avatar { display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--lp-primary), var(--lp-accent)); }
.lp-quote figcaption span { display: grid; }
.lp-quote small { color: var(--lp-muted); font-size: 14px; }

/* ---------- Call to action ---------- */

.lp-cta-wrap { padding: 20px 0 40px; }
.lp-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 52px 56px;
    border-radius: 28px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, #2f6bff, #7c3aed 55%, #0891b2);
    box-shadow: 0 30px 60px -30px rgba(47, 107, 255, .7);
    isolation: isolate;
}
.lp-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000);
    mask-image: linear-gradient(90deg, transparent, #000);
}
.lp-cta h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; }
.lp-cta p { margin: 10px 0 0; opacity: .88; max-width: 620px; }

/* ---------- Contact ---------- */

.lp-contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.lp-contact.is-centered { grid-template-columns: minmax(0, 1fr); max-width: 720px; text-align: center; }
.lp-contact.is-centered .lp-contact-list { justify-content: center; }
.lp-contact-info h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; letter-spacing: -.03em; }
.lp-contact-lead { margin: 16px 0 30px; color: var(--lp-muted); font-size: 1.08rem; }
.lp-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lp-contact.is-centered .lp-contact-list { flex-direction: row; flex-wrap: wrap; }
.lp-contact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--lp-border);
    background: var(--lp-surface);
    text-align: left;
}
.lp-contact-list small { display: block; color: var(--lp-muted); font-size: 13px; }
.lp-contact-list a { color: var(--lp-text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.lp-contact-list a:hover { color: var(--lp-primary); }
.lp-contact-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--lp-primary); background: var(--lp-surface-strong); flex-shrink: 0; }
.lp-contact-icon svg { width: 21px; height: 21px; }
.lp-pre { white-space: pre-line; font-weight: 600; }

.lp-form {
    display: grid;
    gap: 16px;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--lp-border);
    background: var(--lp-surface);
    box-shadow: var(--lp-shadow);
}
.lp-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
/* Grid items and inputs have a built-in minimum width; let them shrink on narrow phones. */
.lp-form > *, .lp-field { min-width: 0; }
.lp-field { display: grid; gap: 7px; }
.lp-field > span { font-size: 14px; font-weight: 600; color: var(--lp-muted); }
.lp-field input, .lp-field textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--lp-border-strong);
    background: var(--lp-input-bg);
    color: var(--lp-text);
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.lp-field textarea { resize: vertical; min-height: 130px; }
.lp-field input:focus, .lp-field textarea:focus {
    outline: none;
    border-color: var(--lp-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-primary) 20%, transparent);
}
.lp-field.is-invalid input, .lp-field.is-invalid textarea { border-color: var(--lp-danger); }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lp-form-status { margin: 0; font-size: 15px; font-weight: 500; }
.lp-form-status.is-success { color: var(--lp-success); }
.lp-form-status.is-error { color: var(--lp-danger); }
.lp-spinner {
    display: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    animation: lp-spin .8s linear infinite;
}
.lp-form.is-sending .lp-spinner { display: inline-block; }
.lp-form.is-sending [data-submit] { pointer-events: none; opacity: .85; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
.lp-form .recaptcha-field { margin: 0; }
/* The reCAPTCHA box is a fixed 304 px wide; shrink it on narrow phones so it never sticks out of the form. */
@media (max-width: 400px) {
    .lp-form .g-recaptcha { transform: scale(.86); transform-origin: left top; height: 68px; }
}
@media (max-width: 340px) {
    .lp-form { padding: 16px; }
    .lp-form .g-recaptcha { transform: scale(.8); height: 63px; }
}

/* ---------- Footer ---------- */

.lp-footer { margin-top: 40px; border-top: 1px solid var(--lp-border); background: var(--lp-bg-alt); }
.lp-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-top: 60px; padding-bottom: 40px; }
.lp-footer-brand p { margin: 16px 0 20px; color: var(--lp-muted); max-width: 340px; }
.lp-footer-col h2 { margin: 6px 0 16px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--lp-faint); }
.lp-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-footer-col a { color: var(--lp-muted); text-decoration: none; overflow-wrap: anywhere; }
.lp-footer-col a:hover { color: var(--lp-text); }
.lp-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-socials a {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid var(--lp-border);
    color: var(--lp-muted);
    transition: color .2s, border-color .2s, transform .2s;
}
.lp-socials a:hover { color: var(--lp-text); border-color: var(--lp-primary); transform: translateY(-2px); }
.lp-socials svg { width: 18px; height: 18px; }
.lp-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 22px;
    padding-bottom: 28px;
    border-top: 1px solid var(--lp-border);
    color: var(--lp-faint);
    font-size: 14px;
}
.lp-to-top-link { color: var(--lp-muted); text-decoration: none; }
.lp-to-top-link:hover { color: var(--lp-text); }

.lp-to-top {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 14px;
    border: 1px solid var(--lp-border-strong);
    background: var(--lp-surface-solid);
    color: var(--lp-text);
    box-shadow: var(--lp-shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s, visibility .3s, border-color .2s;
}
.lp-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.lp-to-top:hover { border-color: var(--lp-primary); }
.lp-to-top svg { width: 20px; height: 20px; }

/* ---------- Dialog ---------- */

.lp-dialog {
    width: min(860px, calc(100% - 32px));
    max-height: min(88vh, 900px);
    padding: 0;
    border: 1px solid var(--lp-border-strong);
    border-radius: 24px;
    background: var(--lp-surface-solid);
    color: var(--lp-text);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
    overflow: hidden;
}
.lp-dialog[open] { display: flex; flex-direction: column; animation: lp-dialog-in .25s ease; }
.lp-dialog::backdrop { background: rgba(3, 6, 12, .66); backdrop-filter: blur(6px); }
@keyframes lp-dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.lp-dialog-content { overflow-y: auto; padding: 38px 40px 40px; }
.lp-dialog-close {
    position: absolute;
    right: 14px; top: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid var(--lp-border);
    background: var(--lp-surface-solid);
    color: var(--lp-text);
    cursor: pointer;
}
.lp-dialog-close:hover { border-color: var(--lp-primary); }
.lp-dialog-close svg { width: 20px; height: 20px; }
.lp-dialog-media { display: block; width: calc(100% + 80px); max-width: none; margin: -38px -40px 28px; aspect-ratio: 16 / 7; object-fit: cover; }
.lp-dialog-title { margin: 0 48px 6px 0; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; letter-spacing: -.02em; }
.lp-dialog-sub { margin: 0 0 18px; color: var(--lp-primary); font-weight: 600; }
.lp-dialog .lp-rich { font-size: 1.04rem; }
.lp-dialog-actions { margin: 26px 0 0; }

/* ---------- Reveal on scroll ---------- */

.lp-js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0ms);
}
.lp-js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .lp-js [data-reveal] { opacity: 1; transform: none; }
    .lp-logos.is-marquee .lp-logos-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .lp-carousel-track { grid-auto-columns: calc((100% - 24px) / 2); }
    .lp-footer-grid { grid-template-columns: 1fr 1fr; }
    .lp-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
    .lp-nav-toggle { display: flex; }
    .lp-nav-more { display: none !important; }
    .lp-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 18px 24px 26px;
        background: var(--lp-header-bg);
        backdrop-filter: saturate(180%) blur(14px);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        border-bottom: 1px solid var(--lp-border);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    /* visibility switches at once when opening (a transition would keep it hidden for the first frame). */
    .lp-header.is-open .lp-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s, visibility 0s; }
    .lp-nav-links { flex-direction: column; align-items: stretch; overflow: visible; }
    .lp-nav-links a { padding: 12px 14px; font-size: 16px; }
    .lp-nav-links a.is-active { background: var(--lp-surface); }
    .lp-nav-links a.is-active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
    .lp-nav-actions { flex-wrap: wrap; }
    .lp-nav-actions .lp-btn { flex: 1; }

    .lp-hero { padding: 110px 0 80px; min-height: auto; }
    .lp-hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .lp-stats-card.is-overlay { margin: -60px 14px 0; }
    .lp-scroll-cue { display: none; }

    .lp-section { padding: 80px 0; }
    .lp-section-head { margin-bottom: 40px; }
    .lp-contact { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .lp-cta { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}

@media (max-width: 640px) {
    .lp-container { padding: 0 16px; }
    .lp-header-inner { height: 64px; }
    .lp-nav { padding: 16px 16px 22px; max-height: calc(100vh - 64px); }
    html { scroll-padding-top: 74px; }
    .lp-brand { font-size: 16px; }

    .lp-hero-actions .lp-btn { flex: 1 1 100%; }
    .lp-stats { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
    .lp-stats-card { padding: 20px 20px 0; }
    .lp-sparkline { width: calc(100% + 40px); margin: 12px -20px 0; }

    .lp-carousel-track { grid-auto-columns: 86%; gap: 14px; }
    .lp-carousel-track > .lp-card.is-featured { grid-column: span 1; }
    .lp-cards, .lp-features, .lp-quotes { grid-template-columns: 1fr; }
    .lp-card-body, .lp-card.is-featured .lp-card-body { padding: 22px; }
    .lp-logo { min-width: 140px; height: 76px; padding: 12px 18px; }

    .lp-steps::before { left: 21px; }
    .lp-step { gap: 14px; }
    .lp-step-num { width: 44px; height: 44px; border-radius: 14px; font-size: 17px; }
    .lp-step-body { padding: 18px; }

    .lp-form { padding: 22px; }
    .lp-form-row { grid-template-columns: minmax(0, 1fr); }
    .lp-form-foot .lp-btn { width: 100%; }

    .lp-footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; }
    .lp-cta { padding: 34px 22px; border-radius: 22px; }
    .lp-cta .lp-btn { width: 100%; }

    .lp-dialog { width: calc(100% - 16px); border-radius: 20px; }
    .lp-dialog-content { padding: 28px 20px 26px; }
    .lp-dialog-media { width: calc(100% + 40px); margin: -28px -20px 22px; }
    .lp-to-top { right: 14px; bottom: 14px; }
}
