/* ============================================================
   VEMS — "The Production Monitor"
   Cinematic dark theme. Wordmark gradient (red → magenta →
   purple) as the accent, film-HUD chrome, scene-based layout.
   ============================================================ */

:root {
    --bg: #05060b;
    --panel: rgba(16, 20, 34, .6);
    --stroke: rgba(160, 175, 220, .16);
    --text: #f2f4fb;
    --dim: #8f9ab4;
    --red: #e6273e;
    --magenta: #c0257f;
    --purple: #8d2ba6;
    --azure: #479ef5;
    --grad: linear-gradient(93deg, var(--red) 0%, var(--magenta) 50%, var(--purple) 100%);
    --grad-blue: linear-gradient(93deg, #2f6fed, var(--azure) 55%, #8fd0ff);
    --display: "Archivo", system-ui, sans-serif;
    --body: "Archivo", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;

    /* Theme surface tokens (dark defaults; html[data-theme="light"] overrides). */
    --card-a: rgba(22, 26, 44, .96);
    --card-b: rgba(10, 12, 24, .96);
    --panel-solid: rgba(10, 13, 24, .92);
    --chrome: rgba(3, 4, 9, .85);
    --ghost: rgba(210, 218, 245, .045);
    --hud-line: rgba(190, 200, 235, .28);
    --outline: rgba(210, 218, 245, .4);
    --vignette: rgba(0, 0, 0, .42);
    --menu-bg: #08060f;
    --card-shadow: none;
}

html[data-theme="light"] {
    --bg: #f1f2f8;
    --panel: rgba(255, 255, 255, .7);
    --stroke: rgba(24, 32, 64, .15);
    --text: #1a1e2e;
    --dim: #5c6479;
    --card-a: #ffffff;
    --card-b: #f2f4fb;
    --panel-solid: rgba(255, 255, 255, .92);
    --chrome: rgba(244, 245, 250, .9);
    --ghost: rgba(24, 32, 64, .06);
    --hud-line: rgba(24, 32, 64, .32);
    --outline: rgba(24, 32, 64, .3);
    --vignette: rgba(20, 30, 60, .08);
    --menu-bg: #eef0f7;
    --card-shadow: 0 22px 60px rgba(20, 30, 60, .1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Film grain + vignette over everything */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: .05;
    mix-blend-mode: overlay;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 199;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 58%, var(--vignette) 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.mono { font-family: var(--mono); }

.container-w { width: min(1240px, calc(100% - 56px)); margin-inline: auto; }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.grad-text--blue { background-image: var(--grad-blue); }

/* ============ PRELOADER ============ */
.loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #030409;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader__inner { text-align: center; position: relative; z-index: 2; }
.loader__logo {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(54px, 10vw, 110px);
    letter-spacing: .04em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* Loader stays cinematic-dark in both themes, so its colors are literal. */
.loader__tc { color: #8f9ab4; font-size: 13px; letter-spacing: .2em; margin-top: 10px; }
.loader__bar {
    width: min(340px, 60vw);
    height: 2px;
    background: rgba(160, 175, 220, .15);
    margin: 26px auto 0;
    overflow: hidden;
}
.loader__bar-fill { width: 0%; height: 100%; background: var(--grad); }
.loader__curtain { position: absolute; inset: 0; background: #030409; z-index: 1; }

/* ============ CURSOR ============ */
.cursor, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 500;
    border-radius: 50%;
    transform: translate(-100px, -100px);
}
.cursor { width: 8px; height: 8px; background: #fff; mix-blend-mode: difference; }
.cursor-ring {
    width: 38px; height: 38px;
    border: 1px solid rgba(255, 255, 255, .5);
    mix-blend-mode: difference;
    transition: width .25s ease, height .25s ease;
}
.cursor-ring.is-hover { width: 64px; height: 64px; }
@media (hover: none) { .cursor, .cursor-ring { display: none; } }

/* ============ HUD ============ */
.hud { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.hud__corner {
    position: absolute;
    width: 22px; height: 22px;
    border: 1px solid var(--hud-line);
}
.hud__corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.hud__corner--tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.hud__corner--bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.hud__corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.scrubber {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 105;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 46px 12px;
    pointer-events: none;
    background: linear-gradient(to top, var(--chrome), transparent);
}
.scrubber__tc {
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--dim);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.scrubber__rec {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red);
    animation: rec-blink 1.4s steps(1) infinite;
}
@keyframes rec-blink { 50% { opacity: .15; } }
.scrubber__track {
    position: relative;
    flex: 1;
    height: 2px;
    background: rgba(160, 175, 220, .18);
}
.scrubber__fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: var(--grad);
}
.scrubber__head {
    position: absolute;
    top: 50%; left: 0%;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(230, 39, 62, .9);
}
.scrubber__scene { font-size: 11px; letter-spacing: .16em; color: var(--dim); white-space: nowrap; }

/* ============ MOTION CHIP ============ */
.motionchip {
    position: fixed;
    left: 16px;
    bottom: 52px;
    z-index: 400;
    background: var(--panel-solid);
    border: 1px solid rgba(198, 37, 127, .55);
    color: var(--text);
    font-size: 10px;
    letter-spacing: .14em;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
}
.motionchip:hover { border-color: var(--magenta); }

/* ============ NAV ============ */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 46px;
    transition: background .35s ease, color .35s ease;
    /* Over the (always dark) hero the nav is light-on-dark in both themes;
       once scrolled onto page surfaces it adopts the theme text color. */
    color: #f2f4fb;
}
.nav.is-scrolled {
    background: linear-gradient(to bottom, var(--chrome), transparent);
    color: var(--text);
}
body.menu-open .nav { color: var(--text); }
.nav__logo img { height: 30px; width: auto; }
.nav__right { display: flex; align-items: center; gap: 18px; }

/* Always-on-screen demo CTA: lives in the fixed header, slides in once the
   hero's big CTA scrolls out, so "Schedule a demo" never leaves the screen. */
.btn-demo {
    display: inline-flex;
    align-items: center;
    padding: 11px 24px;
    border-radius: 999px;
    background: var(--grad);
    box-shadow: 0 6px 22px rgba(198, 37, 127, .4);
    opacity: 0;
    transform: translateY(-16px);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease, box-shadow .25s ease;
}
.btn-demo.is-on { opacity: 1; transform: none; pointer-events: auto; }
.btn-demo:hover { box-shadow: 0 10px 30px rgba(198, 37, 127, .6); }
.btn-demo .mono { font-size: 11px; letter-spacing: .2em; font-weight: 700; }

.btn-login {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 26px;
    border: 1px solid currentColor;
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    color: inherit;
}
.btn-login:hover .btn-login__label { color: #fff; }
.btn-login__fill {
    position: absolute; inset: 0;
    background: var(--grad);
    transform: translateY(101%);
    transition: transform .35s cubic-bezier(.65, 0, .35, 1);
}
.btn-login:hover .btn-login__fill { transform: translateY(0); }
.btn-login:hover { border-color: transparent; }
.btn-login__label { position: relative; font-size: 12px; letter-spacing: .22em; font-weight: 700; }

.nav__menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: 0;
    color: inherit;
    font-size: 12px;
    letter-spacing: .22em;
    cursor: pointer;
    padding: 10px 4px;
}
/* Icon theme switcher: 40px circle to match the header pill height.
   Convention: monitor = follow system, sun = light, moon = dark. */
.nav__theme {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: none;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: inherit;
    cursor: pointer;
    opacity: .85;
    transition: opacity .2s ease, transform .2s ease;
}
.nav__theme:hover { opacity: 1; transform: scale(1.06); }
.theme-ico {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    opacity: 0;
    transform: scale(.3) rotate(-120deg);
    transition: opacity .3s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1);
    pointer-events: none;
}
.nav__theme[data-mode="auto"] .theme-ico--auto,
.nav__theme[data-mode="light"] .theme-ico--light,
.nav__theme[data-mode="dark"] .theme-ico--dark {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}
/* playful hover: rays spin, moon tilts, monitor leans in */
.nav__theme[data-mode="light"]:hover .theme-ico--light { transform: scale(1) rotate(45deg); }
.nav__theme[data-mode="dark"]:hover .theme-ico--dark { transform: scale(1) rotate(-18deg); }
.nav__theme[data-mode="auto"]:hover .theme-ico--auto { transform: scale(1.12) rotate(0deg); }
/* mono tooltip below, right-aligned to hug the screen edge */
.nav__theme::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .12em;
    padding: 8px 13px;
    border-radius: 8px;
    background: var(--panel-solid);
    border: 1px solid var(--stroke);
    color: var(--text);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
    transition: opacity .25s ease, transform .25s ease;
    z-index: 10;
}
.nav__theme:hover::after, .nav__theme:focus-visible::after { opacity: 1; transform: none; }
.nav__menu-lines { display: flex; flex-direction: column; gap: 5px; width: 26px; }
.nav__menu-lines span { height: 2px; background: currentColor; transition: transform .3s ease, width .3s ease; }
.nav__menu-lines span:last-child { width: 60%; align-self: flex-end; }
.nav__menu-btn:hover .nav__menu-lines span:last-child { width: 100%; }
body.menu-open .nav__menu-lines span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav__menu-lines span:last-child { width: 100%; transform: translateY(-3.5px) rotate(-45deg); }

/* ============ OVERLAY MENU ============ */
.menu {
    position: fixed;
    inset: 0;
    z-index: 250;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8vw;
}
.menu__bg {
    position: absolute;
    inset: 0;
    background: var(--menu-bg);
    clip-path: circle(0% at calc(100% - 80px) 40px);
}
.menu__links { position: relative; display: flex; flex-direction: column; gap: 2px; }
.menu__links a {
    display: flex;
    align-items: baseline;
    gap: 26px;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(30px, 6.2vh, 56px);
    line-height: 1.3;
    color: var(--text);
    opacity: 0;
    transform: translateY(40px);
    transition: color .25s ease, letter-spacing .35s ease;
}
.menu__links a:hover { color: transparent; -webkit-text-stroke: 1.5px var(--text); letter-spacing: .02em; }
.menu__links em { font-style: normal; font-size: 14px; color: var(--magenta); letter-spacing: .2em; }
.menu__foot {
    position: absolute;
    bottom: 40px; left: 8vw;
    display: flex;
    gap: 34px;
    font-size: 12px;
    letter-spacing: .14em;
    color: var(--dim);
}
.menu__foot a:hover { color: var(--text); }

/* ============ SCENES (shared) ============ */
.scene { position: relative; }
.scene-slate {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 12px;
    letter-spacing: .22em;
    color: var(--dim);
    margin-bottom: 34px;
}
.scene-slate__tag { color: var(--text); }
.scene-slate__line { flex: 1; height: 1px; background: var(--stroke); }
.scene-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(34px, 5.6vw, 76px);
    line-height: 1.06;
    letter-spacing: -.01em;
    margin-bottom: 26px;
}
.scene-title em { font-style: normal; }
.scene-title--center { text-align: center; }
.scene-lede { font-size: clamp(16px, 1.6vw, 20px); color: var(--dim); max-width: 640px; }
.scene-lede--center { margin-inline: auto; text-align: center; }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Dark theme keeps the cinematic dark art; light theme swaps in the
       day-side hero, so hero chrome follows the theme. */
    color: #f2f4fb;
}
.hero .btn-play { color: #f2f4fb; }
.hero .btn-play__icon { border-color: rgba(242, 244, 251, .4); }
html[data-theme="light"] .hero { color: var(--text); }
html[data-theme="light"] .hero .btn-play { color: var(--text); }
html[data-theme="light"] .hero .btn-play__icon { border-color: rgba(24, 32, 64, .4); }
html[data-theme="light"] .hero__slate { color: rgba(40, 52, 90, .7); }
html[data-theme="light"] .hero__credit { display: none; }
html[data-theme="light"] .hero__line--grad .hero__word { filter: drop-shadow(0 0 30px rgba(198, 37, 127, .18)); }
html[data-theme="light"] .nav { color: var(--text); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
/* No overflow:hidden here — the wrap PANS, so its own clip edge would travel
   with it and cut a black bar on the trailing side; .hero__media clips. */
.hero__imgwrap { position: absolute; inset: 0; will-change: transform; }
.hero__img {
    position: absolute;
    inset: 0;
    width: 106%; height: 106%;
    max-width: none; /* Tailwind preflight caps img at 100%, killing the right-side bleed */
    margin: -3% 0 0 -3%;
    object-fit: cover;
}
.hero__img--light { display: none; }
html[data-theme="light"] .hero__img--dark { display: none; }
html[data-theme="light"] .hero__img--light { display: block; }
/* GSAP-driven orbital system over the light hero sky (see _solarSystem). */
.hero__orbits { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; }
html[data-theme="light"] .hero__orbits { display: block; }
#starfield { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__beam {
    position: absolute;
    top: -30%;
    left: -20%;
    width: 40%;
    height: 160%;
    background: linear-gradient(100deg, transparent, rgba(198, 37, 127, .16), rgba(71, 158, 245, .1), transparent);
    transform: skewX(-18deg) translateX(-60vw);
    filter: blur(6px);
}
.hero__grade {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 38%, transparent 0%, rgba(5, 6, 11, .5) 68%, rgba(5, 6, 11, .96) 100%),
        linear-gradient(to bottom, rgba(5, 6, 11, .62), transparent 34%, transparent 62%, var(--bg) 98%);
}
html[data-theme="light"] .hero__grade {
    background:
        radial-gradient(ellipse at 50% 38%, transparent 0%, rgba(241, 242, 248, .25) 70%, rgba(241, 242, 248, .8) 100%),
        linear-gradient(to bottom, rgba(241, 242, 248, .35), transparent 34%, transparent 62%, var(--bg) 98%);
}
.hero__bar {
    position: absolute;
    left: 0; right: 0;
    height: 7svh;
    background: #02030a;
    z-index: 3;
}
/* Light theme trades the black cinema letterbox for a white matte frame. */
html[data-theme="light"] .hero__bar { background: #fbfcfe; }
.hero__bar--top { top: 0; transform-origin: top; }
.hero__bar--bottom { bottom: 0; transform-origin: bottom; }

.hero__slate {
    position: absolute;
    top: calc(7svh + 20px);
    left: 46px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    letter-spacing: .24em;
    color: rgba(190, 200, 235, .65);
}
.hero__content { position: relative; z-index: 4; text-align: center; padding: 0 24px; max-width: 1240px; }
.hero__title {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(44px, 9.4vw, 132px);
    line-height: 1.02;
    letter-spacing: -.015em;
}
.hero__line { display: block; overflow: hidden; }
.hero__word { display: inline-block; will-change: transform; }
.hero__line--grad .hero__word {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 34px rgba(198, 37, 127, .35));
}
.hero__sub {
    margin: 30px auto 44px;
    max-width: 620px;
    font-size: clamp(15px, 1.7vw, 19px);
    color: #dbe1f2;
    /* Glass panel so the tagline reads over the busy hero art. */
    background: rgba(9, 12, 24, .38);
    border: 1px solid rgba(242, 244, 251, .16);
    border-radius: 20px;
    padding: 18px 30px;
    backdrop-filter: blur(14px) saturate(1.25);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
html[data-theme="light"] .hero__sub {
    color: #2c3350;
    background: rgba(255, 255, 255, .42);
    border-color: rgba(24, 32, 64, .16);
    box-shadow: 0 12px 40px rgba(20, 30, 60, .12);
}
.hero__cta { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }

.hero__credit { position: absolute; bottom: calc(7svh + 16px); right: 46px; z-index: 5; pointer-events: none; }
.hero__credit-dot {
    display: grid;
    place-items: center;
    width: 24px; height: 24px;
    border: 1px solid rgba(190, 200, 235, .5);
    border-radius: 50%;
    font-size: 11px;
    color: rgba(190, 200, 235, .8);
    cursor: default;
    pointer-events: auto;
}
.hero__credit-card {
    position: absolute;
    bottom: 32px; right: 0;
    width: 240px;
    background: rgba(8, 10, 20, .92);
    border: 1px solid var(--stroke);
    padding: 12px 14px;
    font-size: 10px;
    letter-spacing: .14em;
    color: var(--dim);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    visibility: hidden;
}
.hero__credit-dot:hover ~ .hero__credit-card,
.hero__credit-card:hover {
    opacity: 1;
    visibility: visible;
}

/* ============ BUTTONS ============ */
.btn-big {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 20px 38px;
    border-radius: 999px;
    overflow: hidden;
    font-family: var(--body);
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    cursor: pointer;
    isolation: isolate;
}
.btn-big__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--grad);
    transition: transform .4s cubic-bezier(.65, 0, .35, 1);
}
.btn-big:hover .btn-big__bg { transform: scale(1.06); }
.btn-big__arrow { transition: transform .3s ease; }
.btn-big:hover .btn-big__arrow { transform: translateX(6px); }
.btn-big--invert { color: #12131f; }
.btn-big--invert .btn-big__bg { background: #fff; }

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 12px;
    letter-spacing: .2em;
    cursor: pointer;
}
.btn-play__icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border: 1px solid rgba(242, 244, 251, .4);
    border-radius: 50%;
    font-size: 16px;
    transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.btn-play:hover .btn-play__icon {
    background: rgba(255, 255, 255, .1);
    border-color: #fff;
    transform: scale(1.08);
}

/* ============ MARQUEE ============ */
.marquee-band { padding: 90px 0 60px; overflow: hidden; }
.marquee { white-space: nowrap; will-change: transform; }
.marquee__inner { display: inline-flex; align-items: center; gap: 38px; padding-right: 38px; }
.marquee--a .marquee__inner span {
    /* Space Grotesk here: Unbounded's decorative interior cuts look glitchy in stroke-only rendering */
    font-family: var(--body);
    font-weight: 700;
    font-size: clamp(58px, 9vw, 128px);
    letter-spacing: .02em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--outline);
}
.marquee--a .marquee__inner i { font-style: normal; font-size: 30px; color: var(--magenta); }
.marquee--b { margin-top: 14px; }
.marquee--b .marquee__inner span {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(24px, 3.4vw, 44px);
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.marquee--b .marquee__inner i { font-style: normal; color: var(--dim); }

/* ============ WHY — STACKED DECK ============ */
.why { padding-top: 90px; }
.deck { position: relative; margin-top: 40px; }
.deck-card {
    position: sticky;
    top: 7svh;
    min-height: 86svh;
    width: min(1240px, calc(100% - 56px));
    margin-inline: auto;
    border-radius: 30px;
    border: 1px solid var(--stroke);
    background: linear-gradient(145deg, var(--card-a), var(--card-b));
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    padding: 70px;
    will-change: transform;
}
.deck-card + .deck-card { margin-top: 6svh; }
.deck-card__ghost {
    position: absolute;
    right: -30px;
    bottom: -70px;
    font-size: 380px;
    font-weight: 700;
    line-height: 1;
    color: var(--ghost);
    pointer-events: none;
}
.deck-card__kicker {
    font-size: 12px;
    letter-spacing: .26em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 22px;
}
.deck-card__body h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(26px, 3.6vw, 48px);
    line-height: 1.14;
    margin-bottom: 24px;
}
.deck-card__copy { color: var(--dim); font-size: clamp(15px, 1.4vw, 18px); max-width: 520px; }

/* deck mini-visualizations */
.deck-card__viz { justify-self: center; align-self: center; }
.deck-card__viz--bars { display: flex; align-items: flex-end; gap: 14px; height: 220px; }
.deck-card__viz--bars span {
    width: 34px;
    border-radius: 8px 8px 0 0;
    background: var(--grad);
    opacity: .85;
    height: 20%;
}
.deck-card__viz--bars span:nth-child(2) { height: 45%; }
.deck-card__viz--bars span:nth-child(3) { height: 70%; }
.deck-card__viz--bars span:nth-child(4) { height: 55%; }
.deck-card__viz--bars span:nth-child(5) { height: 92%; }

.deck-card__viz--radar { position: relative; width: 230px; height: 230px; }
.deck-card__viz--radar span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(198, 37, 127, .5);
    border-radius: 50%;
    animation: viz-ping 3s ease-out infinite;
}
.deck-card__viz--radar span:nth-child(2) { animation-delay: 1s; }
.deck-card__viz--radar span:nth-child(3) { animation-delay: 2s; }
@keyframes viz-ping {
    0% { transform: scale(.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

.deck-card__viz--grid {
    display: grid;
    grid-template-columns: repeat(3, 58px);
    gap: 12px;
}
.deck-card__viz--grid span {
    height: 58px;
    border-radius: 12px;
    border: 1px solid rgba(198, 37, 127, .45);
    background: rgba(198, 37, 127, .1);
    animation: viz-glow 2.6s ease-in-out infinite;
}
.deck-card__viz--grid span:nth-child(odd) { animation-delay: 1.3s; }
@keyframes viz-glow { 50% { background: rgba(198, 37, 127, .34); } }

.deck-card__viz--pulse { display: flex; gap: 18px; align-items: center; }
.deck-card__viz--pulse span {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--grad);
    animation: viz-bounce 1.4s ease-in-out infinite;
}
.deck-card__viz--pulse span:nth-child(2) { animation-delay: .18s; }
.deck-card__viz--pulse span:nth-child(3) { animation-delay: .36s; }
@keyframes viz-bounce { 50% { transform: translateY(-26px); } }

/* ============ PIPELINE ============ */
.pipeline__pin {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0 70px;
    overflow: hidden;
}
.pipeline__track {
    display: flex;
    gap: 26px;
    margin-top: 46px;
    padding-left: max(28px, calc((100vw - 1240px) / 2));
    padding-right: 12vw;
    width: max-content;
    will-change: transform;
}
/* Static (reduced-motion) fallback: no pin/scrub, so the track becomes a
   native horizontal scroller instead of clipping at the viewport edge. */
.no-motion .pipeline__scroller {
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-color: var(--magenta) transparent;
}
.no-motion .pipeline__scroller::-webkit-scrollbar { height: 8px; }
.no-motion .pipeline__scroller::-webkit-scrollbar-thumb { background: var(--magenta); border-radius: 4px; }
.no-motion .pipeline__scroller::-webkit-scrollbar-track { background: var(--stroke); }
.no-motion .pipeline__progress { display: none; }
.pipe-card {
    position: relative;
    width: 430px;
    flex-shrink: 0;
    border-radius: 24px;
    border: 1px solid var(--stroke);
    background: linear-gradient(160deg, var(--card-a), var(--card-b));
    box-shadow: var(--card-shadow);
    padding: 40px 36px 36px;
    transition: border-color .3s ease;
    transform-style: preserve-3d;
}
.pipe-card:hover { border-color: rgba(198, 37, 127, .55); }
.pipe-card__num {
    font-size: 74px;
    font-weight: 700;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: .9;
    margin-bottom: 20px;
}
.pipe-card h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 23px;
    margin-bottom: 20px;
}
.pipe-card ul { display: flex; flex-direction: column; gap: 12px; }
.pipe-card li {
    position: relative;
    padding-left: 22px;
    color: var(--dim);
    font-size: 15px;
}
.pipe-card li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--magenta);
}
.pipe-card--end {
    background: var(--grad);
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.pipe-card--end h3 { font-size: 34px; }
.pipe-card--end p { color: rgba(255, 255, 255, .9); font-size: 17px; }
.pipe-card--end .btn-big { align-self: flex-start; }

.pipeline__progress {
    margin-top: 48px;
    height: 2px;
    background: rgba(160, 175, 220, .18);
}
.pipeline__progress-fill { width: 0%; height: 100%; background: var(--grad); }

/* ============ SECURITY ============ */
.security { padding: 140px 0; }
.security__grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    align-items: center;
}
.radar {
    position: relative;
    width: min(430px, 80vw);
    aspect-ratio: 1;
    margin-inline: auto;
}
.radar__ring {
    position: absolute;
    border: 1px solid rgba(71, 158, 245, .3);
    border-radius: 50%;
}
.radar__ring--1 { inset: 0; }
.radar__ring--2 { inset: 17%; border-color: rgba(71, 158, 245, .22); }
.radar__ring--3 { inset: 34%; border-color: rgba(71, 158, 245, .16); }
.radar__sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(71, 158, 245, .4), transparent 26%);
    will-change: transform;
}
.radar__core {
    position: absolute;
    top: 50%; left: 50%;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--azure);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 26px rgba(71, 158, 245, .9);
}
.radar__blip {
    position: absolute;
    top: var(--y); left: var(--x);
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #9ed1ff;
    animation: blip 2.6s ease-out infinite;
}
@keyframes blip {
    0%, 20% { opacity: 0; transform: scale(.4); }
    35% { opacity: 1; transform: scale(1.25); }
    70%, 100% { opacity: 0; transform: scale(.8); }
}
.security__stats { margin-top: 44px; display: flex; flex-direction: column; }
.stat-row {
    display: flex;
    align-items: baseline;
    gap: 26px;
    padding: 18px 0;
    border-bottom: 1px solid var(--stroke);
}
.stat-row:first-child { border-top: 1px solid var(--stroke); }
.stat-row__value {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 700;
    background: var(--grad-blue);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    min-width: 190px;
}
.stat-row__label { color: var(--dim); font-size: 16px; }

/* ============ UPTIME ============ */
.uptime { padding: 150px 0; text-align: center; }
.uptime .scene-slate { max-width: 760px; margin-inline: auto; }
.uptime__big {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(70px, 15vw, 230px);
    line-height: 1;
    letter-spacing: .01em;
    display: inline-flex;
    align-items: baseline;
}
.uptime__digit, .uptime__dot, .uptime__pct {
    background: var(--grad-blue);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.uptime__digit { display: inline-block; will-change: transform, opacity; }
.uptime__pct { font-size: .38em; }
.uptime__label { margin-top: 8px; font-size: 13px; letter-spacing: .34em; color: var(--dim); }
.uptime__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 880px;
    margin: 60px auto 0;
    text-align: left;
    color: var(--dim);
    font-size: 16px;
}

/* ============ COMPAT ============ */
.compat { padding: 150px 0; }
.compat .scene-slate { max-width: 900px; margin-inline: auto; }
.compat-os { display: inline-block; will-change: transform, opacity; }
.compat-os--mac { color: var(--text); }
.compat-os--win {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.compat-vs { font-size: .5em; color: var(--dim); margin: 0 1.5vw; }
.compat__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 880px;
    margin: 54px auto 0;
}
.chip {
    padding: 13px 24px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: var(--panel);
    color: var(--text);
    font-size: 14.5px;
    transition: border-color .3s ease, transform .3s ease;
}
.chip:hover { border-color: rgba(198, 37, 127, .6); transform: translateY(-3px); }

/* ============ TEAM ============ */
.team { padding: 150px 0 120px; }
.team__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0 100px;
}
.team-stat { border-top: 2px solid; border-image: var(--grad) 1; padding-top: 26px; }
.team-stat__num {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(64px, 7vw, 110px);
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.team-stat__num em { font-style: normal; font-size: .5em; }
.team-stat__unit { margin: 12px 0 16px; font-size: 11px; letter-spacing: .24em; color: var(--dim); }
.team-stat p { color: var(--dim); font-size: 15px; }

.team__mission { max-width: 980px; }
.team__mission-line {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(20px, 2.9vw, 38px);
    line-height: 1.35;
    margin-bottom: 14px;
    will-change: transform, opacity;
}

/* ============ FINALE ============ */
.finale {
    position: relative;
    min-height: 100svh;
    padding: 90px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: center;
}
.finale__glow {
    position: absolute;
    top: 8%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(192, 37, 127, .16), transparent 62%);
    pointer-events: none;
}
/* Vertically centered between the nav clearance and the footer. */
.finale__inner { position: relative; margin: auto; }
.finale__kicker { font-size: 12px; letter-spacing: .3em; color: var(--dim); margin-bottom: clamp(14px, 2.5svh, 30px); }
.finale__title {
    font-family: var(--display);
    font-weight: 900;
    /* Height-aware: three stacked lines must fit the viewport, so the size is
       capped by svh as well as vw — no more decapitated READY on tall pages. */
    font-size: clamp(44px, min(12vw, 15svh), 190px);
    line-height: .98;
    letter-spacing: -.01em;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.finale__title span { display: inline-block; will-change: transform; }
.finale__sub {
    margin: clamp(18px, 3svh, 36px) auto clamp(24px, 4svh, 48px);
    max-width: 520px;
    color: var(--dim);
    font-size: 18px;
}
.finale__actions {
    display: flex;
    gap: 26px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.finale__support { margin-top: clamp(20px, 3.5svh, 44px); font-size: 11px; letter-spacing: .18em; color: var(--dim); }
.finale__support a { color: var(--text); text-decoration: underline; }

/* ============ FOOTER ============ */
.footer {
    /* Pinned to the bottom of the one-screen finale (flex column). */
    margin-top: auto;
    border-top: 1px solid var(--stroke);
    padding: 30px 0 56px;
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--dim);
}
.footer__logo { height: 20px; width: auto; }
.footer__links { display: flex; gap: 24px; }
.footer__links a:hover { color: var(--text); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1020px) {
    .deck-card { grid-template-columns: 1fr; padding: 50px 34px; min-height: 74svh; }
    .deck-card__viz { display: none; }
    .security__grid { grid-template-columns: 1fr; gap: 40px; }
    .uptime__cols { grid-template-columns: 1fr; }
    .team__stats { grid-template-columns: 1fr; gap: 44px; }
    .pipe-card { width: min(430px, 85vw); }
}
@media (max-width: 720px) {
    .nav { padding: 18px 22px; }
    .nav__logo img { height: 24px; }
    .nav__right { gap: 10px; }
    .btn-login { padding: 8px 14px; max-width: 120px; }
    .btn-login__label { font-size: 10px; letter-spacing: .16em; }
    .nav__menu-btn .mono { font-size: 10px; letter-spacing: .14em; }
    /* One row only: at the top the demo CTA is collapsed (even invisible it
       kept its width and wrapped the nav); once scrolled it expands into the
       row while login + theme collapse away — a scrolling user isn't logging
       in and is happy with their theme. Negative margins cancel the flex gap
       of whichever side is collapsed. Opacity is scrubbed to scroll from JS
       (_wireNavScroll); widths flip INSTANTLY at the is-on toggle — both
       sides are transparent then, and any width transition lets grow outpace
       shrink for a few frames, which overflows the row and wrap-bounces. */
    .btn-demo {
        transform: none;
        max-width: 0; padding: 9px 0; margin-left: -10px;
        overflow: hidden;
        transition: none;
    }
    .btn-demo .mono { font-size: 9px; letter-spacing: .1em; white-space: nowrap; }
    .btn-demo.is-on { max-width: 150px; padding: 9px 14px; margin-left: 0; }
    .btn-login, .nav__theme {
        overflow: hidden;
        transition: none;
    }
    .btn-demo.is-on ~ .btn-login,
    .btn-demo.is-on ~ .nav__theme {
        max-width: 0; padding-left: 0; padding-right: 0; margin-left: -10px;
        border-color: transparent; pointer-events: none;
    }
    .hero__slate, .hero__credit { display: none; }
    .scrubber { padding: 10px 20px; }
    .scrubber__scene { display: none; }
    .stat-row__value { min-width: 130px; }
    .menu__foot { flex-direction: column; gap: 8px; }
}

/* ============ REDUCED MOTION / STATIC FALLBACK ============ */
@media (prefers-reduced-motion: reduce) {
    .scrubber__rec, .radar__blip, .radar__sweep,
    .deck-card__viz--radar span, .deck-card__viz--grid span, .deck-card__viz--pulse span {
        animation: none !important;
    }
}
.no-motion .loader { display: none; }
.no-motion .cursor, .no-motion .cursor-ring { display: none; }

/* ============ HOST-APP INTEGRATION OVERRIDES ============ */
/* The landing page ships inside the Blazor Website, whose global sheets
   (blazor.bootstrap.css, app.css, output.css) apply page-hostile rules.
   Scoped to html.vems-marketing-host (stamped pre-paint by Home.razor). */

/* blazor.bootstrap.css sets main { height: 100vh; overflow-x: hidden } which
   turns <main> into a one-viewport inner scroller — the window never scrolls
   and every ScrollTrigger (reveals, pins, the HUD scrubber) stays at zero.
   Scrolling must live on the window. */
html.vems-marketing-host main#smooth-content {
    height: auto !important;
    flex: none !important;
    overflow: visible !important;
    overflow-x: clip !important;
}

/* Blazor's <FocusOnNavigate Selector="h1"> focuses the hero title on load,
   which paints a focus ring around EVERY FRAME. EVERY DOLLAR. */
html.vems-marketing-host h1:focus,
html.vems-marketing-host h1:focus-visible {
    outline: none;
}

/* app.css forces Inter with !important on html/body/button; reclaim the
   page's own stacks (later-in-document + !important wins the tie). */
html.vems-marketing-host,
html.vems-marketing-host body,
html.vems-marketing-host button {
    font-family: var(--body) !important;
}
html.vems-marketing-host .mono {
    font-family: var(--mono) !important;
}
