/* ─────────────────────────────────────────────────────────────────────────
   KrasoftReport — landing page (Index.cshtml)

   Dark, sophisticated design positioned as "companion service for Krasoft
   Platform". Heavy use of layered gradients, glass surfaces, scroll-driven
   reveals. Self-contained — no external font/icon deps beyond the Inter
   load in site.css.

   All class names are prefixed with `lp-` (landing page) so they don't
   collide with the DevExpress widgets, the file manager (`fm-*`), or the
   generic site.css selectors (`.btn`, `.container`, `.footer`).

   The .footer + body dark overrides ARE scoped to Index.cshtml (the page's
   own @section Styles block sets body/footer background), so Reports,
   ViewDashboard, ViewReport, FileManagerSoft, etc. stay light.
   ───────────────────────────────────────────────────────────────────────── */

.lp {
    --lp-bg: #06080f;
    --lp-bg-soft: #0b0f1a;
    --lp-surface: rgba(255, 255, 255, 0.04);
    --lp-surface-strong: rgba(255, 255, 255, 0.07);
    --lp-border: rgba(255, 255, 255, 0.08);
    --lp-border-strong: rgba(255, 255, 255, 0.14);
    --lp-text: #e6e9f2;
    --lp-text-muted: #8b93a7;
    --lp-text-dim: #5a6072;
    --lp-blue: #3b82f6;
    --lp-violet: #8b5cf6;
    --lp-cyan: #06b6d4;
    --lp-pink: #ec4899;
    --lp-green: #22c55e;
    --lp-orange: #f59e0b;

    color: var(--lp-text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, sans-serif;
    line-height: 1.55;
    /* Hard-set base so the page sits cleanly against the dark body. */
    background: var(--lp-bg);
}

.lp ::selection {
    background: rgba(139, 92, 246, 0.35);
    color: #fff;
}

.lp code {
    font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
    font-size: 0.875em;
    background: rgba(139, 92, 246, 0.14);
    color: #c4b5fd;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.22);
}

/* ──────────────────────────────────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────────────────────────────────── */
.lp-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(96px, 14vh, 160px) 0 clamp(64px, 10vh, 120px);
    isolation: isolate; /* keeps spotlight / mesh contained */
}

.lp-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Three large blurred gradient blobs forming a mesh. Animated slowly. */
.lp-mesh {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    will-change: transform;
}

.lp-mesh--1 {
    width: 560px;
    height: 560px;
    top: -160px;
    left: -120px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    animation: lp-float 22s ease-in-out infinite;
}

.lp-mesh--2 {
    width: 500px;
    height: 500px;
    top: 40px;
    right: -120px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    animation: lp-float 26s ease-in-out -7s infinite;
}

.lp-mesh--3 {
    width: 420px;
    height: 420px;
    bottom: -180px;
    left: 38%;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    animation: lp-float 30s ease-in-out -14s infinite;
}

@keyframes lp-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -28px) scale(1.07); }
    66% { transform: translate(-28px, 36px) scale(0.94); }
}

/* Subtle dotted grid for that "engineering" feel. Masked to fade out at
   the edges so it doesn't fight with the mesh blobs. */
.lp-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 75%);
}

/* Film-grain noise via SVG turbulence (data-uri so no extra request). */
.lp-noise {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Mouse-tracked radial spotlight — JS updates --x/--y on mousemove. */
.lp-spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--x, 50%) var(--y, 40%),
        rgba(139, 92, 246, 0.14),
        transparent 50%
    );
    transition: background 100ms linear;
}

.lp-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 920px;
}

/* "Chip" — eyebrow pill above the title. */
.lp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    color: #c7cee0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lp-chip__dot {
    width: 7px;
    height: 7px;
    background: var(--lp-green);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
    animation: lp-pulse 2.4s ease-in-out infinite;
}

@keyframes lp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.9); }
}

.lp-title {
    font-size: clamp(36px, 5.8vw, 68px);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
    color: #f4f6fb;
}

.lp-grad {
    background: linear-gradient(120deg, #60a5fa 0%, #a78bfa 45%, #f0abfc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lp-grad--soft {
    background: linear-gradient(120deg, #93c5fd 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lp-lead {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.6;
    color: var(--lp-text-muted);
    max-width: 720px;
    margin: 0 auto 36px;
}

/* Hero CTA row */
.lp-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 auto 56px;
}

/* Stats panel — glass surface with separators */
.lp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 880px;
    margin: 0 auto;
    padding: 24px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border: 1px solid var(--lp-border);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.lp-stat {
    text-align: center;
    padding: 8px 12px;
    border-right: 1px solid var(--lp-border);
}

.lp-stat:last-child {
    border-right: none;
}

.lp-stat__v {
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.05;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

.lp-stat__lbl {
    margin-top: 6px;
    font-size: 12px;
    color: var(--lp-text-muted);
    line-height: 1.4;
}

@media (max-width: 720px) {
    .lp-stats {
        grid-template-columns: repeat(2, 1fr);
        max-width: 480px;
    }
    .lp-stat:nth-child(2) { border-right: none; }
    .lp-stat:nth-child(1), .lp-stat:nth-child(2) {
        border-bottom: 1px solid var(--lp-border);
        padding-bottom: 18px;
    }
    .lp-stat:nth-child(3), .lp-stat:nth-child(4) {
        padding-top: 18px;
    }
}

/* Scroll-down hint */
.lp-scrolldown {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--lp-text-dim);
}

.lp-scrolldown__line {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent 0%, var(--lp-text-dim) 100%);
    position: relative;
    overflow: hidden;
}

.lp-scrolldown__line::after {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    width: 100%;
    height: 16px;
    background: linear-gradient(180deg, transparent 0%, #93c5fd 100%);
    animation: lp-scroll-bead 2.2s ease-in-out infinite;
}

@keyframes lp-scroll-bead {
    0% { top: -16px; opacity: 0; }
    20% { opacity: 1; }
    100% { top: 36px; opacity: 0; }
}

.lp-scrolldown__lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

@media (max-width: 720px) {
    .lp-scrolldown { display: none; }
}

/* ──────────────────────────────────────────────────────────────────────────
   GENERIC SECTION
   ────────────────────────────────────────────────────────────────────────── */
.lp-section {
    position: relative;
    padding: clamp(80px, 12vh, 140px) 0;
}

.lp-eyebrow {
    display: inline-block;
    padding: 5px 12px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    color: #c7cee0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.lp-h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin: 0 0 18px;
    color: #f4f6fb;
}

.lp-p {
    font-size: 16px;
    color: var(--lp-text-muted);
    line-height: 1.65;
    margin: 0 0 16px;
}

.lp-section__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

/* Scroll-reveal — sections fade up when they enter the viewport. */
.lp-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.lp-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .lp-reveal { opacity: 1; transform: none; transition: none; }
    .lp-mesh, .lp-chip__dot, .lp-bar, .lp-svg-line, .lp-pulse-dot,
    .lp-scrolldown__line::after, .lp-cursor { animation: none !important; }
}

/* ──────────────────────────────────────────────────────────────────────────
   ROLE SECTION
   ────────────────────────────────────────────────────────────────────────── */
.lp-role::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.015) 50%, transparent 100%);
    pointer-events: none;
}

.lp-role__layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 80px;
    align-items: center;
}

.lp-role__copy .lp-h2 { text-align: left; }
.lp-role__copy .lp-p { text-align: left; }

.lp-feature-row {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 36px;
}

.lp-feature {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 18px;
    align-items: start;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--lp-border);
}

.lp-feature:last-child { border-bottom: none; padding-bottom: 0; }

.lp-feature__marker {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(139, 92, 246, 0.12) 100%);
    border: 1px solid var(--lp-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    font-weight: 700;
    color: #93c5fd;
    letter-spacing: 0.04em;
}

.lp-feature__h {
    font-size: 16px;
    font-weight: 600;
    color: #f4f6fb;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.lp-feature p {
    margin: 0;
    color: var(--lp-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Diagram */
.lp-role__diagram {
    position: relative;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--lp-border);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 30px 60px -30px rgba(0, 0, 0, 0.4);
}

.lp-role__diagram svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Animated dashed connectors */
.lp-svg-line {
    stroke-dashoffset: 0;
    animation: lp-dash 1.6s linear infinite;
}
.lp-svg-line--1 { animation-delay: 0s; }
.lp-svg-line--2 { animation-delay: -0.4s; }
.lp-svg-line--3 { animation-delay: -0.8s; }
.lp-svg-line--4 { animation-delay: -1.2s; }

@keyframes lp-dash {
    to { stroke-dashoffset: -16; }
}

.lp-pulse-dot {
    animation: lp-pulse-svg 1.6s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes lp-pulse-svg {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@media (max-width: 960px) {
    .lp-role__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .lp-role__diagram { max-width: 420px; margin: 0 auto; }
}

/* ──────────────────────────────────────────────────────────────────────────
   CAPABILITIES
   ────────────────────────────────────────────────────────────────────────── */
.lp-caps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.lp-cap {
    position: relative;
    padding: 26px 26px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
    overflow: hidden;
}

/* Subtle border-glow on hover — pure CSS gradient border via pseudo. */
.lp-cap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0) 0%, rgba(167, 139, 250, 0.3) 50%, rgba(96, 165, 250, 0) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.lp-cap:hover {
    transform: translateY(-3px);
    border-color: var(--lp-border-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 20px 50px -20px rgba(59, 130, 246, 0.25);
}

.lp-cap:hover::before { opacity: 1; }

.lp-cap__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.lp-cap__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--lp-surface-strong);
    border: 1px solid var(--lp-border);
}

.lp-cap__icon--blue   { color: #60a5fa; background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.24); }
.lp-cap__icon--violet { color: #a78bfa; background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.24); }
.lp-cap__icon--green  { color: #4ade80; background: rgba(34, 197, 94, 0.12);  border-color: rgba(34, 197, 94, 0.24); }
.lp-cap__icon--cyan   { color: #22d3ee; background: rgba(6, 182, 212, 0.12);  border-color: rgba(6, 182, 212, 0.24); }
.lp-cap__icon--orange { color: #fbbf24; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.24); }
.lp-cap__icon--pink   { color: #f472b6; background: rgba(236, 72, 153, 0.12); border-color: rgba(236, 72, 153, 0.24); }

.lp-cap__pill {
    font-size: 10px;
    font-weight: 600;
    color: var(--lp-text-muted);
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    padding: 4px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.lp-cap h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #f4f6fb;
}

.lp-cap p {
    margin: 0 0 16px;
    color: var(--lp-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.lp-cap__tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lp-cap__tags li {
    font-size: 11px;
    color: #c7cee0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--lp-border);
    padding: 3px 9px;
    border-radius: 6px;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.01em;
}

/* ──────────────────────────────────────────────────────────────────────────
   SHOWCASE
   ────────────────────────────────────────────────────────────────────────── */
.lp-showcase__visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
}

.lp-window {
    background: linear-gradient(180deg, #0d1220 0%, #0a0e18 100%);
    border: 1px solid var(--lp-border-strong);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 40px 80px -30px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 0, 0, 0.5);
}

.lp-window__head {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    padding: 12px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-bottom: 1px solid var(--lp-border);
    gap: 12px;
}

.lp-window__dots {
    display: flex;
    gap: 6px;
}

.lp-window__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.lp-window__dots span:nth-child(1) { background: #ef4444; opacity: 0.7; }
.lp-window__dots span:nth-child(2) { background: #f59e0b; opacity: 0.7; }
.lp-window__dots span:nth-child(3) { background: #22c55e; opacity: 0.7; }

.lp-window__title {
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: var(--lp-text-muted);
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lp-window__meta {
    font-size: 11px;
    font-family: ui-monospace, monospace;
    color: var(--lp-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lp-window__body {
    padding: 28px 24px 24px;
}

/* Animated chart */
.lp-chart {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.lp-chart__axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 10px;
    font-family: ui-monospace, monospace;
    color: var(--lp-text-dim);
    padding: 4px 0;
}

.lp-chart__bars {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    height: 200px;
    align-items: end;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--lp-border);
    position: relative;
}

.lp-chart__bars::before {
    content: "";
    position: absolute;
    inset: 0 0 24px 0;
    background-image: linear-gradient(180deg, transparent calc(33% - 1px), var(--lp-border) calc(33% - 1px), var(--lp-border) 33%, transparent 33%,
                                              transparent calc(66% - 1px), var(--lp-border) calc(66% - 1px), var(--lp-border) 66%, transparent 66%);
    pointer-events: none;
}

.lp-bar {
    position: relative;
    height: var(--h, 50%);
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 6px 6px 0 0;
    animation: lp-bar-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.25);
}

.lp-bar::after {
    content: "";
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 8px;
    background: var(--lp-text-dim);
    opacity: 0.4;
}

.lp-bar:nth-child(1) { animation-delay: 0.05s; }
.lp-bar:nth-child(2) { animation-delay: 0.1s; }
.lp-bar:nth-child(3) { animation-delay: 0.15s; }
.lp-bar:nth-child(4) { animation-delay: 0.2s; }
.lp-bar:nth-child(5) { animation-delay: 0.25s; }
.lp-bar:nth-child(6) { animation-delay: 0.3s; }

@keyframes lp-bar-rise {
    from { height: 0; opacity: 0; }
    to { height: var(--h, 50%); opacity: 1; }
}

.lp-bar--active {
    background: linear-gradient(180deg, #c4b5fd 0%, #8b5cf6 100%);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35), 0 12px 30px -8px rgba(139, 92, 246, 0.55);
    animation: lp-bar-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards,
               lp-bar-glow 2.4s ease-in-out 1.1s infinite;
}

@keyframes lp-bar-glow {
    0%, 100% { box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35), 0 12px 30px -8px rgba(139, 92, 246, 0.55); }
    50% { box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.6), 0 18px 40px -8px rgba(139, 92, 246, 0.7); }
}

.lp-bar__v {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 500;
    color: var(--lp-text-muted);
    white-space: nowrap;
    font-family: ui-monospace, monospace;
}

.lp-bar--active .lp-bar__v {
    color: #c4b5fd;
    font-weight: 700;
}

.lp-bar__l {
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--lp-text-muted);
    font-family: ui-monospace, monospace;
    white-space: nowrap;
}

.lp-bar--active .lp-bar__l { color: #c4b5fd; font-weight: 600; }

.lp-chart__caption {
    margin-top: 36px;
    text-align: center;
    color: var(--lp-text-muted);
    font-size: 12px;
}

.lp-chart__caption b { color: #c4b5fd; font-weight: 600; }

.lp-cursor {
    display: inline-block;
    color: #c4b5fd;
    margin-right: 6px;
    animation: lp-blink 1.4s ease-in-out infinite;
}

@keyframes lp-blink {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(2px); }
}

/* Flow arrow between windows */
.lp-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--lp-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.lp-flow__line {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, transparent 0%, var(--lp-violet) 100%);
}

.lp-flow__arrow {
    color: #a78bfa;
    font-size: 18px;
    line-height: 1;
}

.lp-flow__lbl {
    color: var(--lp-text-dim);
    font-family: ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
}

/* Mock table */
.lp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.lp-table thead th {
    text-align: left;
    padding: 10px 14px;
    color: var(--lp-text-dim);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--lp-border);
    background: rgba(255, 255, 255, 0.015);
}

.lp-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--lp-border);
    color: var(--lp-text);
}

.lp-table tbody tr:last-child td { border-bottom: none; }

.lp-table tbody tr {
    transition: background 0.15s;
}

.lp-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.06);
}

.lp-table__r { text-align: right; }

.lp-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: #c7cee0;
}

.lp-table tbody .lp-table__r.lp-mono {
    color: #f4f6fb;
    font-weight: 600;
}

@media (max-width: 720px) {
    .lp-window__head { grid-template-columns: 60px 1fr; }
    .lp-window__meta { display: none; }
    .lp-chart { grid-template-columns: 1fr; }
    .lp-chart__axis { display: none; }
    .lp-table thead th:nth-child(3), .lp-table tbody td:nth-child(3) { display: none; }
    .lp-table thead th, .lp-table tbody td { padding: 10px 8px; font-size: 12px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   STACK
   ────────────────────────────────────────────────────────────────────────── */
.lp-stack__groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.lp-stack__group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lp-stack__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--lp-text-muted);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lp-border);
}

.lp-stack__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--lp-text);
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
    cursor: default;
}

.lp-pill:hover {
    border-color: var(--lp-border-strong);
    background: var(--lp-surface-strong);
    transform: translateY(-1px);
}

.lp-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lp-pill__dot--blue   { background: #60a5fa; box-shadow: 0 0 8px rgba(96, 165, 250, 0.6); }
.lp-pill__dot--violet { background: #a78bfa; box-shadow: 0 0 8px rgba(167, 139, 250, 0.6); }
.lp-pill__dot--cyan   { background: #22d3ee; box-shadow: 0 0 8px rgba(34, 211, 238, 0.6); }
.lp-pill__dot--green  { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }

/* ──────────────────────────────────────────────────────────────────────────
   OUTRO
   ────────────────────────────────────────────────────────────────────────── */
.lp-outro {
    padding-bottom: clamp(80px, 14vh, 140px);
}

.lp-outro__card {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 64px);
    border-radius: 24px;
    background: linear-gradient(135deg, #0b1224 0%, #100a24 100%);
    border: 1px solid var(--lp-border-strong);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.lp-outro__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

.lp-outro__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.lp-outro__orb--1 {
    width: 360px;
    height: 360px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
}

.lp-outro__orb--2 {
    width: 320px;
    height: 320px;
    bottom: -120px;
    left: -60px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}

.lp-outro__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
}

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

.lp-outro__copy .lp-h2 {
    text-align: left;
    margin-bottom: 12px;
}

.lp-outro__copy .lp-p {
    margin: 0;
    max-width: 580px;
}

/* ──────────────────────────────────────────────────────────────────────────
   BUTTONS — primary (gradient) and ghost variants. Used in the hero,
   capability cards and the outro CTA section.
   ────────────────────────────────────────────────────────────────────────── */
.lp-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.005em;
    transition: transform 0.12s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
    white-space: nowrap;
    border: 1px solid transparent;
}

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

.lp-btn--primary {
    background: linear-gradient(135deg, #60a5fa 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 12px 30px -8px rgba(139, 92, 246, 0.55);
}

.lp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 18px 40px -8px rgba(139, 92, 246, 0.7);
}

.lp-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: #e6e9f2;
    border-color: var(--lp-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lp-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--lp-border-strong);
    transform: translateY(-2px);
}

.lp-outro__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

@media (max-width: 720px) {
    .lp-outro__card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .lp-outro__copy .lp-h2,
    .lp-outro__copy .lp-p { text-align: center; }
    .lp-outro__actions { align-items: stretch; }
    .lp-btn { justify-content: center; }
}

/* ──────────────────────────────────────────────────────────────────────────
   AUDIENCE — "Для кого" grid of personas. Smaller than capability cards,
   no tags, single icon + heading + 1-line description.
   ────────────────────────────────────────────────────────────────────────── */
.lp-aud__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.lp-aud {
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.lp-aud:hover {
    transform: translateY(-2px);
    border-color: var(--lp-border-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.lp-aud__ico {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 14px;
    filter: saturate(0.95);
}

.lp-aud h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #f4f6fb;
    letter-spacing: -0.005em;
}

.lp-aud p {
    margin: 0;
    color: var(--lp-text-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* ──────────────────────────────────────────────────────────────────────────
   WHY US — six numbered value-prop tiles in a 3×2 grid. Numbers are large
   gradient digits used as visual rhythm.
   ────────────────────────────────────────────────────────────────────────── */
.lp-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 40px;
    max-width: 1180px;
    margin: 0 auto;
}

.lp-why__item {
    position: relative;
    padding-top: 4px;
}

.lp-why__num {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-variant-numeric: tabular-nums;
    margin-bottom: 18px;
    display: inline-block;
}

.lp-why__item h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
    color: #f4f6fb;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.lp-why__item p {
    margin: 0;
    color: var(--lp-text-muted);
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 960px) {
    .lp-why__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
}

@media (max-width: 600px) {
    .lp-why__grid { grid-template-columns: 1fr; gap: 24px; }
}
