/* Backly PRO — home, single viewport, no scroll */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    height: 100%;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: #070709;
    color: #f4f4f5;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.landing-main {
    padding: 0;
    max-width: none;
    width: 100%;
    height: 100%;
}

.ls-page {
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    background: #070709;
}

.skip-link {
    position: absolute;
    left: max(12px, env(safe-area-inset-left));
    top: 0;
    z-index: 10000;
    padding: 8px 14px;
    border-radius: 10px;
    background: #121216;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #34d399;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transform: translateY(-120%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skip-link:focus {
    outline: none;
}

.skip-link:focus-visible {
    transform: translateY(0);
    box-shadow: 0 0 0 2px #070709, 0 0 0 4px rgba(16, 185, 129, 0.45);
}

.lm {
    --lm-bg: #070709;
    --lm-ink: #f4f4f5;
    --lm-muted: #8b8b96;
    --lm-line: rgba(255, 255, 255, 0.08);
    --lm-accent: #10b981;
    --lm-accent-soft: #34d399;
    --lm-ease: cubic-bezier(0.22, 1, 0.36, 1);

    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    overflow: hidden;
    color: var(--lm-ink);
    background: var(--lm-bg);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.lm a,
.lm a:visited {
    color: inherit;
    text-decoration: none;
}

.lm-shell {
    width: min(920px, calc(100% - 2rem));
    margin-inline: auto;
}

/* Atmosphere */
.lm-atmosphere {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.lm-atmosphere-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 55% at 50% 28%, #000 20%, transparent 75%);
    animation: lm-grid-drift 28s linear infinite;
}

.lm-atmosphere-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: lm-glow-breathe 9s var(--lm-ease) infinite alternate;
}

.lm-atmosphere-glow--a {
    width: min(60vw, 520px);
    height: min(60vw, 520px);
    top: -8%;
    left: 50%;
    translate: -50% 0;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.28), transparent 68%);
}

.lm-atmosphere-glow--b {
    width: min(42vw, 360px);
    height: min(42vw, 360px);
    top: 42%;
    right: 0;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.12), transparent 70%);
    animation-delay: -3s;
}

@keyframes lm-grid-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, 64px, 0); }
}

@keyframes lm-glow-breathe {
    from { opacity: 0.4; transform: scale(1); }
    to { opacity: 0.7; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .lm-atmosphere-grid,
    .lm-atmosphere-glow {
        animation: none;
    }
}

/* Top */
.lm-top {
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    padding: 0.85rem 0;
}

.lm-top-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.lm-top-link {
    color: var(--lm-muted);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    transition: color 0.25s var(--lm-ease), background 0.25s var(--lm-ease);
}

.lm-top-link:hover {
    color: var(--lm-ink);
    background: rgba(255, 255, 255, 0.04);
}

.lm-top-cta {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--lm-line);
    color: var(--lm-ink);
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.25s var(--lm-ease), background 0.25s var(--lm-ease), transform 0.25s var(--lm-ease);
}

.lm-top-cta:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.lm-top-link:focus-visible,
.lm-top-cta:focus-visible,
.lm-btn:focus-visible,
.lm-foot a:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--lm-accent) 70%, white);
    outline-offset: 3px;
}

/* Stage fills remaining viewport */
.lm-stage {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0.5rem 0 0.75rem;
}

.lm-stage-inner {
    text-align: center;
    width: 100%;
}

.lm-brand {
    margin: 0 0 clamp(0.85rem, 2.2vh, 1.75rem);
    font-size: clamp(2.1rem, 6.5vw + 1vh, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.95;
    color: #fafafa;
    font-feature-settings: "ss01" 1, "cv11" 1;
}

.lm-brand-main {
    font-weight: 500;
}

.lm-brand-pro {
    margin-left: 0.1em;
    color: var(--lm-accent-soft);
    font-weight: 600;
}

.lm-title {
    margin: 0 auto clamp(0.65rem, 1.6vh, 1.1rem);
    max-width: 16ch;
    font-size: clamp(1.35rem, 2.8vw + 0.8vh, 2.65rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--lm-ink);
    text-wrap: balance;
}

.lm-title-muted {
    color: var(--lm-muted);
    font-weight: 450;
}

.lm-lead {
    margin: 0 auto clamp(1rem, 2.2vh, 1.65rem);
    max-width: 34ch;
    font-size: clamp(0.9rem, 1.1vw + 0.35vh, 1.05rem);
    line-height: 1.45;
    color: var(--lm-muted);
    font-weight: 400;
    text-wrap: pretty;
}

.lm-actions {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(1.1rem, 2.8vh, 2rem);
}

.lm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0 1.4rem;
    border-radius: 14px;
    background: var(--lm-accent);
    color: #ecfdf5;
    font-size: 0.925rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: 1px solid color-mix(in srgb, var(--lm-accent) 70%, #000);
    box-shadow:
        0 0 0 1px rgba(16, 185, 129, 0.15),
        0 14px 40px rgba(16, 185, 129, 0.2);
    transition: transform 0.3s var(--lm-ease), background 0.3s var(--lm-ease), box-shadow 0.3s var(--lm-ease);
}

.lm-btn:hover {
    background: var(--lm-accent-soft);
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(52, 211, 153, 0.2),
        0 18px 48px rgba(16, 185, 129, 0.26);
}

.lm a.lm-btn,
.lm a.lm-btn:visited {
    color: #ecfdf5;
}

/* Proof under CTA */
.lm-proof {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.55rem 1rem;
    margin: 0 0 0.55rem;
    font-size: clamp(0.8rem, 1vw + 0.2vh, 0.95rem);
    color: var(--lm-muted);
    letter-spacing: -0.01em;
}

.lm-proof-item strong {
    color: var(--lm-ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.lm-proof-item em {
    font-style: normal;
    color: var(--lm-accent-soft);
    font-weight: 500;
    font-size: 0.9em;
}

.lm-proof-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    align-self: center;
}

.lm-proof-note {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--lm-muted) 72%, transparent);
}

/* Footer */
.lm-foot {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding: 0.65rem 0 calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--lm-line);
}

.lm-foot-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1.15rem;
    font-size: 0.75rem;
    color: var(--lm-muted);
}

.lm-foot a {
    transition: color 0.2s ease;
}

.lm-foot a:hover {
    color: var(--lm-ink);
}

.lm-foot-copy {
    opacity: 0.75;
}

/* Reveal */
[data-lm-reveal] {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    filter: blur(3px);
    transition:
        opacity 0.75s var(--lm-ease),
        transform 0.75s var(--lm-ease),
        filter 0.75s var(--lm-ease);
}

[data-lm-reveal][data-lm-delay="1"] { transition-delay: 0.06s; }
[data-lm-reveal][data-lm-delay="2"] { transition-delay: 0.12s; }
[data-lm-reveal][data-lm-delay="3"] { transition-delay: 0.18s; }
[data-lm-reveal][data-lm-delay="4"] { transition-delay: 0.24s; }

.lm.is-ready [data-lm-reveal],
[data-lm-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-lm-reveal] {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

@media (max-width: 640px) {
    .lm-shell {
        width: calc(100% - 1.5rem);
    }

    .lm-title {
        max-width: 13ch;
    }

    .lm-proof-sep {
        display: none;
    }

    .lm-proof {
        flex-direction: column;
        gap: 0.35rem;
    }
}

@media (max-height: 700px) {
    .lm-brand {
        font-size: clamp(1.85rem, 5vw, 3rem);
        margin-bottom: 0.7rem;
    }

    .lm-title {
        font-size: clamp(1.2rem, 3.2vw, 1.85rem);
        margin-bottom: 0.55rem;
    }

    .lm-lead {
        margin-bottom: 0.85rem;
        font-size: 0.9rem;
    }

    .lm-actions {
        margin-bottom: 0.85rem;
    }

    .lm-btn {
        min-height: 2.55rem;
    }

    .lm-proof-note {
        letter-spacing: 0.08em;
    }
}

/* Cookie banner */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, #070709 92%, transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.cookie-consent.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-consent__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 920px;
    margin: 0 auto;
}

.cookie-consent__text {
    margin: 0;
    color: #a1a1aa;
    font-size: 13px;
    line-height: 1.4;
}

.cookie-consent__text a {
    color: #34d399;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__text a:hover {
    color: #fafafa;
}

.cookie-consent__btn {
    flex-shrink: 0;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    background: #10b981;
    color: #052e1f;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cookie-consent__btn:hover {
    background: #34d399;
}

.cookie-consent__btn:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-consent__btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        transition: none;
    }
}
