/* hylosense — "Startup" direction. Dark, product-led, self-contained. */

:root {
    --bg: #07060c;
    --bg-2: #0c0a14;
    --panel: #110e1b;
    --panel-2: #161224;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #f2f0f7;
    --muted: #a19bb4;
    --dim: #6f6982;
    --brand-1: #533d98;
    /* brand gradient, left */
    --brand-2: #8e54a2;
    /* brand gradient, right */
    --violet: #9b87ff;
    --lilac: #c58cff;
    --signal: #5eead4;
    /* "actual" data */
    --ok: #4ade80;
    --warn: #fbbf24;
    --radius: 14px;
    --sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --wrap: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.08;
}

p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

address {
    font-style: normal;
}

::selection {
    background: rgba(142, 84, 162, .5);
}

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

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.mono {
    font-family: var(--mono);
    font-size: .78em;
    letter-spacing: 0;
}

.dim {
    color: var(--dim);
}

.grad {
    background: linear-gradient(92deg, #b9a8ff 0%, var(--lilac) 45%, #e9b6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--violet);
    margin-bottom: 16px;
}

.eyebrow.center {
    text-align: center;
    color: var(--dim);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    font: 500 15px/1 var(--sans);
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}

.btn-sm {
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 8px;
}

.btn-primary {
    background: #f4f1fb;
    color: #120e1e;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 8px 30px -8px rgba(155, 135, 255, .55);
}

.btn-primary:hover {
    background: #fff;
}

.btn-primary .bi {
    transition: transform .2s;
}

.btn-primary:hover .bi {
    transform: translateX(2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, .03);
    border-color: var(--line-2);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .24);
}

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background .25s, border-color .25s;
}

.nav.scrolled {
    background: rgba(7, 6, 12, .72);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom-color: var(--line);
}

.nav-in {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -.02em;
}

.brand img {
    filter: invert(1);
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-size: 14px;
    color: var(--muted);
}

.nav-links a {
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 88px 0 40px;
    isolation: isolate;
}

.hero-glow {
    position: absolute;
    z-index: -1;
    left: 50%;
    top: -260px;
    width: 1300px;
    height: 900px;
    transform: translateX(-50%);
    background:
        radial-gradient(closest-side at 50% 45%, rgba(142, 84, 162, .38), transparent 70%),
        radial-gradient(closest-side at 30% 60%, rgba(83, 61, 152, .45), transparent 70%),
        radial-gradient(closest-side at 72% 58%, rgba(94, 234, 212, .08), transparent 70%);
    filter: blur(20px);
    animation: glow 14s ease-in-out infinite alternate;
}

@keyframes glow {
    to {
        transform: translateX(-50%) translateY(30px) scale(1.06);
        opacity: .85;
    }
}

.hero-grid {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 30%, transparent 75%);
}

.hero-in {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .04);
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 28px;
    transition: border-color .2s, color .2s;
}

.pill:hover {
    border-color: rgba(197, 140, 255, .5);
    color: var(--text);
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lilac);
    box-shadow: 0 0 12px var(--lilac);
}

.pill .bi {
    font-size: 12px;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 72px);
    letter-spacing: -.045em;
    line-height: 1.04;
    max-width: none;
}

@media (min-width: 720px) {
    .hero h1 .grad {
        white-space: nowrap;
    }
}

.lede {
    margin-top: 24px;
    max-width: 640px;
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--muted);
    line-height: 1.3;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 36px;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin-top: 40px;
    font-size: 14px;
    color: var(--muted);
}

.hero-facts li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-facts .mono {
    color: var(--dim);
}

/* ---------- Console mock ---------- */
.console {
    position: relative;
    margin-top: 72px;
    border-radius: 16px;
    border: 1px solid var(--line-2);
    background: linear-gradient(180deg, rgba(22, 18, 36, .92), rgba(12, 10, 20, .96));
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 40px 120px -30px rgba(83, 61, 152, .7), 0 1px 0 rgba(255, 255, 255, .08) inset;
    overflow: hidden;
    text-align: left;
}

.console::before {
    /* top hairline glow */
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 140, 255, .8), transparent);
}

.console-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 44px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    color: var(--dim);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.console-url {
    flex: 1;
    text-align: center;
}

.console-live {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .6);
    animation: ping 2.4s ease-out infinite;
}

@keyframes ping {

    70%,
    100% {
        box-shadow: 0 0 0 7px rgba(74, 222, 128, 0);
    }
}

.console-body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 280px;
    min-height: 420px;
}

.c-label {
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 10.5px;
    margin: 0 0 10px 4px;
}

.c-label-2 {
    margin-top: 22px;
}

.c-side {
    position: relative;
    padding: 18px 12px;
    border-right: 1px solid var(--line);
}

.c-asset {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 9px 10px;
    margin-bottom: 4px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.c-asset:hover {
    background: rgba(255, 255, 255, .04);
    color: var(--text);
}

.c-asset.is-on {
    background: rgba(155, 135, 255, .1);
    border-color: rgba(155, 135, 255, .28);
    color: var(--text);
}

.c-asset>.bi {
    font-size: 15px;
    width: 18px;
    color: var(--violet);
}

.c-asset>span:not(.c-status) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.c-asset b {
    font-weight: 500;
    font-size: 13.5px;
}

.c-asset small {
    font-size: 11.5px;
    color: var(--dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    flex: none;
}

.c-deliv {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--muted);
}

.c-deliv .bi {
    color: var(--dim);
}

.c-main {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.c-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 16px;
    flex-wrap: wrap;
}

.c-title {
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -.02em;
}

.c-sub {
    color: var(--muted);
    text-align: right;
}

.c-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 12px 0 0;
    justify-content: center;
    color: var(--muted);
}

.c-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.c-legend i {
    display: inline-block;
    width: 14px;
    height: 2px;
    border-radius: 2px;
}

.lg-ac {
    background: var(--signal);
}

.lg-fc {
    background: linear-gradient(90deg, var(--violet), var(--lilac));
}

.lg-band {
    height: 8px !important;
    background: rgba(142, 84, 162, .35);
}

.c-chart {
    position: relative;
    margin: 18px 0 0 44px;
    flex: 1;
    min-height: 200px;
}

.c-yaxis {
    position: absolute;
    right: calc(100% + 8px);
    top: 0;
    width: 40px;
    height: calc(100% - 22px);
    min-height: 190px;
    display: none;
    color: var(--dim);
    font-size: 10.5px;
}

.c-yaxis.is-on {
    display: block;
}

.c-yaxis span {
    position: absolute;
    right: 0;
    transform: translateY(-50%);
    white-space: nowrap;
}

.c-chart svg {
    width: 100%;
    height: calc(100% - 22px);
    min-height: 190px;
    display: block;
    overflow: visible;
}

.grid-lines line {
    stroke: rgba(255, 255, 255, .06);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.future {
    fill: rgba(155, 135, 255, .035);
}

.now-line {
    stroke: rgba(255, 255, 255, .28);
    stroke-dasharray: 3 4;
    vector-effect: non-scaling-stroke;
}

.now-tag {
    position: absolute;
    top: -4px;
    transform: translate(-50%, -100%);
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--panel-2);
    border: 1px solid var(--line-2);
    color: var(--muted);
    font-size: 10px;
}

.c-series {
    opacity: 0;
    transition: opacity .5s ease;
}

.c-series.is-on {
    opacity: 1;
}

.c-series path {
    fill: none;
    vector-effect: non-scaling-stroke;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.c-series .band {
    fill: url(#bandG);
    stroke: none;
}

.c-series .ac {
    stroke: var(--signal);
    stroke-width: 2;
}

.c-series .q {
    stroke: var(--signal);
    stroke-width: 1.75;
}

.c-series .q-past {
    stroke: var(--signal);
    stroke-width: 1.25;
    stroke-dasharray: 2 4;
    opacity: .7;
}

.lg-q {
    background: var(--signal);
}

.c-legend [hidden] {
    display: none;
}

.c-legend b {
    font-weight: inherit;
}

.c-series .fc-past {
    stroke: rgba(155, 135, 255, .45);
    stroke-width: 1.5;
    stroke-dasharray: 2 4;
}

.c-series .fc {
    stroke: url(#fcG);
    stroke-width: 2.25;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

.c-series.is-on .fc {
    animation: draw 1.6s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes draw {
    from {
        stroke-dashoffset: 1;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.now-dot {
    position: absolute;
    z-index: 1;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--violet);
    box-sizing: border-box;
    display: none;
    pointer-events: none;
}

.now-dot.is-on {
    display: block;
}

.c-axis {
    position: relative;
    height: 14px;
    color: var(--dim);
    font-size: 10.5px;
    margin-top: 6px;
}

.c-axis span {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

.c-axis span:first-child {
    transform: none;
}

.c-axis span:last-child {
    transform: translateX(-100%);
}

.c-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 18px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.c-kpis div {
    background: var(--bg-2);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.c-kpis .mono {
    color: var(--dim);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.c-kpis b {
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-kpis b.ok {
    color: var(--ok);
}

.c-log {
    padding: 18px 16px;
    border-left: 1px solid var(--line);
    background: rgba(0, 0, 0, .18);
}

.log {
    display: none;
}

.log.is-on {
    display: block;
}

.log li {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 0 0 14px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.45;
}

.log li:not(:last-child)::before {
    /* timeline rail */
    content: "";
    position: absolute;
    left: 10px;
    top: 23px;
    bottom: 2px;
    width: 1px;
    background: var(--line-2);
}

.log.is-on li {
    animation: logIn .45s ease both;
    animation-delay: calc(var(--i) * .35s + .2s);
}

@keyframes logIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

.log-ic {
    flex: 0 0 20px;
    width: 20px;
    min-width: 20px;
    height: 20px;
    aspect-ratio: 1;
    box-sizing: border-box;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    line-height: 1;
    border: 1px solid var(--line-2);
    background: var(--panel);
    color: var(--muted);
}

.log-ok .log-ic {
    color: #fff;
    border-color: #16a34a;
    background: #16a34a;
}

.log-warn .log-ic {
    color: #fff;
    border-color: #dc2626;
    background: #dc2626;
}

.log-run .log-ic {
    color: var(--lilac);
    border-color: rgba(197, 140, 255, .45);
}

.log-run .log-ic .bi {
    animation: spin 1.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.log-run .log-tx {
    color: var(--text);
}

.log-tx .mono {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 1px;
}

.log-ic .bi {
    line-height: 1;
}

.log-ic .bi::before {
    font-weight: 700 !important;
}

.console-note {
    text-align: center;
    color: var(--dim);
    margin-top: 14px;
    font-size: 11px;
}

/* ---------- Logos ---------- */
.logos {
    padding: 64px 0 24px;
}

.logo-wall {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--line);
}

.logo-wall>span {
    background: var(--bg);
    display: block;
}

.logo-wall img {
    width: 100%;
    height: 88px;
    padding: 24px 28px;
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(1);
    opacity: .55;
    transition: opacity .25s;
}

.logo-wall img:hover {
    opacity: .95;
}

.logo-wall>.logo-txt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 88px;
    padding: 0 12px;
    text-align: center;
    font-size: 12px;
    line-height: 1.3;
    color: var(--dim);
}

.logo-wall>span {
    position: relative;
}

.logo-wall .fi {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 14px;
    line-height: 14px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px var(--line-2);
    background-size: cover;
}

.logo-txt b {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--muted);
}

.logo-wall img.w {
    filter: grayscale(1);
    opacity: .7;
}

/* already white artwork: keep flag detail */

/* ---------- Sections ---------- */
.sec {
    padding: 120px 0;
    position: relative;
}

.sec-alt {
    background: linear-gradient(180deg, var(--bg-2), var(--bg));
    border-top: 1px solid var(--line);
}

.sec h2 {
    font-size: clamp(32px, 4.4vw, 52px);
    max-width: 20ch;
}

.sec-head {
    margin-bottom: 56px;
    max-width: 760px;
}

.sub {
    margin-top: 18px;
    color: var(--muted);
    font-size: 17px;
    max-width: 620px;
    line-height: 1.4
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.costs {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    overflow: hidden;
}

.costs li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.costs li:last-child {
    border-bottom: 0;
}

.costs .bi {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex: none;
    background: rgba(248, 113, 113, .08);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, .2);
}

.costs b {
    display: block;
    font-weight: 500;
}

.costs span {
    color: var(--dim);
    font-size: 14px;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    counter-reset: s;
}

.step {
    position: relative;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    transition: border-color .25s, transform .25s;
}

.step:hover {
    border-color: rgba(155, 135, 255, .35);
}

.step:not(:last-child)::after {
    /* connector */
    content: "";
    position: absolute;
    top: 36px;
    right: -17px;
    width: 18px;
    height: 1px;
    background: linear-gradient(90deg, var(--line-2), rgba(155, 135, 255, .6));
}

.step-n {
    color: var(--violet);
    margin-bottom: 18px;
}

.step h3 {
    font-size: 18px;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.step p {
    margin-top: 10px;
    font-size: 14.5px;
    color: var(--muted);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}

.chips span {
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--line-2);
    color: var(--muted);
    font-size: 11px;
    background: rgba(255, 255, 255, .02);
}

/* Compare */
.compare {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 2fr 3fr;
    align-items: center;
    gap: 16px;
}

.cmp-col {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
}

.cmp-h {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.02em;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cmp-h .mono {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 11px;
    color: var(--dim);
}

.cmp-col li {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    font-size: 15px;
    color: var(--muted);
}

.cmp-col .bi {
    font-size: 18px;
    line-height: 1.3;
}

.cmp-avg .bi {
    color: var(--dim);
}

.cmp-hs {
    position: relative;
    border-color: rgba(155, 135, 255, .35);
    background: radial-gradient(120% 80% at 100% 0%, rgba(142, 84, 162, .22), transparent 60%), var(--panel);
}

.cmp-hs .cmp-h .mono {
    color: var(--lilac);
}

.cmp-hs li {
    color: var(--text);
}

.cmp-hs .bi {
    color: var(--ok);
}

/* Assets */
.assets {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.asset {
    background: var(--bg);
    padding: 10px 16px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background .25s;
}

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

.asset .bi {
    font-size: 20px;
    color: var(--violet);
}

.asset b {
    font-weight: 500;
    font-size: 15px;
}

.asset span {
    color: var(--dim);
    font-size: 12.5px;
    line-height: 1.4;
}

.steps+.assets {
    margin-top: 24px;
}

/* Results */
.cases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.case {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
}

.case-feature {
    border-color: rgba(155, 135, 255, .35);
    background: radial-gradient(100% 70% at 50% 0%, rgba(142, 84, 162, .25), transparent 70%), var(--panel);
}

.case-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag {
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(155, 135, 255, .12);
    color: var(--lilac);
    border: 1px solid rgba(155, 135, 255, .25);
}

.case-num {
    margin-top: 32px;
    font-size: clamp(56px, 6vw, 76px);
    font-weight: 600;
    letter-spacing: -.05em;
    line-height: 1;
    background: linear-gradient(180deg, #fff 30%, #a99ad6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

.case-metric {
    margin-top: 10px;
    font-weight: 500;
    font-size: 16px;
}

.case p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14.5px;
    flex: 1;
}

.case-logo {
    margin: 0;
    height: 28px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    object-position: left;
    filter: grayscale(1) brightness(0) invert(1);
    opacity: .75;
}

/* Team */
.team {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.person {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
}

.person img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    object-position: bottom;
    filter: grayscale(.25);
}

.person-h {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.person-h b {
    display: block;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -.02em;
}

.person-h .mono {
    color: var(--violet);
}

.person-h a {
    color: var(--dim);
    font-size: 18px;
    transition: color .2s;
}

.person-h a:hover {
    color: var(--text);
}

.person ul {
    margin-top: 14px;
}

.person li {
    position: relative;
    padding-left: 16px;
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
}

.person li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .7em;
    width: 6px;
    height: 1px;
    background: var(--dim);
}

.backers {
    margin-top: 56px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.backers .eyebrow {
    color: var(--dim);
}

.inv-wall {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px 34px;
}

.inv-wall img {
    height: 30px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(1);
    opacity: .55;
    transition: opacity .25s;
}

.inv-wall img:hover {
    opacity: .9;
}

.inv-wall img.bgw {
    filter: grayscale(1) invert(1);
    mix-blend-mode: screen;
}

/* drop the white box */
.press {
    color: #000;
    font-size: 18px;
    line-height: 1.6;
    font-weight: bold;
}

.press i {
    font-style: normal;
    color: var(--dim);
    margin: 0 6px;
}

/* CTA */
.cta {
    padding: 40px 0 120px;
}

.cta-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    padding: 88px 32px;
    border-radius: 20px;
    border: 1px solid var(--line-2);
    background: linear-gradient(180deg, var(--panel-2), var(--bg-2));
}

.cta-glow {
    position: absolute;
    z-index: -1;
    inset: auto -20% -60% -20%;
    height: 120%;
    background: radial-gradient(closest-side, rgba(142, 84, 162, .55), rgba(83, 61, 152, .25) 50%, transparent 75%);
}

.cta h2 {
    font-size: clamp(32px, 4.6vw, 56px);
    max-width: 18ch;
    margin: 0 auto;
}

.cta p {
    margin: 18px auto 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.3;
}

/* Footer */
.foot {
    border-top: 1px solid var(--line);
    padding: 64px 0 32px;
    color: var(--muted);
    font-size: 14px;
}

.foot-in {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
}

.foot-brand p {
    margin-top: 12px;
    color: var(--dim);
}

.foot-brand .brand {
    color: var(--text);
}

.foot-in>div>a {
    display: block;
    padding: 3px 0;
    transition: color .2s;
}

.foot-in>div>a:hover {
    color: var(--text);
}

.foot-h {
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 11px;
    margin-bottom: 12px;
}

.foot address {
    line-height: 1.7;
}

.foot-base {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--dim);
}

.foot-base>span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal */
.modal {
    width: min(980px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: 18px;
    background: var(--panel);
    color: var(--text);
    box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8);
}

.modal::backdrop {
    background: rgba(4, 3, 8, .7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    background: var(--bg-2);
    color: var(--muted);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    min-height: 560px;
}

.modal-info {
    padding: 40px 36px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.modal-info h2 {
    font-size: 30px;
}

.modal-info>p:not(.eyebrow) {
    margin-top: 16px;
    color: var(--muted);
    font-size: 15px;
}

.modal-mail {
    margin-top: auto !important;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-mail .mono {
    color: var(--dim);
}

.modal-mail a {
    color: var(--text);
    display: inline-flex;
    gap: 8px;
}

.modal-cal {
    background: #fff;
}

.modal-cal iframe {
    width: 100%;
    height: 100%;
    min-height: 560px;
    border: 0;
    display: block;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

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

.steps .reveal:nth-child(2),
.cases .reveal:nth-child(2),
.team .reveal:nth-child(2) {
    transition-delay: .08s;
}

.steps .reveal:nth-child(3),
.cases .reveal:nth-child(3) {
    transition-delay: .16s;
}

.steps .reveal:nth-child(4) {
    transition-delay: .24s;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .console-body {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .c-log {
        grid-column: 1 / -1;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .log.is-on {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 0 20px;
    }

    .log li::before {
        display: none;
    }

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

    .step::after {
        display: none;
    }
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .split,
    .compare,
    .team,
    .backers {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .split {
        gap: 40px;
    }

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

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

    .foot-in {
        grid-template-columns: 1fr 1fr;
    }

    .sec {
        padding: 88px 0;
    }

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

    .modal-info {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 32px 24px 24px;
    }

    .modal-mail {
        margin-top: 20px !important;
        padding-top: 0;
    }
}

@media (max-width: 720px) {
    .console-body {
        grid-template-columns: 1fr;
    }

    .c-side {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding: 12px;
        scrollbar-width: none;
    }

    .c-side::-webkit-scrollbar {
        display: none;
    }

    .c-side .c-label,
    .c-deliv {
        display: none;
    }

    .c-asset {
        width: auto;
        flex: none;
        margin: 0;
        padding: 7px 12px;
    }

    .c-asset small,
    .c-status {
        display: none;
    }

    .c-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .log.is-on {
        display: block;
    }

    .log li::before {
        display: block;
    }

    .console-url {
        display: none;
    }

    .console-live {
        margin-left: auto;
    }
}

@media (max-width: 560px) {
    .wrap {
        padding: 0 16px;
    }

    .hide-sm {
        display: none;
    }

    .hero {
        padding-top: 56px;
    }

    .hero-cta .btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .hero-facts {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .console {
        margin-top: 48px;
    }

    .c-main {
        padding: 16px 14px;
    }

    .c-legend {
        gap: 10px;
    }

    .c-chart {
        min-height: 170px;
    }

    .c-chart svg {
        min-height: 160px;
    }

    .c-yaxis {
        min-height: 160px;
    }

    .c-axis span:nth-child(3),
    .c-axis span:nth-child(5) {
        display: none;
    }

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

    .logo-wall img,
    .logo-wall>.logo-txt {
        height: 68px;
        padding: 16px;
    }

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

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

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

    .person img {
        width: 88px;
        height: 88px;
    }

    .cta-card {
        padding: 56px 20px;
    }

    .foot-in {
        grid-template-columns: 1fr;
    }

    .sec h2 {
        font-size: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

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

/* Compare: make the hylosense column the clear winner */
.cmp-avg {
    opacity: .75;
}

.cmp-avg .cmp-h {
    font-size: 18px;
}

.cmp-hs {
    padding: 36px 36px 32px;
    border: 1px solid transparent;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(142, 84, 162, .22), transparent 60%) padding-box,
        linear-gradient(var(--panel), var(--panel)) padding-box,
        linear-gradient(135deg, var(--brand-1), var(--brand-2) 55%, var(--violet)) border-box;
    box-shadow: 0 30px 80px -30px rgba(83, 61, 152, .6);
}

.cmp-hs .cmp-h {
    font-size: 24px;
}

.cmp-hs li {
    font-size: 16px;
    padding: 11px 0;
    align-items: center;
}

.cmp-hs .bi {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ok);
    color: #fff;
    font-size: 13px;
    line-height: 1;
}

.cmp-hs .bi::before {
    font-weight: 700 !important;
}

/* Logos: single scrolling row, faded at both ends */
.logo-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.logo-marquee .logo-wall {
    display: flex;
    width: max-content;
    gap: 0;
    border: 0;
    border-radius: 0;
    background: none;
    overflow: visible;
    animation: logo-scroll 45s linear infinite;
}

.logo-marquee:hover .logo-wall {
    animation-play-state: paused;
}

.logo-marquee .logo-wall>span {
    flex: 0 0 200px;
    background: none;
}

@keyframes logo-scroll {
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 860px) {
    .logo-marquee .logo-wall>span {
        flex-basis: 160px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-marquee {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .logo-marquee .logo-wall {
        animation: none;
    }
}

/* Flags centred above each name/logo */
.logo-marquee .logo-wall>span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 96px;
    padding: 0 16px;
}

.logo-marquee .logo-wall .fi {
    position: static;
    flex: none;
}

.logo-marquee .logo-wall img {
    height: 34px;
    width: 100%;
    padding: 0 12px;
}

@media (max-width: 860px) {
    .logo-marquee .logo-wall>span {
        height: 84px;
        padding: 0 12px;
    }

    .logo-marquee .logo-wall img {
        height: 28px;
        padding: 0 8px;
    }
}

.logo-marquee .logo-wall>span {
    gap: 0;
}

.logo-marquee .logo-wall .fi {
    margin-bottom: 8px;
}

.logo-marquee .logo-txt b {
    margin-top: 1px;
}

.logo-marquee .logo-txt b {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.logo-marquee .logo-txt b .fi {
    margin: 0;
    width: 18px;
    height: 13px;
    line-height: 13px;
}

/* Steps: same edge as the asset tiles below them */
.step {
    border-color: var(--line-2);
    background-clip: padding-box;
}

/* Always show the hand cursor on links and buttons */
a[href],
button,
.btn,
.nav-links a,
.brand {
    cursor: pointer;
}

.nav-in {
    position: relative;
    z-index: 1;
}

/* Decorative layers never take the mouse (the animated hero glow sits under the nav) */
.hero-glow,
.hero-grid,
.cta-glow,
.console::before {
    pointer-events: none;
}

.hero-glow {
    top: -120px;
}

/* The big blurred glow was re-rendered every frame; keep it static */
.hero-glow {
    animation: none;
    will-change: auto;
}

/* Results as a sub-part of How it works */
.sub-head {
    margin: 88px 0 28px;
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.15;
    scroll-margin-top: 88px;
}

/* Book a demo: brand purple */
.btn-primary {
    background: linear-gradient(135deg, #533d98, #8e54a2);
    color: #fff;
    box-shadow: 0 8px 24px -10px rgba(83, 61, 152, .7);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #47338a, #7d4790);
    color: #fff;
}

.brand img.brand-full {
    width: auto;
    height: 30px;
    filter: none;
}

/* ================= Product animation: Generation -> Trading -> Transmission ================= */
.ops {
    --red: #dc2626;
    --green: #16a34a;
}

.ops-tabs {
    display: flex;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}

.ops-tabs::-webkit-scrollbar {
    display: none;
}

.ops-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: none;
    font: 500 13.5px var(--sans);
    color: var(--muted);
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s;
}

.ops-tab .bi {
    color: var(--c);
    font-size: 14px;
}

.ops-tab:hover {
    color: var(--text);
}

.ops-tab.is-on {
    color: var(--text);
    background: color-mix(in srgb, var(--c) 10%, transparent);
    border-color: color-mix(in srgb, var(--c) 30%, transparent);
}

.ops-badge {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c);
    transform: scale(0);
    transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}

.ops-tab.has-new .ops-badge {
    transform: scale(1);
}

.ops-stage {
    position: relative;
    display: grid;
}

.ops-pane {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    min-height: 420px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, visibility 0s .45s;
}

.ops-pane.is-on {
    opacity: 1;
    visibility: visible;
    transition: opacity .45s ease;
}

.ops-main {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ops-pane>aside {
    padding: 18px 16px;
    border-left: 1px solid var(--line);
    background: rgba(0, 0, 0, .18);
    min-width: 0;
}

.ops-meta {
    font-weight: 400;
    color: var(--dim);
    font-size: 13px;
    margin-left: 6px;
    letter-spacing: 0;
}

/* cursors (Miro-style, labelled with the team) */
.ops-cursor {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    transition: transform 1s cubic-bezier(.45, .05, .25, 1), opacity .3s;
}

.ops-cursor.is-on {
    opacity: 1;
}

.ops-cursor svg {
    width: 18px;
    height: 22px;
    display: block;
    transition: transform .15s;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
}

.ops-cursor path {
    fill: var(--c);
    stroke: #fff;
    stroke-width: 1.4;
    stroke-linejoin: round;
}

.ops-cursor span {
    position: absolute;
    left: 14px;
    top: 19px;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 4px 10px 10px 10px;
    background: var(--c);
    color: #fff;
    font: 500 12px var(--sans);
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35);
}

.ops-cursor.down svg {
    transform: scale(.82);
}

/* buttons inside the mock */
.ops-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    font: 500 13px var(--sans);
    border: 1px solid var(--line-2);
    color: var(--muted);
    background: var(--panel-2);
    transition: background .25s, color .25s, border-color .25s, transform .15s, opacity .25s;
}

.ops-btn b {
    font-weight: inherit;
}

.ops-btn.pressed {
    transform: scale(.95);
}

/* 1. Generation */
.ops-chart {
    position: relative;
    margin: 18px 0 0 40px;
    height: 236px;
}

.ops-chart .c-yaxis {
    min-height: 0;
}

.ops-chart svg {
    width: 100%;
    height: calc(100% - 22px);
    display: block;
    overflow: visible;
}

.ops-chart path {
    fill: none;
    vector-effect: non-scaling-stroke;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.ops-line {
    clip-path: inset(0 100% 0 0);
}

.ops-chart.drawn .ops-line {
    clip-path: inset(0 0 0 0);
    transition: clip-path 1.6s cubic-bezier(.4, 0, .2, 1);
}

.ops-fc,
.ops-wrong {
    stroke: url(#fcG);
    stroke-width: 2.25;
    transition: stroke .4s, opacity .4s;
}

.ops-chart.issue .ops-wrong {
    stroke: var(--red);
    stroke-width: 2.5;
}

.ops-chart.fixed .ops-wrong {
    stroke: var(--red);
    stroke-width: 1.5;
    stroke-dasharray: 3 4;
    opacity: .45;
}

.ops-fixed {
    stroke: url(#fcG);
    stroke-width: 2.25;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.ops-chart.fixed .ops-fixed {
    stroke: #7a4bb0;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset .9s ease;
}

.ops-win {
    fill: var(--red);
    opacity: 0;
    transition: opacity .4s, fill .4s;
}

.ops-chart.issue .ops-win {
    opacity: .08;
}

.ops-chart.fixed .ops-win {
    fill: var(--green);
    opacity: .06;
}

.ops-cap {
    stroke: var(--red);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    vector-effect: non-scaling-stroke;
    opacity: 0;
    transition: opacity .4s, stroke .4s;
}

.ops-chart.issue .ops-cap {
    opacity: .8;
}

.ops-chart.fixed .ops-cap {
    stroke: var(--green);
}

.ops-hit {
    position: absolute;
    top: 0;
    height: calc(100% - 22px);
}

.ops-flag {
    position: absolute;
    top: -12px;
    transform: translateX(-50%);
    pointer-events: none;
}

.ops-flag>span {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 4px);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    opacity: 0;
    transition: opacity .3s, transform .3s;
}

.ops-flag .is-bad {
    background: var(--red);
}

.ops-flag .is-good {
    background: var(--green);
}

.ops-chart.issue:not(.fixed) .is-bad,
.ops-chart.fixed .is-good {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ops-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.ops-status {
    font-size: 13px;
    color: var(--muted);
}

.ops-btns {
    display: flex;
    gap: 8px;
}

.ops-btns .ops-btn {
    opacity: .45;
}

.ready .ops-btns .ops-btn {
    opacity: 1;
}

.ops-approve {
    color: #fff;
    background: var(--green);
    border-color: var(--green);
}

.ops-approve.done {
    background: color-mix(in srgb, var(--green) 14%, transparent);
    color: var(--green);
    border-color: color-mix(in srgb, var(--green) 40%, transparent);
}

.approved .ops-modify {
    opacity: .45 !important;
}

.ops-log li {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 0 0 14px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.45;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .35s, transform .35s;
}

.ops-log li.is-in {
    opacity: 1;
    transform: none;
}

.ops-log li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 23px;
    bottom: 2px;
    width: 1px;
    background: var(--line-2);
}

.ops-log .log-run .log-tx {
    color: var(--text);
}

.ops-log [data-done],
.ops-log .log-ok [data-wait] {
    display: none;
}

.ops-log .log-ok [data-done] {
    display: inline;
}

/* 2. Trading */
.ops-rows {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.ops-rows li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 72px 76px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-2);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity .4s, transform .4s;
}

.ops-rows li.is-in {
    opacity: 1;
    transform: none;
}

.ops-rows .bi {
    color: var(--violet);
}

.ops-row-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ops-row-name b {
    font-weight: 500;
    font-size: 13.5px;
}

.ops-row-name small {
    font-size: 11.5px;
    color: var(--dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ops-spark {
    width: 72px;
    height: 22px;
}

.ops-spark path {
    fill: none;
    stroke: var(--lilac);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.ops-rows em {
    font-style: normal;
    text-align: right;
    font-size: 14px;
    color: var(--text);
}

.ops-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

.ops-total b {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
}

.ops-market {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ops-market>*:not(.c-label) {
    opacity: .35;
    transition: opacity .4s;
}

.market .ops-market>* {
    opacity: 1;
}

.ops-market .c-label {
    margin-bottom: 0;
}

.ops-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ops-kpis div,
.ops-form>div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ops-kpis small,
.ops-form small {
    font-size: 11px;
    color: var(--dim);
}

.ops-kpis b {
    font-weight: 500;
    font-size: 15px;
}

.ops-price {
    width: 100%;
    height: 56px;
    overflow: visible;
}

.ops-price path {
    fill: none;
    stroke: var(--signal);
    stroke-width: 1.75;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.market .ops-price path {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s ease;
}

.ops-price-win {
    fill: var(--signal);
    opacity: .12;
}

.ops-price-hr {
    display: none;
}

.ops-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ops-field {
    display: flex;
    align-items: center;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    background: var(--panel);
    color: var(--text);
    font-size: 13px;
    transition: border-color .2s, box-shadow .2s;
}

.ops-caret {
    display: none;
    width: 1px;
    height: 15px;
    margin-left: 1px;
    background: var(--text);
    animation: blink 1s steps(1) infinite;
}

.typing .ops-field[data-price] {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, .15);
}

.typing .ops-caret {
    display: block;
}

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

.ops-bid {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    border-color: transparent;
    width: 100%;
}

.placed .ops-bid {
    opacity: .55 !important;
}

.ops-won {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--green) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
    font-size: 12.5px;
    color: var(--green);
    opacity: 0 !important;
    transform: translateY(6px);
    transition: opacity .4s, transform .4s;
}

.ops-won span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ops-won b {
    font-size: 17px;
    font-weight: 600;
}

.won .ops-won {
    opacity: 1 !important;
    transform: none;
}

/* 3. Transmission */
.ops-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ops-side .c-label {
    margin-bottom: 0;
}

.ops-state {
    position: relative;
    height: 34px;
}

.ops-state>span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.02em;
    transition: opacity .4s;
}

.ops-state .is-bad {
    color: var(--red);
}

.ops-state .is-semi {
    color: #d97706;
    opacity: 0;
}

.ops-state .is-good {
    color: var(--green);
    opacity: 0;
}

.semi .ops-state .is-bad,
.stable .ops-state .is-bad {
    opacity: 0;
}

.semi .ops-state .is-semi {
    opacity: 1;
}

.stable .ops-state .is-good {
    opacity: 1;
}

.ops-meter {
    height: 6px;
    border-radius: 6px;
    background: var(--line);
    overflow: hidden;
}

.ops-meter span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--red);
    transition: width .4s ease, background-color .4s;
    border-radius: 6px;
}

.semi .ops-meter span {
    background: #d97706;
}

.stable .ops-meter span {
    background: var(--green);
}

.ops-confirm {
    margin-top: auto;
    opacity: .45;
}

.stable .ops-confirm {
    opacity: 1;
    color: #fff;
    background: var(--green);
    border-color: var(--green);
}

.confirmed .ops-confirm {
    background: color-mix(in srgb, var(--green) 14%, transparent);
    color: var(--green);
    border-color: color-mix(in srgb, var(--green) 40%, transparent);
}

@media (max-width: 860px) {
    .ops-pane {
        grid-template-columns: 1fr;
    }

    .ops-pane>aside {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .ops-market {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }

    .ops-market .c-label,
    .ops-market .ops-price,
    .ops-market .ops-won {
        grid-column: 1 / -1;
    }

    .ops-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .ops-side .c-label {
        grid-column: 1 / -1;
    }

    .ops-confirm {
        margin: 0;
    }
}

@media (max-width: 560px) {
    .ops-main {
        padding: 16px 14px;
    }

    .ops-chart {
        height: 200px;
    }

    .ops-rows li {
        grid-template-columns: 18px minmax(0, 1fr) 64px;
        padding: 9px 12px;
    }

    .ops-spark {
        display: none;
    }

    .ops-market,
    .ops-side {
        grid-template-columns: 1fr;
    }

    .ops-tab {
        padding: 7px 11px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ops *,
    .ops *::before {
        transition: none !important;
        animation: none !important;
    }
}

.ops-cursor.up span {
    top: auto;
    bottom: 19px;
    border-radius: 10px 10px 10px 4px;
}

.ops-cursor.left span {
    left: auto;
    right: 4px;
    border-radius: 10px 4px 10px 10px;
}

.ops-cursor.left.up span {
    border-radius: 10px 10px 4px 10px;
}

/* tabs: content centred, the "new" dot no longer takes up space */
.ops-tab {
    justify-content: center;
    line-height: 1;
}

.ops-tab .bi {
    display: block;
    line-height: 1;
}

.ops-tab .bi::before {
    display: block;
}

.ops-badge {
    position: absolute;
    top: 5px;
    right: 5px;
}

/* incoming forecasts: agentic, with approval state */
.ops-row-name small {
    display: flex;
    gap: 4px 10px;
    flex-wrap: wrap;
    white-space: normal;
}

.ops-row-name small>span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.ops-agent {
    color: var(--violet);
}

.ops-appr.is-ok {
    color: var(--green);
}

.ops-appr.is-auto {
    color: var(--muted);
}

.ops-appr.is-adj {
    color: #d97706;
}

.ops-rows em small {
    font-size: 11px;
    color: var(--dim);
}

/* 3. Transmission: one substation */
.ops-inputs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.ops-in {
    padding: 10px 12px;
    border: 1px dashed color-mix(in srgb, var(--red) 45%, transparent);
    border-radius: 10px;
    background: var(--panel-2);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    transition: border-color .4s;
}

.ops-in.ok {
    border-style: solid;
    border-color: var(--line);
}

.ops-in-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.ops-in-top b {
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ops-in-top .bi {
    color: var(--violet);
}

.ops-in-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    flex: none;
    transition: background .3s;
}

.ops-in.ok .ops-in-dot {
    background: var(--green);
}

.ops-in .ops-spark {
    width: 100%;
    opacity: 0;
    transition: opacity .4s;
}

.ops-in.ok .ops-spark {
    opacity: 1;
}

.ops-in small {
    font-size: 11px;
    color: var(--dim);
}

.ops-in .is-ok,
.ops-in.ok .is-wait {
    display: none;
}

.ops-in.ok .is-ok {
    display: inline;
    color: var(--text);
}

.ops-feedin {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    color: var(--dim);
}

.ops-feedin span {
    flex: 1;
    height: 1px;
    background: var(--line-2);
}

.ops-feedin .bi {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    font-size: 13px;
    transition: color .4s, border-color .4s;
}

.pq .ops-feedin .bi {
    color: #2563eb;
    border-color: rgba(37, 99, 235, .4);
}

.ops-pqchart {
    height: 190px;
    margin-top: 10px;
}

.ops-pqchart .grid-lines .zero {
    stroke: var(--line-2);
}

.ops-p,
.ops-q {
    stroke-width: 2.25;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.ops-p {
    stroke: url(#fcG);
}

.ops-q {
    stroke: var(--signal);
    stroke-width: 1.75;
}

.pq .ops-p,
.pq .ops-q {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.4s cubic-bezier(.4, 0, .2, 1);
}

.pq .ops-q {
    transition-delay: .25s;
}

.ops-pq-wait {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    color: var(--dim);
    font-size: 12px;
    transition: opacity .3s;
}

.pq .ops-pq-wait {
    opacity: 0;
}

.ops-pqchart+.c-legend {
    margin-top: 6px;
}

.lg-p {
    background: linear-gradient(90deg, #7b6cf6, #c58cff);
}

.lg-q {
    background: var(--signal);
}

@media (max-width: 560px) {
    .ops-inputs {
        grid-template-columns: 1fr;
    }

    .ops-in {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .ops-in-top {
        flex: 1;
    }

    .ops-in .ops-spark {
        width: 60px;
        flex: none;
    }

    .ops-pqchart {
        height: 170px;
    }
}

/* Generation: the three global weather models, shown where they disagree */

/* tabs: centred, folder-style */
.ops-tabs {
    gap: 2px;
    padding: 10px 8px 0;
    background: rgba(255, 255, 255, .02);
}

.ops-tab:first-child {
    margin-left: auto;
}

.ops-tab:last-child {
    margin-right: auto;
}

.ops-tab {
    padding: 10px 18px;
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: none;
}

.ops-tab:hover {
    background: rgba(255, 255, 255, .03);
}

.ops-tab.is-on {
    background: var(--panel);
    border-color: var(--line);
    color: var(--text);
    box-shadow: inset 0 2px 0 var(--c);
}

.ops-tab.is-on {
    box-shadow: none;
}

/* Draw-ins: reveal with a clip instead of a dash offset. With non-scaling strokes, a dash offset left a sliver of the line visible before it was drawn */
.ops-fixed,
.ops-p,
.ops-q,
.ops-price path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    clip-path: inset(0 100% 0 0);
    opacity: 0;
}

.ops-chart.fixed .ops-fixed {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition: clip-path .9s ease, opacity .2s;
}

.pq .ops-p,
.pq .ops-q {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition: clip-path 1.4s cubic-bezier(.4, 0, .2, 1), opacity .2s;
}

.pq .ops-q {
    transition-delay: .25s;
}

.market .ops-price path {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition: clip-path 1s ease, opacity .2s;
}

/* Transmission: four inputs, checklist */
.ops-inputs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-checks {
    list-style: none;
    margin: 2px 0 0;
    padding: 0;
    display: grid;
    gap: 7px;
}

.ops-checks li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: var(--text);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .3s, transform .3s;
}

.ops-checks li.is-in {
    opacity: 1;
    transform: none;
}

.ops-checks .log-ic {
    color: #fff;
    border-color: #16a34a;
    background: #16a34a;
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
}

.ops-checks li:last-child {
    font-weight: 600;
}

@media (max-width: 860px) {
    .ops-inputs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-checks {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .ops-inputs {
        grid-template-columns: 1fr;
    }
}

.ops-checks .log-ic {
    background: none;
    border: 0;
    color: #16a34a;
    font-size: 15px;
}

/* Results flow straight into the comparison: tighter gap between #how and #compare */
#how {
    padding-bottom: 64px;
}

#compare {
    padding-top: 48px;
}

@media (max-width: 720px) {
    #how {
        padding-bottom: 48px;
    }

    #compare {
        padding-top: 32px;
    }
}
/* ================= Product animation: phone layout, each scene fits on one screen ================= */
@media (max-width: 600px) {
    .ops-tabs { padding: 8px 6px 0; gap: 0; }
    .ops-tab { padding: 8px 10px; font-size: 12.5px; gap: 6px; }
    .ops-tab .bi { font-size: 13px; }
    .ops-pane { min-height: 0; }
    .ops-main { padding: 14px 14px 12px; }
    .ops-pane > aside { padding: 12px 14px 14px; }
    .ops .c-head { gap: 2px 10px; }
    .ops .c-title { font-size: 15px; }
    .ops .c-sub { font-size: 10.5px; }
    .ops-meta { font-size: 11.5px; margin-left: 4px; }
    .ops .c-label { margin-bottom: 6px; }

    /* Generation: smaller chart, only the latest agent step */
    .ops-chart { height: 168px; margin: 22px 0 0 34px; }
    .ops-chart .c-yaxis { width: 30px; font-size: 9.5px; }
    .ops-flag > span { font-size: 10px; padding: 2px 6px; }
    .ops-bar { padding-top: 10px; }
    .ops-status { font-size: 12px; }
    .ops-btn { height: 32px; padding: 0 11px; font-size: 12.5px; }
    .ops-log li { padding: 0; min-height: 40px; }
    .ops-log li:not(.is-in), .ops-log li.is-in:has(~ li.is-in) { display: none; }
    .ops-log li::before { display: none; }

    /* Trading: compact rows, one-line bid form, no price curve */
    .ops-rows { margin-top: 10px; gap: 6px; }
    .ops-rows li { grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; padding: 7px 10px; }
    .ops-row-name b { font-size: 13px; }
    .ops-row-name small { font-size: 10.5px; gap: 2px 8px; }
    .ops-agent { display: none !important; }
    .ops-rows em { font-size: 13px; }
    .ops-total { display: none; }
    .ops-market { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: end; }
    .ops-market .c-label, .ops-market .ops-kpis, .ops-market .ops-won { grid-column: 1 / -1; }
    .ops-kpis b { font-size: 13.5px; }
    .ops-price { display: none; }
    .ops-form { grid-template-columns: 1fr; }
    .ops-form > div:first-child { display: none; }
    .ops-field { height: 32px; }
    .ops-bid { width: auto; }
    .ops-won { padding: 8px 10px; font-size: 12px; }
    .ops-won b { font-size: 15px; }

    /* Transmission: 4 small input tiles, short chart, two-column checklist */
    .ops-inputs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
    .ops-in { flex-direction: column; align-items: stretch; gap: 4px; padding: 7px 8px; }
    .ops-in-top { gap: 5px; font-size: 11px; }
    .ops-in-top .bi { font-size: 12px; }
    .ops-in .ops-spark { width: 100%; height: 14px; }
    .ops-in small { font-size: 9.5px; }
    .ops-in .is-wait { display: none; }
    .ops-in .is-ok { white-space: nowrap; }
    .ops-feedin { display: none; }
    .ops-pqchart { height: 132px; margin: 14px 0 0 30px; }
    .ops-pq-wait { font-size: 11px; }
    .ops-pqchart + .c-legend { margin-top: 2px; font-size: 10.5px; gap: 6px 12px; }
    .ops-side { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; align-items: center; }
    .ops-side .c-label, .ops-checks, .ops-confirm { grid-column: 1 / -1; }
    .ops-side .c-label { margin: 0; }
    .ops-state { height: 26px; min-width: 128px; }
    .ops-state > span { font-size: 17px; gap: 6px; }
    .ops-checks { grid-template-columns: 1fr 1fr; gap: 4px 10px; margin: 0; }
    .ops-checks li { font-size: 11.5px; gap: 5px; }
    .ops-checks li:last-child { grid-column: 1 / -1; }
    .ops-confirm { margin: 2px 0 0; }
}
@media (max-width: 600px) {
    .ops-in-top .bi, .ops-in-dot, .ops-peak-l { display: none; }
}

/* Tabs: equal width */
.ops-tab { flex: 0 0 150px; }
@media (max-width: 600px) {
    .ops-tab { flex: 1 1 0; min-width: 0; padding-left: 6px; padding-right: 6px; }
    .ops-tab:first-child { margin-left: 0; }
    .ops-tab:last-child { margin-right: 0; }
}

/* ---------- Mobile tidy-ups ---------- */
@media (max-width: 720px) {
    /* tighter space around the customer marquee */
    .hero { padding-bottom: 20px; }
    .logos { padding: 28px 0 0; }
    .logos + .sec { padding-top: 56px; }

    /* How it works: one box, parts split by horizontal lines */
    .steps { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
    .step { border: 0; border-radius: 0; background: none; }
    .step + .step { border-top: 1px solid var(--line-2); }
    .step::after { display: none; }

    .br-desk { display: none; }
}

/* Booking modal on phones: full-screen sheet, short header, calendar fills the rest */
@media (max-width: 720px) {
    .modal[open] {
        width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; inset: 0;
        border: 0; border-radius: 0; display: flex; flex-direction: column; overflow: hidden;
    }
    .modal-grid { grid-template-columns: 1fr; display: flex; flex-direction: column; flex: 1; min-height: 0; }
    .modal-info { padding: 18px 64px 14px 18px; border-right: 0; border-bottom: 1px solid var(--line); flex: none; }
    .modal-info h2 { font-size: 20px; }
    .modal-info .eyebrow { margin-bottom: 6px; }
    .modal-info > p:not(.eyebrow):not(.modal-mail) { display: none; }
    .modal-mail { margin-top: 8px !important; padding-top: 0; flex-direction: row; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; }
    .modal-cal { flex: 1; min-height: 0; }
    .modal-cal iframe { height: 100%; min-height: 0; }
    .modal-close { top: 12px; right: 12px; }
}

/* Decorative glows must not widen the page (on phones they stretched the layout viewport to ~850px) */
.hero, .cta { overflow-x: clip; }
html { overflow-x: clip; }

/* Tabs always fit now: no scrolling (the -1px tab overlap made the bar scroll vertically) */
.ops-tabs { overflow: visible; }

/* ================= Fleet view in "How it works": one agent per asset ================= */
.fleet { margin-top: 40px; }
.fleet { border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(83, 61, 152, .35); }
.aw-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.aw-title { display: flex; align-items: center; gap: 12px; }
.aw-title > span:last-child { display: flex; flex-direction: column; }
.aw-title b { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.aw-title small { color: var(--dim); font-size: 12.5px; }
.aw-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); }


.fleet-sum { display: flex; gap: 6px 18px; flex-wrap: wrap; color: var(--muted); }
.fleet-sum b { color: var(--text); font-weight: 500; }
.fleet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.fl { background: var(--panel); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: background .4s; }
.fl-top { display: flex; align-items: center; gap: 8px; }
.fl-top .bi { color: var(--violet); }
.fl-top b { font-weight: 500; font-size: 14px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; flex: none; transition: background .3s; }
.fl > small { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-spark { width: 100%; height: 30px; margin: 4px 0; }
.fl-spark path { fill: none; stroke: var(--lilac); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.fl-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.fl-row b { color: var(--text); font-weight: 500; }
.fl.s-warn { background: rgba(220, 38, 38, .04); }
.fl.s-warn .fl-dot { background: #dc2626; }
.fl.s-run { background: rgba(83, 61, 152, .05); }
.fl.s-run .fl-dot { background: var(--violet); }
.fl.s-new { background: rgba(22, 163, 74, .05); }

@media (max-width: 960px) {
    .fleet-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .fl { padding: 12px 14px; }
    .fl > small { display: none; }
}
/* fleet: solid state tints, so fading between states never passes through gray */
.fl.s-warn { background: color-mix(in srgb, #dc2626 5%, var(--panel)); }
.fl.s-run { background: color-mix(in srgb, #533d98 6%, var(--panel)); }
.fl.s-new { background: color-mix(in srgb, #16a34a 6%, var(--panel)); }

/* fleet: on drift the forecast line bends away and accuracy drops (red); recalibration brings both back */
.fl-spark path { transition: opacity .5s, stroke .4s; }
.fl-spark .fl-bad { opacity: 0; stroke: #dc2626; }
.fl.s-warn .fl-good, .fl.s-run .fl-good { opacity: 0; }
.fl.s-warn .fl-bad { opacity: 1; }
.fl.s-run .fl-bad { opacity: 1; stroke: var(--violet); stroke-dasharray: 3 3; }
.fl-row b { transition: color .3s; }
.fl.s-warn .fl-row b, .fl.s-run .fl-row b { color: #dc2626; }
.fl.s-new .fl-row b { color: #16a34a; }

/* fleet: the status replaces the "Accuracy" label while drift is being handled (no separate status row) */
.fl-lbl > span { display: none; align-items: center; gap: 5px; }
.fl-lbl .fl-ok { display: inline-flex; }
.fl.s-warn .fl-lbl .fl-ok, .fl.s-run .fl-lbl .fl-ok { display: none; }
.fl.s-warn .fl-lbl .fl-warn, .fl.s-run .fl-lbl .fl-run { display: inline-flex; }
.fl-lbl .fl-warn { color: #dc2626; }
.fl-lbl .fl-run { color: var(--violet); }
.fl-lbl .fl-run .bi { animation: spin 1.2s linear infinite; }
.fl.s-new .fl-lbl .fl-ok { display: none; }
.fl.s-new .fl-lbl .fl-new { display: inline-flex; color: #16a34a; }

/* fleet drift on the chart: the original stays solid outside the dip, dashed gray where it changed, the drifted part in red */
.fl-spark { height: 40px; }
.fl-spark .fl-base, .fl-spark .fl-ghost, .fl-spark .fl-bad { opacity: 0; }
.fl-spark .fl-ghost { stroke: var(--dim); stroke-dasharray: 2 3; }
.fl-spark .fl-bad { stroke: #dc2626; stroke-width: 2; stroke-dasharray: none; }
.fl.s-warn .fl-good, .fl.s-run .fl-good { opacity: 0; }
.fl.s-warn .fl-base, .fl.s-run .fl-base, .fl.s-warn .fl-ghost, .fl.s-run .fl-ghost, .fl.s-warn .fl-bad, .fl.s-run .fl-bad { opacity: 1; }
.fl.s-run .fl-bad { stroke: #dc2626; stroke-dasharray: none; opacity: .45; }

/* fleet drift: the red line itself falls and climbs back (JS morph), no cross-fade */
.fl-spark .fl-bad { transition: stroke .4s; }
.fl-spark .fl-base, .fl-spark .fl-ghost, .fl-spark .fl-good { transition: none; }
.fl.s-run .fl-bad { opacity: 1; }
.fl.s-new .fl-good { opacity: 0; }
.fl.s-new .fl-base, .fl.s-new .fl-ghost, .fl.s-new .fl-bad { opacity: 1; }
.fl.s-new .fl-bad { stroke: #16a34a; }

/* Booking modal open: page doesn't scroll, and every animation behind it pauses */
html.modal-open { overflow: hidden; }
html.modal-open main *, html.modal-open main *::before, html.modal-open main *::after { animation-play-state: paused !important; }
