:root {
    --lp-bg: #06111f;
    --lp-bg-soft: #071827;
    --lp-card: #0f2235;
    --lp-card-hover: #132b42;
    --lp-border: rgba(148, 163, 184, 0.15);
    --lp-text: #f8fafc;
    --lp-text-soft: #cbd5e1;
    --lp-text-muted: #94a3b8;
    --lp-blue: #2563eb;
    --lp-cyan: #06b6d4;
    --lp-green: #10b981;
    --lp-danger: #ef4444;
    --lp-radius: 18px;
    --lp-shadow: 0 24px 60px rgba(2, 8, 23, 0.48);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.public-landing {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--lp-text);
    background:
        radial-gradient(circle at 10% 2%, rgba(37, 99, 235, 0.24), transparent 35%),
        radial-gradient(circle at 92% 8%, rgba(6, 182, 212, 0.18), transparent 34%),
        radial-gradient(circle at 80% 98%, rgba(16, 185, 129, 0.1), transparent 35%),
        linear-gradient(170deg, #040c17 0%, var(--lp-bg) 54%, #081a2c 100%);
    overflow-x: hidden;
    position: relative;
}

.landing-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ambient-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.42;
}

.ambient-glow-blue {
    width: min(34vw, 440px);
    height: min(34vw, 440px);
    left: -9%;
    top: -16%;
    background: rgba(37, 99, 235, 0.55);
}

.ambient-glow-cyan {
    width: min(36vw, 420px);
    height: min(36vw, 420px);
    right: -8%;
    bottom: -20%;
    background: rgba(6, 182, 212, 0.36);
}

.ambient-grid {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.2) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 1) 85%, transparent 100%);
}

.landing-header,
.landing-main,
.landing-footer,
.demo-modal {
    position: relative;
    z-index: 1;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(6, 17, 31, 0.7);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.landing-nav {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.landing-nav .brand img {
    width: min(100%, 188px);
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--lp-text-soft);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #e2e8f0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.public-landing .btn {
    border-radius: 12px;
    font-weight: 700;
    border-width: 1px;
    font-size: 0.92rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.public-landing .btn:hover {
    transform: translateY(-1px);
}

.public-landing .btn:focus-visible {
    outline: 2px solid rgba(6, 182, 212, 0.62);
    outline-offset: 2px;
}

.public-landing .btn-primary {
    color: #f8fafc;
    border-color: rgba(125, 211, 252, 0.4);
    background: linear-gradient(130deg, var(--lp-blue), #1d4ed8);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.35);
}

.public-landing .btn-primary:hover {
    color: #f8fafc;
    filter: brightness(1.06);
}

.public-landing .btn-cyan {
    color: #032632;
    border-color: rgba(6, 182, 212, 0.3);
    background: linear-gradient(130deg, #67e8f9, var(--lp-cyan));
    box-shadow: 0 12px 26px rgba(6, 182, 212, 0.32);
}

.public-landing .btn-cyan:hover {
    color: #021d27;
    filter: brightness(1.04);
}

.public-landing .btn-ghost {
    color: var(--lp-text);
    background: rgba(15, 34, 53, 0.72);
    border-color: var(--lp-border);
}

.public-landing .btn-ghost:hover {
    color: var(--lp-text);
    background: rgba(19, 43, 66, 0.82);
    border-color: rgba(148, 163, 184, 0.25);
}

.landing-main {
    padding-bottom: 4.2rem;
}

.hero-section {
    padding-top: clamp(2.2rem, 4vw, 4.3rem);
    padding-bottom: 2.2rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.95rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--lp-border);
    background: rgba(15, 34, 53, 0.75);
    color: #dbeafe;
    font-size: 0.78rem;
    font-weight: 600;
}

.hero-badge i {
    color: #7dd3fc;
}

.hero-section h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 20ch;
}

.hero-description {
    margin-top: 0.95rem;
    margin-bottom: 0;
    max-width: 56ch;
    color: var(--lp-text-soft);
    font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.hero-actions {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hero-proof {
    margin-top: 1.35rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.proof-card {
    border-radius: 14px;
    border: 1px solid var(--lp-border);
    background: rgba(15, 34, 53, 0.74);
    padding: 0.78rem 0.84rem;
}

.proof-card strong {
    display: block;
    color: #e2e8f0;
    font-size: 0.88rem;
}

.proof-card span {
    color: var(--lp-text-muted);
    font-size: 0.82rem;
}

.hero-preview {
    border-radius: 22px;
    border: 1px solid var(--lp-border);
    background: linear-gradient(150deg, rgba(15, 34, 53, 0.96), rgba(10, 26, 43, 0.96));
    box-shadow: var(--lp-shadow);
    overflow: hidden;
}

.preview-topbar {
    min-height: 42px;
    padding: 0.68rem 0.9rem;
    border-bottom: 1px solid var(--lp-border);
    display: flex;
    align-items: center;
    gap: 0.42rem;
}

.preview-topbar p {
    margin: 0 0 0 0.45rem;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lp-text-muted);
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(148, 163, 184, 0.2);
}

.preview-dot:first-child {
    background: rgba(239, 68, 68, 0.75);
}

.preview-dot:nth-child(2) {
    background: rgba(245, 158, 11, 0.75);
}

.preview-dot:nth-child(3) {
    background: rgba(16, 185, 129, 0.75);
}

.preview-frame {
    margin: 0;
    background: #081522;
}

.preview-frame img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.landing-section {
    padding-top: 2.7rem;
}

.section-heading {
    margin-bottom: 1.35rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 0.6rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    letter-spacing: -0.01em;
    max-width: 26ch;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.feature-card {
    border-radius: 16px;
    border: 1px solid var(--lp-border);
    background: linear-gradient(160deg, rgba(15, 34, 53, 0.9), rgba(9, 23, 39, 0.9));
    padding: 1rem 0.95rem;
    box-shadow: 0 12px 24px rgba(3, 8, 24, 0.34);
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(148, 163, 184, 0.3);
    background: linear-gradient(160deg, rgba(19, 43, 66, 0.95), rgba(12, 31, 49, 0.95));
}

.feature-card i {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.66rem;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(37, 99, 235, 0.42);
    color: #93c5fd;
}

.feature-card h3 {
    margin: 0;
    font-size: 1rem;
}

.feature-card p {
    margin: 0.42rem 0 0;
    color: var(--lp-text-soft);
    font-size: 0.88rem;
    line-height: 1.45;
}

.demo-section .section-heading h2 {
    max-width: 30ch;
}

.demo-tabs-wrap {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
    scrollbar-width: thin;
}

.demo-tab {
    flex: 0 0 auto;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid var(--lp-border);
    background: rgba(15, 34, 53, 0.72);
    color: var(--lp-text-soft);
    padding: 0.47rem 0.8rem;
    font-size: 0.86rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.demo-tab:hover,
.demo-tab:focus-visible {
    color: #e2e8f0;
    border-color: rgba(6, 182, 212, 0.36);
}

.demo-tab.is-active {
    color: #ecfeff;
    border-color: rgba(6, 182, 212, 0.46);
    background: linear-gradient(130deg, rgba(37, 99, 235, 0.36), rgba(6, 182, 212, 0.27));
}

.demo-viewer {
    border-radius: 20px;
    border: 1px solid var(--lp-border);
    background: linear-gradient(165deg, rgba(15, 34, 53, 0.95), rgba(9, 24, 40, 0.95));
    box-shadow: var(--lp-shadow);
    padding: 1rem;
}

.demo-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.demo-viewer-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.25rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
}

.demo-viewer-actions {
    display: flex;
    gap: 0.48rem;
    flex-wrap: wrap;
}

.demo-image-frame {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--lp-border);
    background: #061525;
    position: relative;
}

.demo-image-frame img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.28s ease;
}

.demo-image-frame:hover img {
    transform: scale(1.02);
}

.demo-image-frame.is-transitioning img {
    opacity: 0.45;
    transform: translateY(8px) scale(1.01);
}

.demo-description {
    margin-top: 0.95rem;
}

.demo-description h3 {
    margin: 0;
    font-size: 1.16rem;
}

.demo-description p {
    margin: 0.42rem 0 0;
    color: var(--lp-text-soft);
}

.demo-indicators {
    margin-top: 0.9rem;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.demo-indicator {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: rgba(148, 163, 184, 0.2);
    padding: 0;
}

.demo-indicator.is-active {
    background: var(--lp-cyan);
    border-color: rgba(6, 182, 212, 0.9);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.benefit-card {
    border-radius: 14px;
    border: 1px solid var(--lp-border);
    background: rgba(15, 34, 53, 0.75);
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 0.56rem;
    padding: 0.78rem;
    font-weight: 600;
    color: #dbeafe;
}

.benefit-card i {
    color: #7dd3fc;
}

.compare-card {
    border-radius: 18px;
    border: 1px solid var(--lp-border);
    overflow: hidden;
    background: rgba(10, 26, 43, 0.9);
}

.compare-table {
    margin-bottom: 0;
    color: var(--lp-text);
}

.compare-table th {
    background: rgba(19, 43, 66, 0.85);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.17);
    font-size: 0.87rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.compare-table td {
    border-color: rgba(148, 163, 184, 0.13);
    background: transparent;
    color: var(--lp-text-soft);
}

.compare-table tbody tr:nth-child(even) td {
    background: rgba(15, 34, 53, 0.5);
}

.compare-table i.bi-check-circle {
    color: var(--lp-green);
}

.compare-table i.bi-dash-circle {
    color: var(--lp-danger);
}

.plans-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-card {
    border-radius: 18px;
    border: 1px solid var(--lp-border);
    background: linear-gradient(155deg, rgba(15, 34, 53, 0.92), rgba(9, 23, 39, 0.9));
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
}

.plan-card-highlight {
    border-color: rgba(6, 182, 212, 0.34);
    box-shadow: 0 18px 34px rgba(6, 182, 212, 0.18);
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(6, 182, 212, 0.35);
    background: rgba(6, 182, 212, 0.12);
    color: #a5f3fc;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.62rem;
}

.plan-card h3 {
    margin: 0.85rem 0 0.4rem;
}

.plan-card p {
    margin: 0;
    color: var(--lp-text-soft);
}

.plan-card ul {
    margin: 0.9rem 0 1rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.plan-card li {
    color: var(--lp-text-soft);
    font-size: 0.9rem;
}

.plan-card li i {
    color: var(--lp-green);
    margin-right: 0.4rem;
}

.final-cta {
    border-radius: 22px;
    border: 1px solid rgba(6, 182, 212, 0.35);
    background:
        linear-gradient(140deg, rgba(9, 27, 46, 0.92), rgba(13, 43, 73, 0.88)),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.22), transparent 45%);
    text-align: center;
    padding: clamp(1.5rem, 3vw, 2.2rem);
}

.final-cta h2 {
    margin: 0;
    font-size: clamp(1.46rem, 3vw, 2.12rem);
}

.final-cta p {
    color: var(--lp-text-soft);
    margin: 0.7rem auto 0;
    max-width: 64ch;
}

.final-cta-actions {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.13);
    background: rgba(5, 14, 24, 0.76);
    padding: 2.2rem 0 1.4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1rem;
}

.footer-grid h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.footer-grid p,
.footer-grid a {
    display: block;
    margin: 0.25rem 0;
    color: var(--lp-text-soft);
    text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
    color: #f8fafc;
    text-decoration: underline;
}

.footer-badge {
    display: inline-flex;
    margin-top: 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--lp-border);
    padding: 0.3rem 0.64rem;
    font-size: 0.76rem;
    color: #dbeafe;
}

.footer-note {
    margin: 1rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(148, 163, 184, 0.13);
    color: var(--lp-text-muted);
    font-size: 0.85rem;
}

.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
}

.demo-modal.is-open {
    display: block;
}

.demo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.82);
}

.demo-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1150px, calc(100% - 2rem));
    margin: 1rem auto;
    border-radius: 18px;
    border: 1px solid var(--lp-border);
    background: linear-gradient(160deg, rgba(15, 34, 53, 0.98), rgba(8, 23, 39, 0.98));
    padding: 1rem;
    box-shadow: 0 32px 70px rgba(2, 8, 23, 0.65);
}

.demo-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--lp-border);
    color: var(--lp-text-soft);
    background: rgba(15, 34, 53, 0.9);
}

.demo-modal-head {
    padding-right: 2.7rem;
}

.demo-modal-head h3 {
    margin: 0;
}

.demo-modal-head p {
    margin: 0.35rem 0 0;
    color: var(--lp-text-soft);
}

.demo-modal-body {
    margin-top: 0.95rem;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 0.7rem;
}

.demo-modal-nav {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--lp-border);
    color: #dbeafe;
    background: rgba(15, 34, 53, 0.82);
}

.demo-modal-frame {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--lp-border);
    background: #051220;
}

.demo-modal-frame img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #030f1b;
}

.demo-modal-indicators {
    margin-top: 0.9rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.demo-modal-indicator {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(148, 163, 184, 0.22);
    padding: 0;
}

.demo-modal-indicator.is-active {
    border-color: rgba(6, 182, 212, 0.95);
    background: var(--lp-cyan);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1199.98px) {
    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .benefit-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .landing-header {
        position: static;
    }

    .nav-links {
        display: none;
    }

    .hero-proof {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .plans-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .demo-modal-dialog {
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }
}

@media (max-width: 767.98px) {
    .landing-nav {
        min-height: 66px;
    }

    .landing-nav .brand img {
        width: 158px;
    }

    .nav-actions .btn {
        min-height: 36px;
        padding-inline: 0.7rem;
    }

    .hero-actions .btn,
    .final-cta-actions .btn {
        width: 100%;
    }

    .feature-grid,
    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .demo-viewer-toolbar {
        align-items: flex-start;
    }

    .demo-viewer-actions {
        width: 100%;
    }

    .demo-viewer-actions .btn {
        flex: 1 1 calc(33.333% - 0.33rem);
        min-width: 102px;
    }

    .demo-modal-body {
        grid-template-columns: 1fr;
    }

    .demo-modal-nav {
        width: 100%;
        height: 42px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 1.65rem;
    }

    .demo-viewer {
        padding: 0.8rem;
    }

    .demo-tab {
        font-size: 0.82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .public-landing .btn,
    .feature-card,
    .demo-image-frame img,
    [data-reveal] {
        transition: none;
    }
}
