/* =========================================================
   Sergio Design — site styles (mobile-first)
   ========================================================= */

@property --mx { syntax: '<length-percentage>'; inherits: true; initial-value: -600px; }
@property --my { syntax: '<length-percentage>'; inherits: true; initial-value: -600px; }

:root {
    --bg: #030712;
    --ink: #eef3ff;
    --ink-2: rgba(222, 232, 255, .76);
    --ink-3: rgba(190, 208, 255, .70);
    --blue: #2f6bff;
    --cyan: #59c2ff;
    --mint: #7dffb2;
    --line: rgba(140, 170, 255, .12);
    --fh: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --fb: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(.22, .8, .24, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --gutter: 20px;
    --nav-h: 68px;
    interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    background: var(--bg);
}
body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.55 var(--fb);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 500; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 12px; }
.ico { width: 18px; height: 18px; flex: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

.i18n-wait body { visibility: hidden; animation: i18nShow 0s 1.2s forwards; }
@keyframes i18nShow { to { visibility: visible; } }
.menu-open body { overflow: hidden; }

/* ---------- Background ---------- */
.bg {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(900px 560px at 50% -6%, rgba(47, 107, 255, .32), transparent 66%),
        radial-gradient(620px 460px at 0% 42%, rgba(31, 70, 200, .12), transparent 70%),
        radial-gradient(700px 520px at 100% 78%, rgba(31, 91, 255, .10), transparent 70%),
        linear-gradient(180deg, #050d26 0%, #030712 38%, #02050e 100%);
}
.bg::after {
    content: ''; position: absolute; inset: 0; opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Liquid glass ---------- */
.glass {
    position: relative;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025) 55%, rgba(255, 255, 255, .045)),
        rgba(12, 22, 54, .44);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, .20),
        inset 0 0 0 1px rgba(255, 255, 255, .05),
        inset 0 -20px 32px -26px rgba(120, 170, 255, .38),
        0 18px 44px -20px rgba(0, 0, 0, .7);
}
.glass::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(160deg, rgba(255, 255, 255, .46), rgba(255, 255, 255, .08) 26%, rgba(255, 255, 255, 0) 50%, rgba(110, 160, 255, .10) 74%, rgba(140, 195, 255, .40));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.glass::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(280px circle at var(--mx) var(--my), rgba(150, 195, 255, .15), transparent 62%);
    opacity: 0; transition: opacity .45s var(--ease);
}
@media (hover: hover) { .glass:hover::after { opacity: 1; } }
.blur {
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
}

/* ---------- Buttons ---------- */
.btn {
    --h: 48px;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: var(--h); padding: 0 22px; border-radius: 999px;
    font: 600 15px/1 var(--fb); letter-spacing: -.005em; white-space: nowrap; color: #fff;
    transition: transform .55s var(--spring), scale .2s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
    touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.btn--sm { --h: 44px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn--sm .ico { width: 16px; height: 16px; }
.btn--md { --h: 46px; }
.btn--lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn--xl { --h: 62px; padding: 0 34px; font-size: 17px; }
.btn--xl .ico { width: 22px; height: 22px; }
.btn--block { width: 100%; }
.btn:active { scale: .965; }

.btn--primary {
    background: linear-gradient(180deg, #6ea3ff 0%, #3b77ff 40%, #2256f0 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .6),
        inset 0 -3px 8px rgba(10, 30, 120, .35),
        0 0 0 1px rgba(110, 160, 255, .55),
        0 10px 28px -8px rgba(47, 107, 255, .75),
        0 0 44px -10px rgba(70, 130, 255, .9);
    text-shadow: 0 1px 1px rgba(10, 30, 110, .45);
}
.btn--primary::after {
    content: ''; position: absolute; z-index: -1; inset: -2px; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
    transform: translateX(-130%);
    transition: transform .9s var(--ease);
}
.btn--shine::after { animation: shine 5.5s var(--ease) 2.2s infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

.btn--glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .38),
        inset 0 0 0 1px rgba(255, 255, 255, .12),
        inset 0 -10px 18px -12px rgba(140, 190, 255, .45),
        0 10px 26px -12px rgba(0, 0, 0, .7);
}
.btn--glass::after {
    content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
    background: radial-gradient(120px circle at var(--mx) var(--my), rgba(170, 210, 255, .28), transparent 70%);
    opacity: 0; transition: opacity .35s;
}

@media (hover: hover) {
    .btn--primary:hover {
        transform: translateY(-2px);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .65),
            inset 0 -3px 8px rgba(10, 30, 120, .3),
            0 0 0 1px rgba(150, 190, 255, .85),
            0 14px 34px -8px rgba(47, 107, 255, .95),
            0 0 72px -6px rgba(89, 160, 255, 1);
    }
    .btn--primary:hover::after { transform: translateX(130%); animation: none; }
    .btn--glass:hover {
        transform: translateY(-2px);
        background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .45),
            inset 0 0 0 1px rgba(170, 205, 255, .3),
            inset 0 -10px 18px -12px rgba(140, 190, 255, .6),
            0 0 34px -8px rgba(89, 160, 255, .7);
    }
    .btn--glass:hover::after { opacity: 1; }
}

/* ---------- Header ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px;
}
.nav::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(3, 7, 18, .82), rgba(3, 7, 18, .5) 70%, rgba(3, 7, 18, 0));
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-mask-image: linear-gradient(#000 70%, transparent);
    mask-image: linear-gradient(#000 70%, transparent);
    opacity: 0; transition: opacity .4s var(--ease);
}
.nav.is-scrolled::before, .menu-open .nav::before { opacity: 1; }
.nav__inner {
    position: relative; max-width: 1200px; height: 48px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.nav__right { display: flex; align-items: center; gap: 8px; }

.nav__links { display: none; }

.lang {
    position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center;
    height: 44px; padding: 4px; border-radius: 999px;
}
.lang__thumb {
    position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 10px rgba(0, 0, 0, .35), 0 0 16px -4px rgba(89, 160, 255, .6);
    transition: transform .55s var(--spring);
}
html[lang="en"] .lang__thumb { transform: translateX(100%); }
.lang__btn {
    position: relative; z-index: 1; height: 36px; min-width: 46px; padding: 0 10px; border-radius: 999px;
    font: 600 12.5px/1 var(--fb); letter-spacing: .05em; color: var(--ink-2); transition: color .3s;
}
.lang__btn[aria-pressed="true"] { color: #fff; }

.burger { width: 44px; height: 44px; border-radius: 999px; display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 1.6px; border-radius: 2px; background: #fff; transition: transform .45s var(--spring); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

.menu {
    position: fixed; inset: 0; z-index: 45;
    display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
    padding: calc(var(--nav-h) + 18px + env(safe-area-inset-top)) var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: rgba(3, 7, 18, .74);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    backdrop-filter: blur(26px) saturate(160%);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s .35s;
    overflow-y: auto;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.container, .nav, .menu {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.menu__links a {
    display: block; padding: 12px 0; border-bottom: 1px solid var(--line);
    font: 500 clamp(28px, 8.4vw, 40px)/1.15 var(--fh); letter-spacing: -.03em; color: var(--ink);
    opacity: 0; transform: translateY(14px);
    transition: opacity .5s var(--ease), transform .6s var(--ease), color .2s;
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu__links a:nth-child(2) { transition-delay: 40ms; }
.menu__links a:nth-child(3) { transition-delay: 80ms; }
.menu__links a:nth-child(4) { transition-delay: 120ms; }
.menu__links a:nth-child(5) { transition-delay: 160ms; }
.menu__links a:nth-child(6) { transition-delay: 200ms; }
.menu__cta { display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding-top: calc(var(--nav-h) + 26px + env(safe-area-inset-top));
    overflow: hidden;
}
@supports (overflow: clip) { .hero { overflow: clip; } }
.hero__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__head > * { animation: rise .95s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 15px; border-radius: 999px;
    font: 500 13px/1 var(--fb); color: var(--ink-2); margin-bottom: 22px;
}
.live { width: 7px; height: 7px; border-radius: 50%; background: #6fd6ff; animation: live 2s infinite; }
@keyframes live {
    0% { box-shadow: 0 0 0 0 rgba(111, 214, 255, .65); }
    70% { box-shadow: 0 0 0 8px rgba(111, 214, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(111, 214, 255, 0); }
}
.hero__title {
    font: 600 clamp(35px, 9.6vw, 60px)/1.04 var(--fh); letter-spacing: -.04em;
    color: #f5f8ff; max-width: 16ch; text-wrap: balance;
    text-shadow: 0 0 40px rgba(47, 107, 255, .25);
}
.grad {
    background: linear-gradient(95deg, #a9ccff 0%, #5d9bff 42%, #8fdcff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: none;
}
.hero__sub {
    margin-top: 20px; max-width: 600px;
    font-size: clamp(15.5px, 4.1vw, 19px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty;
}
.hero__cta { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 400px; margin-top: 32px; }
.hero__notes {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 20px;
    font-size: 13px; color: var(--ink-3);
}
.hero__notes li { display: flex; align-items: center; gap: 6px; }
.hero__notes .ico { width: 14px; height: 14px; color: var(--cyan); }

/* ---------- Stage: orb + 4 cards ---------- */
.stage {
    position: relative; isolation: isolate;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px;
    max-width: 760px; margin: 4px auto 0; padding: 0 16px 56px;
}
.stage::before {
    content: ''; position: absolute; z-index: -2; left: 50%; top: -60px;
    width: min(1100px, 170vw); aspect-ratio: 1; transform: translateX(-50%);
    background-image:
        linear-gradient(rgba(90, 140, 255, .075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 140, 255, .075) 1px, transparent 1px);
    background-size: 44px 44px; background-position: center;
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0, transparent 50%);
    mask-image: radial-gradient(circle at 50% 30%, #000 0, transparent 50%);
    pointer-events: none;
}
.stage__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }

.orb {
    grid-column: 1 / -1; justify-self: center; position: relative; z-index: 0;
    width: min(94vw, 390px); aspect-ratio: 1; margin: -4% 0 -12%;
    pointer-events: none;
}
/* CSS orb: shown until WebGL is ready, or when WebGL is unavailable */
.orb::before, .orb::after {
    content: ''; position: absolute; border-radius: 50%; transition: opacity .8s var(--ease);
}
.orb::before {
    inset: 16%;
    background: radial-gradient(circle at 50% 50%, #040a22 0 34%, #0b2a8a 58%, #1f6bff 80%, #8fd0ff 93%, rgba(143, 208, 255, 0) 100%);
    box-shadow: 0 0 60px 8px rgba(31, 107, 255, .55), 0 0 150px 40px rgba(31, 107, 255, .22);
    animation: orbPulse 3.5s ease-in-out infinite;
}
.orb::after {
    inset: 19%;
    background: conic-gradient(from 0deg, transparent 0 16%, rgba(140, 210, 255, .7) 24%, transparent 33% 58%, rgba(90, 160, 255, .55) 68%, transparent 78%);
    filter: blur(5px); mix-blend-mode: screen;
    animation: spin 7s linear infinite;
}
.orb:not(.is-fallback):has(canvas)::before,
.orb:not(.is-fallback):has(canvas)::after { opacity: 0; animation: none; }
@keyframes orbPulse { 50% { transform: scale(1.035); box-shadow: 0 0 80px 12px rgba(31, 107, 255, .7), 0 0 180px 50px rgba(31, 107, 255, .28); } }
@keyframes spin { to { transform: rotate(360deg); } }

.card {
    position: relative; z-index: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 10px;
    padding: 13px; border-radius: 20px;
    transition: transform .6s var(--spring), box-shadow .4s var(--ease);
}
.card--analytics { order: 1; }
.card--integr { order: 2; }
.card--auto { order: 3; }
.card--dev { order: 4; }
.card__head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.card__icon {
    flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #d6e6ff;
    background: linear-gradient(180deg, rgba(90, 150, 255, .38), rgba(47, 107, 255, .12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 0 0 1px rgba(120, 170, 255, .3);
}
.card__icon .ico { width: 14px; height: 14px; }
.card h2 { font: 600 13.5px/1.2 var(--fh); letter-spacing: -.01em; color: #fff; min-width: 0; }
.card__sub { font-size: 11.5px; color: var(--ink-3); margin-top: -4px; }
.card__sub--row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.card__foot { display: flex; align-items: center; gap: 6px; margin-top: auto; font-size: 11px; line-height: 1.3; color: var(--ink-3); }
.spark { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); flex: none; }
.card .status { display: none; }

.delta {
    margin-left: auto; flex: none;
    font: 600 11px/1 var(--fb); color: var(--mint);
    padding: 5px 7px; border-radius: 999px;
    background: rgba(40, 210, 120, .12); box-shadow: inset 0 0 0 1px rgba(60, 230, 140, .25);
}

/* automation flow */
.flow { display: grid; gap: 6px; }
.flow__step {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 8px; border-radius: 10px;
    font-size: 11.5px; line-height: 1.25; color: var(--ink-3);
    background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
    transition: color .45s, background .45s, box-shadow .45s;
}
.flow__dot {
    flex: none; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; color: transparent;
    box-shadow: inset 0 0 0 1.5px rgba(140, 170, 255, .35); transition: background .45s, box-shadow .45s, color .45s;
}
.flow__dot .ico { width: 10px; height: 10px; }
.flow__step.is-done { color: var(--ink); }
.flow__step.is-done .flow__dot { color: #fff; background: linear-gradient(180deg, #6aa0ff, #2f6bff); box-shadow: 0 0 10px rgba(47, 107, 255, .85); }
.flow__step.is-active { color: #fff; background: rgba(47, 107, 255, .16); box-shadow: inset 0 0 0 1px rgba(89, 160, 255, .5), 0 0 18px -6px rgba(47, 107, 255, .9); }
.flow__step.is-active .flow__dot {
    box-shadow: none; background: conic-gradient(var(--cyan) 0 28%, rgba(140, 170, 255, .25) 28% 100%);
    -webkit-mask: radial-gradient(circle, transparent 5.5px, #000 6px);
    mask: radial-gradient(circle, transparent 5.5px, #000 6px);
    animation: spin .9s linear infinite;
}

/* integrations marquee */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marq 16s linear infinite; }
.marquee--rev .marquee__track { animation-duration: 19s; animation-direction: reverse; }
@keyframes marq { to { transform: translateX(-50%); } }
.chip {
    display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; margin-right: 6px;
    border-radius: 999px; white-space: nowrap;
    font: 500 11.5px/1 var(--fb); color: var(--ink);
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.m {
    --c: #3d7bff; --t: #fff;
    flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
    font: 700 9px/1 var(--fb); font-style: normal; letter-spacing: -.02em; color: var(--t);
    background: var(--c);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 10px -2px var(--c);
}
.m--lg { width: 44px; height: 44px; border-radius: 14px; font-size: 13px; }
.chip__i { width: 19px; height: 19px; flex: none; margin: 0 1px; object-fit: contain; }

/* analytics bars */
.bars { display: grid; grid-template-columns: auto 1fr; gap: 7px; }
.bars__axis { display: flex; flex-direction: column; justify-content: space-between; height: 80px; font-size: 9px; line-height: 1; color: var(--ink-3); }
.bars__cols {
    display: flex; align-items: flex-end; gap: 4px; height: 80px; margin-bottom: 16px;
    background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 50%;
}
.bar {
    position: relative; flex: 1; height: calc(var(--h) * 100%); border-radius: 5px 5px 3px 3px;
    background: linear-gradient(180deg, rgba(130, 180, 255, .95), rgba(47, 107, 255, .32));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
    animation: grow 1.2s var(--ease) both;
    animation-delay: calc(500ms + var(--n, 0) * 80ms);
}
.bar:nth-child(2) { --n: 1; } .bar:nth-child(3) { --n: 2; } .bar:nth-child(4) { --n: 3; }
.bar:nth-child(5) { --n: 4; } .bar:nth-child(6) { --n: 5; }
.bar--hot { background: linear-gradient(180deg, #d4ebff, #4a86ff 55%, rgba(47, 107, 255, .5)); box-shadow: inset 0 1px 0 #fff, 0 0 16px rgba(89, 160, 255, .85); }
.bar b { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 5px; font: 500 10px/1 var(--fb); color: var(--ink-3); }
@media (max-width: 639px) { .bar b { font-size: 11px; } }
@keyframes grow { from { height: 5%; } }
@media (max-width: 639px) {
    .bars { grid-template-columns: 1fr; }
    .bars__axis { display: none; }
    .bar:nth-child(odd) b { display: none; }
}

/* dev devices */
.devices { position: relative; height: 92px; }
.dev-browser {
    position: absolute; left: 0; top: 0; width: 80%; height: 80px; padding: 7px;
    display: flex; flex-direction: column; gap: 5px; border-radius: 10px;
    background: rgba(8, 18, 48, .85); box-shadow: inset 0 0 0 1px rgba(140, 180, 255, .18);
}
.dev-browser__bar { display: flex; gap: 3px; margin-bottom: 1px; }
.dev-browser__bar i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.dev-browser__row { display: flex; gap: 5px; }
.dev-phone {
    position: absolute; right: 0; bottom: 0; width: 36%; height: 90px; padding: 12px 6px 7px;
    display: flex; flex-direction: column; gap: 5px; border-radius: 12px;
    background: rgba(6, 14, 40, .96);
    box-shadow: inset 0 0 0 1px rgba(160, 200, 255, .32), 0 10px 20px -6px rgba(0, 0, 0, .6), 0 0 22px -6px rgba(47, 107, 255, .7);
}
.dev-phone__notch { position: absolute; top: 5px; left: 50%; width: 32%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); transform: translateX(-50%); }
.sk {
    height: 5px; border-radius: 3px;
    background: linear-gradient(90deg, rgba(120, 160, 255, .16), rgba(170, 205, 255, .42), rgba(120, 160, 255, .16));
    background-size: 200% 100%; animation: sk 2.4s linear infinite;
}
.sk--w70 { width: 70%; }
.sk--w45 { width: 45%; }
.sk--block { flex: 1; height: 18px; border-radius: 5px; }
.sk--tall { flex: none; height: 30px; }
.sk--btn { width: 44%; height: 9px; margin-top: auto; border-radius: 999px; animation: none; background: linear-gradient(90deg, #3b7bff, #7ab4ff); box-shadow: 0 0 10px rgba(47, 107, 255, .75); }
@keyframes sk { to { background-position: -200% 0; } }

/* wires */
.wire-glow { fill: none; stroke: rgba(80, 140, 255, .22); stroke-width: 8; stroke-linecap: round; }
.wire { fill: none; stroke: rgba(120, 180, 255, .7); stroke-width: 1.5; stroke-linecap: round; }
.wire-pulse {
    fill: none; stroke: #a8dcff; stroke-width: 2; stroke-linecap: round;
    stroke-dasharray: .08 1; stroke-dashoffset: 1.08;
    animation: wirePulse 3.2s var(--ease) infinite; animation-delay: var(--wd, 0s);
    filter: drop-shadow(0 0 3px rgba(120, 190, 255, .9));
}
@keyframes wirePulse { to { stroke-dashoffset: 0; } }
.node-halo { fill: rgba(89, 160, 255, .22); }
.node { fill: #a8dcff; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 84px 0; }
.section--tight { padding: 8px 0 24px; }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 760px; margin: 0 auto 36px; }
.kicker {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
    font: 600 12px/1 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.kicker .ico { width: 14px; height: 14px; }
.h2 { font: 500 clamp(29px, 7.6vw, 56px)/1.07 var(--fh); letter-spacing: -.036em; color: #f5f8ff; text-wrap: balance; }
.lead { margin-top: 16px; max-width: 640px; font-size: clamp(15.5px, 4vw, 18px); line-height: 1.58; color: var(--ink-2); text-wrap: pretty; }
.center-cta { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 28px auto 0; }

/* stats */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { padding: 20px 18px; border-radius: 20px; }
.stat__num { display: flex; align-items: baseline; gap: 4px; font: 500 clamp(36px, 10vw, 58px)/1 var(--fh); letter-spacing: -.045em; }
.stat__num span { background: linear-gradient(180deg, #fff 20%, #9fc0ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat__num em { font-style: normal; font-size: .46em; font-weight: 500; letter-spacing: 0; color: var(--cyan); }
.stat p { margin-top: 10px; font-size: 13.5px; line-height: 1.42; color: var(--ink-3); }

/* bento */
.bento { display: grid; gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 24px 22px; border-radius: 24px; transition: transform .6s var(--spring), box-shadow .4s; }
.tile__icon {
    width: 46px; height: 46px; margin-bottom: 8px; border-radius: 14px; display: grid; place-items: center; color: #e2edff;
    background: linear-gradient(180deg, rgba(90, 150, 255, .42), rgba(47, 107, 255, .12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 0 0 1px rgba(120, 170, 255, .36), 0 8px 24px -8px rgba(47, 107, 255, .85);
}
.tile__icon .ico { width: 22px; height: 22px; }
.tile h3 { font: 600 20px/1.2 var(--fh); letter-spacing: -.02em; }
.tile p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.tile__cta {
    align-self: flex-start; margin-top: auto; padding: 4px 0 0;
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 14.5px/1 var(--fb); color: #a3c7ff; transition: gap .35s var(--spring), color .2s;
    min-height: 44px;
}
.tile__cta::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.tile__cta .ico { width: 16px; height: 16px; }
@media (hover: hover) { .tile__cta:hover { gap: 13px; color: #fff; } }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 2px; }
.kpi { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.kpi span { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { font: 600 15px/1.1 var(--fh); letter-spacing: -.02em; white-space: nowrap; }
.kpi i { font: 600 11px/1 var(--fb); font-style: normal; color: var(--mint); }
.tile--cta {
    flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; min-height: 0;
    background: linear-gradient(135deg, #3470f5, #1f4fe0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 1px rgba(120, 170, 255, .6), 0 22px 50px -22px rgba(47, 107, 255, 1);
}
.tile--cta p { color: #fff; margin-top: 6px; }
.tile__go { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); transition: transform .55s var(--spring); }
.tile__go .ico { width: 26px; height: 26px; }
@media (hover: hover) { .tile--cta:hover .tile__go { transform: scale(1.1) rotate(-8deg); } }

/* integrations: particle globe + orbiting logos */
.orbits {
    --o3: min(calc(100vw - 52px), 440px); --o2: calc(var(--o3) * .76); --o1: calc(var(--o3) * .52);
    --g: calc(var(--o3) * .42); --n: 42px;
    position: relative; height: calc(var(--o3) / 2 + var(--n) + 12px);
    margin: 0 calc(var(--gutter) * -1);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
    mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
@supports (overflow: clip) { .orbits { overflow: clip; } }
.orbits::before {
    content: ''; position: absolute; left: 50%; bottom: 0; width: calc(var(--g) * 2.4); aspect-ratio: 1; border-radius: 50%;
    transform: translate(-50%, 50%); pointer-events: none;
    background: radial-gradient(circle, rgba(47, 107, 255, .32), rgba(47, 107, 255, .08) 42%, transparent 68%);
}
.orbits__globe { position: absolute; left: 50%; bottom: 0; width: var(--g); height: var(--g); transform: translate(-50%, 50%); }
.orbit {
    position: absolute; left: 50%; bottom: 0; width: var(--d); height: var(--d); border-radius: 50%;
    transform: translate(-50%, 50%); pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(140, 170, 255, .14);
}
.orbit--1 { --d: var(--o1); }
.orbit--2 { --d: var(--o2); }
.orbit--3 { --d: var(--o3); }
.orbit__slot {
    position: absolute; left: 50%; top: 0; width: 0; height: 50%; transform-origin: 50% 100%;
    transform: rotate(var(--a)); animation: orbitSpin var(--dur) linear infinite;
}
.orbit__node {
    position: absolute; left: 0; top: 0; width: var(--n); height: var(--n);
    margin: calc(var(--n) / -2) 0 0 calc(var(--n) / -2);
    display: grid; place-items: center; border-radius: 50%; pointer-events: auto;
    background: radial-gradient(circle at 50% 26%, rgba(46, 72, 150, .6), rgba(7, 13, 34, .96) 72%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .2),
        inset 0 0 0 1px rgba(140, 175, 255, .22),
        0 10px 26px -10px rgba(0, 0, 0, .9),
        0 0 24px -8px var(--c, #2f6bff);
    transform: rotate(calc(var(--a) * -1)); animation: orbitCounter var(--dur) linear infinite;
}
.orbit__node .m { width: 23px; height: 23px; font-size: 8.5px; }
.orbit__node .brand { width: 25px; height: 25px; object-fit: contain; }
.orbit__node .ico { width: 20px; height: 20px; }
.orbit--ccw .orbit__slot, .orbit--ccw .orbit__node { animation-direction: reverse; }
@keyframes orbitSpin { from { transform: rotate(var(--a)); } to { transform: rotate(calc(var(--a) + 360deg)); } }
@keyframes orbitCounter { from { transform: rotate(calc(var(--a) * -1)); } to { transform: rotate(calc(var(--a) * -1 - 360deg)); } }
.orbit__node::after {
    content: attr(data-label); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    padding: 6px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none;
    font: 500 12px/1 var(--fb); color: var(--ink);
    background: rgba(8, 14, 36, .9); box-shadow: inset 0 0 0 1px rgba(140, 170, 255, .25);
    opacity: 0; transition: opacity .3s var(--ease);
}
@media (hover: hover) { .orbit__node:hover::after { opacity: 1; } }
.integr-names { max-width: 760px; margin: 14px auto 0; text-align: center; font-size: 14px; line-height: 1.7; color: var(--ink-3); text-wrap: balance; }
.banner { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin-top: 14px; padding: 22px; border-radius: 24px; }
.banner h3 { font: 600 19px/1.25 var(--fh); letter-spacing: -.02em; }
.banner p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

/* dashboard mock */
.dash { padding: 12px; border-radius: 26px; overflow: hidden; }
.dash__top { display: flex; align-items: center; gap: 10px; padding: 4px 4px 12px; }
.dash__dots { display: flex; gap: 5px; }
.dash__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.dash__name { font: 600 13px/1 var(--fb); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--fb); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 8px #3ee08f; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.dash__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dkpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 11px 11px 32px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.dkpi span { font-size: 11px; color: var(--ink-3); }
.dkpi b { font: 600 18px/1.1 var(--fh); letter-spacing: -.02em; white-space: nowrap; }
.dkpi i { position: absolute; top: 11px; right: 11px; font: 600 11px/1 var(--fb); font-style: normal; color: var(--mint); }
.dkpi svg { position: absolute; left: 0; right: 0; bottom: 4px; width: 100%; height: 26px; }
.dkpi path { fill: none; stroke: #5b95ff; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.dash__grid { display: grid; gap: 8px; margin-top: 8px; }
.panel { min-width: 0; padding: 13px; border-radius: 16px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.panel__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 12px; }
.panel__head b { font: 600 13px/1.2 var(--fb); }
.muted { font-size: 11px; color: var(--ink-3); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.seg button { padding: 8px 11px; border-radius: 999px; font: 500 11px/1 var(--fb); font-style: normal; color: var(--ink-3); }
.seg button.on { color: #fff; background: rgba(47, 107, 255, .38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.area { width: 100%; height: auto; overflow: visible; }
.area__grid path { stroke: rgba(140, 170, 255, .1); stroke-width: 1; }
.area__fill { fill: url(#gArea); transition: opacity 1.2s .7s; }
.area__line { fill: none; stroke: url(#gLine); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; transition: stroke-dashoffset 2.2s var(--ease); }
.area__line2 { fill: none; stroke: rgba(127, 208, 255, .45); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; transition: stroke-dashoffset 2.2s .3s var(--ease); }
.area__dot { fill: #d6ecff; transform-box: fill-box; transform-origin: center; transition: opacity .4s 2s; }
.js .dash:not(.is-in) .area__fill, .js .dash:not(.is-in) .area__dot { opacity: 0; }
.js .dash:not(.is-in) .area__line, .js .dash:not(.is-in) .area__line2 { stroke-dashoffset: 1; }
.js .dash:not(.is-in) .src i::after, .js .dash:not(.is-in) .pipe__st::before { transform: scaleX(0); }
.dash.is-in .area__dot { animation: dotPulse 1.8s 2.2s ease-in-out infinite; }
@keyframes dotPulse { 50% { transform: scale(1.6); } }
.src { display: grid; gap: 12px; }
.src li { display: grid; grid-template-columns: 76px 1fr 34px; align-items: center; gap: 10px; font-size: 12px; }
.src span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src i { position: relative; height: 8px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.src i::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--w) * 100%); border-radius: inherit;
    background: linear-gradient(90deg, #2f6bff, #7fd0ff); box-shadow: 0 0 10px rgba(89, 160, 255, .7);
    transform-origin: left; transition: transform 1.3s var(--ease);
}
.src li:nth-child(2) i::after { transition-delay: .1s; }
.src li:nth-child(3) i::after { transition-delay: .2s; }
.src li:nth-child(4) i::after { transition-delay: .3s; }
.src b { font-weight: 600; text-align: right; }

/* interactive demo (assets/demo.js) */
.demo-hint { display: flex; align-items: center; gap: 9px; width: fit-content; max-width: 100%; margin: 0 auto 16px; padding: 10px 18px; border-radius: 999px; font: 500 13px/1.35 var(--fb); color: #dbe9ff; background: rgba(47, 107, 255, .16); box-shadow: inset 0 0 0 1px rgba(120, 170, 255, .4), 0 0 26px -6px rgba(47, 107, 255, .75); }
.demo-hint .ico { color: var(--cyan); animation: tapHint 1.6s ease-in-out infinite; }
@keyframes tapHint { 50% { transform: translate(2px, 2px) scale(.86); } }
.dtabs button[aria-selected="false"] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.is-fresh .dtabs button[aria-selected="false"] { animation: tabHint 2.4s ease-in-out infinite; }
.is-fresh .dtabs button:nth-child(3) { animation-delay: .3s; }
.is-fresh .dtabs button:nth-child(4) { animation-delay: .6s; }
.is-fresh .dtabs button:nth-child(5) { animation-delay: .9s; }
@keyframes tabHint { 50% { color: #fff; background: rgba(47, 107, 255, .2); box-shadow: inset 0 0 0 1px rgba(120, 170, 255, .55); } }
.dash [hidden] { display: none; }
.dash input, .dash select { font: inherit; color: inherit; color-scheme: dark; accent-color: var(--blue); }
.dash em { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; font: 600 11px/1 var(--fb); color: #fff; background: #ff4d6d; }
.dtabs, .inbox__accs { display: flex; gap: 6px; margin: 0 -12px 10px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.dtabs button, .inbox__accs button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; font: 500 13px/1 var(--fb); color: var(--ink-3); transition: color .2s, background .2s; }
.inbox__accs button { height: 44px; padding: 0 12px 0 6px; color: var(--ink-2); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.dtabs button[aria-selected="true"], .inbox__accs button[aria-pressed="true"] { color: #fff; background: rgba(47, 107, 255, .38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
@media (hover: hover) { .dtabs button:hover, .seg button:hover { color: #fff; } .thread:hover { background: rgba(255, 255, 255, .04); } }
.dkpi--flat { padding-bottom: 11px; }
.panel > .muted { margin-top: 12px; line-height: 1.5; }
.legend { display: flex; gap: 16px; margin-top: 8px; font-size: 11px; color: var(--ink-3); }
.legend i { display: inline-block; width: 14px; height: 3px; margin-right: 6px; border-radius: 2px; vertical-align: middle; background: linear-gradient(90deg, #2f6bff, #7fd0ff); }
.legend span + span i { background: rgba(127, 208, 255, .45); }

.sw { position: relative; flex: none; width: 38px; height: 22px; }
.sw input { position: absolute; inset: -11px -3px; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.sw i { display: block; height: 100%; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .25s, box-shadow .25s; }
.sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); }
.sw input:checked + i { background: var(--blue); box-shadow: 0 0 12px rgba(47, 107, 255, .6); }
.sw input:checked + i::after { transform: translateX(16px); }
.sw input:focus-visible + i { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sw input:disabled { cursor: default; }
.sw input:disabled + i { opacity: .4; }
.rng { display: grid; gap: 8px; font-size: 12px; color: var(--ink-2); }
.rng > span { display: flex; justify-content: space-between; gap: 10px; }
.rng output { font-weight: 600; color: #fff; white-space: nowrap; }
.rng input { width: 100%; height: 28px; margin: 0; -webkit-appearance: none; appearance: none; background: none; cursor: pointer; }
.rng input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.rng input::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.rng input::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--blue); }
.rng input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .45), 0 0 14px rgba(47, 107, 255, .8); }
.rng input::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .45), 0 0 14px rgba(47, 107, 255, .8); }

.camps { font-size: 12px; }
.camp { display: grid; grid-template-columns: 38px minmax(0, 1fr) 76px 44px; align-items: center; gap: 10px; min-height: 46px; border-top: 1px solid var(--line); }
.camp--head { min-height: 28px; border: 0; font-size: 11px; color: var(--ink-3); }
.camp > span { transition: opacity .25s; }
.camp > :nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp > :nth-child(n+3) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.camp .wide { display: none; }
.camp:has(input:not(:checked)) > span, .rule:has(input:not(:checked)) > :not(.sw) { opacity: .4; }

.av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--fb); color: #fff; background: linear-gradient(135deg, #2f6bff, #59c2ff); }
.av--ig { background: linear-gradient(45deg, #f9a03f, #e1306c 50%, #833ab4); }
.inbox__accs { margin-bottom: 8px; }
.dtabs { gap: 4px; }
.dtabs button { padding: 0 11px; }
.inbox__body { display: grid; gap: 8px; }
.threads { display: grid; align-content: start; gap: 2px; margin-top: 10px; max-height: 180px; overflow-y: auto; }
.thread { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px; border-radius: 12px; text-align: left; transition: background .2s; }
.thread[aria-pressed="true"] { background: rgba(255, 255, 255, .08); }
.thread em { position: absolute; left: 31px; top: 7px; min-width: 0; width: 10px; height: 10px; padding: 0; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.thread__tx { display: grid; gap: 4px; min-width: 0; font-size: 12px; }
.thread__tx b { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.thread__tx small { margin-left: auto; font-weight: 400; font-size: 11px; color: var(--ink-3); }
.thread__tx > span { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { padding: 3px 6px; border-radius: 6px; font: 500 10px/1 var(--fb); color: var(--cyan); background: rgba(89, 194, 255, .12); }
.tag--comment { color: #ffb86b; background: rgba(255, 184, 107, .12); }
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat__head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.chat__head > span:last-child { display: grid; gap: 3px; min-width: 0; }
.chat__head small { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__msgs { display: flex; flex-direction: column; gap: 6px; height: 190px; overflow-y: auto; }
.msg { flex: none; max-width: 84%; align-self: flex-start; padding: 9px 12px; border-radius: 16px 16px 16px 4px; font-size: 13px; line-height: 1.4; background: rgba(255, 255, 255, .08); overflow-wrap: anywhere; }
.msg--me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: linear-gradient(180deg, #3b7bff, #2558e6); }
.msg:last-child { animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.chat__ai { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; font: 600 12px/1 var(--fb); color: var(--cyan); background: rgba(89, 194, 255, .12); }
.chat__ai .ico { width: 15px; height: 15px; }
.chat__form { display: flex; gap: 6px; }
.chat__form input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; font-size: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.chat__form input::placeholder { color: var(--ink-3); opacity: .7; }
.chat__send { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); }

.member { display: grid; grid-template-columns: minmax(0, 1fr) auto 38px; align-items: center; gap: 10px; margin: 0 -8px; padding: 0 8px; border-radius: 12px; transition: background .2s; }
.member.is-sel { background: rgba(255, 255, 255, .07); }
.member > button { display: flex; align-items: center; gap: 10px; min-width: 0; height: 52px; text-align: left; font: 500 13px/1.2 var(--fb); }
.member > button span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member.is-out > button { opacity: .45; }
.member select { max-width: 124px; height: 36px; padding: 0 6px; border: 0; border-radius: 10px; font-size: 12px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.member select:disabled { opacity: .6; }
.perms li { display: flex; align-items: center; gap: 10px; min-height: 38px; font-size: 13px; color: var(--ink-3); }
.perms .ico { width: 16px; height: 16px; }
.perms .ok { color: var(--ink); }
.perms .ok .ico { color: var(--mint); }
.rule { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.rule:first-child { padding-top: 0; border: 0; }
.rule > * { transition: opacity .25s; }
.rule > span { display: grid; gap: 4px; }
.rule b { font-weight: 600; }
.rule small { font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.rule > i { font: 600 12px/1 var(--fb); color: var(--mint); white-space: nowrap; }
.big { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; font-size: 13px; color: var(--ink-2); }
.big b { font: 600 46px/1 var(--fh); letter-spacing: -.03em; color: #fff; }
@media (max-width: 639px) { .member .av { display: none; } }

.pipe { display: grid; gap: 7px; }
.pipe__st { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 12px; background: rgba(255, 255, 255, .03); }
.pipe__st::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--w) * 100%); border-radius: inherit;
    background: linear-gradient(90deg, rgba(47, 107, 255, .55), rgba(47, 107, 255, .14));
    transform-origin: left; transition: transform 1.1s var(--ease);
}
.pipe__st:nth-child(2)::before { transition-delay: .12s; }
.pipe__st:nth-child(3)::before { transition-delay: .24s; }
.pipe__st:nth-child(4)::before { transition-delay: .36s; }
.pipe__st--win::before { background: linear-gradient(90deg, rgba(62, 224, 143, .55), rgba(62, 224, 143, .14)); }
.pipe__st span, .pipe__st b { position: relative; }
.pipe__st b { font-weight: 600; }

/* cases / NDA */
.nda { display: grid; gap: 34px; padding: 28px 22px; border-radius: 30px; overflow: hidden; }
.checks { display: grid; gap: 12px; margin: 24px 0 28px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.45; }
.checks .ico { width: 22px; height: 22px; padding: 5px; border-radius: 50%; color: #fff; background: linear-gradient(180deg, #6aa0ff, #2f6bff); box-shadow: 0 0 12px rgba(47, 107, 255, .75); }
.btn-row { display: flex; flex-direction: column; gap: 10px; }
.nda__vis { position: relative; height: 360px; }
.case {
    position: absolute; width: 88%; padding: 14px; border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03)), rgba(10, 20, 52, .78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 22px 44px -18px rgba(0, 0, 0, .75);
    transition: transform .7s var(--spring);
}
.case--1 { left: 0; top: 0; z-index: 3; transform: rotate(-3deg); }
.case--2 { right: 0; top: 150px; z-index: 2; transform: rotate(2.5deg); }
.case--3 { left: 5%; top: 262px; z-index: 1; transform: rotate(-1deg); }
@media (hover: hover) {
    .nda:hover .case--1 { transform: rotate(-5deg) translate(-6px, -6px); }
    .nda:hover .case--2 { transform: rotate(4deg) translate(6px, 0); }
    .nda:hover .case--3 { transform: rotate(-2deg) translate(-4px, 6px); }
}
.case__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font: 600 12.5px/1.2 var(--fb); }
.lock { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; font: 700 11px/1 var(--fb); letter-spacing: .08em; color: #cfe6ff; background: rgba(47, 107, 255, .26); box-shadow: inset 0 0 0 1px rgba(110, 160, 255, .5); }
.lock .ico { width: 11px; height: 11px; }
.case__blur { display: grid; gap: 8px; filter: blur(5px); opacity: .85; }
.case__blur i { display: block; width: calc(var(--w) * 100%); height: 9px; border-radius: 5px; background: rgba(170, 200, 255, .38); }
.case__bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin-top: 4px; }
.case__bars b { flex: 1; height: calc(var(--h) * 100%); border-radius: 4px; background: linear-gradient(180deg, #6aa8ff, #2f6bff); }
.nda__scan {
    position: absolute; inset: -30% 0; z-index: 4; pointer-events: none; mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse 50% 100% at 50% 50%, #000 25%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 100% at 50% 50%, #000 25%, transparent 100%);
    background: linear-gradient(180deg, transparent 42%, rgba(120, 190, 255, .07) 46%, rgba(120, 190, 255, .2) 50%, rgba(120, 190, 255, .07) 54%, transparent 58%);
    animation: scan 4.8s var(--ease) infinite;
}
@keyframes scan { from { transform: translateY(-38%); } to { transform: translateY(38%); } }

/* process */
.steps { display: grid; gap: 12px; }
.step { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px; }
.step__n { font: 500 14px/1 var(--fh); letter-spacing: .04em; color: var(--cyan); }
.step__time {
    position: absolute; top: 18px; right: 18px; padding: 6px 10px; border-radius: 999px;
    font: 600 11px/1 var(--fb); color: #d6e6ff;
    background: rgba(47, 107, 255, .2); box-shadow: inset 0 0 0 1px rgba(110, 160, 255, .32);
}
.step h3 { margin-top: 8px; font: 600 19px/1.2 var(--fh); letter-spacing: -.02em; }
.step p { font-size: 15px; color: var(--ink-2); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq__item { padding: 0 18px; border-radius: 18px; }
.faq__item summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 0; font: 600 16px/1.35 var(--fh); letter-spacing: -.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ico { width: 20px; height: 20px; color: var(--cyan); transition: transform .45s var(--spring); }
.faq__item[open] summary .ico { transform: rotate(45deg); }
.faq__item p { padding: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }

/* final CTA */
.final { isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 22px; border-radius: 32px; }
.final__glow {
    position: absolute; z-index: -1; left: 50%; top: 100%; width: 720px; height: 720px; border-radius: 50%; pointer-events: none;
    transform: translate(-50%, -42%);
    background: radial-gradient(circle, rgba(47, 107, 255, .6), rgba(47, 107, 255, .16) 40%, transparent 68%);
    animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translate(-50%, -46%) scale(1.06); opacity: .85; } }
.final__title { font-size: clamp(34px, 9.4vw, 66px); }
.final__cta { display: flex; justify-content: center; width: 100%; margin-top: 30px; }
.final__cta .btn { width: 100%; max-width: 400px; }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 400px; margin-top: 12px; }
.socials .btn { padding: 0 14px; }
.socials .btn:last-child { grid-column: 1 / -1; }
@media (min-width: 640px) {
    .socials { display: flex; flex-wrap: wrap; justify-content: center; width: auto; max-width: none; margin-top: 16px; }
    .socials .btn { padding: 0 22px; }
}

/* footer */
.footer { padding: 28px 0 calc(96px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-3); }

/* floating WhatsApp */
.fab {
    position: fixed; z-index: 40;
    right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: linear-gradient(180deg, #43e585, #1fb85a);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 8px rgba(0, 60, 20, .3), 0 0 0 1px rgba(120, 255, 170, .45), 0 12px 30px -8px rgba(37, 211, 102, .75);
    opacity: 0; pointer-events: none; transform: translateY(24px) scale(.85);
    transition: transform .6s var(--spring), opacity .4s var(--ease);
}
.fab.is-on { opacity: 1; pointer-events: auto; transform: none; }
.menu-open .fab { opacity: 0; pointer-events: none; }
.fab .ico { width: 28px; height: 28px; }
.fab:not(.is-on)::after { animation: none; }
.fab::after { content: ''; position: absolute; inset: 0; border-radius: 50%; animation: ring 2.6s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }
@media (hover: hover) { .fab:hover { transform: translateY(-3px) scale(1.05); } }

/* custom cursor (mouse only) */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
    .has-cursor, .has-cursor * { cursor: none !important; }
    .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 9999; width: 0; height: 0; pointer-events: none; will-change: transform; }
    .cursor__orb {
        position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%;
        background: radial-gradient(circle at 34% 30%, #fff 0, #c4e2ff 16%, #4d8dff 48%, #1a47d6 76%, #0b2a8a 100%);
        box-shadow: 0 0 10px 1px rgba(77, 141, 255, .95), 0 0 26px 5px rgba(47, 107, 255, .45);
        mix-blend-mode: screen; opacity: 0; transform: scale(.5);
        transition: transform .5s var(--spring), opacity .3s, background .35s, box-shadow .35s;
    }
    .cursor.is-visible .cursor__orb { opacity: 1; transform: scale(1); }
    .cursor.is-hover .cursor__orb {
        transform: scale(2.8);
        background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95) 0, rgba(170, 232, 255, .62) 20%, rgba(89, 194, 255, .3) 52%, rgba(89, 194, 255, .06) 80%, transparent 100%);
        box-shadow: 0 0 16px 2px rgba(89, 210, 255, .6), inset 0 0 0 .5px rgba(210, 245, 255, .7);
    }
    .cursor.is-down .cursor__orb { transform: scale(.72); }
    .cursor.is-hover.is-down .cursor__orb { transform: scale(2.35); }
}

/* pause decorative loops in off-screen sections */
.is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal:focus-within { opacity: 1; transform: none; transition-duration: .2s; transition-delay: 0s; }

/* ---------- < 360px ---------- */
@media (max-width: 359px) {
    .card h2 { font-size: 12.5px; overflow-wrap: anywhere; hyphens: auto; }
    .eyebrow { height: auto; min-height: 34px; padding: 7px 14px; line-height: 1.3; text-align: center; }
    .lang__btn { min-width: 40px; }
}

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
    :root { --gutter: 28px; }
    .hero__cta { flex-direction: row; justify-content: center; width: auto; max-width: none; }
    .center-cta { flex-direction: row; justify-content: center; max-width: none; }
    .btn-row { flex-direction: row; }
    .card { padding: 16px; }
    .card h2 { font-size: 14.5px; }
    .card .status { display: inline-flex; }
    .flow__step { font-size: 12.5px; }
    .chip { font-size: 12px; }
}

/* ---------- ≥ 768px ---------- */
@media (min-width: 768px) {
    .orbits { --o3: min(calc(100vw - 140px), 1000px); --o2: calc(var(--o3) * .78); --o1: calc(var(--o3) * .56); --g: calc(var(--o3) * .42); --n: 58px; height: calc(var(--o3) / 2 + var(--n) + 16px); margin: 0; }
    .orbit__node .m { width: 32px; height: 32px; font-size: 11px; }
    .orbit__node .brand { width: 32px; height: 32px; }
    .orbit__node .ico { width: 28px; height: 28px; }
}

/* ---------- ≥ 700px ---------- */
@media (min-width: 700px) {
    .bento { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .tile--wide { grid-column: span 2; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .kpi b { font-size: 17px; }
}

/* ---------- ≥ 800px ---------- */
@media (min-width: 800px) {
    .banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; }
    .footer { padding-bottom: 36px; }
    .footer__inner { flex-direction: row; justify-content: space-between; }
}

/* ---------- ≥ 900px ---------- */
@media (min-width: 900px) {
    .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .stat { padding: 28px 24px; }
    .dash { padding: 18px; }
    .dtabs, .inbox__accs { margin-inline: 0; padding: 0; }
    .dtabs { gap: 6px; }
    .dtabs button { padding: 0 14px; }
    .dash__grid--even { grid-template-columns: 1fr 1fr; }
    .camp { grid-template-columns: 38px minmax(0, 1fr) 100px 70px 90px 60px; }
    .camp .wide { display: block; }
    .inbox__body { grid-template-columns: 320px 1fr; gap: 12px; }
    .threads { max-height: none; }
    .chat__msgs { height: 250px; }
    .member select { max-width: none; }
    .dash__kpis { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .dkpi b { font-size: 22px; }
    .dash__grid { grid-template-columns: 1.7fr 1fr; gap: 12px; margin-top: 12px; }
    .panel { padding: 18px; }
    .panel--wide { grid-column: 1 / -1; }
    .pipe { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .pipe__st { height: 44px; }
    .nda { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding: 56px; }
    .nda__vis { height: 380px; }
    .case { width: 82%; }
    .final { padding: 88px 56px; }
}

/* ---------- ≥ 1024px: desktop ---------- */
@media (min-width: 1024px) {
    :root { --gutter: 32px; }
    .nav { padding-top: 16px; padding-bottom: 16px; }
    .nav__links {
        display: flex; position: absolute; left: 50%; transform: translateX(-50%);
        gap: 2px; padding: 5px; border-radius: 999px;
    }
    .nav__links a {
        padding: 10px 16px; border-radius: 999px;
        font: 500 14px/1 var(--fb); color: var(--ink-2); transition: color .2s, background .25s;
    }
    .nav__links a:hover, .nav__links a.is-active { color: #fff; background: rgba(255, 255, 255, .1); }
    .burger { display: none; }
    .nav__right .btn--sm { --h: 42px; padding: 0 20px; }
    .menu { display: none; }

    .hero { padding-top: calc(var(--nav-h) + 56px); }
    .eyebrow { display: none; }
    .hero__title { font-size: clamp(52px, 4.8vw, 72px); line-height: 1.05; }
    .hero__sub { margin-top: 26px; max-width: 660px; font-size: 18px; line-height: 1.65; }
    .hero__cta { margin-top: 40px; gap: 14px; }
    .hero__notes { margin-top: 22px; }

    .stage {
        grid-template-columns: clamp(230px, 24vw, 300px) 1fr clamp(230px, 24vw, 300px);
        grid-template-rows: auto auto; gap: 44px 0; align-items: center;
        max-width: 1200px; margin-top: 88px; padding: 0 32px 96px;
    }
    .stage::before { top: -40px; -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 0, transparent 46%); mask-image: radial-gradient(circle at 50% 42%, #000 0, transparent 46%); }
    .orb { grid-column: 2; grid-row: 1 / 3; width: min(560px, 100%, 64vh); margin: -40px 0; }
    .card { order: 0; padding: 18px; gap: 12px; align-self: stretch; }
    .card--auto { grid-column: 1; grid-row: 1; }
    .card--integr { grid-column: 1; grid-row: 2; }
    .card--analytics { grid-column: 3; grid-row: 1; }
    .card--dev { grid-column: 3; grid-row: 2; }
    .card h2 { font-size: 15px; }
    .bars__axis, .bars__cols { height: 92px; }
    .devices { height: 100px; }

    .section { padding: 128px 0; }
    .section--tight { padding: 8px 0 40px; }
    .sec-head { margin-bottom: 56px; }
    .bento { grid-template-columns: repeat(3, 1fr); }
    .tile { padding: 30px 28px; min-height: 260px; }
    .tile--cta { grid-column: span 2; min-height: 0; padding: 30px 32px; }
    .steps { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .step { padding: 26px 24px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important; animation-iteration-count: 1 !important;
        transition-duration: .001ms !important; transition-delay: 0s !important;
    }
    .js .reveal { opacity: 1; transform: none; }
    .nda__scan, .wire-pulse { display: none; }
}
