/* deskovif.com — the brand manual v1.1 as docs/marca/LEIA-ME.md applies it: navy stage, cyan actions
   (cyan → blue gradient, navy text on it), gold for key numbers and seals, REC red only for the live dot,
   Turquesa Luz focus, Inter. Components use the tokens below, never literal colors. */

@font-face {
    font-family: "Inter";
    src: url("/fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;

    /* Palette (manual, table 2) */
    --navy: #020A1D;
    --cyan: #22D3EE;
    --blue: #0EA5E9;
    --turquoise: #41F4D6;
    --gold: #E8B84A;
    --gold-light: #F9D86D;
    --ice: #E6EEF9;
    --slate: #8FA3C0;
    --rec: #FF4D4D;

    /* Roles */
    --surface-0: var(--navy);
    --surface-1: #071631;
    --surface-2: #0C1F40;
    --surface-3: #13294F;
    --card-bg: rgba(12, 31, 64, .55);
    --border: #15305A;
    --border-strong: #20457A;
    --text-1: var(--ice);
    --text-2: var(--slate);
    --text-3: #8396B3;
    --link: var(--cyan);
    --link-hover: #67E8F9;
    --focus: var(--turquoise);
    --brand-gradient: linear-gradient(135deg, var(--cyan), var(--blue));
    --on-brand: var(--navy);
    --brand-bg: rgba(34, 211, 238, .12);
    --brand-ring: rgba(34, 211, 238, .35);
    --glow: rgba(34, 211, 238, .16);
    --gold-bg: rgba(232, 184, 74, .14);
    --on-gold: var(--navy);
    --success: #4ADE80;
    --rec-ring: rgba(255, 77, 77, .55);

    --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-pill: 999px;
    --wrap: 1160px;
    --gutter: 24px;
    --topbar-h: 72px;
    --section-y: clamp(64px, 9vw, 112px);
    --shadow: 0 18px 48px rgba(0, 0, 0, .45);
}

/* ---------- Base ---------- */

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

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

body {
    margin: 0;
    background: var(--surface-0);
    color: var(--text-1);
    font: 400 1rem/1.5 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }

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

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--text-1); line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); font-weight: 750; letter-spacing: -.02em; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mono { font-family: var(--mono); font-size: .92em; }
.center { text-align: center; }

/* Addresses, paths and protocol lines read left to right in every language (Arabic included). */
.cam__text small, .node--out .mono, .telemetry, #ptz-cart { direction: ltr; unicode-bidi: isolate; }

/* Scripts Inter does not draw: the system font of each language right after it (as in the product). */
:lang(ar) { --font: "Inter", "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif; }
:lang(zh-CN) { --font: "Inter", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif; }
:lang(ja) { --font: "Inter", "Yu Gothic UI", "Yu Gothic", Meiryo, "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; }
:lang(ko) { --font: "Inter", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; }
/* Letter spacing breaks the joined Arabic script and does nothing good to Chinese, Japanese or Korean. */
:lang(ar) *, :lang(zh-CN) *, :lang(ja) *, :lang(ko) * { letter-spacing: 0 !important; }
:lang(zh-CN) body, :lang(ja) body, :lang(ko) body { line-break: strict; word-break: keep-all; }

/* The script in <head> hides the page while another language than English loads (1.5 s at most). */
.i18n-wait body { visibility: hidden; }

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip {
    position: absolute;
    inset-inline-start: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    background: var(--cyan);
    color: var(--on-brand);
    font-weight: 600;
    text-decoration: none;
}
.skip:focus { top: 12px; color: var(--on-brand); }

/* ---------- Type helpers ---------- */

.eyebrow {
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.lead {
    max-width: 62ch;
    color: var(--text-2);
    font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
    line-height: 1.6;
}

.fine { color: var(--text-3); font-size: .875rem; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    font: 650 1rem/1.25 var(--font);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s var(--ease), box-shadow .2s, background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--brand-gradient); color: var(--on-brand); box-shadow: 0 6px 22px rgba(14, 165, 233, .28); }
.btn--primary:hover { color: var(--on-brand); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(34, 211, 238, .35); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--text-1); border-color: var(--border-strong); }
.btn--ghost:hover { color: var(--cyan); border-color: var(--cyan); background: var(--brand-bg); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn--disabled { background: var(--surface-2); color: var(--text-3); border-color: var(--border); cursor: not-allowed; }

/* ---------- Top bar ---------- */

/* Solid navy: the header logo file carries a flat #020A1D background (brand rule). */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface-0);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }

.topbar__inner { display: flex; align-items: center; gap: 24px; height: var(--topbar-h); }
.brand { flex: none; }
.brand img { width: 158px; }

.nav { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
.nav > a:not(.btn) { color: var(--text-2); font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav > a:not(.btn):hover { color: var(--text-1); }

/* Language: a one-click way back to English plus the menu of all 12 languages. */
.langmenu { position: relative; display: flex; align-items: center; gap: 6px; flex: none; }
.langmenu__en { padding: 8px 6px; color: var(--text-2); font-size: .875rem; font-weight: 600; text-decoration: none; }
.langmenu__en:hover { color: var(--cyan); }
.langmenu__en[hidden] { display: none; }
.langmenu__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--text-1);
    font: 600 .875rem/1 var(--font);
    cursor: pointer;
}
.langmenu__btn:hover { border-color: var(--cyan); }
.langmenu__btn .icon { width: 18px; height: 18px; color: var(--cyan); }
.langmenu__btn .langmenu__chevron { width: 14px; height: 14px; color: var(--text-2); transition: transform .2s var(--ease); }
.langmenu__btn[aria-expanded="true"] .langmenu__chevron { transform: rotate(180deg); }
.langmenu__list {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    z-index: 60;
    display: grid;
    min-width: 220px;
    max-height: min(70vh, 520px);
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    background: var(--surface-1);
    box-shadow: var(--shadow);
}
.langmenu__list[hidden] { display: none; }
.langmenu__list a { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text-1); text-decoration: none; }
.langmenu__list a:hover { background: var(--surface-2); color: var(--cyan); }
.langmenu__list a[aria-current="true"] { background: var(--brand-bg); color: var(--cyan); font-weight: 600; }

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex: none;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    background: transparent;
    color: var(--text-1);
    cursor: pointer;
}

/* The links collapse early: German and French labels are long. */
@media (max-width: 1120px) {
    .menu-btn { display: inline-flex; }
    .langmenu { margin-inline-start: auto; }
    .nav {
        position: absolute;
        top: var(--topbar-h);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gutter) 20px;
        background: var(--surface-0);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 32px rgba(0, 0, 0, .45);
    }
    .nav.is-open { display: flex; }
    .nav > a:not(.btn) { padding: 14px 2px; border-bottom: 1px solid var(--border); font-size: 1rem; }
    .nav .btn { margin-top: 16px; }
}
.langmenu__code { display: none; }
@media (max-width: 600px) {
    .langmenu__en, .langmenu__current { display: none; }
    .langmenu__code { display: inline; }
}

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(40px, 6vw, 88px) 0 8px; overflow: clip; }
.hero__glow {
    position: absolute;
    top: -30%;
    right: -15%;
    width: min(900px, 80vw);
    aspect-ratio: 1;
    background: radial-gradient(closest-side, rgba(34, 211, 238, .16), rgba(14, 165, 233, .06) 45%, transparent 72%);
    pointer-events: none;
}
.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.hero__logo { width: clamp(220px, 26vw, 340px); margin-bottom: 28px; }
.hero h1 { margin-bottom: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 16px; }
.works {
    margin-top: clamp(40px, 6vw, 72px);
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-3);
    font-size: .9375rem;
    text-align: center;
}

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Video pane (VMS mock-up) ---------- */

.pane {
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    background: var(--surface-1);
    box-shadow: var(--shadow), 0 0 80px var(--glow);
}
.pane__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    font-size: .8125rem;
}
.dots { display: inline-flex; gap: 6px; flex: none; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.pane__title { flex: 1; min-width: 0; overflow: hidden; color: var(--text-2); text-overflow: ellipsis; white-space: nowrap; }

.live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    color: var(--text-1);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: rec-pulse 2s infinite; }
@keyframes rec-pulse {
    0% { box-shadow: 0 0 0 0 var(--rec-ring); }
    70%, 100% { box-shadow: 0 0 0 8px transparent; }
}

.pane__screen {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: radial-gradient(120% 90% at 20% 0%, var(--surface-3), var(--surface-0) 70%);
}

.fake-app {
    position: absolute;
    inset: 9% 7%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto 1fr;
    gap: 10px;
}
.fake-app .bar { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: var(--surface-3); }
.fake-app .w40 { width: 40%; background: var(--brand-ring); }
.fake-app .w65 { width: 65%; }
.fake-app .w50 { width: 50%; }
.fake-app .tile { margin-top: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg); }
.fake-app .t1 { background: linear-gradient(160deg, rgba(34, 211, 238, .26), rgba(14, 165, 233, .08)); border-color: var(--brand-ring); }
.fake-app .tile::after {
    content: "";
    display: block;
    width: 46%;
    height: 8px;
    margin: 16% 0 0 12%;
    border-radius: 4px;
    background: var(--surface-3);
}
.fake-app .t1::after { background: var(--cyan); opacity: .7; }
.fake-app .t2::after { width: 34%; height: 14px; background: var(--gold); opacity: .85; }

/* The pointer: cursor plus the ring the product draws around it while PTZ moves it. */
.pane__pointer, .ptz__pointer { position: absolute; left: 0; top: 0; width: 26px; height: 26px; pointer-events: none; z-index: 2; }
.cursor {
    position: relative;
    width: 26px;
    height: 26px;
    fill: var(--ice);
    stroke: var(--navy);
    stroke-width: 1.4;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .55));
}
.ring {
    position: absolute;
    left: -12px;
    top: -13px;
    width: 34px;
    height: 34px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0;
    transition: opacity .2s;
}
.is-moving .ring { opacity: .9; }

.pane__pointer { left: 26%; top: 38%; animation: wander 12s var(--ease) infinite; }
.pane__pointer .ring { animation: ring 12s linear infinite; }
@keyframes wander {
    0%, 100% { left: 26%; top: 38%; }
    22%, 30% { left: 63%; top: 30%; }
    52%, 60% { left: 52%; top: 70%; }
    80%, 88% { left: 18%; top: 66%; }
}
@keyframes ring {
    0%, 100% { opacity: 0; }
    6%, 18% { opacity: .9; }
    24%, 46% { opacity: 0; }
    34%, 44% { opacity: .9; }
    56%, 74% { opacity: 0; }
    64%, 72% { opacity: .9; }
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--brand-ring);
    border-radius: var(--r-pill);
    background: rgba(2, 10, 29, .85);
    color: var(--cyan);
    font-size: .8125rem;
    font-weight: 600;
}
.chip .icon { width: 16px; height: 16px; }
.chip--float { position: absolute; inset-inline-end: 4%; bottom: 6%; z-index: 3; }

.pane__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    color: var(--text-2);
    font-size: .8125rem;
}
.pane__stats b { color: var(--gold); font-weight: 700; }

/* ---------- Sections ---------- */

.section { padding: var(--section-y) 0; }
.section--alt { background: var(--surface-1); border-block: 1px solid var(--border); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head .lead { margin-top: 16px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }

.card { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card-bg); }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid3 .card { transition: border-color .2s, transform .2s var(--ease); }
.grid3 .card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.grid3 h3 { margin: 18px 0 10px; }
.grid3 p { color: var(--text-2); }
.card__icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 12px;
    background: var(--brand-bg);
    color: var(--cyan);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.grid3 .tag { margin-top: 16px; color: var(--text-3); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

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

/* ---------- PTZ demo ---------- */

.ptz {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

.ptz__screen {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: radial-gradient(120% 90% at 80% 0%, var(--surface-3), var(--surface-0) 70%);
    user-select: none;
}

.register {
    position: absolute;
    inset: 7%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(7, 22, 49, .94);
    pointer-events: none;
}
.register__head { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; font-weight: 700; }
.register__head .mono { color: var(--gold); font-variant-numeric: tabular-nums; }
.register__items { display: grid; flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 0; }
.register__items button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 6px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-1);
    font: 600 .9375rem/1.2 var(--font);
    transition: background-color .15s, border-color .15s, transform .15s var(--ease);
}
.register__items button .mono { color: var(--text-2); font-size: .8125rem; }
.register__pay {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--brand-gradient);
    color: var(--on-brand);
    font: 700 1rem/1 var(--font);
    transition: transform .15s var(--ease), filter .15s;
}
.register .is-hover { border-color: var(--cyan); background: var(--brand-bg); }
.register__pay.is-hover { filter: brightness(1.12); }
.register .is-pressed { transform: scale(.95); }
.register__toast { min-height: 1.4em; color: var(--success); font-size: .875rem; font-weight: 600; text-align: center; }
.register__toast.is-miss { color: var(--text-2); }

.ptz__pointer { will-change: transform; }
.click-ripple {
    position: absolute;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    animation: ripple .5s var(--ease) forwards;
    z-index: 3;
}
@keyframes ripple {
    from { transform: scale(.6); opacity: 1; }
    to { transform: scale(3.4); opacity: 0; }
}

.ptz__controls { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.pad {
    position: relative;
    width: 168px;
    height: 168px;
    flex: none;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, var(--surface-3), var(--surface-1) 70%);
    box-shadow: inset 0 0 0 10px rgba(2, 10, 29, .35), 0 0 0 6px rgba(34, 211, 238, .06);
    cursor: grab;
    touch-action: none;
}
.pad::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px dashed rgba(143, 163, 192, .3);
    border-radius: 50%;
}
.pad.is-dragging { cursor: grabbing; }
.pad__knob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: var(--brand-gradient);
    box-shadow: 0 6px 18px rgba(14, 165, 233, .45), inset 0 -4px 8px rgba(2, 10, 29, .25);
    transition: transform .18s var(--ease);
}
.pad.is-dragging .pad__knob, .pad.is-keys .pad__knob { transition: none; }

.ptz__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.telemetry {
    width: 100%;
    max-width: 340px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface-0);
    color: var(--text-2);
    font-size: .8125rem;
}
.telemetry__head { margin-bottom: 6px; color: var(--text-3); font: 700 .6875rem/1.4 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.telemetry__vector { color: var(--cyan); font-variant-numeric: tabular-nums; }
.telemetry__log { min-height: 4.5em; margin-top: 6px; white-space: pre-line; }

@media (max-width: 900px) {
    .ptz { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .ptz__screen { aspect-ratio: 4 / 3.4; }
    .register { inset: 5%; gap: 10px; padding: 12px; }
    .register__items { gap: 8px; }
    .register__items button { font-size: .8125rem; }
    .register__items button .mono { font-size: .75rem; }
    .register__pay { min-height: 40px; }
}

/* ---------- Channel flow ---------- */

.flow {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, .8fr) minmax(0, 1fr);
    align-items: center;
}
.flow__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity .3s; pointer-events: none; }
.flow.is-ready .flow__lines { opacity: 1; }
.ln { fill: none; stroke: var(--border-strong); stroke-width: 1.5; transition: stroke .25s; }
.ln.is-on { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 6 6; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -12; } }

.flow__col { position: relative; display: flex; flex-direction: column; gap: 14px; }
.flow__label { color: var(--text-3); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.flow__hub { display: flex; align-items: center; justify-content: center; padding: 0 16px; }

.node {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface-1);
    color: var(--text-2);
    font: 600 .9375rem/1.3 var(--font);
    text-align: start;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s;
}
.node:hover { border-color: var(--border-strong); color: var(--text-1); }
.node .icon { color: var(--cyan); }
.node[aria-pressed="true"] { border-color: var(--cyan); background: var(--surface-2); color: var(--text-1); box-shadow: 0 0 0 3px rgba(34, 211, 238, .1); }
.node--out { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.node--out .mono { color: var(--cyan); font-size: .8125rem; }

/* The symbol file has a flat navy background, so the hub is navy too. */
.hub {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    flex: none;
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    background: var(--surface-0);
    box-shadow: 0 0 0 8px rgba(34, 211, 238, .05), 0 0 48px var(--glow);
}
.hub img { width: 72px; height: 72px; border-radius: 12px; }

@media (max-width: 760px) {
    .flow { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .flow__lines { display: none; }
    .flow__hub { padding: 0; }
}

/* ---------- Bridge ---------- */

.bridge {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: center;
}
.bridge__cams { display: grid; gap: 10px; }
.cam {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--card-bg);
    cursor: pointer;
    transition: opacity .2s, border-color .2s;
}
.cam:hover { border-color: var(--border-strong); }
.cam > .icon { color: var(--cyan); }
.cam__text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.cam__text b { font-weight: 600; }
.cam__text small { overflow: hidden; color: var(--text-3); text-overflow: ellipsis; white-space: nowrap; }
.cam.is-off { opacity: .55; }
.cam input {
    position: relative;
    width: 42px;
    height: 24px;
    flex: none;
    margin: 0;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface-3);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}
.cam input::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--slate);
    transition: transform .2s var(--ease), background-color .2s;
}
.cam input:checked { border-color: transparent; background: var(--brand-gradient); }
.cam input:checked::after { transform: translateX(18px); background: var(--navy); }
[dir="rtl"] .cam input::after { left: auto; right: 2px; }
[dir="rtl"] .cam input:checked::after { transform: translateX(-18px); }
.cam input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.bridge__hub { display: flex; align-items: center; gap: 12px; color: var(--cyan); }
.bridge__arrow { width: 24px; height: 24px; }
[dir="rtl"] .bridge__arrow { transform: scaleX(-1); }
.bridge__count { margin-bottom: 8px; font-size: 1.125rem; font-weight: 600; }
.bridge__count b { margin-right: 4px; color: var(--gold); font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bridge__desc { color: var(--text-2); }

.checks { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 10px; }
.checks .icon { margin-top: 2px; color: var(--cyan); }

@media (max-width: 960px) {
    .bridge { grid-template-columns: minmax(0, 1fr); }
    .bridge__hub { justify-content: center; }
    .bridge__arrow, [dir="rtl"] .bridge__arrow { transform: rotate(90deg); }
}

/* ---------- Features ---------- */

.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feat { padding: 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card-bg); }
.feat .icon { width: 28px; height: 28px; color: var(--cyan); }
.feat h3 { margin: 14px 0 8px; font-size: 1.0625rem; }
.feat p { color: var(--text-2); font-size: .9375rem; }

@media (max-width: 1040px) {
    .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .grid4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card-bg); }
.steps__n {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--brand-ring);
    border-radius: 50%;
    background: var(--brand-bg);
    color: var(--cyan);
    font-size: 1.125rem;
    font-weight: 800;
}
.steps h3 { margin: 18px 0 8px; }
.steps p { color: var(--text-2); }

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

/* ---------- Pricing ---------- */

.toggles { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 16px; margin-bottom: 20px; }
.seg { display: inline-flex; max-width: 100%; padding: 4px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); background: var(--surface-1); }
.seg button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 18px;
    border: 0;
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--text-2);
    font: 600 .9375rem/1.2 var(--font);
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.seg button:hover { color: var(--text-1); }
.seg button[aria-pressed="true"] { background: var(--brand-gradient); color: var(--on-brand); }
.seg .icon { width: 18px; height: 18px; }
.seal {
    position: absolute;
    top: -12px;
    inset-inline-end: 8px;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    background: var(--gold);
    color: var(--on-gold);
    font-size: .625rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.5;
    text-transform: uppercase;
    white-space: nowrap;
}

.line-desc { max-width: 60ch; margin: 0 auto 28px; color: var(--text-2); text-align: center; }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.tier {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 26px 24px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--card-bg);
    animation: tier-in .35s var(--ease) both;
}
@keyframes tier-in { from { opacity: 0; transform: translateY(8px); } }
.tier__ch { font-size: 1.0625rem; font-weight: 700; }
.tier__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 10px 0 2px; }
.tier__price b { color: var(--gold); font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tier__price span { color: var(--text-2); font-size: .9375rem; }
.tier__alt { color: var(--text-3); font-size: .875rem; }
.tier__who { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-2); font-size: .9375rem; }
.tier__alt + .tier__who { margin-top: 12px; }

.tiers__none { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); color: var(--text-2); text-align: center; }
.tiers__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 48px; }

.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rule { padding: 22px; border: 1px solid var(--border); border-radius: var(--r-lg); }
.rule__t { margin-bottom: 8px; font-weight: 700; }
.rule p:not(.rule__t) { color: var(--text-2); font-size: .9375rem; }

.enterprise { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 24px 0 20px; }
.enterprise__t { margin-bottom: 4px; font-size: 1.125rem; font-weight: 700; }
.enterprise p:not(.enterprise__t) { color: var(--text-2); }

@media (max-width: 860px) {
    .rules { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
    .seg { width: 100%; }
    .seg button { flex: 1; justify-content: center; padding: 6px 10px; font-size: .875rem; }
}

/* ---------- Trial ---------- */

.trial { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.trial .lead { margin-top: 16px; }
.trial__card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.trial__icon {
    width: 48px;
    height: 48px;
    padding: 11px;
    border-radius: 14px;
    background: var(--brand-bg);
    color: var(--cyan);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.trial__t { font-size: 1.25rem; font-weight: 700; }
.trial__text { color: var(--text-2); }

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

/* ---------- FAQ ---------- */

.wrap.faq { max-width: calc(860px + 2 * var(--gutter)); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    font-size: 1.0625rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cyan); }
.faq summary::after {
    content: "";
    width: 10px;
    height: 10px;
    flex: none;
    margin-top: 6px;
    margin-inline-end: 4px;
    border-right: 2px solid var(--cyan);
    border-bottom: 2px solid var(--cyan);
    transform: rotate(45deg);
    transition: transform .2s var(--ease);
}
.faq details[open] summary::after { margin-top: 10px; transform: rotate(-135deg); }
.faq details p { max-width: 70ch; padding: 0 0 22px; color: var(--text-2); }

/* ---------- Footer ---------- */

/* Solid navy, like the header: the logo file has a flat navy background. */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--border); background: var(--surface-0); }
.footer__grid { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.footer__grid img { width: 158px; }
.footer__by { margin-top: 12px; color: var(--text-2); font-size: .9375rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer__links a { color: var(--text-2); text-decoration: none; }
.footer__links a:hover { color: var(--cyan); }
.footer__langs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.footer__langs a { color: var(--text-2); font-size: .875rem; text-decoration: none; }
.footer__langs a:hover { color: var(--cyan); }
.footer__langs a[aria-current="true"] { color: var(--cyan); font-weight: 600; }
.legal { max-width: 90ch; color: var(--text-3); font-size: .8125rem; }
.legal + .legal { margin-top: 8px; }
.legal a { color: var(--text-2); }

/* ---------- 404 ---------- */

.notfound {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px var(--gutter);
    text-align: center;
}
.notfound__logo { width: 260px; margin-bottom: 24px; }
.notfound__code { color: var(--gold); font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.notfound__alt { color: var(--text-2); }
.notfound .btn { margin-top: 20px; }

/* ---------- Reveal on scroll (site.js marks only what starts below the fold) ---------- */

.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-pending { opacity: 0; transform: translateY(18px); }

/* ---------- Phones ---------- */

@media (max-width: 600px) {
    :root { --gutter: 16px; --topbar-h: 64px; }
    .brand img { width: 150px; }
    .card, .steps li { padding: 22px; }
    .feat, .tier { padding: 20px; }
    .hero__actions .btn { width: 100%; }
    .tiers__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
    .reveal.is-pending { opacity: 1; transform: none; }
}
