/* ==========================================================================
   PULSAR — marketing site design system
   Light corporate base, dark cinematic sections.
   Palette sampled from the product UI (navy #0B2856) and the brand assets.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Surfaces */
    --white: #ffffff;
    --paper: #f6f7f9;
    --paper-2: #eef1f5;
    --night: #000000;
    /* pure black — matches the mockup backgrounds exactly */
    --navy: #0b2856;
    --navy-deep: #061631;

    /* Ink */
    --ink: #0a0c10;
    /* headline black */
    --lead: #1d52cf;
    /* brand blue — first word of every heading */
    --body: #48546a;
    --muted: #6b7789;
    --muted-2: #8b96a8;

    /* Accent */
    --blue: #2563eb;
    --blue-strong: #1d52cf;
    --blue-soft: #e8effd;
    --blue-line: #c9dbfb;
    --indigo: #372981;
    /* from the product intro animation */

    /* Signal */
    --pos: #0ea371;
    --neg: #e5484d;

    /* Lines */
    --line: #e3e7ee;
    --line-strong: #d3dae4;
    --line-dark: rgba(255, 255, 255, 0.12);

    /* Radii */
    --r-xs: 8px;
    --r-sm: 12px;
    --r: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(10, 22, 45, 0.04), 0 2px 8px rgba(10, 22, 45, 0.04);
    --shadow: 0 2px 4px rgba(10, 22, 45, 0.04), 0 12px 32px rgba(10, 22, 45, 0.07);
    --shadow-lg: 0 4px 8px rgba(10, 22, 45, 0.05), 0 28px 64px rgba(10, 22, 45, 0.12);
    --shadow-xl: 0 40px 100px rgba(10, 22, 45, 0.18);

    /* Metrics */
    --header-h: 72px;
    --container: 1240px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
    margin: 0;
    background: var(--white);
    color: var(--body);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    font-feature-settings: 'kern' 1, 'liga' 1, 'cv11' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--blue-strong);
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.032em;
    line-height: 1.08;
    margin: 0;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

::selection {
    background: var(--blue);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 12px 20px;
    background: var(--ink);
    color: #fff;
    border-radius: 0 0 var(--r-xs) var(--r-xs);
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.container--narrow {
    max-width: 860px;
}

.section {
    padding-block: clamp(72px, 9vw, 132px);
    position: relative;
}

.section--tight {
    padding-block: clamp(56px, 6vw, 88px);
}

.section--paper {
    background: var(--paper);
}

.section--line {
    border-top: 1px solid var(--line);
}

/* Dark cinematic sections */
.section--night {
    background: var(--night);
    color: rgba(255, 255, 255, 0.72);
}

.section--navy {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.72);
}

.section--night h1,
.section--night h2,
.section--night h3,
.section--night h4,
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
    color: #fff;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */

/* First word of every heading carries the dark blue. */
.lead-word {
    color: var(--lead);
}

.section--night .lead-word,
.section--navy .lead-word,
.hero .lead-word,
.cta .lead-word,
.mega-aside .lead-word {
    color: #7cabff;
}

.display {
    font-size: clamp(2.6rem, 6.4vw, 4.4rem);
    letter-spacing: -0.042em;
    line-height: 1.02;
}

.h1 {
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    letter-spacing: -0.038em;
    line-height: 1.05;
}

.h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    letter-spacing: -0.034em;
    line-height: 1.08;
}

.h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    letter-spacing: -0.026em;
    line-height: 1.2;
}

.h4 {
    font-size: 1.09rem;
    letter-spacing: -0.018em;
    line-height: 1.3;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'DM Mono', ui-monospace, SFMono-Regular, monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue-strong);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--blue-line);
}

.section--night .eyebrow,
.section--navy .eyebrow {
    color: #7cabff;
}

.section--night .eyebrow::before,
.section--navy .eyebrow::before {
    background: rgba(124, 171, 255, 0.4);
}

.lede {
    font-size: clamp(1.06rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    color: var(--body);
    max-width: 62ch;
}

.section--night .lede,
.section--navy .lede {
    color: rgba(255, 255, 255, 0.66);
}

.section-head {
    max-width: 780px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head .lede {
    margin-top: 20px;
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head--center .eyebrow::before {
    display: none;
}

.section-head--center .lede {
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 46px;
    padding-inline: 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.008em;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s var(--ease), color .18s var(--ease),
        border-color .18s var(--ease), transform .18s var(--ease),
        box-shadow .18s var(--ease);
}

.btn:active {
    transform: translateY(1px);
}

.btn svg {
    flex: none;
    transition: transform .22s var(--ease);
}

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

.btn--primary {
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background: var(--lead);
    box-shadow: var(--shadow);
}

.btn--blue {
    background: var(--blue);
    color: #fff;
}

.btn--blue:hover {
    background: var(--blue-strong);
}

.btn--ghost {
    background: var(--white);
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn--ghost:hover {
    border-color: var(--ink);
    background: var(--white);
}

.btn--quiet {
    background: transparent;
    color: var(--body);
}

.btn--quiet:hover {
    color: var(--ink);
    background: var(--paper-2);
}

/* On dark */
.btn--light {
    background: #fff;
    color: var(--ink);
}

.btn--light:hover {
    background: #e9eefb;
}

.btn--outline-light {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-color: rgba(255, 255, 255, .28);
    backdrop-filter: blur(8px);
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .5);
}

.btn--lg {
    height: 54px;
    padding-inline: 30px;
    font-size: 1rem;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Text link with arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--blue-strong);
}

.link-arrow svg {
    transition: transform .22s var(--ease);
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

.section--night .link-arrow,
.section--navy .link-arrow {
    color: #7cabff;
}

/* --------------------------------------------------------------------------
   6. Header + dynamic mega menu
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background .3s var(--ease), border-color .3s var(--ease),
        box-shadow .3s var(--ease);
    border-bottom: 1px solid transparent;
}

/* Transparent over the hero video */
.site-header--over {
    background: transparent;
}

.site-header--over .brand-name,
.site-header--over .nav-link,
.site-header--over .nav-trigger {
    color: #fff;
}

.site-header--over .brand-mark {
    filter: brightness(0) invert(1);
}

.site-header--over .btn--ghost {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
}

.site-header--over .btn--ghost:hover {
    background: rgba(255, 255, 255, .18);
}

.site-header--over .btn--primary {
    background: #fff;
    color: var(--ink);
}

.site-header--over .btn--primary:hover {
    background: #dbe6fb;
}

.site-header--over .burger span {
    background: #fff;
}

/* Floating over a LIGHT hero: stay transparent, but keep the ink treatment. */
.site-header--over-light .brand-name,
.site-header--over-light .nav-link,
.site-header--over-light .nav-trigger {
    color: var(--ink);
}

.site-header--over-light .brand-mark {
    filter: none;
}

.site-header--over-light .nav-trigger:hover,
.site-header--over-light .nav-link:hover,
.site-header--over-light .nav-item.is-open .nav-trigger {
    background: rgba(10, 12, 16, .06);
}

.site-header--over-light .btn--ghost {
    background: rgba(255, 255, 255, .75);
    color: var(--ink);
    border-color: var(--line-strong);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.site-header--over-light .btn--ghost:hover {
    background: var(--white);
    border-color: var(--ink);
}

.site-header--over-light .btn--primary {
    background: var(--ink);
    color: #fff;
}

.site-header--over-light .btn--primary:hover {
    background: var(--lead);
}

.site-header--over-light .burger span {
    background: var(--ink);
}

/* Solid state: scrolled, or a panel is open, or non-hero pages */
.site-header--solid {
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom-color: var(--line);
}

.site-header--solid .brand-name,
.site-header--solid .nav-trigger,
.site-header--solid .nav-link {
    color: var(--ink);
}

.site-header--solid .brand-mark {
    filter: none;
}

.site-header--solid .btn--ghost {
    background: var(--white);
    color: var(--ink);
    border-color: var(--line-strong);
}

.site-header--solid .btn--primary {
    background: var(--ink);
    color: #fff;
}

.site-header--solid .burger span {
    background: var(--ink);
}

.header-inner {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: none;
    margin-right: 8px;
}

.brand-mark {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: filter .3s var(--ease), transform .5s var(--ease-out);
}

.brand:hover .brand-mark {
    transform: rotate(90deg);
}

.brand-name {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.19em;
    color: var(--ink);
    transition: color .3s var(--ease);
}

/* Primary nav */
.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 10px;
}

.nav-item {
    position: static;
}

.nav-trigger,
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding-inline: 14px;
    border: 0;
    background: none;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: background .18s var(--ease), color .3s var(--ease), opacity .18s;
}

.nav-trigger:hover,
.nav-link:hover,
.nav-item.is-open .nav-trigger {
    background: rgba(10, 12, 16, .06);
}

.site-header--over .nav-trigger:hover,
.site-header--over .nav-link:hover,
.site-header--over .nav-item.is-open .nav-trigger {
    background: rgba(255, 255, 255, .14);
}

.nav-trigger .chev {
    transition: transform .26s var(--ease);
    opacity: .55;
}

.nav-item.is-open .nav-trigger .chev {
    transform: rotate(180deg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* The dynamic panel */
.mega {
    position: absolute;
    top: calc(var(--header-h) - 6px);
    left: 0;
    right: 0;
    z-index: 99;
    padding-inline: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .26s var(--ease), transform .32s var(--ease-out),
        visibility 0s linear .3s;
    pointer-events: none;
}

.nav-item.is-open .mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity .26s var(--ease), transform .38s var(--ease-out),
        visibility 0s;
}

/* Frosted glass: the panel floats over the hero and page content, blurring
   whatever is behind it rather than blocking it out. */
.mega-inner {
    max-width: var(--container);
    margin-inline: auto;
    /* Dense enough that large hero type behind it cannot read through, but
       still translucent — the mesh stays visible as soft texture. */
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(190%) blur(44px);
    -webkit-backdrop-filter: saturate(190%) blur(44px);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: var(--r-lg);
    box-shadow:
        0 28px 70px rgba(10, 22, 45, .16),
        0 2px 8px rgba(10, 22, 45, .06),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 340px;
}

/* Where backdrop-filter is unsupported, fall back to a near-opaque panel so
   the copy never sits on raw page content. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .mega-inner {
        background: rgba(255, 255, 255, .97);
        border-color: var(--line);
    }
}

.mega-inner--single {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: 0;
}

.mega--anchored {
    padding-inline: 0;
}

.mega-main {
    padding: 26px;
}

.mega-title {
    font-family: 'DM Mono', monospace;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 16px;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

/* Each entry is its own translucent pane sitting on the frosted panel. */
.mega-link {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: var(--r-sm);
    color: inherit;
    background: rgba(255, 255, 255, .5);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
    transition: background .18s var(--ease), border-color .18s var(--ease),
        box-shadow .18s var(--ease), transform .18s var(--ease);
}

.mega-link:hover {
    background: rgba(255, 255, 255, .88);
    border-color: rgba(255, 255, 255, .95);
    box-shadow:
        0 10px 26px rgba(10, 22, 45, .1),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    transform: translateY(-1px);
}

.mega-ico {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(232, 239, 253, .8);
    color: var(--lead);
    border: 1px solid rgba(29, 82, 207, .18);
    transition: background .16s var(--ease), color .16s var(--ease),
        border-color .16s var(--ease);
}

.mega-link:hover .mega-ico {
    background: var(--lead);
    color: #fff;
    border-color: var(--lead);
}

.mega-link h4 {
    font-size: .96rem;
    font-weight: 600;
    letter-spacing: -.012em;
    margin-bottom: 3px;
}

.mega-link p {
    font-size: .845rem;
    line-height: 1.45;
    color: var(--muted);
}

/* Promo rail inside the mega menu */
.mega-aside {
    position: relative;
    padding: 26px;
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .7);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    isolation: isolate;
}

.mega-aside::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 90% at 85% 0%, rgba(55, 41, 129, .75), transparent 62%),
        radial-gradient(90% 70% at 10% 100%, rgba(37, 99, 235, .38), transparent 60%);
}

.mega-aside .tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    font-family: 'DM Mono', monospace;
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: auto;
}

.mega-aside h4 {
    color: #fff;
    font-size: 1.22rem;
    letter-spacing: -.028em;
    margin: 24px 0 8px;
}

.mega-aside p {
    font-size: .875rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

/* Burger */
.burger {
    display: none;
    position: relative;
    width: 42px;
    height: 42px;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 0;
}

/* All three bars share one origin, so open/closed is a pure transform swap. */
.burger span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 1.6px;
    margin: -0.8px 0 0 -10px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease), background .3s;
}

.burger span:nth-child(1) {
    transform: translateY(-6px);
}

.burger span:nth-child(3) {
    transform: translateY(6px);
}

body.is-drawer .burger span:nth-child(1) {
    transform: rotate(45deg);
}

body.is-drawer .burger span:nth-child(2) {
    opacity: 0;
}

body.is-drawer .burger span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile drawer */
.drawer {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 98;
    background: #fff;
    padding: 22px 24px 40px;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s var(--ease), transform .3s var(--ease-out), visibility 0s linear .3s;
}

body.is-drawer .drawer {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .26s var(--ease), transform .3s var(--ease-out), visibility 0s;
}

.drawer-group+.drawer-group {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.drawer-group>span {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 12px;
}

.drawer a.d-link {
    display: block;
    padding: 13px 0;
    font-size: 1.06rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.drawer a.d-link:last-of-type {
    border-bottom: 0;
}

.drawer a.d-link small {
    display: block;
    font-size: .84rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--muted);
    margin-top: 3px;
}

.drawer .btn {
    width: 100%;
    margin-top: 12px;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: min(100svh, 940px);
    display: flex;
    align-items: flex-end;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: clamp(56px, 7vw, 88px);
    overflow: hidden;
    background: var(--navy-deep);
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media video,
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to right, rgba(4, 14, 32, .92) 0%, rgba(4, 14, 32, .74) 34%, rgba(4, 14, 32, .28) 66%, rgba(4, 14, 32, .12) 100%),
        linear-gradient(to bottom, rgba(4, 14, 32, .58) 0%, rgba(4, 14, 32, .1) 32%, rgba(4, 14, 32, .5) 82%, rgba(4, 14, 32, .82) 100%);
}

.hero-grain {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .5;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 3px 3px;
}

.hero-inner {
    position: relative;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
    margin-bottom: 26px;
}

.hero-badge b {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--blue);
    font-family: 'DM Mono', monospace;
    font-size: .64rem;
    font-weight: 500;
    letter-spacing: .13em;
    text-transform: uppercase;
}

/* Cycling typewriter headline */
.hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.044em;
    line-height: 1.03;
    max-width: 17ch;
    min-height: 2.1em;
    /* reserve space so the line count can't shift the layout */
    text-wrap: balance;
}

.typewriter-caret {
    display: inline-block;
    width: 3px;
    height: 0.82em;
    margin-left: 0.06em;
    vertical-align: -0.04em;
    background: var(--blue);
    border-radius: 1px;
    animation: caret 1.05s step-end infinite;
}

@keyframes caret {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero .lede {
    color: rgba(255, 255, 255, .8);
    margin-top: 26px;
    max-width: 54ch;
}

.hero .btn-row {
    margin-top: 36px;
}

.hero-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 26px;
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    max-width: 720px;
}

.hero-foot span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, .74);
    font-size: .875rem;
}

.hero-foot svg {
    color: #7cabff;
    flex: none;
}

/* --------------------------------------------------------------------------
   7b. Light hero — for the wireframe-mesh footage, which is dark linework on
   white. The video is mirrored so its dense side sits right and the headline
   gets clean space on the left.
   -------------------------------------------------------------------------- */
.hero--light {
    background: var(--white);
}

.hero--light .hero-media video,
.hero--light .hero-media img {
    transform: scaleX(-1);
    object-position: center center;
}

.hero--light .hero-scrim {
    background:
        linear-gradient(to right,
            rgba(255, 255, 255, .97) 0%,
            rgba(255, 255, 255, .93) 26%,
            rgba(255, 255, 255, .68) 46%,
            rgba(255, 255, 255, .18) 70%,
            rgba(255, 255, 255, 0) 100%),
        linear-gradient(to bottom,
            rgba(255, 255, 255, .88) 0%,
            rgba(255, 255, 255, .3) 14%,
            rgba(255, 255, 255, 0) 38%,
            rgba(255, 255, 255, .3) 86%,
            rgba(255, 255, 255, .8) 100%);
}

.hero--light .hero-grain {
    display: none;
}

.hero--light h1 {
    color: var(--ink);
}

.hero--light .lead-word {
    color: var(--lead);
}

.hero--light .lede {
    color: var(--body);
}

.hero--light .typewriter-caret {
    background: var(--lead);
}

.hero--light .hero-badge {
    background: rgba(255, 255, 255, .7);
    border-color: var(--line-strong);
    color: var(--body);
    box-shadow: 0 2px 10px rgba(10, 22, 45, .05);
}

.hero--light .hero-badge b {
    background: var(--lead);
    color: #fff;
}

.hero--light .hero-foot {
    border-top-color: var(--line);
}

.hero--light .hero-foot span {
    color: var(--muted);
}

.hero--light .hero-foot svg {
    color: var(--lead);
}

/* Narrow screens: copy spans the full width, so wash the mesh back further. */
@media (max-width: 760px) {
    .hero--light .hero-scrim {
        background:
            linear-gradient(to right,
                rgba(255, 255, 255, .96) 0%,
                rgba(255, 255, 255, .91) 55%,
                rgba(255, 255, 255, .62) 100%),
            linear-gradient(to bottom,
                rgba(255, 255, 255, .9) 0%,
                rgba(255, 255, 255, .34) 18%,
                rgba(255, 255, 255, .22) 58%,
                rgba(255, 255, 255, .72) 100%);
    }
}

/* --------------------------------------------------------------------------
   8. Page hero (subpages)
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    padding-top: calc(var(--header-h) + clamp(52px, 7vw, 88px));
    padding-bottom: clamp(40px, 5vw, 64px);
    background:
        radial-gradient(80% 120% at 50% -20%, var(--blue-soft), transparent 62%),
        var(--white);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .84rem;
    color: var(--muted);
    margin-bottom: 22px;
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--ink);
}

.breadcrumb svg {
    opacity: .45;
}

.breadcrumb [aria-current] {
    color: var(--ink);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   9. Video / cinema frame
   -------------------------------------------------------------------------- */
/* No frame, no shadow — the recording sits flush in the page. */
.cinema {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: transparent;
}

.cinema video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: transparent;
}

.cinema-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(to top, rgba(4, 8, 18, .82), transparent);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.cinema:hover .cinema-bar,
.cinema:focus-within .cinema-bar {
    opacity: 1;
    transform: none;
}

.vbtn {
    width: 36px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: background .18s var(--ease);
}

.vbtn:hover {
    background: rgba(255, 255, 255, .26);
}

.vbtn svg {
    width: 15px;
    height: 15px;
}

.vprogress {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .25);
    overflow: hidden;
    cursor: pointer;
}

.vprogress i {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 2px;
}

.vtime {
    font-family: 'DM Mono', monospace;
    font-size: .72rem;
    color: rgba(255, 255, 255, .8);
    flex: none;
    font-variant-numeric: tabular-nums;
}

/* Caption strip under a video */
.cinema-caption {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 18px;
    font-size: .85rem;
    color: var(--muted);
}

.cinema-caption span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cinema-caption span::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
}

/* --------------------------------------------------------------------------
   10. Cards & grids
   -------------------------------------------------------------------------- */
.grid {
    display: grid;
    gap: 20px;
}

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

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

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

.card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--white);
    transition: transform .28s var(--ease-out), box-shadow .28s var(--ease),
        border-color .28s var(--ease);
}

.card--link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    font-size: .95rem;
    line-height: 1.6;
    color: var(--body);
}

.card .link-arrow {
    margin-top: 18px;
}

.card-ico {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--blue-soft);
    border: 1px solid var(--blue-line);
    color: var(--lead);
    margin-bottom: 20px;
}

.section--night .card,
.section--navy .card {
    background: rgba(255, 255, 255, .035);
    border-color: var(--line-dark);
}

.section--night .card p,
.section--navy .card p {
    color: rgba(255, 255, 255, .64);
}

.section--night .card-ico,
.section--navy .card-ico {
    background: rgba(124, 171, 255, .12);
    border-color: rgba(124, 171, 255, .26);
    color: #7cabff;
}

/* Capability panels — the numbered list used on feature pages */
.panels {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

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

.panel {
    background: var(--white);
    padding: 30px;
    transition: background .22s var(--ease);
}

.panel:hover {
    background: var(--paper);
}

.panel-num {
    font-family: 'DM Mono', monospace;
    font-size: .72rem;
    letter-spacing: .1em;
    color: var(--blue-strong);
    margin-bottom: 16px;
}

.panel h3 {
    font-size: 1.16rem;
    margin-bottom: 10px;
}

.panel p {
    font-size: .93rem;
    line-height: 1.62;
}

.panel ul {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.panel li {
    position: relative;
    padding-left: 22px;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--body);
}

.panel li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .52em;
    width: 11px;
    height: 1.5px;
    background: var(--blue-line);
}

.section--night .panels,
.section--navy .panels {
    background: var(--line-dark);
    border-color: var(--line-dark);
}

.section--night .panel,
.section--navy .panel {
    background: #05070c;
}

.section--night .panel:hover,
.section--navy .panel:hover {
    background: #0a0f19;
}

.section--night .panel p,
.section--night .panel li,
.section--navy .panel p,
.section--navy .panel li {
    color: rgba(255, 255, 255, .64);
}

/* --------------------------------------------------------------------------
   11. Split feature rows
   -------------------------------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}

.split--reverse .split-media {
    order: -1;
}

.split-copy .h2 {
    margin-bottom: 20px;
}

.split-copy .btn-row,
.split-copy .link-arrow {
    margin-top: 28px;
}

.feature-list {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.feature-list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    font-size: .96rem;
    line-height: 1.55;
}

.feature-list b {
    color: var(--ink);
    font-weight: 600;
}

.section--night .feature-list b,
.section--navy .feature-list b {
    color: #fff;
}

.check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--lead);
    display: grid;
    place-items: center;
    margin-top: 3px;
}

.section--night .check,
.section--navy .check {
    background: rgba(124, 171, 255, .14);
    color: #7cabff;
}

/* --------------------------------------------------------------------------
   12. Device mockups
   -------------------------------------------------------------------------- */
.shot {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    background: var(--paper);
}

.shot img {
    width: 100%;
    height: auto;
}

/* Mockups shot on pure black blend straight into .section--night */
.shot--bleed {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

/* A single device, centred — used where the mockup's own black background
   dissolves straight into a .section--night. */
.phone-solo {
    display: grid;
    place-items: center;
}

.phone-solo img {
    width: min(100%, 440px);
    height: auto;
}

.phone-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 44px);
    align-items: center;
}

.phone-pair img {
    width: 100%;
    height: auto;
}

.phone-pair .p-b {
    transform: translateY(clamp(16px, 4vw, 52px));
}

/* --------------------------------------------------------------------------
   13. Metrics / stat rows
   -------------------------------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border-block: 1px solid var(--line);
}

.stat {
    background: var(--white);
    padding: 30px 26px;
}

.stat b {
    display: block;
    font-size: clamp(1.6rem, 2.6vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -.035em;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 7px;
}

.stat span {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.45;
    display: block;
}

.section--night .stats,
.section--navy .stats {
    background: var(--line-dark);
    border-color: var(--line-dark);
}

.section--night .stat,
.section--navy .stat {
    background: var(--night);
}

.section--night .stat b,
.section--navy .stat b {
    color: #fff;
}

/* --------------------------------------------------------------------------
   14. Workflow steps
   -------------------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 28px;
    border-top: 2px solid var(--line);
    counter-increment: step;
}

.step::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 44px;
    height: 2px;
    background: var(--blue);
}

.step-num {
    font-family: 'DM Mono', monospace;
    font-size: .72rem;
    letter-spacing: .12em;
    color: var(--blue-strong);
    margin-bottom: 12px;
}

.step h3 {
    font-size: 1.14rem;
    margin-bottom: 9px;
}

.step p {
    font-size: .92rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta {
    position: relative;
    overflow: hidden;
    background: var(--navy-deep);
    border-radius: var(--r-xl);
    padding: clamp(44px, 6vw, 76px);
    text-align: center;
    isolation: isolate;
}

.cta::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(90% 120% at 50% -10%, rgba(55, 41, 129, .8), transparent 60%),
        radial-gradient(70% 90% at 12% 110%, rgba(37, 99, 235, .42), transparent 60%);
}

.cta h2 {
    color: #fff;
    margin-inline: auto;
    max-width: 18ch;
}

.cta .lede {
    color: rgba(255, 255, 255, .7);
    margin: 20px auto 0;
    max-width: 52ch;
}

.cta .btn-row {
    margin-top: 34px;
    justify-content: center;
}

.cta-note {
    margin-top: 22px;
    font-size: .82rem;
    color: rgba(255, 255, 255, .5);
}

/* --------------------------------------------------------------------------
   16. Footer — PULSAR banner fading up into the page
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding-top: clamp(56px, 6vw, 82px);
    padding-bottom: clamp(40px, 7vw, 100px);
}

/* Content is laid over the banner backdrop. */
.site-footer > .container {
    position: relative;
    z-index: 1;
}

/* The banner is now the footer BACKGROUND — risk notice and links sit over it.
   object-fit:contain guarantees the full mark renders and is never cropped. */
.footer-banner {
    position: absolute;
    inset: 0;
    margin: 0;
    z-index: 0;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    user-select: none;
}

.footer-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
    -webkit-mask-image: none;
    mask-image: none;
    opacity: .5;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 44px;
    padding-bottom: 52px;
}

.footer-brand .brand {
    margin-bottom: 18px;
}

.footer-brand p {
    font-size: .92rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 34ch;
}

.footer-col h4 {
    font-family: 'DM Mono', monospace;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.footer-col a {
    font-size: .92rem;
    color: var(--body);
    transition: color .16s var(--ease);
}

.footer-col a:hover {
    color: var(--ink);
}

.footer-risk {
    position: relative;
    padding: 22px 26px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    /* Opaque: the banner must never read through the risk notice. */
    background: var(--paper);
    font-size: .8rem;
    line-height: 1.6;
    color: var(--muted);
}

.footer-risk b {
    color: var(--body);
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 26px;
    padding: 24px 0 4px;
    border-top: 1px solid var(--line);
    font-size: .84rem;
    color: var(--muted);
}

.footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-bottom a {
    color: var(--muted);
}

.footer-bottom a:hover {
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   17. Beta request modal
   -------------------------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), visibility 0s linear .25s;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .25s var(--ease), visibility 0s;
}

.modal-scrim {
    position: absolute;
    inset: 0;
    background: rgba(6, 14, 30, .55);
    backdrop-filter: blur(6px);
    border: 0;
    padding: 0;
    cursor: pointer;
}

.modal-card {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: var(--r-lg);
    padding: 34px;
    box-shadow: var(--shadow-xl);
    transform: translateY(14px) scale(.985);
    transition: transform .32s var(--ease-out);
}

.modal.is-open .modal-card {
    transform: none;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    color: var(--muted);
}

.modal-close:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}

.modal-card h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.modal-card>p {
    font-size: .94rem;
    color: var(--body);
    margin-bottom: 24px;
}

.field {
    display: block;
    margin-bottom: 16px;
}

.field span {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xs);
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.field textarea {
    min-height: 104px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 0;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-soft);
}

.modal .btn {
    width: 100%;
}

.modal-note {
    margin-top: 16px;
    font-size: .78rem;
    line-height: 1.55;
    color: var(--muted);
    text-align: center;
}

/* --------------------------------------------------------------------------
   18. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

.reveal[data-d="1"] {
    transition-delay: .08s;
}

.reveal[data-d="2"] {
    transition-delay: .16s;
}

.reveal[data-d="3"] {
    transition-delay: .24s;
}

.reveal[data-d="4"] {
    transition-delay: .32s;
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
    }

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

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 940px) {
    :root {
        --header-h: 64px;
    }

    .nav,
    .header-actions .btn--ghost,
    .header-actions .desktop-only {
        display: none;
    }

    .burger {
        display: block;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .split--reverse .split-media {
        order: 0;
    }

    .panels-2 {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-h) + 96px);
    }

    .hero h1 {
        min-height: 3.2em;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
    }

    .container {
        padding-inline: 18px;
    }

    .header-inner {
        padding-inline: 18px;
    }

    .card,
    .panel {
        padding: 24px;
    }

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

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

    .footer-top {
        grid-template-columns: 1fr;
    }

    .cta {
        border-radius: var(--r-lg);
    }

    .hero h1 {
        min-height: 4.3em;
    }

    .modal-card {
        padding: 26px 22px;
    }

    .phone-pair .p-b {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   20. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .typewriter-caret {
        display: none;
    }
}

@media print {

    .site-header,
    .drawer,
    .modal,
    .footer-banner,
    .cinema-bar {
        display: none !important;
    }

    body {
        color: #000;
    }
}
