/* Landing page before login (templates/index.html).
   One fixed globe canvas (static/js/landing-globe.js) behind six full-height scenes; the text of
   each scene sits where the globe leaves room. Always dark, whatever the saved theme. */

.lp {
    --lp-space: #050a15;
    --lp-panel: rgba(20, 31, 54, 0.78);
    --lp-line: rgba(148, 178, 230, 0.18);
    --lp-text: #f1f5fb;
    --lp-muted: #9fb0cc;
    --lp-soft: #c3d0e6;
    --lp-route: #fbbf24;
    --lp-ok: #34d399;
    --lp-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
    position: relative;
    margin: -2rem;                 /* cancel the .content-area padding: scenes run edge to edge */
    color: var(--lp-text);
    color-scheme: dark;
    font-size: 16px;
    line-height: 1.6;
}

/* The canvas paints the dark ground itself. It must stay in the same stacking context as the
   logo (no z-index on .lp or .lp-main), or the logo's screen blend shows its black rectangle. */
.lp-globe {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.lp-scene {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding: 5rem max(16px, env(safe-area-inset-right, 0px)) 5rem max(16px, env(safe-area-inset-left, 0px));
}

.lp-inner {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    display: grid;
}

.lp-copy {
    max-width: 29rem;
    display: grid;
    gap: 1.1rem;
    min-width: 0;
}

.lp-scene--right .lp-copy { justify-self: end; }
.lp-scene--center .lp-inner { justify-items: center; text-align: center; }
.lp-scene--top { align-items: start; }

.lp-eyebrow {
    font-family: var(--lp-mono);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lp-route);
}

.lp h2 {
    font-weight: 700;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--lp-text);
    text-wrap: balance;
}

.lp p { margin: 0; color: var(--lp-muted); }
.lp .lp-lead { font-size: 1.08rem; }
.lp :focus-visible { outline: 2px solid var(--lp-route); outline-offset: 3px; }

/* ---- Hero ---- */
.lp-hero { position: relative; }

/* information layer of the hero: top line, corner marks and four feature cards */
.lp-hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
    animation: lp-fade 1.2s 2s both;
}

@keyframes lp-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lp-hud-top {
    position: absolute;
    top: 1.7rem;
    left: 3.4rem;
    right: 3.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem 2rem;
    font-family: var(--lp-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lp-muted);
}

.lp-hud-top b { color: var(--lp-route); font-weight: 500; text-transform: none; }

.lp-hud-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(159, 176, 204, 0.5);
}

.lp-hud-corner--tl { left: 22px; top: 22px; border-right: 0; border-bottom: 0; }
.lp-hud-corner--tr { right: 22px; top: 22px; border-left: 0; border-bottom: 0; }
.lp-hud-corner--bl { left: 22px; bottom: 22px; border-right: 0; border-top: 0; }
.lp-hud-corner--br { right: 22px; bottom: 22px; border-left: 0; border-top: 0; }

.lp-chip {
    position: absolute;
    width: 232px;
    display: none;                 /* wide screens only, see the media query below */
    gap: 0.25rem;
    padding: 0.8rem 0.95rem;
    text-align: left;
    font: inherit;
    color: var(--lp-text);
    cursor: pointer;
    pointer-events: auto;
    background: var(--lp-panel);
    border: 1px solid var(--lp-line);
    border-radius: 10px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: lp-bob 6s ease-in-out infinite;
    transition: border-color 0.2s;
}

.lp-chip:hover { border-color: var(--lp-route); }

.lp-chip small {
    font-family: var(--lp-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lp-route);
}

.lp-chip strong { font-weight: 600; font-size: 0.98rem; }
.lp-chip span { font-size: 0.8rem; line-height: 1.4; color: var(--lp-muted); }

/* short gold line from the card towards the logo */
.lp-chip::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, var(--lp-route), transparent);
}

.lp-chip--l { left: max(24px, calc(50% - 650px)); }
.lp-chip--r { right: max(24px, calc(50% - 650px)); }
.lp-chip--l::after { left: 100%; }
.lp-chip--r::after { right: 100%; transform: scaleX(-1); }
.lp-chip--1 { top: 30%; }
.lp-chip--2 { top: 56%; animation-delay: -3s; }

@keyframes lp-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (min-width: 1180px) {
    .lp-chip { display: grid; }
}

/* the globe can be turned with the mouse (landing-globe.js sets these on <html>) */
html.lp-grab .lp { cursor: grab; }
html.lp-dragging,
html.lp-dragging * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }

.lp-hero .lp-inner {
    position: relative;
    justify-items: center;
    text-align: center;
    gap: 1.5rem;
}

/* soft dark patch so the copy stays readable over the land dots */
.lp-hero .lp-inner::before {
    content: "";
    position: absolute;
    inset: -12% -8%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(5, 10, 21, 0.82), rgba(5, 10, 21, 0));
}

.lp-hero .lp-inner > * { animation: lp-rise 1s 1.5s both; }
.lp-hero .lp-inner > .hero-logo-main { animation-delay: 1.1s; margin: 0; }

@keyframes lp-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.lp .pilot-notice {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.4rem 1rem;
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    background: var(--lp-panel);
    font-size: 0.85rem;
    color: var(--lp-muted);
}

.lp .pilot-notice strong { color: var(--lp-text); font-weight: 600; }

.lp-hero .lp-lead {
    max-width: 36rem;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: var(--lp-soft);
}

.lp .cta-buttons { flex-wrap: wrap; justify-content: center; }
.lp .btn-secondary { background-color: rgba(5, 10, 21, 0.4); }
.lp .btn-trailer { margin-top: 0; cursor: pointer; }

.lp-visitors { font-family: var(--lp-mono); font-size: 0.85rem; }

.lp-scrollhint {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-family: var(--lp-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lp-muted);
}

.lp-scrollhint i {
    width: 1px;
    height: 44px;
    background: linear-gradient(var(--lp-route), transparent);
    transform-origin: top;
    animation: lp-drop 1.8s ease-in-out infinite;
}

@keyframes lp-drop {
    0% { transform: scaleY(0); opacity: 1; }
    70% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* ---- Network and tracking scenes ---- */
.lp-codes,
.lp-steps {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0.3rem 0 0;
    list-style: none;
    font-family: var(--lp-mono);
    font-size: 0.78rem;
    color: var(--lp-soft);
}

.lp-codes { gap: 0.5rem; }

.lp-codes li {
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--lp-line);
    border-radius: 4px;
    background: rgba(5, 10, 21, 0.5);
}

.lp-steps { gap: 0.4rem 0; }
.lp-steps li { display: flex; align-items: center; }

.lp-steps li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lp-route);
    margin-right: 0.45rem;
}

.lp-steps li:not(:last-child)::after {
    content: "";
    width: 1.4rem;
    height: 1px;
    background: var(--lp-line);
    margin-inline: 0.55rem;
}

/* ---- SP Lifecycle scene ---- */
.lp-scene--split .lp-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
}

.lp-passport {
    display: grid;
    gap: 1.2rem;
    padding: 1.5rem;
    min-width: 0;
    background: var(--lp-panel);
    border: 1px solid var(--lp-line);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.lp-pp-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.4rem 1rem;
}

.lp-pp-kicker {
    font-family: var(--lp-mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lp-muted);
}

.lp-pp-sample { font-family: var(--lp-mono); font-size: 0.68rem; color: var(--lp-muted); }
.lp-pp-plan { font-weight: 600; font-size: 1.15rem; color: var(--lp-text); }
.lp-pp-meta { font-family: var(--lp-mono); font-size: 0.78rem; color: var(--lp-muted); }

.lp-stamps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.8rem 0.4rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.lp-stamps li {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    font-family: var(--lp-mono);
    font-size: 0.68rem;
    color: var(--lp-muted);
    text-align: center;
    transition: color 0.3s;
}

.lp-seal {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px dashed rgba(159, 176, 204, 0.5);
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: transparent;
    transition: transform 0.35s, background 0.3s, border-color 0.3s, color 0.3s;
}

.lp-stamps li.on { color: #ffe9b0; }

.lp-stamps li.on .lp-seal {
    border: 2px solid var(--lp-route);
    background: rgba(251, 191, 36, 0.14);
    color: var(--lp-route);
    transform: rotate(-9deg) scale(1.06);
}

.lp-lifeline {
    height: 6px;
    border-radius: 3px;
    background: rgba(159, 176, 204, 0.18);
    overflow: hidden;
}

.lp-lifeline i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 3px;
    background: var(--lp-ok);
    transition: width 0.4s;
}

.lp-pp-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    font-family: var(--lp-mono);
    font-size: 0.8rem;
    color: var(--lp-soft);
}

.lp-sig::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lp-ok);
    margin-right: 0.45rem;
}

/* ---- Features scene ---- */
.lp-features { gap: 2.2rem; }
.lp-features-head { display: grid; gap: 0.9rem; justify-items: center; }
.lp-scene--features { padding-bottom: 30vh; }      /* room for the globe horizon */

.lp-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: left;
}

.lp-cards li {
    padding: 1.25rem 1.35rem;
    min-width: 0;
    background: var(--lp-panel);
    border: 1px solid var(--lp-line);
    border-radius: 10px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.lp-cards h3 { font-weight: 600; font-size: 1.1rem; margin: 0 0 0.3rem; color: #8db8ff; }
.lp-cards p { font-size: 0.92rem; line-height: 1.5; }

/* ---- Final scene ---- */
.lp-final .lp-inner { gap: 1.3rem; padding-top: 4vh; }

/* ---- Scene navigation (right edge) ---- */
.lp-dots {
    position: fixed;
    z-index: 3;
    right: max(18px, env(safe-area-inset-right, 0px));
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 0.2rem;
}

.lp-dots button {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.lp-dots button::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(159, 176, 204, 0.45);
    transition: transform 0.25s, background 0.25s;
}

.lp-dots button[aria-current="true"]::before { background: var(--lp-route); transform: scale(1.6); }

@media (max-width: 760px) {
    .lp-scene--left,
    .lp-scene--right { align-items: start; padding-top: 11vh; }
    .lp-scene--right .lp-copy { justify-self: start; }
    .lp-scene--split .lp-inner { grid-template-columns: 1fr; gap: 1.8rem; }
    .lp-stamps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-cards { grid-template-columns: 1fr; }
    .lp-scene--features { padding-bottom: 34vh; }
    .lp-dots { display: none; }
    .lp-hud-top { top: 1rem; left: 1rem; right: 1rem; gap: 0.2rem 1rem; font-size: 0.64rem; }
    .lp-hud-corner { display: none; }
}

@media (min-width: 761px) and (max-width: 980px) {
    .lp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .lp-hero .lp-inner > *,
    .lp-hud,
    .lp-chip,
    .lp-scrollhint i { animation: none; }
    .lp-seal,
    .lp-lifeline i { transition: none; }
}
