/* Landing page only (index.html). Shared site styles stay in fluxgeo-public.css. */
:root {
    --lp-glow-a: #4169E1;
    --lp-glow-b: #2f7f86;
    --lp-glow-c: #b0612a;
    --lp-hero-bg: var(--page);
    --lp-card: rgba(255, 255, 255, 0.72);
    --lp-card-border: rgba(65, 105, 225, 0.16);
    --lp-shadow: 0 18px 40px -26px rgba(20, 30, 50, 0.35);
    --lp-icon-tile: #ffffff;
}

:root[data-theme="dark"] {
    --lp-glow-a: #7393F5;
    --lp-glow-b: #6fb3b8;
    --lp-glow-c: #d99a66;
    --lp-hero-bg: var(--page);
    --lp-card: rgba(32, 36, 40, 0.72);
    --lp-card-border: rgba(115, 147, 245, 0.18);
    --lp-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.7);
    --lp-icon-tile: #eef1f6;
}

.lp main {
    overflow-x: clip;
}

.lp-gradient-text {
    color: var(--accent-text);
}

/* ---------- Hero ---------- */
.lp-hero {
    position: relative;
    min-height: min(92vh, 860px);
    display: grid;
    align-items: center;
    background: var(--lp-hero-bg);
    border-bottom: 1px solid var(--border);
    isolation: isolate;
}

.lp-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    touch-action: pan-y;
    cursor: default;
}

.lp-hero-canvas.is-grabbing {
    cursor: grabbing;
}

.lp-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    padding-block: clamp(4rem, 9vw, 7rem);
    pointer-events: none;
}

.lp-hero-copy {
    pointer-events: auto;
    max-width: 38rem;
}

.lp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid var(--lp-card-border);
    border-radius: 999px;
    background: var(--lp-card);
    backdrop-filter: blur(8px);
    padding: 0.35rem 0.85rem 0.35rem 0.4rem;
    color: var(--secondary);
    font-size: 0.82rem;
    text-decoration: none;
}

.lp-pill-tag {
    border-radius: 999px;
    background: var(--accent);
    padding: 0.15rem 0.55rem;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lp-hero h1 {
    margin: 1.2rem 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    font-weight: 750;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.lp-rotator {
    position: relative;
    display: inline-grid;
    vertical-align: bottom;
}

.lp-rotator > span {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(0.45em);
    transition: opacity 0.35s ease, transform 0.45s ease;
    white-space: nowrap;
}

.lp-rotator > span.is-active {
    opacity: 1;
    transform: none;
    transition-delay: 0.25s;
}

.lp-rotator > span.is-leaving {
    opacity: 0;
    transform: translateY(-0.45em);
    transition-duration: 0.25s;
}

.lp-hero-intro {
    max-width: 34rem;
    color: var(--secondary);
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    line-height: 1.6;
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.8rem;
}

.lp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--lp-card);
    backdrop-filter: blur(8px);
    padding: 0.8rem 1.3rem;
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lp-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--lp-shadow);
}

.lp-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.lp-btn-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--on-accent);
}

.lp-btn-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

/* Modern Web App: its own flat colour beside Classic's accent, so neither looks secondary. */
.lp-btn-modern {
    border-color: #2f7f86;
    background: #2f7f86;
    color: #ffffff;
}

.lp-btn-modern:hover {
    border-color: #246a70;
    background: #246a70;
}

:root[data-theme="dark"] .lp-btn-modern {
    border-color: #6fb3b8;
    background: #6fb3b8;
    color: #0e1d1f;
}

:root[data-theme="dark"] .lp-btn-modern:hover {
    border-color: #88c4c8;
    background: #88c4c8;
}

.lp-btn-arrow {
    transition: transform 0.2s ease;
}

.lp-btn:hover .lp-btn-arrow {
    transform: translateX(3px);
}

.lp-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    margin-top: 1.3rem;
    font-size: 0.88rem;
}

.lp-hero-links a {
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px dashed var(--border-strong);
}

.lp-hero-links a:hover {
    color: var(--accent-text);
}

.lp-readout {
    margin-top: 2rem;
    width: min(100%, 19rem);
    border: 1px solid var(--lp-card-border);
    border-radius: 14px;
    background: var(--lp-card);
    backdrop-filter: blur(10px);
    box-shadow: var(--lp-shadow);
    padding: 0.9rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
}

.lp-readout-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp-live-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.35rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: lp-pulse 2s infinite;
}

@keyframes lp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.lp-readout dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 0.8rem;
    margin: 0;
}

.lp-readout dt {
    color: var(--secondary);
}

.lp-readout dd {
    margin: 0;
    text-align: right;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.lp-readout .lp-ok {
    color: #16a34a;
}

:root[data-theme="dark"] .lp-readout .lp-ok {
    color: #4ade80;
}

.lp-readout-hint {
    margin: 0.65rem 0 0;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 0.74rem;
}

.lp-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.2rem;
    width: 1.4rem;
    height: 2.2rem;
    margin-left: -0.7rem;
    border: 2px solid var(--border-strong);
    border-radius: 999px;
    pointer-events: none;
}

.lp-scroll-cue::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.35rem;
    width: 4px;
    height: 0.45rem;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--accent);
    animation: lp-cue 1.8s ease-in-out infinite;
}

@keyframes lp-cue {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(0.8rem); }
}

/* ---------- Tool marquee ---------- */
.lp-marquee {
    position: relative;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    padding: 1.4rem 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.lp-marquee-track {
    display: flex;
    gap: 0.9rem;
    width: max-content;
    animation: lp-marquee 70s linear infinite;
}

.lp-marquee:hover .lp-marquee-track {
    animation-play-state: paused;
}

.lp-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-raised);
    padding: 0.35rem 0.9rem 0.35rem 0.35rem;
    color: var(--secondary);
    font-size: 0.84rem;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.lp-marquee-item:hover {
    border-color: var(--accent);
    color: var(--text);
}

.lp-marquee-item img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--lp-icon-tile);
    padding: 3px;
}

@keyframes lp-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Shared section frame ---------- */
.lp-section {
    position: relative;
    padding-block: clamp(4.5rem, 9vw, 8rem);
    border-bottom: 1px solid var(--border);
}

.lp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.9rem;
    color: var(--accent-text);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lp-kicker::before {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: currentColor;
}

.lp-section h2 {
    max-width: 22ch;
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 720;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.lp-lead {
    max-width: 58ch;
    color: var(--secondary);
    font-size: 1.06rem;
    line-height: 1.65;
}

/* ---------- Stats ---------- */
.lp-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.6rem;
}

.lp-stat {
    border: 1px solid var(--lp-card-border);
    border-radius: 16px;
    background: var(--lp-card);
    padding: 1.2rem 1.3rem;
}

.lp-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 760;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.lp-stat span {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* ---------- Feature cards ---------- */
.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 3rem;
}

.lp-card {
    position: relative;
    border: 1px solid var(--lp-card-border);
    border-radius: 18px;
    background: var(--lp-card);
    padding: 1.4rem;
    transform-style: preserve-3d;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.lp-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 7%, transparent), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lp-card:hover {
    border-color: color-mix(in srgb, var(--accent) 50%, transparent);
    box-shadow: var(--lp-shadow);
}

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

.lp-card h3 {
    margin: 1.1rem 0 0.45rem;
    font-size: 1.12rem;
}

.lp-card p {
    margin: 0;
    color: var(--secondary);
    font-size: 0.94rem;
    line-height: 1.6;
}

.lp-card-art {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 9.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background:
        linear-gradient(var(--diagram-grid) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(90deg, var(--diagram-grid) 1px, transparent 1px) 0 0 / 22px 22px,
        var(--surface);
}

/* The drawing scales to fit inside its frame; it never spills over the card title. */
.lp-card-art svg {
    display: block;
    width: 100%;
    height: 100%;
}

.lp-art-stroke {
    fill: none;
    stroke: var(--diagram-line);
    stroke-width: 1.6;
}

.lp-art-accent {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.2;
    stroke-linecap: round;
}

.lp-art-dot {
    fill: var(--accent);
}

.lp-art-dot-muted {
    fill: var(--diagram-line);
}

.lp-art-label {
    fill: var(--secondary);
    font: italic 12px Georgia, serif;
}

/* intersecting circles */
.lp-art-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: lp-dot-pulse 2.4s ease-in-out infinite;
}

.lp-art-pulse.delay {
    animation-delay: 1.2s;
}

@keyframes lp-dot-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.7); }
}

.lp-art-orbit {
    transform-box: view-box;
    transform-origin: 112px 76px;
    animation: lp-orbit 9s linear infinite;
}

@keyframes lp-orbit {
    to { transform: rotate(360deg); }
}

/* dependency graph */
.lp-art-edge {
    fill: none;
    stroke: var(--border-strong);
    stroke-width: 1.5;
}

.lp-art-flow {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-dasharray: 10 140;
    animation: lp-flow 2.6s linear infinite;
}

.lp-art-flow.d2 { animation-delay: 0.65s; }
.lp-art-flow.d3 { animation-delay: 1.3s; }
.lp-art-flow.d4 { animation-delay: 1.95s; }

@keyframes lp-flow {
    from { stroke-dashoffset: 150; }
    to { stroke-dashoffset: 0; }
}

.lp-art-node {
    fill: var(--surface);
    stroke: var(--accent);
    stroke-width: 1.8;
}

.lp-art-node-text {
    fill: var(--text);
    font: 600 10px var(--font-mono);
    text-anchor: middle;
    dominant-baseline: central;
}

/* plot draw-on */
.lp-art-draw {
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: lp-draw 4.5s ease-in-out infinite;
}

@keyframes lp-draw {
    0% { stroke-dashoffset: 420; }
    45%, 75% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -420; }
}

/* discovery checks */
.lp-art-check {
    opacity: 0;
    animation: lp-check 6s ease-in-out infinite;
}

.lp-art-check.c2 { animation-delay: 1s; }
.lp-art-check.c3 { animation-delay: 2s; }

@keyframes lp-check {
    0%, 8% { opacity: 0; transform: translateX(-6px); }
    16%, 80% { opacity: 1; transform: none; }
    92%, 100% { opacity: 0; }
}

.lp-art-check-box {
    fill: color-mix(in srgb, #22c55e 18%, transparent);
    stroke: #22c55e;
    stroke-width: 1.4;
}

.lp-art-check-mark {
    fill: none;
    stroke: #16a34a;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-art-check-text {
    fill: var(--text);
    font: 11.5px var(--font-mono);
}

/* 3D cube */
.lp-cube-scene {
    width: 5.6rem;
    height: 5.6rem;
    perspective: 420px;
}

.lp-cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: lp-cube-spin 12s linear infinite;
}

.lp-cube span {
    position: absolute;
    inset: 0;
    border: 1.6px solid var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.lp-cube span:nth-child(1) { transform: translateZ(2.8rem); }
.lp-cube span:nth-child(2) { transform: rotateY(180deg) translateZ(2.8rem); }
.lp-cube span:nth-child(3) { transform: rotateY(90deg) translateZ(2.8rem); }
.lp-cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(2.8rem); }
.lp-cube span:nth-child(5) { transform: rotateX(90deg) translateZ(2.8rem); }
.lp-cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(2.8rem); }

@keyframes lp-cube-spin {
    from { transform: rotateX(-22deg) rotateY(0deg); }
    to { transform: rotateX(-22deg) rotateY(360deg); }
}

/* tool icon grid */
.lp-icon-grid {
    display: grid;
    grid-template-columns: repeat(5, 2.2rem);
    gap: 0.5rem;
}

.lp-icon-grid img {
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--lp-icon-tile);
    padding: 4px;
    animation: lp-icon-pop 5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.25s);
}

@keyframes lp-icon-pop {
    0%, 70%, 100% { transform: none; }
    78% { transform: translateY(-5px) scale(1.08); }
}

/* ---------- Syntax demo ---------- */
.lp-syntax-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.lp-check-list {
    display: grid;
    gap: 0.7rem;
    margin: 1.6rem 0 1.8rem;
    padding: 0;
    list-style: none;
}

.lp-check-list li {
    position: relative;
    padding-left: 1.8rem;
    color: var(--secondary);
}

.lp-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234169E1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.lp-editor {
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    background: var(--code);
    box-shadow: var(--lp-shadow);
    overflow: hidden;
}

.lp-editor-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.7rem 0.9rem;
    color: #8b949e;
    font-family: var(--font-mono);
    font-size: 0.74rem;
}

.lp-editor-bar i {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #ff5f57;
}

.lp-editor-bar i:nth-child(2) { background: #febc2e; }
.lp-editor-bar i:nth-child(3) { background: #28c840; margin-right: 0.6rem; }

.lp-editor-body {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
}

.lp-editor pre {
    margin: 0;
    min-height: 15.5rem;
    padding: 1.1rem 1.2rem;
    background: transparent;
    color: var(--code-text);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.65;
    white-space: pre;
    overflow-x: auto;
}

.lp-caret {
    display: inline-block;
    width: 0.55ch;
    height: 1.1em;
    margin-left: 1px;
    vertical-align: text-bottom;
    background: #8b949e;
    animation: lp-blink 1s steps(1) infinite;
}

@keyframes lp-blink {
    50% { opacity: 0; }
}

.tok-k { color: #c792ea; }
.tok-f { color: #82aaff; }
.tok-n { color: #f78c6c; }
.tok-v { color: #ffcb6b; }
.tok-p { color: #89ddff; }

.lp-editor canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 15.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: #0d1013;
}

.lp-editor-status {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.55rem 0.9rem;
    color: #8b949e;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.lp-editor-status b {
    color: #4ade80;
    font-weight: 500;
}

/* ---------- Discovery section restyle ---------- */
.lp .discovery-section {
    background: var(--surface-muted);
}

.lp .discovery-shell {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: var(--lp-shadow);
}

.lp .discovery-caption {
    border-radius: 0 0 16px 16px;
}

.lp .discovery-claim {
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.lp .discovery-claim:hover {
    transform: translateX(6px);
}

/* ---------- Docs cards ---------- */
.lp-docs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 2.6rem;
}

.lp-doc {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border: 1px solid var(--lp-card-border);
    border-radius: 18px;
    background: var(--lp-card);
    padding: 1.5rem;
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lp-doc:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--lp-shadow);
}

.lp-doc-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: var(--lp-icon-tile);
    border: 1px solid var(--border);
}

.lp-doc-icon img {
    width: 2rem;
    height: 2rem;
}

.lp-doc strong {
    font-size: 1.15rem;
}

.lp-doc span {
    color: var(--secondary);
    font-size: 0.94rem;
    line-height: 1.55;
}

.lp-doc em {
    margin-top: auto;
    padding-top: 0.6rem;
    color: var(--accent-text);
    font-style: normal;
    font-weight: 650;
}

/* ---------- Platforms ---------- */
.lp-platforms {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 2.6rem;
}

.lp-platform {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    padding: 1.5rem;
}

.lp-platform-badge {
    align-self: flex-start;
    border-radius: 999px;
    background: var(--accent-soft);
    padding: 0.2rem 0.65rem;
    color: var(--accent-text);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lp-platform h3 {
    margin: 0;
    font-size: 1.25rem;
}

.lp-platform p {
    margin: 0;
    color: var(--secondary);
    line-height: 1.6;
}

.lp-platform .lp-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ---------- Values ---------- */
.lp-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2.6rem;
}

.lp-values h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.lp-values p {
    margin: 0;
    color: var(--secondary);
    font-size: 0.94rem;
    line-height: 1.65;
}

.lp-value-mark {
    display: block;
    width: 2.4rem;
    height: 3px;
    margin-bottom: 1rem;
    border-radius: 2px;
    background: var(--accent);
}

/* ---------- Final CTA ---------- */
.lp-cta {
    position: relative;
    padding-block: clamp(5rem, 10vw, 8rem);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.lp-cta h2 {
    max-width: none;
    margin-inline: auto;
}

.lp-cta .lp-lead {
    margin-inline: auto;
}

.lp-cta .lp-hero-actions {
    justify-content: center;
}

.lp-cta-orbits {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 0;
    height: 0;
    z-index: -1;
}

.lp-cta-orbits span {
    position: absolute;
    left: 0;
    top: 0;
    border: 1px solid var(--lp-card-border);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: lp-orbit-spin 30s linear infinite;
}

.lp-cta-orbits span::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
    border-radius: 50%;
    background: var(--accent);
}

.lp-cta-orbits span:nth-child(1) { width: 22rem; height: 22rem; }
.lp-cta-orbits span:nth-child(2) { width: 36rem; height: 36rem; animation-duration: 46s; animation-direction: reverse; }
.lp-cta-orbits span:nth-child(3) { width: 52rem; height: 52rem; animation-duration: 70s; }
.lp-cta-orbits span:nth-child(2)::after { background: var(--lp-glow-b); }
.lp-cta-orbits span:nth-child(3)::after { background: var(--lp-glow-c); }

@keyframes lp-orbit-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- Scroll reveal ---------- */
.lp-js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--d, 0) * 90ms);
}

.lp-js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .lp-feature-grid,
    .lp-docs-grid,
    .lp-platforms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-syntax-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .lp-hero-inner {
        grid-template-columns: 1fr;
    }

    .lp-hero {
        min-height: 0;
    }

    .lp-hero-copy {
        padding: 1.2rem;
        margin: -1.2rem;
        border-radius: 18px;
        background: color-mix(in srgb, var(--page) 70%, transparent);
        backdrop-filter: blur(3px);
    }

    .lp-hero-inner {
        padding-bottom: 25rem;
    }

    .lp-scroll-cue {
        display: none;
    }

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

    .lp-values {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .lp-feature-grid,
    .lp-docs-grid,
    .lp-platforms {
        grid-template-columns: 1fr;
    }

    .lp-editor-body {
        grid-template-columns: 1fr;
    }

    .lp-editor canvas {
        min-height: 11rem;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .lp-editor pre {
        min-height: 0;
        font-size: 0.76rem;
    }

    .lp-btn {
        width: 100%;
        justify-content: center;
    }

    .lp-rotator > span {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp *,
    .lp *::before,
    .lp *::after {
        animation: none !important;
        transition: none !important;
    }

    .lp-js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .lp-art-draw {
        stroke-dashoffset: 0;
    }

    .lp-art-check {
        opacity: 1;
    }
}

/* ---------- Transformations Lab highlight ---------- */
.lp-lab-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.lp-lab .lp-kicker .lp-pill-tag {
    margin-right: 0.45rem;
}

.lp-lab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lp-lab-stage {
    position: relative;
    margin: 0;
    padding-bottom: 2.4rem;
}

.lp-shot {
    border: 1px solid var(--border-strong);
    background: var(--surface, var(--page));
    box-shadow: var(--lp-shadow);
    overflow: hidden;
}

.lp-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.lp-shot-desktop {
    border-radius: 14px;
    margin-right: 14%;
}

.lp-shot-desktop .lp-editor-bar {
    background: var(--code);
}

.lp-shot-phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 27%;
    border-radius: 22px;
    border-width: 4px;
    border-color: #1f2328;
}

.lp-lab-caption {
    margin-top: 0.8rem;
    color: var(--muted, var(--secondary));
    font-size: 0.82rem;
}

.lp-lab-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.lp-lab-thumb {
    margin: 0;
    border: 1px solid var(--lp-card-border);
    border-radius: 14px;
    background: var(--lp-card);
    overflow: hidden;
}

.lp-lab-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 45%;
    border-bottom: 1px solid var(--lp-card-border);
    background: #fff;
}

.lp-lab-thumb img[height="396"] {
    object-fit: contain;
    background: var(--surface-muted);
}

.lp-lab-thumb figcaption {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 1rem 1rem;
}

.lp-lab-thumb figcaption span {
    color: var(--secondary);
    font-size: 0.9rem;
}

@media (max-width: 1020px) {
    .lp-lab-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .lp-lab-strip {
        grid-template-columns: 1fr;
    }

    .lp-shot-desktop {
        margin-right: 18%;
    }

    .lp-shot-phone {
        width: 34%;
        border-radius: 16px;
        border-width: 3px;
    }
}

/* ---------- Discovery screenshots ---------- */
.lp-disc-intro {
    margin-top: clamp(3rem, 6vw, 4.5rem);
}

.lp-disc-intro > * {
    max-width: 760px;
}

.lp-disc-intro h3 {
    margin: 0 0 0.6rem;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.lp-disc-intro p:not(.lp-kicker) {
    color: var(--secondary);
}

.lp-disc-strip {
    margin-top: 1.6rem;
}

.lp .discovery-section .lp-lab-thumb {
    background: var(--surface);
}

/* ---------- FluxGeo AI teaser ---------- */
.lp-ai-inner > * {
    max-width: 820px;
}

.lp-ai .lp-kicker .lp-pill-tag {
    margin-right: 0.45rem;
}

.lp-ai-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.lp-shot-ai {
    width: 30%;
    border-width: 1px;
    border-color: var(--border-strong);
    border-radius: 14px;
}

.lp-ai .lp-lab-stage {
    padding-bottom: 4.5rem;
}

.lp-ai .lp-lab-caption {
    max-width: 62%;
}
