/* Marketing + auth. Loaded globally; unused selectors are inert on app pages. */

.lf-landing {
    color: var(--lf-ink);
}

.lf-hero {
    position: relative;
    padding: 6.5rem 0 5.5rem;
    overflow: hidden;
    background: #12141a;
    color: #f4f0e8;
}

.lf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(244, 240, 232, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 240, 232, 0.024) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 65% 45%, #000 10%, transparent 65%);
    pointer-events: none;
}

.lf-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(194, 78, 28, 0.2), transparent);
}

.lf-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 4rem;
    align-items: center;
}

.lf-hero-inner > * {
    min-width: 0;
}

.lf-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(244, 240, 232, 0.5);
    margin-bottom: 1.35rem;
}

.lf-kicker-quiet {
    color: var(--lf-muted);
}

.lf-kicker-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--lf-signal);
    box-shadow: 0 0 8px rgba(194, 78, 28, 0.4);
}

.lf-hero h1 {
    font-size: clamp(2.35rem, 5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.02;
    color: #fbfaf6;
    margin-bottom: 1.25rem;
    max-width: 16ch;
}

.lf-hero-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(244, 240, 232, 0.62);
    max-width: min(30rem, 100%);
    margin-bottom: 2rem;
    overflow-wrap: break-word;
}

.lf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.lf-hero-actions .btn-primary {
    padding: 0.7rem 1.5rem;
    font-size: 0.9375rem;
    transition: transform var(--lf-motion) var(--lf-ease),
                background-color var(--lf-motion) var(--lf-ease);
}

.lf-hero-actions .btn-primary:hover {
    transform: translateY(-1px);
}

.lf-hero-actions .btn-ghost {
    color: #fbfaf6;
    border: 1px solid rgba(251, 250, 246, 0.2);
    background: transparent;
    padding: 0.7rem 1.5rem;
    font-size: 0.9375rem;
    transition: background-color var(--lf-motion) var(--lf-ease),
                border-color var(--lf-motion) var(--lf-ease),
                color var(--lf-motion) var(--lf-ease);
}

.lf-hero-actions .btn-ghost:hover {
    background: rgba(251, 250, 246, 0.06);
    border-color: rgba(251, 250, 246, 0.35);
    color: #fff;
}

/* Hero visual — abstract brand composition */
.lf-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
}

.lf-motif {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.lf-motif-signal {
    animation: lf-signal-flow 4s linear infinite;
}

@keyframes lf-signal-flow {
    to { stroke-dashoffset: -104; }
}

.lf-motif-wire-1 {
    animation: lf-wire-breathe 6s ease-in-out infinite;
}

.lf-motif-wire-2 {
    animation: lf-wire-breathe 6s ease-in-out 1s infinite;
}

.lf-motif-wire-3 {
    animation: lf-wire-breathe 6s ease-in-out 2s infinite;
}

@keyframes lf-wire-breathe {
    0%, 100% { opacity: 0.12; }
    50% { opacity: 0.3; }
}

/* Legacy pathboard class for backwards compatibility */
.lf-pathboard {
    display: none;
}

.lf-flow {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.lf-flow .lf-wire {
    fill: none;
    stroke: rgba(244, 240, 232, 0.28);
    stroke-width: 1.5;
}

.lf-flow .lf-wire-hot {
    stroke: var(--lf-signal);
    stroke-dasharray: 4 14;
    animation: lf-packet 3.2s linear infinite;
}

.lf-flow .lf-node {
    fill: #1f2128;
    stroke: rgba(244, 240, 232, 0.2);
}

.lf-flow text,
.lf-flow .lf-flow-label {
    fill: #f4f0e8;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--lf-font);
    letter-spacing: 0.02em;
}

.lf-flow .lf-flow-note {
    fill: rgba(244, 240, 232, 0.42);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
}

@keyframes lf-packet {
    to { stroke-dashoffset: -72; }
}

.lf-section {
    padding: 5.5rem 0;
}

#features,
#quality {
    scroll-margin-top: 4.5rem;
}

.lf-section-ink {
    background: var(--lf-ink);
    color: #f4f0e8;
}

.lf-section-ink::before {
    content: "";
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(194, 78, 28, 0.15), transparent);
}

.lf-section h2 {
    font-size: clamp(1.55rem, 2.8vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 0.8rem;
}

.lf-section .lede {
    color: var(--lf-muted);
    font-size: 1.05rem;
    max-width: 36rem;
    line-height: 1.6;
}

.lf-section-ink .lede {
    color: rgba(244, 240, 232, 0.6);
}

.lf-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
}

.lf-capability {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1.25rem;
    padding: 1.55rem 0;
    border-top: 1px solid var(--lf-line);
    transition: border-color var(--lf-motion) var(--lf-ease);
}

.lf-capability:last-child {
    border-bottom: 1px solid var(--lf-line);
}

.lf-capability:hover {
    border-top-color: var(--lf-line-strong);
}

.lf-capability-index {
    font-family: var(--lf-font-mono);
    font-size: 0.8rem;
    color: var(--lf-signal);
    letter-spacing: 0.04em;
    padding-top: 0.3rem;
}

.lf-capability h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
}

.lf-capability p {
    color: var(--lf-muted);
    margin: 0;
    max-width: 40rem;
    line-height: 1.6;
}

.lf-console {
    background: var(--lf-surface);
    border: 1px solid var(--lf-line);
    border-radius: var(--lf-radius-lg);
    overflow: auto;
    box-shadow: var(--lf-shadow-md);
}

.lf-console-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--lf-line);
    background: var(--lf-paper);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lf-muted);
    font-weight: 600;
}

.lf-console table {
    width: 100%;
    font-size: 0.84rem;
    margin: 0;
}

.lf-console td,
.lf-console th {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--lf-line);
}

.lf-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.18rem 0.45rem;
    border-radius: 3px;
    background: var(--lf-positive-wash);
    color: var(--lf-positive);
}

.lf-pill-stale {
    background: var(--lf-warning-wash);
    color: var(--lf-warning);
}

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

.lf-fact {
    padding-top: 1rem;
    border-top: 1px solid rgba(244, 240, 232, 0.1);
}

.lf-fact dt {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(244, 240, 232, 0.4);
    margin-bottom: 0.45rem;
}

.lf-fact dd {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #fbfaf6;
}

.lf-cta {
    text-align: left;
    padding: 5rem 0 5.5rem;
    position: relative;
}

.lf-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--lf-line);
}

.lf-cta h2 {
    font-size: clamp(1.55rem, 2.8vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 0.65rem;
    max-width: 22ch;
}

.lf-cta .lede {
    color: var(--lf-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 34rem;
}

.lf-foot {
    border-top: 1px solid var(--lf-line);
    padding: 2.25rem 0 2.75rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--lf-muted);
    font-size: 0.85rem;
}

/* Auth layout (login / register split-screen) */

.lf-auth {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    min-height: calc(100dvh - 3.5rem);
    width: 100%;
    margin: 0;
}

.lf-auth-panel {
    background: var(--lf-ink);
    color: #f4f0e8;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.lf-auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(244, 240, 232, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 240, 232, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 70%, #000 20%, transparent 70%);
    pointer-events: none;
}

.lf-auth-panel > * {
    position: relative;
}

.lf-auth-panel h2 {
    font-size: 1.95rem;
    font-weight: 700;
    letter-spacing: -0.045em;
    color: #fbfaf6;
    margin: 1.5rem 0 0.7rem;
    line-height: 1.1;
}

.lf-auth-panel p {
    color: rgba(244, 240, 232, 0.55);
    max-width: 26rem;
    line-height: 1.55;
    font-size: 0.95rem;
}

/* Auth panel brand motif */
.lf-auth-motif {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding-top: 2rem;
}

.lf-auth-motif svg {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.lf-auth-signal {
    animation: lf-auth-pulse 4.5s linear infinite;
}

@keyframes lf-auth-pulse {
    to { stroke-dashoffset: -80; }
}

.lf-auth-wire-1 {
    animation: lf-auth-breathe 7s ease-in-out infinite;
}

.lf-auth-wire-2 {
    animation: lf-auth-breathe 7s ease-in-out 1.2s infinite;
}

.lf-auth-wire-3 {
    animation: lf-auth-breathe 7s ease-in-out 2.4s infinite;
}

@keyframes lf-auth-breathe {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.2; }
}

.lf-auth-form {
    padding: 3.5rem 12%;
    display: flex;
    align-items: center;
    background: var(--lf-paper);
}

.lf-auth-form-inner {
    width: 100%;
    max-width: 24rem;
}

.lf-auth-form h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.045em;
    margin-bottom: 0.4rem;
}

.lf-auth-form .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 0.9375rem;
    border-radius: var(--lf-radius-md);
    transition: border-color var(--lf-motion) var(--lf-ease),
                box-shadow var(--lf-motion) var(--lf-ease);
}

.lf-auth-form .btn-primary {
    padding: 0.65rem 1rem;
    font-size: 0.9375rem;
    transition: transform var(--lf-motion) var(--lf-ease),
                background-color var(--lf-motion) var(--lf-ease);
}

.lf-auth-form .btn-primary:hover {
    transform: translateY(-1px);
}

.lf-auth-narrow {
    max-width: 26rem;
    margin: 2.5rem auto 4.5rem;
}

.lf-cta .btn-outline-primary {
    color: var(--lf-ink);
    border-color: var(--lf-line-strong);
}

.lf-cta .btn-outline-primary:hover {
    background: var(--lf-wash);
    color: var(--lf-ink);
    border-color: var(--lf-line-strong);
}

/* Responsive: tablet */
@media (max-width: 991.98px) {
    .lf-hero-inner,
    .lf-split,
    .lf-auth {
        grid-template-columns: 1fr;
    }

    .lf-hero {
        padding: 4.5rem 0 3.5rem;
    }

    .lf-hero-inner {
        gap: 2.5rem;
    }

    .lf-hero h1 {
        max-width: none;
    }

    .lf-hero-visual {
        max-width: 380px;
    }

    .lf-auth {
        min-height: 0;
    }

    .lf-auth-panel {
        padding: 2.5rem 2rem 2rem;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .lf-auth-panel h2 {
        font-size: 1.35rem;
        margin: 0.75rem 0 0.35rem;
    }

    .lf-auth-panel p {
        font-size: 0.85rem;
    }

    .lf-auth-motif {
        flex: 0 0 auto;
        width: 140px;
        min-height: auto;
        padding-top: 0;
    }

    .lf-auth-form {
        padding: 2.5rem 1.5rem 3.5rem;
    }

    .lf-facts {
        grid-template-columns: 1fr 1fr;
    }

    .lf-capability {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .lf-section {
        padding: 4rem 0;
    }
}

/* Responsive: mobile */
@media (max-width: 575.98px) {
    .lf-hero {
        padding: 3.25rem 0 2.75rem;
    }

    .lf-hero h1 {
        font-size: 2rem;
    }

    .lf-hero-lead {
        font-size: 1rem;
    }

    .lf-hero-visual {
        max-width: 280px;
    }

    .lf-facts {
        grid-template-columns: 1fr;
    }

    .lf-hero-actions .btn {
        width: 100%;
    }

    .lf-auth-panel {
        flex-direction: column;
        padding: 2rem 1.5rem 1.5rem;
    }

    .lf-auth-motif {
        width: 100%;
        max-width: 200px;
    }

    .lf-auth-form {
        padding: 2rem 1.25rem 3rem;
    }

    .lf-section {
        padding: 3rem 0;
    }

    .lf-cta {
        padding: 3rem 0 3.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lf-flow .lf-wire-hot,
    .lf-motif-signal,
    .lf-auth-signal {
        animation: none;
        stroke-dasharray: none;
    }

    .lf-motif-wire-1,
    .lf-motif-wire-2,
    .lf-motif-wire-3,
    .lf-auth-wire-1,
    .lf-auth-wire-2,
    .lf-auth-wire-3 {
        animation: none;
    }
}
