/* ============================================================
   Lonyst — shared design system (v4)
   ============================================================ */

:root {
    --blue:        #3A94FF;
    --blue-bright: #4FA1FF;
    --blue-deep:   #1e40af;
    --blue-glow:   #6e94ff;
    --blue-rect:   rgba(58, 148, 255, 0.85);

    --ink-0: #050810;
    --ink-1: #0a0e1a;
    --ink-2: #131826;
    --ink-3: #1f2535;
    --ink-4: #2c3447;
    --ink-5: #3a4055;
    --ink-6: #6c7186;
    --ink-7: #c2c6d6;
    --ink-8: #e7e9ee;
    --ink-9: #f4f4f0;
    --ink-10:#fafaf7;

    --font-display: 'Hedvig Letters Serif', 'Fraunces', 'Times New Roman', serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --font-mono:    ui-monospace, 'SF Mono', Menlo, monospace;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --maxw: 1280px;
    --gutter-x: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: #fff;
    background: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Subpage variant — graph-paper background, ivory base. */
body.flat {
    background: #f8f8f3;
    color: var(--ink-1);
    background-image:
        linear-gradient(rgba(15,23,42,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,0.06) 1px, transparent 1px),
        linear-gradient(rgba(15,23,42,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,0.025) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}
body.flat .page-bg { display: none; }
body.flat .eyebrow { color: rgba(15,23,42,0.55); }
body.flat .nav-link { color: var(--ink-1); }
body.flat .nav-link:hover { color: #fff; }
body.flat .brand-logo-wrap img,
.why .brand-logo-wrap img {
    filter: brightness(0);
    opacity: 0.62;
}
body.flat .section-intro,
body.flat .section-intro h2 { color: var(--ink-1); }
body.flat .section-intro p { color: var(--ink-5); }

.page-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        #000     0%,
        #000     22%,
        #050507  32%,
        #0e1018  42%,
        #1c2030  50%,
        #383e54  58%,
        #6d7388  66%,
        #b3b6c0  75%,
        #dcdcd8  84%,
        #f0f0eb  92%,
        #f4f4f0  97%,
        #fff    100%
    );
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main, footer, header, section, .floating-bar { position: relative; z-index: 2; }

/* ============================================================
   Type
   ============================================================ */

.serif { font-family: var(--font-display); }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0;
}

a { color: inherit; text-decoration: none; }

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-inline: var(--gutter-x);
}

section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }

/* ============================================================
   Lonyst LOGO — thin black border, slim shadow (footer-style)
   used everywhere now: hero, sub-page header, footer.
   ============================================================ */

.logo-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: 11px;
    background: #fff;
    line-height: 0;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
    border: 1.5px solid #000;
    box-shadow: 2px 2px 0 #000;
}
.logo-pill:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 #000; }

.logo-pill img {
    height: 1.6rem;
    width: auto;
    display: block;
}

.logo-pill.sm   { padding: 0.34rem 0.65rem; border-width: 1.4px; box-shadow: 2px 2px 0 #000; }
.logo-pill.sm img { height: 1.4rem; }

.logo-pill.lg img { height: 1.85rem; }

/* ============================================================
   FLOATING BANNER — Figma spec, hidden until scroll past hero
   ============================================================ */

.floating-bar {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 60;
    width: min(640px, calc(100vw - 24px));
    height: 55px;
    padding: 8px 8px 8px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 5vw, 6rem);
    background: #000;
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border-radius: 16px;
    box-shadow: 0 12px 30px -10px rgba(0,0,0,0.6);
    transform: translate3d(-50%, -180%, 0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.floating-bar.is-visible {
    transform: translate3d(-50%, 0, 0);
    opacity: 1;
    pointer-events: auto;
}

.fb-company {
    display: inline-flex; align-items: center;
    line-height: 0;
    flex-shrink: 0;
}
.fb-company .logo-pill { padding: 0.28rem 0.55rem; border-radius: 9px; box-shadow: 1.5px 1.5px 0 #000; border-width: 1.4px; }
.fb-company .logo-pill img { height: 1.15rem; }

.fb-buttons { display: flex; flex-direction: row; align-items: center; gap: 9px; flex-shrink: 0; }
.fb-link {
    color: #fff;
    font-family: var(--font-body);
    font-weight: 500; font-size: 16px;
    line-height: 1.45; letter-spacing: -0.005em;
    padding: 0 9px;
    transition: opacity 0.2s var(--ease);
    opacity: 0.92;
}
.fb-link:hover { opacity: 1; }

.btn-pill {
    display: inline-flex; flex-direction: row;
    justify-content: center; align-items: center;
    gap: 8px;
    padding: 12px 16px;
    height: 34px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 500; font-size: 16px;
    line-height: 1.45; letter-spacing: -0.005em;
    transition: transform 0.18s var(--ease), background 0.18s var(--ease);
    white-space: nowrap;
}
.btn-pill.blue  { background: var(--blue); color: #fff; }
.btn-pill.blue:hover { background: var(--blue-bright); transform: translateY(-1px); }
.btn-pill.white { background: #fff; color: #000; }
.btn-pill.white:hover { background: #f1f1f1; transform: translateY(-1px); }
.btn-pill.ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-pill.ghost:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 640px) {
    .floating-bar { gap: 0.6rem; padding-left: 12px; padding-right: 4px; }
    .fb-link.fb-link-hide-sm { display: none; }
    .btn-pill { padding: 9px 11px; font-size: 13.5px; }
    .fb-company { font-size: 22px; height: 32px; }
    .fb-vector { width: 22px; height: 32px; }
}

/* ============================================================
   HERO — top bar (logo left, CTAs right), then spray top half,
   then the rotator in the gap, then the spray bottom half, then
   the nav, then the trusted marquee.
   ============================================================ */

.hero {
    min-height: 100svh;
    padding-block: clamp(1rem, 3vh, 2.5rem) clamp(2.5rem, 5vh, 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* TOP BAR — visible on the hero (separate from floating banner). */
.hero-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: clamp(1.4rem, 4vh, 3rem);
    position: relative;
    z-index: 4;
    flex-wrap: wrap;
}
.hero-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.hero-top-actions .fb-link {
    font-size: 15px;
}

/* Wrapper that holds the rotator zone + the two spray halves. */
.hero-stage {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-block: clamp(4rem, 10vh, 8rem) clamp(2rem, 5vh, 4rem);
}

/* Full-hero spray — horizontal streaks that frame the headline text.
   Anchored relative to the vertical center (where text lives) so they
   stay near the headline at any viewport height. */
.hero-spray-top, .hero-spray-bottom {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-image: url('../figma/hero-spray.png');
}

/* TOP-LEFT — beams level with the prelude, stepping up-right.
   Anchored: bottom edge sits just above center (the prelude text).
   Right edge + bottom fade mask out the plus sign and prevent bleed
   into the headline. */
.hero-spray-top {
    left: -10%;
    right: 15%;
    bottom: calc(50% + 1rem);
    height: clamp(8rem, 18vh, 14rem);
    background-size: 110% auto;
    background-position: left center;
    opacity: 0.9;
    -webkit-mask-image:
        linear-gradient(to right, #000 0%, #000 68%, transparent 86%),
        linear-gradient(to bottom, transparent 0%, #000 20%, #000 70%, transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-image:
        linear-gradient(to right, #000 0%, #000 68%, transparent 86%),
        linear-gradient(to bottom, transparent 0%, #000 20%, #000 70%, transparent 100%);
    mask-composite: intersect;
}

/* BOTTOM-RIGHT — mirrored spray sitting just below center (the big
   cycling words). Left edge fades so it doesn't cross the rotator. */
.hero-spray-bottom {
    display: block;
    left: 30%;
    right: -10%;
    top: calc(50% + 3rem);
    height: clamp(7rem, 15vh, 12rem);
    background-size: 110% auto;
    background-position: right center;
    transform: scale(-1, -1);
    opacity: 0.8;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, #000 18%, #000 68%, transparent 88%),
        linear-gradient(to bottom, transparent 0%, #000 25%, #000 70%, transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-image:
        linear-gradient(to right, transparent 0%, #000 18%, #000 68%, transparent 88%),
        linear-gradient(to bottom, transparent 0%, #000 25%, #000 70%, transparent 100%);
    mask-composite: intersect;
}

.hero-headline-wrap {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
}

.hero-prelude {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 2.5rem);
    letter-spacing: -0.015em;
    color: rgba(255,255,255,0.96);
    line-height: 1.15;
    margin: 0 0 1.4rem;
    padding-inline: 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-rotator {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.4rem, 7vw, 6.4rem);
    letter-spacing: -0.025em;
    line-height: 1.18;
    color: #fff;
    position: relative;
    height: 1.4em;
    width: max-content;
    max-width: calc(100vw - 2 * var(--gutter-x));
    margin-inline: auto;
    padding-block: 0.05em 0.18em;
    text-align: center;
}

.rotator-word {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.7s var(--ease), opacity 0.6s var(--ease);
    white-space: nowrap;
    color: #fff;
    isolation: isolate;
    padding-block: 0.05em 0.18em;
}
.rotator-word.is-in    { transform: translateY(0);    opacity: 1; }
.rotator-word.is-out   { transform: translateY(-110%); opacity: 0; transition-duration: 0.55s; }
.rotator-word.is-queue { transform: translateY(110%); opacity: 0; transition-duration: 0s; }

/* Highlight bar removed — title stands on its own against the spray. */
.rotator-word .highlight { display: none; }
.rotator-word .rotator-text { position: relative; z-index: 1; display: inline-block; }

@media (prefers-reduced-motion: reduce) {
    .rotator-word { animation: none !important; transition: none !important; }
    .rotator-word.is-in { transform: none; opacity: 1; }
}

.hero-rotator-rule {
    width: clamp(60%, 70vw, 880px);
    height: 1px;
    margin-top: clamp(2rem, 5vw, 3.4rem);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    position: relative;
    z-index: 3;
}

.hero-nav {
    margin-top: clamp(2.4rem, 5vw, 4rem);
    width: 100%;
    max-width: 880px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    flex-wrap: wrap;
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.005em;
    position: relative;
    z-index: 3;
}

/* Nav HIGHLIGHT — solid blue rectangle that fills L→R behind text. */
.nav-link {
    position: relative;
    padding: 0.55rem 0.7rem;
    color: #fff;
    opacity: 0.86;
    transition: opacity 0.22s var(--ease);
    isolation: isolate;
    border-radius: 2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    inset: 6% -6%;
    background: var(--blue-rect);
    border-radius: 2px;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.42s var(--ease);
}
@media (hover: hover) {
    .nav-link:hover { opacity: 1; }
    .nav-link:hover::after { transform: scaleX(1); }
}
.nav-link:focus-visible { opacity: 1; }
.nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link:not(:hover):not(:focus-visible)::after { transform-origin: right center; }


/* ============================================================
   Trusted by — static label + pill marquee
   ============================================================ */

.trusted {
    margin-top: clamp(2.5rem, 6vw, 5rem);
    width: 100%;
    max-width: 980px;
    margin-inline: auto;
    text-align: center;
    position: relative;
    z-index: 3;
    padding-inline: var(--gutter-x);
}

.trusted-label {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    color: rgba(255,255,255,0.95);
    margin: 0 auto 1.2rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

.trusted-pill {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 1.4rem 2rem;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    gap: 0;
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
    flex-shrink: 0;
    min-width: 100%;
    padding-right: clamp(2.5rem, 5vw, 5rem);
    animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

.brand-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.4rem;
    transition: transform 0.25s var(--ease);
    cursor: default;
}
.brand-logo-wrap img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.78;
    transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}
/* Per-logo height tweaks. NVIDIA, PwC, Goldman bumped up. */
.brand-logo-wrap[data-logo="jane-street"]    img { height: 105%; }
.brand-logo-wrap[data-logo="goldman-sachs"]  img { height: 115%; }
.brand-logo-wrap[data-logo="pwc"]            img { height: 120%; }
.brand-logo-wrap[data-logo="dell"]           img { height: 110%; }
.brand-logo-wrap[data-logo="amazon"]         img { height: 75%; }
.brand-logo-wrap[data-logo="nvidia"]         img { height: 110%; }

.brand-logo-wrap:hover img { opacity: 1; }
.brand-logo-wrap:hover { transform: translateY(-2px); }

/* ============================================================
   Section intro
   ============================================================ */

.section-intro {
    max-width: 880px;
    margin: 0 auto 3.6rem;
    text-align: center;
    color: #fff;
}
.section-intro h2 {
    font-size: clamp(2.6rem, 6.5vw, 5.4rem);
    font-weight: 400;
    line-height: 1.05;
}
.section-intro h2 .accent { color: var(--blue-bright); font-style: italic; }
.section-intro p {
    margin-top: 1rem;
    color: rgba(255,255,255,0.72);
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 400;
    max-width: 64ch;
    margin-inline: auto;
    line-height: 1.45;
}
.section-intro p .blue { color: var(--blue-bright); font-style: italic; }


/* ============================================================
   What do we do — feature grid
   ============================================================ */

.what { padding-top: clamp(3rem, 6vw, 5rem); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.4rem;
}

.feature-card {
    position: relative;
    border-radius: 22px;
    padding: 1.7rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
    color: #fff;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(110,148,255,0.35);
    background: rgba(110,148,255,0.05);
}
.feature-card h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
}
.feature-card p {
    color: rgba(255,255,255,0.62);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}
.feature-preview {
    margin-top: 0.4rem;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: var(--ink-0);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}
.feature-preview .play-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    font-weight: 500;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    background: rgba(0,0,0,0.4);
}
.feature-card:hover .feature-preview .play-hint { opacity: 1; }

/* ============================================================
   OS-aware browser chrome (shared)
   ============================================================ */

.chrome {
    border-radius: 10px;
    overflow: hidden;
    background: #1a1f2e;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 25px 60px -25px rgba(0,0,0,0.6);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.chrome-bar {
    display: flex; align-items: center; gap: 0.6rem;
    height: 32px; padding: 0 0.7rem;
    background: linear-gradient(180deg, #262b3d, #1d2233);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    flex-shrink: 0;
}
.chrome-traffic { display: inline-flex; gap: 7px; align-items: center; }
.chrome-traffic span { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18); }
.chrome-traffic .red    { background: #ff5f57; }
.chrome-traffic .yellow { background: #febc2e; }
.chrome-traffic .green  { background: #28c840; }
.chrome-title { flex: 1; text-align: center; font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.02em; color: rgba(255,255,255,0.55); }
.chrome.os-mac .chrome-traffic { order: 0; }
.chrome.os-win { border-radius: 8px; }
.chrome.os-win .chrome-bar { background: #1e2233; padding-right: 0; align-items: center; }
.chrome.os-win .chrome-bar::before { content: ''; width: 14px; height: 14px; border-radius: 2px; background: var(--blue); flex-shrink: 0; opacity: 0.7; align-self: center; }
.chrome.os-win .chrome-traffic { order: 3; margin-left: auto; height: 100%; gap: 0; }
.chrome.os-win .chrome-traffic span {
    width: 46px; height: 32px; border-radius: 0; background: transparent; box-shadow: none;
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.55); font-family: var(--font-body); font-size: 10px;
    transition: background 0.2s var(--ease);
}
.chrome.os-win .chrome-traffic .min::before  { content: '━'; font-size: 9px; }
.chrome.os-win .chrome-traffic .max::before  { content: '☐'; font-size: 10px; }
.chrome.os-win .chrome-traffic .close::before{ content: '✕'; font-size: 10px; }
.chrome.os-win .chrome-traffic .min:hover,
.chrome.os-win .chrome-traffic .max:hover    { background: rgba(255,255,255,0.08); }
.chrome.os-win .chrome-traffic .close:hover  { background: #e81123; color: #fff; }
.chrome.os-win .chrome-traffic .close { border-radius: 0 8px 0 0; }
.chrome.os-win .chrome-title { text-align: left; padding-left: 0.5rem; font-size: 0.72rem; line-height: 32px; }

.chrome-body {
    background: #0c1020;
    flex: 1;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5);
    min-height: 120px;
}
.chrome-body video,
.chrome-body img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chrome-empty { text-align: center; padding: 1.5rem; }
.chrome-empty .play {
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 0.8rem;
}
.chrome-empty .play::before {
    content: '';
    width: 0; height: 0;
    border-left: 12px solid rgba(255,255,255,0.7);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 4px;
}
.chrome-empty p { margin: 0; font-size: 0.85rem; line-height: 1.4; }
.chrome-empty p.small { color: rgba(255,255,255,0.4); font-size: 0.75rem; margin-top: 0.3rem; }

/* ============================================================
   Modal
   ============================================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(3,6,15,0.78);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }

.modal-card {
    width: 100%; max-width: 1100px;
    border-radius: 18px; overflow: hidden;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s var(--ease);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8);
}
.modal.is-open .modal-card { transform: none; }
.modal-card .chrome { aspect-ratio: 16/9; height: auto; }
.modal-meta {
    background: #161b2c;
    padding: 1rem 1.4rem;
    display: flex; justify-content: space-between; align-items: center;
    color: rgba(255,255,255,0.85);
    border-top: 1px solid rgba(255,255,255,0.04);
    gap: 1rem; flex-wrap: wrap;
}
.modal-meta h3 { color: #fff; font-size: 1rem; font-weight: 600; margin: 0; }
.modal-meta p  { margin: 0.15rem 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.modal-close {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font-size: 0.82rem; font-weight: 500;
    cursor: pointer;
    transition: background 0.2s var(--ease);
    flex-shrink: 0;
}
.modal-close:hover { background: rgba(255,255,255,0.12); }

/* ============================================================
   Hover popup (marquee)
   ============================================================ */

.hover-pop {
    position: fixed;
    pointer-events: none;
    z-index: 200;
    transform: translate(-50%, calc(-100% - 14px));
    opacity: 0;
    transition: opacity 0.18s var(--ease), transform 0.22s var(--ease);
    background: rgba(10,14,26,0.94);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    width: 280px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
    backdrop-filter: blur(16px);
    font-size: 0.85rem;
    line-height: 1.45;
}
.hover-pop.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 18px)); }
.hover-pop::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 50%;
    width: 12px; height: 12px;
    background: rgba(10,14,26,0.94);
    border-right: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateX(-50%) rotate(45deg);
}
.hover-pop .pop-title { display: block; font-family: var(--font-body); font-weight: 600; color: #fff; margin-bottom: 0.18rem; }
.hover-pop .pop-body  { color: rgba(255,255,255,0.72); font-size: 0.8rem; }

/* ============================================================
   Why Lonyst — readable, content sits over a tinted card so
   text doesn't drown in the gradient mid-band.
   ============================================================ */

.why {
    color: var(--ink-1);
    text-align: center;
    padding-block: clamp(5rem, 10vw, 8rem);
}
.why-card {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(2.6rem, 6vw, 4.4rem) clamp(1.5rem, 4vw, 3rem);
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(15,23,42,0.05);
    border-radius: 28px;
    backdrop-filter: blur(8px);
    box-shadow: 0 30px 80px -40px rgba(15,23,42,0.25);
}
.why h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.8rem, 7vw, 5rem);
    letter-spacing: -0.02em;
    color: var(--ink-1);
    margin: 0;
    line-height: 1.05;
}
.why h2 .q { font-style: italic; }
.why .why-lede {
    margin: 1.4rem auto 0;
    color: var(--ink-3);
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.55vw, 1.3rem);
    line-height: 1.55;
    max-width: 60ch;
    font-weight: 500;
}

.founders-section-label {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    color: var(--ink-3);
    margin: clamp(2.2rem, 5vw, 3.5rem) auto 1.5rem;
    letter-spacing: -0.01em;
    text-align: center;
    white-space: nowrap;
}

.why .marquee { margin-top: 0; }
.why .brand-logo-wrap { height: 3.4rem; }

/* ============================================================
   Talk to a founder
   ============================================================ */

.talk {
    text-align: center;
    color: var(--ink-1);
    padding-block: clamp(6rem, 12vw, 10rem) clamp(4rem, 9vw, 7rem);
    position: relative;
    z-index: 2;
}
.talk h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3.4rem, 12vw, 10rem);
    letter-spacing: -0.045em;
    line-height: 0.96;
    color: var(--ink-1);
    margin: 0;
}

.demo-zone {
    margin-top: clamp(2.6rem, 6vw, 4.4rem);
    position: relative;
    padding: 2.5rem 0 1rem;
    isolation: isolate;
}
.demo-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(58,148,255,0.18), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.btn-demo {
    display: inline-flex;
    align-items: center; justify-content: center;
    gap: 0.45rem;
    padding: 1.4rem 2.6rem;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    font-weight: 500;
    letter-spacing: -0.005em;
    border: none;
    cursor: pointer;
    box-shadow: 0 18px 45px -12px rgba(58,148,255,0.6);
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
    font-family: var(--font-body);
}
.btn-demo:hover { background: var(--blue-bright); box-shadow: 0 22px 55px -10px rgba(79,161,255,0.7); }
.btn-demo .label-static { white-space: nowrap; }
.btn-demo .label-bang   { display: inline-block; overflow: hidden; white-space: nowrap; transition: max-width 0.12s linear; max-width: 0; }
@media (prefers-reduced-motion: reduce) { .btn-demo .label-bang { display: none; } }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    background: #ffffff;
    color: var(--ink-1);
    padding: 1.4rem var(--gutter-x);
    border-top: 1px solid rgba(15,23,42,0.05);
    position: relative;
    z-index: 5;
}
.footer-row {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.footer-nav {
    display: inline-flex;
    gap: 1.6rem;
    list-style: none;
    padding: 0; margin: 0;
    font-size: 0.95rem;
    color: rgba(15,23,42,0.7);
    flex-wrap: wrap;
}
.footer-nav a { transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--blue); }
.footer-social { display: inline-flex; gap: 0.6rem; align-items: center; }
.footer-social a {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    color: rgba(15,23,42,0.7);
    transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-social a:hover {
    background: rgba(58,148,255,0.08);
    color: var(--blue);
    transform: translateY(-2px);
}

/* ============================================================
   Subpage stub (graph-paper bg from body.flat)
   ============================================================ */

.stub-main {
    max-width: 880px;
    margin: 0 auto;
    padding: clamp(5rem, 12vw, 9rem) var(--gutter-x);
    text-align: left;
    position: relative;
    z-index: 2;
}
.stub-main h1 {
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    font-weight: 400;
    color: var(--ink-1);
    line-height: 0.96;
    letter-spacing: -0.035em;
}
.stub-main p {
    margin-top: 1.6rem;
    color: var(--ink-5);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 60ch;
}
.stub-main .badge {
    display: inline-block;
    margin-bottom: 1.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: rgba(58,148,255,0.1);
    color: var(--blue-deep);
    border: 1px solid rgba(58,148,255,0.18);
}

.stub-header {
    padding: 1.2rem var(--gutter-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}
.stub-header .nav-links {
    display: none;
    gap: 1.8rem;
    list-style: none;
    margin: 0; padding: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
}
@media (min-width: 768px) {
    .stub-header .nav-links { display: inline-flex; }
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (hover: none) {
    .feature-card:hover { transform: none; }
    .brand-logo-wrap:hover { transform: none; }
}

/* ============================================================
   RESPONSIVE — mobile / iPad
   ============================================================ */

@media (max-width: 640px) {
    .hero { padding-top: 0.5rem; padding-bottom: 1.5rem; }
    .hero-top {
        flex-wrap: nowrap;
        margin-bottom: 1rem;
        gap: 0.4rem;
    }
    .hero-top-actions { gap: 0.35rem; flex-wrap: nowrap; }
    .hero-top-actions .fb-link { padding: 0 3px; font-size: 12px; }
    .hero-top-actions .btn-pill { padding: 6px 10px; font-size: 12px; height: 28px; border-radius: 9px; }
    .hero-stage { padding-block: 1.5rem; }
    .hero-prelude { font-size: 1.05rem; }
    .hero-rotator { font-size: clamp(1.9rem, 8vw, 2.6rem); height: 1.4em; }
    .hero-spray-top, .hero-spray-bottom { left: -10%; right: -10%; }
    .hero-nav {
        gap: 0.8rem;
        justify-content: space-around;
        font-size: 0.95rem;
    }
    .nav-link { padding: 0.4rem 0.5rem; }

    .trusted-pill { padding: 1rem 1.2rem; }
    .brand-logo-wrap { height: 2.4rem; }

    .floating-bar { top: 12px; padding: 6px 6px 6px 12px; }

    .features-grid { grid-template-columns: 1fr; }

    .why { padding-block: clamp(3rem, 9vw, 5rem); }
    .why-card { padding: 1.8rem 1.2rem; border-radius: 20px; }
    .why h2 { font-size: 2.4rem; }
    .why .why-lede { font-size: 1rem; }

    .talk h2 { font-size: clamp(2.8rem, 12vw, 4.2rem); }
    .btn-demo { padding: 1.1rem 2rem; font-size: 1rem; }

    .footer-row { flex-direction: column; align-items: flex-start; gap: 1rem; }

}

@media (min-width: 641px) and (max-width: 1024px) {
    .hero-rotator { font-size: clamp(3rem, 8vw, 5rem); }
    .hero-nav { font-size: 1rem; }
    .floating-bar { width: min(640px, calc(100vw - 32px)); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-logo-wrap { height: 3rem; }
}

@media (max-width: 380px) {
    .hero-spray-top, .hero-spray-bottom { background-size: 140% auto; }
    .trusted-label { font-size: 1.2rem; }
}
