/*
 * Instrument — the app's world for the site around the panels.
 *
 * The Cloud's DESIGN.md, applied to marketing: one ground, one signal
 * colour, ink buttons, sentence case, hairlines that mean something, and
 * the signal line under every page title as the only ornament. Atmosphere
 * (aurora, orbs, section washes) is gone; the product carries the page.
 * Loaded last, so it decides.
 */

/* ---------- Palette ---------- */
:root[data-theme="light"] {
    --bg-deep: #f3f6fa;
    --bg-elevated: #ffffff;
    --bg-surface: #eef2f7;
    --bg-hover: #e6ecf3;
    --text-primary: #0b1b2b;
    --text-secondary: #3d5670;
    --text-muted: #5f7490;
    --accent-primary: #0e7490;
    --accent-glow: #06b6d4;
    --accent-cyan: #0e7490;
    --success: #12a66b;
    --warning: #b4730a;
    --danger: #e0452b;
    --hairline: rgba(11, 27, 43, 0.09);
    --w012: #eef2f7;
    --ink: #0b1b2b;
    --ink-on: #ffffff;
    --signal: #06b6d4;
    --signal-text: #0e7490;
    --signal-wash: rgba(6, 182, 212, 0.10);
    --line-strong: rgba(11, 27, 43, 0.16);
}
:root:not([data-theme="light"]) {
    --bg-deep: #070c15;
    --bg-elevated: #0c1422;
    --bg-surface: #111b2c;
    --bg-hover: #16223a;
    --text-primary: #eef3f8;
    --text-secondary: #a9b8ca;
    --text-muted: #8094ab;
    --accent-primary: #22d3ee;
    --accent-glow: #22d3ee;
    --accent-cyan: #67e8f9;
    --hairline: rgba(255, 255, 255, 0.07);
    --w012: #0a111d;
    --ink: #eef3f8;
    --ink-on: #070c15;
    --signal: #22d3ee;
    --signal-text: #67e8f9;
    --signal-wash: rgba(34, 211, 238, 0.12);
    --line-strong: rgba(255, 255, 255, 0.14);
}
body { background: var(--bg-deep); color: var(--text-primary); }
::selection { background: var(--signal-wash); color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* No atmosphere outside the product. */
.hero-aurora, .cta-bg, .cta-orb { display: none !important; }
main > section::before, .hero::before { background: none !important; }
section { --section-air: none; }

/* ---------- Buttons: ink primary, hairline secondary ---------- */
.btn { border-radius: 10px; font-weight: 600; letter-spacing: -0.005em; text-transform: none; }
.btn-primary,
.btn-primary:hover,
.btn-primary:active {
    background: var(--ink);
    color: var(--ink-on);
    border: 1px solid var(--ink);
    box-shadow: none;
}
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--signal)); border-color: transparent; transform: none; }
.btn-primary svg { transition: transform 0.18s ease-out; }
.btn-primary:hover svg { transform: translateX(2px); }
.btn-glow, .btn-glow:hover { box-shadow: none !important; }
.btn-ghost, .btn-ghost:hover {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--line-strong);
    box-shadow: none;
}
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--line-strong); }
.btn-large { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn-header { min-height: 36px; padding: 0 14px; font-size: 13.5px; }

/* ---------- Header ---------- */
.header { background: color-mix(in srgb, var(--bg-deep) 82%, transparent); border-bottom: 1px solid var(--hairline); }
.nav-link.is-current { color: var(--text-primary); }
.nav-tag {
    text-transform: none; letter-spacing: 0; font-size: 10.5px; font-weight: 600;
    padding: 1px 7px; border-radius: 999px; border: 0;
    background: var(--signal-wash); color: var(--signal-text);
}

/* ---------- The signal line: the one ornament ---------- */
.signal-line {
    position: relative; display: block; height: 2px; width: min(520px, 100%);
    margin: 26px 0 0; border-radius: 2px;
    background: linear-gradient(90deg, var(--signal), color-mix(in srgb, var(--signal) 35%, transparent) 55%, transparent);
}
.signal-line i {
    position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -1px; border-radius: 50%;
    background: var(--signal); box-shadow: 0 0 0 4px var(--signal-wash);
    animation: signal-breathe 2.4s ease-in-out infinite;
}
:root:not([data-theme="light"]) .signal-line { box-shadow: 0 0 12px rgba(34, 211, 238, 0.35); }
@keyframes signal-breathe { 50% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) { .signal-line i { animation: none; } }

/* ---------- Heroes: the title across the page, then one ruled row ----------
   The title takes the full measure in two lines. Under it a single row,
   ruled by the signal line, holds the lead on the left and the actions on
   the right; inner pages close the hero with a readout strip, the way the
   app opens a site. Nothing floats in a corner. */
.page-top { padding: calc(var(--space-5xl) + 56px) 0 clamp(64px, 7vw, 96px); border-bottom: 1px solid var(--hairline); }
.page-top-content { max-width: none; margin: 0; text-align: left; }
.page-title, .home-hero h1 {
    margin: 0; max-width: 18ch;
    font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em;
    color: var(--text-primary); text-wrap: balance;
}
.page-title { max-width: 20ch; }
.page-title-accent, .home-hero h1 span { color: var(--text-secondary); background: none; -webkit-text-fill-color: currentColor; }
.hero-row {
    position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end;
    margin-top: clamp(36px, 4.5vw, 56px); padding-top: 28px; border-top: 1px solid var(--hairline);
}
.hero-row::before {
    content: ""; position: absolute; left: 0; top: -1px; width: min(240px, 40%); height: 2px;
    background: linear-gradient(90deg, var(--signal), transparent);
}
.hero-row::after {
    content: ""; position: absolute; left: -1px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
    background: var(--signal); box-shadow: 0 0 0 4px var(--signal-wash);
    animation: signal-breathe 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .hero-row::after { animation: none; } }
.hero-row-text { grid-column: 1 / span 7; }
.hero-row-text p { margin: 0; max-width: 62ch; font-size: 1.125rem; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }
.hero-row-text .hero-for { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.hero-row .hero-actions { grid-column: 8 / -1; display: flex; gap: 12px; flex-wrap: nowrap; justify-content: flex-end; }
.hero-row .hero-actions .btn { white-space: nowrap; }
.hero-row-text:only-child { grid-column: 1 / span 9; }
@media (max-width: 900px) {
    .hero-row-text, .hero-row .hero-actions { grid-column: 1 / -1; }
    .hero-row .hero-actions { justify-content: flex-start; margin-top: 24px; }
}

/* The readout strip: one surface, segments divided by hairlines. */
.hero-readouts {
    display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
    margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none;
    background: var(--bg-elevated); border: 1px solid var(--hairline); border-radius: 14px;
    box-shadow: 0 1px 2px rgba(11, 27, 43, 0.05), 0 12px 32px -24px rgba(11, 27, 43, 0.25);
}
.hero-readouts li { padding: 20px 22px; border-left: 1px solid var(--hairline); min-width: 0; }
.hero-readouts li:first-child { border-left: 0; }
.hero-readouts b { display: block; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.hero-readouts span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--text-muted); }
:root:not([data-theme="light"]) .hero-readouts { box-shadow: none; }
@media (max-width: 700px) {
    .hero-readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-readouts li:nth-child(3) { border-left: 0; }
    .hero-readouts li:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}

/* ---------- Home hero ---------- */
.home-hero { position: relative; padding: calc(var(--space-5xl) + 56px) 0 0; }
.home-hero h1 { max-width: none; font-size: clamp(2.6rem, 5.6vw, 4.75rem); }
.home-hero .stage-scene { margin-top: clamp(48px, 6vw, 80px); }
.home-hero .stage-main > .appui { box-shadow: 0 2px 6px rgba(11, 27, 43, 0.06), 0 50px 100px -40px rgba(11, 27, 43, 0.5); }

/* ---------- Scenes, shared bits ---------- */
.stage-more { margin-top: 14px !important; font-size: 0.9375rem !important; }
.stage-more a, .stage-facts a { color: var(--signal-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--signal-text) 35%, transparent); text-underline-offset: 3px; }
.stage-head h2 span { color: var(--text-secondary); }
.appui .ui-tick.is-fail { background: rgba(224, 69, 43, 0.12); color: var(--fg-danger); }
.appui .appui-stat.is-down strong { color: var(--fg-danger); }
.appui .ui-row.is-bad { background: color-mix(in srgb, var(--fg-danger) 5%, transparent); }
.appui-body--part { padding: 18px; }
.appui-body--part > .appui { box-shadow: var(--fg-shadow); }
.appui .ui-pair { display: inline-flex; align-items: center; gap: 12px; }

/* ---------- Home: the four jobs, one window that changes tabs ---------- */
.pillars { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--hairline); }
.pillars-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-bottom: clamp(24px, 4vw, 48px); }
.pillars-intro h2 { grid-column: 1 / span 6; margin: 0; font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.pillars-intro p { grid-column: 8 / -1; margin: 0; align-self: end; font-size: 1.0625rem; line-height: 1.6; color: var(--text-secondary); }
@media (min-width: 901px) {
    .pillars-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
    .pillars-steps { grid-column: 1 / span 4; }
    .pillars-rail { grid-column: 6 / -1; top: 12vh; height: 76vh; grid-template-columns: minmax(0, 1fr); }
    .pillars-step { min-height: 76vh; max-width: 36ch; }
}
.pillars-step h2 { font-size: clamp(1.7rem, 2.6vw, 2.25rem) !important; letter-spacing: -0.035em !important; line-height: 1.05 !important; }
.pillars-step .pillars-tab { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--signal-text); }
.pillars-step .pillars-tab::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-wash); }
.pillars-panel > .appui { box-shadow: 0 2px 6px rgba(11, 27, 43, 0.06), 0 40px 80px -36px rgba(11, 27, 43, 0.45); }
.pillars-facts li { color: var(--text-secondary); }

/* ---------- Start: three steps ---------- */
.start { border-top: 1px solid var(--hairline); }
.start-track::before { background: linear-gradient(90deg, var(--signal), color-mix(in srgb, var(--signal) 30%, transparent) 70%, transparent); }
.start-item::before { border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-wash); background: var(--bg-deep); }
.start-head a, .define-foot a, .split-more a { color: var(--signal-text); }

/* ---------- Chassis band: the navy of the app's sidebar ---------- */
.chassis {
    position: relative; padding: clamp(88px, 10vw, 136px) 0;
    background: #0a1628; color: #eef3f8; border: 0;
}
.chassis::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7) 30%, rgba(34, 211, 238, 0.15) 75%, transparent);
}
.chassis .stage-head h2, .chassis .stage-facts b { color: #fff; }

.chassis .stage-head h2 span { color: rgba(226, 236, 246, 0.55); }
.chassis .stage-lead p { color: rgba(226, 236, 246, 0.72); }
.chassis .stage-facts li { border-color: rgba(255, 255, 255, 0.1); }
.chassis .stage-facts li span { color: rgba(226, 236, 246, 0.62); }
.chassis .stage-when { color: #67e8f9; }
.chassis .stage-lead a, .chassis .stage-facts a { color: #67e8f9; }
.chassis { --stage-signal: #22d3ee; --stage-signal-wash: rgba(34, 211, 238, 0.16); --stage-leader: rgba(34, 211, 238, 0.7); }
.chassis .appui { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 40px 80px -30px rgba(0, 0, 0, 0.8); }

/* ---------- Closing band ---------- */
.cta-section { position: relative; overflow: hidden; padding: clamp(88px, 10vw, 136px) 0; background: #0a1628; border: 0; }
.cta-section::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7) 30%, rgba(34, 211, 238, 0.15) 75%, transparent);
}
.cta-content {
    max-width: none; margin: 0; text-align: left;
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end;
}
.cta-section .cta-title { grid-column: 1 / span 7; margin: 0; color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }
.cta-section .cta-subtitle { grid-column: 1 / span 6; margin: 22px 0 0; max-width: 52ch; color: rgba(226, 236, 246, 0.7); font-size: 1.0625rem; line-height: 1.6; }
.cta-section .cta-buttons { grid-column: 9 / -1; grid-row: 1 / span 2; justify-content: flex-end; align-self: end; display: flex; gap: 12px; flex-wrap: wrap; }
.cta-section .btn-primary, .cta-section .btn-primary:hover { background: #22d3ee; border-color: #22d3ee; color: #062330; }
.cta-section .btn-primary:hover { background: #67e8f9; border-color: #67e8f9; }
:root .cta-section .cta-buttons .btn-ghost { color: #eef3f8; border-color: rgba(255, 255, 255, 0.22); background: transparent; }
:root .cta-section .cta-buttons .btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }
:root .cta-section .cta-buttons .btn-primary { background: #22d3ee; border-color: #22d3ee; color: #062330; }
:root .cta-section .cta-buttons .btn-primary:hover { background: #67e8f9; border-color: #67e8f9; }
@media (max-width: 900px) {
    .cta-section .cta-title, .cta-section .cta-subtitle, .cta-section .cta-buttons { grid-column: 1 / -1; grid-row: auto; }
    .cta-section .cta-buttons { justify-content: flex-start; margin-top: 28px; }
}

/* ---------- Quotes ---------- */
.proof-quote p { font-size: clamp(1.05rem, 1.5vw, 1.25rem) !important; line-height: 1.55 !important; color: var(--text-primary) !important; letter-spacing: -0.01em; text-wrap: pretty; }

/* ---------- Statement list (why, cases) ---------- */
.why-statement h2, .cases-head h2 { letter-spacing: -0.04em; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--hairline); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
    .pillars-intro h2, .pillars-intro p { grid-column: 1 / -1; }
    .pillars-intro p { margin-top: 16px; }
}

/* A scene inside the navy band takes the band's ground and spacing. */
.chassis > .stage { padding: 0; border: 0; background: transparent; }
.chassis .agent-tabs button { color: rgba(226, 236, 246, 0.7); }
.chassis .agent-tabs button[aria-selected="true"] { color: #fff; }
.chassis .agent-tabs button:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.chassis .agent-tabs button[aria-selected="true"]:hover { background: rgba(34, 211, 238, 0.18); }
.case-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.case-top em { font-family: inherit; font-size: 12px; font-weight: 600; color: var(--signal-text); }

/* Labels are sentence case in the text face, never monospace as a costume. */
.fork-kind, .agent-toolgroup .fork-kind { font-family: inherit !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 12.5px !important; font-weight: 600; color: var(--signal-text) !important; }
.fork-card { border-radius: 14px; border-color: var(--hairline); background: var(--bg-elevated); box-shadow: 0 1px 2px rgba(11, 27, 43, 0.05), 0 12px 32px -24px rgba(11, 27, 43, 0.25); }
.fork-card--wp { background: linear-gradient(var(--signal-wash), var(--signal-wash)), var(--bg-elevated); border-color: color-mix(in srgb, var(--signal) 30%, transparent); }
.fork-link { color: var(--signal-text); }

/* ---------- Pricing in the app's terms ---------- */
.billing-toggle { background: var(--bg-elevated); border: 1px solid var(--hairline); border-radius: 12px; padding: 4px; box-shadow: none; }
.billing-option { border-radius: 9px; color: var(--text-secondary); font-weight: 600; }
.billing-option.is-active { background: var(--ink); color: var(--ink-on); box-shadow: none; }
.billing-save { background: var(--signal-wash) !important; color: var(--signal-text) !important; text-transform: none; letter-spacing: 0; }
.billing-option.is-active .billing-save { background: color-mix(in srgb, var(--signal) 35%, transparent) !important; color: inherit !important; }
.pricing-card { border-radius: 14px; border: 1px solid var(--hairline); background: var(--bg-elevated); box-shadow: 0 1px 2px rgba(11, 27, 43, 0.05), 0 12px 32px -24px rgba(11, 27, 43, 0.25); }
.pricing-card-featured { border-color: color-mix(in srgb, var(--signal) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--signal) 35%, transparent), 0 24px 56px -32px rgba(8, 145, 178, 0.45); }
.pricing-badge { text-transform: none !important; letter-spacing: 0 !important; font-size: 12px !important; font-weight: 600; background: var(--ink) !important; color: var(--ink-on) !important; border-radius: 999px; box-shadow: none !important; }
.price-amount, .price-currency { font-family: inherit !important; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; font-weight: 600; }
.feature-check { color: var(--success); }
.section-label { display: none; }
.trust-badge { border-radius: 14px; border-color: var(--hairline); background: var(--bg-elevated); }
.trust-icon { background: var(--signal-wash); color: var(--signal-text); border-radius: 9px; }

.pillars-panel { min-width: 0; }
.pillars-panel .appui-window { grid-template-columns: 158px minmax(0, 1fr); }
@media (max-width: 900px) { .hero-row .hero-actions { flex-wrap: wrap; } }

/* ---------- One column for header and content ----------
   The header used to be wider than the page (1360 vs 1200), so the logo
   never lined up with the titles. Both now share one measure. */
:root { --container-max: 1320px; }
.header .container { max-width: var(--container-max); }

/* ---------- Home hero: the app's auth world ----------
   The one place the site is allowed atmosphere, as in the app: a deep
   ground, three slow fields of light, grain, a faint grid near the centre.
   Always dark. The window rises out of it and overlaps the light page
   below, so the product is the thing the light falls on. */
.home-hero { position: relative; isolation: isolate; color: #eef3f8; padding-top: calc(var(--space-5xl) + 72px); }
.home-hero::before {
    content: ""; position: absolute; z-index: -2; left: 0; right: 0; top: 0; bottom: clamp(180px, 22vw, 300px);
    background: #070c15 !important;
}
.home-hero-sky { position: absolute; z-index: -1; left: 0; right: 0; top: 0; bottom: clamp(180px, 22vw, 300px); overflow: hidden; pointer-events: none; }
.home-hero-sky i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: sky-drift 22s ease-in-out infinite alternate; }
.home-hero-sky i:nth-child(1) { width: 46vw; height: 46vw; left: -8vw; top: -14vw; background: radial-gradient(circle, rgba(34, 211, 238, 0.55), transparent 65%); }
.home-hero-sky i:nth-child(2) { width: 40vw; height: 40vw; right: -6vw; top: -6vw; background: radial-gradient(circle, rgba(47, 127, 245, 0.5), transparent 65%); animation-delay: -8s; }
.home-hero-sky i:nth-child(3) { width: 34vw; height: 34vw; left: 34vw; top: 16vw; background: radial-gradient(circle, rgba(139, 92, 246, 0.32), transparent 65%); animation-delay: -15s; }
.home-hero-sky::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(60% 55% at 50% 45%, #000, transparent 75%); mask-image: radial-gradient(60% 55% at 50% 45%, #000, transparent 75%);
}
.home-hero-sky::after {
    content: ""; position: absolute; inset: 0; opacity: 0.08; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes sky-drift { to { transform: translate3d(4vw, 3vw, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .home-hero-sky i { animation: none; } }

.home-hero h1 { color: #fff; font-size: clamp(3rem, 7.2vw, 6.6rem); line-height: 0.96; letter-spacing: -0.05em; }
.home-hero h1 span { color: rgba(226, 236, 246, 0.5); }
.home-hero .hero-row { border-top-color: rgba(255, 255, 255, 0.12); }
.home-hero .hero-row::before { background: linear-gradient(90deg, #22d3ee, transparent); box-shadow: 0 0 14px rgba(34, 211, 238, 0.6); }
.home-hero .hero-row::after { background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18), 0 0 16px #22d3ee; }
.home-hero .hero-row-text p { color: rgba(226, 236, 246, 0.74); }
.home-hero .hero-row-text .hero-for { color: rgba(226, 236, 246, 0.5); }
:root .home-hero .hero-actions .btn-primary { background: #22d3ee; border-color: #22d3ee; color: #062330; box-shadow: 0 10px 34px -10px rgba(34, 211, 238, 0.7) !important; }
:root .home-hero .hero-actions .btn-primary:hover { background: #67e8f9; border-color: #67e8f9; }
:root .home-hero .hero-actions .btn-ghost { color: #eef3f8; border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.03); }
:root .home-hero .hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.home-hero .stage-scene { margin-top: clamp(64px, 7vw, 104px); }
/* On the night sky the light window's own border would show as a white
   hairline: the border is translucent and the white background runs under
   it. Here the background stops inside the border, and the edge is a faint
   light line that belongs to the dark. */
.home-hero .stage-main > .appui { background-clip: padding-box; border-color: rgba(255, 255, 255, 0.07); box-shadow: 0 40px 120px -30px rgba(34, 211, 238, 0.35), 0 60px 120px -40px rgba(0, 0, 0, 0.7); }
.home-hero .stage-leader { --stage-leader: rgba(34, 211, 238, 0.8); }
.home-hero + .marks { border-top: 0; }

/* On the home page the header sits on the night sky until you scroll. */
body:has(.home-hero, .page-top) .header:not(.scrolled) { background: transparent; border-bottom-color: rgba(255, 255, 255, 0.08); backdrop-filter: none; }
body:has(.home-hero, .page-top) .header:not(.scrolled) .nav-link,
body:has(.home-hero, .page-top) .header:not(.scrolled) .nav-link-account,
body:has(.home-hero, .page-top) .header:not(.scrolled) .lang summary,
body:has(.home-hero, .page-top) .header:not(.scrolled) .theme-toggle { color: rgba(238, 243, 248, 0.82); }
body:has(.home-hero, .page-top) .header:not(.scrolled) .nav-link:hover { color: #fff; }
body:has(.home-hero, .page-top) .header:not(.scrolled) .lang summary,
body:has(.home-hero, .page-top) .header:not(.scrolled) .theme-toggle { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }
body:has(.home-hero, .page-top) .header:not(.scrolled) .nav-tag { background: rgba(34, 211, 238, 0.16); color: #67e8f9; }
body:has(.home-hero, .page-top) .header:not(.scrolled) .hamburger, body:has(.home-hero, .page-top) .header:not(.scrolled) .hamburger::before, body:has(.home-hero, .page-top) .header:not(.scrolled) .hamburger::after { background: #eef3f8; }
:root body:has(.home-hero, .page-top) .header:not(.scrolled) .btn-header { background: #22d3ee; border-color: #22d3ee; color: #062330; }
body:has(.home-hero, .page-top) .header:not(.scrolled) img.logo-img--dark { display: block; }
body:has(.home-hero, .page-top) .header:not(.scrolled) img.logo-img--light { display: none; }
.header { transition: background-color 0.2s ease-out, border-color 0.2s ease-out; }

/* What Flowguard is, in four parts, right under the hero text. */
.hero-parts {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px;
    background: rgba(255, 255, 255, 0.035); backdrop-filter: blur(6px); overflow: hidden;
}
.hero-parts li { min-width: 0; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.hero-parts li:first-child { border-left: 0; }
.hero-parts a { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 16px 18px; color: inherit; text-decoration: none; border-radius: 0; transition: background-color 0.18s ease-out; }
.hero-parts a:hover { background: rgba(255, 255, 255, 0.04); }
.hero-parts i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(34, 211, 238, 0.12); color: #67e8f9; }
.hero-parts svg { width: 16px; height: 16px; }
.hero-parts span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.4; color: rgba(226, 236, 246, 0.55); }
.hero-parts b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
@media (max-width: 1000px) {
    .hero-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-parts li:nth-child(3) { border-left: 0; }
    .hero-parts li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
}
@media (max-width: 520px) {
    .hero-parts { grid-template-columns: minmax(0, 1fr); }
    .hero-parts li { border-left: 0 !important; }
    .hero-parts li + li { border-top: 1px solid rgba(255, 255, 255, 0.08); }
}
.header.scrolled { background: color-mix(in srgb, var(--bg-deep) 96%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ---------- Inner heroes: the same night sky, compact ----------
   Same world as the home hero — deep ground, slow light, faint grid — but
   shorter, smaller type, and no window rising out of it. */
.page-top { position: relative; isolation: isolate; overflow: hidden; background: #070c15; color: #eef3f8; border-bottom: 0; padding: calc(var(--space-5xl) + 40px) 0 clamp(48px, 6vw, 72px); }
.page-top .home-hero-sky { bottom: 0; }
.page-top .home-hero-sky i { opacity: 0.38; }
.page-top .page-title { color: #fff; font-size: clamp(2.4rem, 4.8vw, 4rem); }
.page-top .page-title-accent { color: rgba(226, 236, 246, 0.5); }
.page-top .hero-row { margin-top: clamp(28px, 3.5vw, 40px); border-top-color: rgba(255, 255, 255, 0.12); }
.page-top .hero-row::before { background: linear-gradient(90deg, #22d3ee, transparent); box-shadow: 0 0 14px rgba(34, 211, 238, 0.6); }
.page-top .hero-row::after { background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18), 0 0 16px #22d3ee; }
.page-top .hero-row-text p { color: rgba(226, 236, 246, 0.74); font-size: 1.0625rem; }
.page-top .hero-row-text p a { color: #67e8f9; }
:root .page-top .hero-actions .btn-primary { background: #22d3ee; border-color: #22d3ee; color: #062330; box-shadow: 0 10px 34px -10px rgba(34, 211, 238, 0.7) !important; }
:root .page-top .hero-actions .btn-primary:hover { background: #67e8f9; border-color: #67e8f9; }
:root .page-top .hero-actions .btn-ghost { color: #eef3f8; border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.03); }
:root .page-top .hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.page-top .hero-readouts { margin-top: clamp(28px, 3.5vw, 40px); background: rgba(255, 255, 255, 0.035); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; backdrop-filter: blur(6px); }
.page-top .hero-readouts li { padding: 16px 20px; border-color: rgba(255, 255, 255, 0.08); }
.page-top .hero-readouts b { color: #fff; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.page-top .hero-readouts span { color: rgba(226, 236, 246, 0.55); }

/* The mockups are pictures of the app: nothing inside them scrolls, so a
   trackpad passing over one never gets caught. Tabs that do not fit fade
   out at the right edge; code wraps instead of scrolling sideways. */
.appui .appui-tabs { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.code-card .code-body { overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-step { overflow: hidden; max-height: none; }

/* A word in a stage headline that carries the answer: accent, no box. */
.stage-head h2 mark { background: none; color: var(--accent-cyan); }
.chassis .stage-head h2 mark { color: #22d3ee; }

/* Hero headline: lines break evenly, and the second sentence starts on its
   own line with a little air. German runs a third longer than English, so
   it is set smaller to stay at two lines per sentence on a laptop. */
.home-hero h1 { text-wrap: balance; }
.home-hero h1 span { display: block; margin-top: 0.08em; text-wrap: balance; }
html[lang="de"] .home-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.9rem); line-height: 1; letter-spacing: -0.042em; }

/* Phones: the header is 65px tall, so the first line starts ~36px below it on every page. */
@media (max-width: 640px) {
    .home-hero { padding-top: 100px; }
    .page-top { padding-top: 100px; }
}

/* The launch film: a dark band with the poster as a lit screen and one
   large play button. Opens the lightbox (site.js initFilmBox). */
.film-feature { position: relative; isolation: isolate; overflow: hidden; background: #070c15; color: #eef3f8; padding: clamp(72px, 9vw, 128px) 0 clamp(64px, 8vw, 112px); }
.film-feature::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(55% 50% at 50% 66%, rgba(34, 211, 238, 0.16), transparent 72%),
        radial-gradient(35% 40% at 88% 8%, rgba(99, 102, 241, 0.16), transparent 70%),
        radial-gradient(30% 35% at 8% 20%, rgba(34, 211, 238, 0.08), transparent 70%);
}
.film-feature__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.film-feature__head h2 { margin: 0 0 16px; color: #fff; font-size: clamp(2.1rem, 4.8vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.film-feature__head p { margin: 0 auto; max-width: 60ch; color: rgba(226, 236, 246, 0.7); font-size: 1.125rem; line-height: 1.6; text-wrap: pretty; }
.film-feature__screen { position: relative; display: block; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; }
.film-feature__frame {
    position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #0b1220;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 60px 140px -50px rgba(34, 211, 238, 0.5), 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
.film-feature__frame::after { content: ""; position: absolute; inset: 0; background: rgba(7, 12, 21, 0.06); transition: background-color 0.4s ease-out; }
.film-feature__frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.film-feature__play {
    position: absolute; left: 50%; top: calc(50% - 22px); width: 104px; height: 104px; margin-left: -52px; margin-top: -52px;
    display: grid; place-items: center; border-radius: 50%; color: #062330; background: #22d3ee;
    box-shadow: 0 0 0 12px rgba(34, 211, 238, 0.2), 0 24px 60px -12px rgba(8, 145, 178, 0.75);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease-out;
}
.film-feature__play svg { margin-left: 5px; }
.film-feature__play::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(34, 211, 238, 0.55); animation: film-pulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
@keyframes film-pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.45); opacity: 0; } }
.film-feature__meta { display: block; margin-top: 22px; text-align: center; color: rgba(226, 236, 246, 0.62); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; }
.film-feature__screen:hover .film-feature__frame img { transform: scale(1.025); }
.film-feature__screen:hover .film-feature__frame::after { background: rgba(7, 12, 21, 0); }
.film-feature__screen:hover .film-feature__play { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(34, 211, 238, 0.24), 0 28px 70px -12px rgba(8, 145, 178, 0.85); }
.film-feature__screen:focus-visible { outline: none; }
.film-feature__screen:focus-visible .film-feature__frame { outline: 3px solid #22d3ee; outline-offset: 4px; }
@media (max-width: 640px) {
    .film-feature__frame { border-radius: 14px; }
    .film-feature__play { width: 56px; height: 56px; margin-left: -28px; margin-top: -28px; left: 50%; top: calc(50% - 20px); box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.2), 0 16px 40px -10px rgba(8, 145, 178, 0.75); }
    .film-feature__play svg { width: 20px; height: 20px; margin-left: 3px; }
    .film-feature__play::after { inset: -8px; }
    .film-feature__meta { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .film-feature__play::after { animation: none; opacity: 0; }
    .film-feature__frame img, .film-feature__play { transition: none; }
    .film-feature__screen:hover .film-feature__frame img, .film-feature__screen:hover .film-feature__play { transform: none; }
}

/* "Watch the film" next to the main button in a hero. */
.btn-film { gap: 10px; }
.btn-film i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #22d3ee; color: #062330; flex-shrink: 0; }
.btn-film i svg { margin-left: 2px; }
.btn-film__len { opacity: 0.6; font-weight: 500; font-variant-numeric: tabular-nums; }
