/* ==========================================================================
   Etolv Software Solutions - design system
   Dark, accent-driven, bilingual (RTL/LTR). One stylesheet, no frameworks.
   ========================================================================== */

/* --- tokens --------------------------------------------------------------- */
:root {
    /* Brand: sampled from the Etolv logo - blue #0286D6, red #D43736 */
    --brand-blue:    2 134 214;
    --brand-red:     212 55 54;

    --bg:            #050b16;                    /* deep navy, same hue family as the logo blue */
    --bg-soft:       #07111f;
    --surface:       rgba(160, 205, 255, .045);
    --surface-2:     rgba(160, 205, 255, .075);
    --line:          rgba(150, 195, 250, .12);
    --line-strong:   rgba(150, 195, 250, .22);
    --text:          #e8eef8;
    --text-muted:    #93a6c2;
    --text-dim:      #63758f;
    --accent:        var(--brand-blue);          /* overridden per page */
    --accent-c:      rgb(var(--accent));
    --accent-soft:   rgba(var(--accent) / .14);
    --accent-line:   rgba(var(--accent) / .38);
    --radius:        18px;
    --radius-sm:     12px;
    --radius-lg:     28px;
    --shadow:        0 24px 60px -20px rgba(0, 0, 0, .75);
    --container:     1200px;
    --ease:          cubic-bezier(.22, 1, .36, 1);
    --font-display:  'Cairo', 'Space Grotesk', system-ui, sans-serif;
    --font-body:     'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
}

html[dir="ltr"] {
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;
}

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.25;
    margin: 0 0 .6em;
    font-weight: 800;
    letter-spacing: -.01em;
}
html[dir="ltr"] h1, html[dir="ltr"] h2, html[dir="ltr"] h3 { letter-spacing: -.02em; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-c); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.icon { width: 22px; height: 22px; flex: none; }
.icon--xs { width: 17px; height: 17px; }
.icon--lg { width: 28px; height: 28px; }

.skip-link {
    position: fixed; inset-inline-start: 16px; top: -60px; z-index: 200;
    background: var(--accent-c); color: #04070f; padding: 10px 18px; border-radius: 10px;
    transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* --- ambient background --------------------------------------------------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg__aurora {
    position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
    border-radius: 50%; filter: blur(120px); opacity: .5;
    animation: drift 26s ease-in-out infinite alternate;
}
.bg__aurora--1 { background: rgba(var(--accent) / .26); top: -18vw; inset-inline-start: -10vw; }
.bg__aurora--2 { background: rgba(2, 134, 214, .24); top: 38vh; inset-inline-end: -18vw; animation-delay: -8s; }
.bg__aurora--3 { background: rgba(212, 55, 54, .14); bottom: -22vw; inset-inline-start: 24vw; animation-delay: -15s; }
@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(4vw, -6vh, 0) scale(1.18); }
}
.bg__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(140, 190, 245, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 190, 245, .04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.bg__noise {
    position: absolute; inset: 0; opacity: .35; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* --- scroll rail + cursor ------------------------------------------------- */
.scroll-rail { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 120; background: transparent; }
.scroll-rail__bar {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, rgba(var(--accent) / .2), var(--accent-c));
    box-shadow: 0 0 14px rgba(var(--accent) / .8);
}
.cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300; mix-blend-mode: difference; opacity: 0; }
.cursor.is-on { opacity: 1; }
.cursor__dot, .cursor__ring { position: absolute; border-radius: 50%; translate: -50% -50%; }
.cursor__dot { width: 6px; height: 6px; background: #fff; }
.cursor__ring {
    width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.55);
    transition: width .25s var(--ease), height .25s var(--ease), background .25s;
}
.cursor.is-hot .cursor__ring { width: 56px; height: 56px; background: rgba(255,255,255,.12); }
@media (hover: none) { .cursor { display: none; } }

/* --- navigation ----------------------------------------------------------- */
.nav {
    position: sticky; top: 0; z-index: 110;
    backdrop-filter: blur(18px);
    background: rgba(5, 11, 22, .6);
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s;
}
.nav.is-stuck { background: rgba(5, 11, 22, .9); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 18px; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__text { padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
/* The wordmark is vector with a transparent ground - no plate behind it. */
.brand__logo { width: auto; height: 26px; max-width: 130px; object-fit: contain; display: block; }
.brand--footer img { width: auto; height: 62px; max-width: 220px; object-fit: contain; }
.brand--footer { display: inline-block; }
.brand__text { display: grid; line-height: 1.15; }
.brand__text strong { font-family: var(--font-display); font-size: 1.08rem; }
.brand__text small { color: var(--text-dim); font-size: .72rem; letter-spacing: .04em; }

.nav__links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav__link {
    position: relative; padding: 9px 14px; border-radius: 10px; font-size: .95rem;
    color: var(--text-muted); background: none; border: 0; display: inline-flex; align-items: center; gap: 6px;
    transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); background: var(--surface); }
.nav__chev { width: 15px; height: 15px; transition: transform .25s; }
.nav__has-mega { position: relative; }
.nav__has-mega:hover .nav__chev, .nav__has-mega:focus-within .nav__chev { transform: rotate(180deg); }

.mega {
    position: absolute; top: calc(100% + 12px); inset-inline-start: 50%; translate: -50% 0;
    width: min(680px, 92vw); max-width: calc(100vw - 32px); padding: 14px;
    background: rgba(8, 17, 31, .97); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .26s var(--ease);
}
/* inset-inline-start is logical (right in RTL) but translate is physical (always left),
   so in RTL the two add up instead of cancelling and the menu lands a full width away. */
html[dir="rtl"] .mega { translate: 50% 0; }
.nav__has-mega:hover .mega, .nav__has-mega:focus-within .mega, .mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.mega__item {
    display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px;
    border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s;
}
.mega__item:hover { background: rgba(var(--accent) / .09); border-color: var(--accent-line); transform: translateY(-2px); }
.mega__icon {
    width: 40px; height: 40px; display: grid; place-items: center; flex: none;
    border-radius: 12px; background: rgba(var(--accent) / .14); color: var(--accent-c);
    border: 1px solid rgba(var(--accent) / .26);
}
.mega__body { display: grid; }
.mega__body strong { font-size: .96rem; font-family: var(--font-display); }
.mega__body small { color: var(--text-dim); font-size: .78rem; }
.mega__foot {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    margin-top: 10px; padding: 12px 14px 4px; border-top: 1px solid var(--line);
    font-size: .84rem; color: var(--text-dim);
}
.mega__foot a { color: var(--accent-c); display: inline-flex; align-items: center; gap: 6px; }
html[dir="rtl"] .mega__foot a svg, html[dir="rtl"] .btn svg.icon--xs:last-child { transform: scaleX(-1); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.kbd-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    color: var(--text-dim); font-size: .8rem; transition: border-color .2s, color .2s;
}
.kbd-btn:hover { border-color: var(--line-strong); color: var(--text); }
.kbd-btn__keys { display: flex; gap: 3px; }
kbd {
    font-family: var(--font-body); font-size: .68rem; padding: 2px 6px; border-radius: 5px;
    background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--text-muted);
}
.lang-switch {
    display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
    font-size: .8rem; font-weight: 600;
}
.lang-switch span { padding: 7px 11px; color: var(--text-dim); transition: background .2s, color .2s; }
.lang-switch span.is-on { background: rgba(var(--accent) / .18); color: var(--accent-c); }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: 11px 10px; }
.burger span { display: block; height: 1.8px; background: var(--text); border-radius: 2px; transition: .28s var(--ease); }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
    position: fixed; inset: 74px 0 0; z-index: 105; background: rgba(5, 11, 22, .97);
    backdrop-filter: blur(20px); overflow-y: auto; padding: 22px 0 40px;
    animation: fadeIn .25s var(--ease);
}
.drawer__inner { width: min(100% - 40px, 520px); margin-inline: auto; display: grid; gap: 4px; }
.drawer__inner > a {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--line); font-family: var(--font-display);
}
.drawer__inner > a small { color: var(--text-dim); font-family: var(--font-body); font-size: .78rem; font-weight: 400; }
.drawer__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-c); box-shadow: 0 0 12px var(--accent-c); }
.drawer__label { margin: 16px 4px 4px; color: var(--text-dim); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 22px; border-radius: 13px; border: 1px solid transparent;
    font-family: var(--font-display); font-weight: 700; font-size: .95rem;
    transition: transform .22s var(--ease), box-shadow .22s, background .22s, border-color .22s;
    will-change: transform;
}
.btn--primary {
    background: linear-gradient(135deg, rgb(var(--accent)), rgba(var(--accent) / .72));
    color: #04070f; box-shadow: 0 12px 34px -12px rgba(var(--accent) / .9);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(var(--accent) / 1); }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--accent-line); transform: translateY(-2px); }
.btn--sm { padding: 9px 15px; font-size: .86rem; border-radius: 11px; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--block { width: 100%; margin-top: 14px; }

/* --- section furniture ---------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 118px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }
.section__head { max-width: 720px; margin-bottom: 46px; }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
    padding: 7px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600;
    background: rgba(var(--accent) / .1); border: 1px solid rgba(var(--accent) / .3); color: var(--accent-c);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.section__sub { color: var(--text-muted); font-size: 1.05rem; max-width: 62ch; }
.grad-text {
    background: linear-gradient(120deg, rgb(var(--brand-blue)), #6cc2f7 52%, rgb(var(--brand-red)));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- reveal --------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

/* --- cards ---------------------------------------------------------------- */
.card {
    position: relative; padding: 26px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line); overflow: hidden;
    transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.card::before {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent) / .16), transparent 62%);
}
.card:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card__icon {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
    background: rgba(var(--accent) / .13); border: 1px solid rgba(var(--accent) / .27); color: var(--accent-c);
}
.card__title { font-size: 1.1rem; margin-bottom: 8px; }
.card__text { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* --- hero ----------------------------------------------------------------- */
.hero { position: relative; padding: clamp(56px, 8vw, 92px) 0 0; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .85; }
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__title {
    font-size: clamp(2.1rem, 6vw, 4.1rem); line-height: 1.15; margin-bottom: 22px;
    max-width: 20ch; margin-inline: auto;
}
.hero__lead { color: var(--text-muted); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 62ch; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 26px; color: var(--text-dim); font-size: .88rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { color: var(--accent-c); }

/* typing terminal line */
.type-line { font-family: 'Space Grotesk', monospace; color: var(--accent-c); min-height: 1.6em; }
.type-line::after { content: "▌"; animation: caret 1s steps(1) infinite; margin-inline-start: 2px; }
@keyframes caret { 50% { opacity: 0; } }

/* --- stats ---------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.stat {
    padding: 22px; border-radius: var(--radius); text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
    border: 1px solid var(--line);
}
.stat__value { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; color: var(--text); }
.stat__value--sm { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.stat__label { color: var(--text-dim); font-size: .86rem; }

/* --- logo marquee --------------------------------------------------------- */
.marquee { position: relative; margin-top: 54px; padding: 26px 0; border-block: 1px solid var(--line); overflow: hidden; }
.marquee::before, .marquee::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none;
}
.marquee::before { inset-inline-start: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after  { inset-inline-end: 0; background: linear-gradient(to left, var(--bg), transparent); }
html[dir="rtl"] .marquee::before { background: linear-gradient(to left, var(--bg), transparent); }
html[dir="rtl"] .marquee::after  { background: linear-gradient(to right, var(--bg), transparent); }
.marquee__row { display: flex; gap: 20px; width: max-content; align-items: center; animation: slide 60s linear infinite; }
.marquee__row + .marquee__row { margin-top: 16px; animation-direction: reverse; animation-duration: 74s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__item {
    width: 150px; height: 80px; flex: none; padding: 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: #f4f6fa; border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.marquee__item img {
    max-width: 100%; max-height: 100%; width: auto; height: auto;
    object-fit: contain; display: block;
}
.marquee__item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-line);
    box-shadow: 0 14px 30px -14px rgba(var(--accent) / .9);
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee__row { animation-name: slide-rtl; }
html[dir="rtl"] .marquee__row + .marquee__row { animation-name: slide-rtl; animation-direction: reverse; }
@keyframes slide-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* --- grids ---------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* --- product cards -------------------------------------------------------- */
.product-card {
    position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px;
    border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
    border: 1px solid var(--line); overflow: hidden; min-height: 100%;
    transform-style: preserve-3d; transition: transform .3s var(--ease), border-color .3s;
}
.product-card::after {
    content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 3px; width: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-c), transparent);
    opacity: .5; transition: opacity .3s;
}
.product-card:hover { border-color: var(--accent-line); }
.product-card:hover::after { opacity: 1; }
.product-card__glow {
    position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent) / .18), transparent 60%);
}
.product-card:hover .product-card__glow { opacity: 1; }
.product-card__top { display: flex; align-items: center; gap: 14px; position: relative; }
.product-card__icon {
    width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none;
    background: rgba(var(--accent) / .14); border: 1px solid rgba(var(--accent) / .3); color: var(--accent-c);
    box-shadow: 0 0 34px -12px rgb(var(--accent));
}
.product-card__kicker { color: var(--accent-c); font-size: .78rem; font-weight: 600; letter-spacing: .05em; }
.product-card__name { font-size: 1.3rem; margin: 0; }
.product-card__tag { color: var(--text-muted); font-size: .95rem; margin: 0; position: relative; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; position: relative; }
.chip {
    padding: 5px 11px; border-radius: 999px; font-size: .76rem; color: var(--text-muted);
    background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.product-card__link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-c); font-weight: 700; font-size: .92rem; position: relative; }
.product-card__link svg { transition: transform .25s; }
html[dir="rtl"] .product-card__link svg { transform: scaleX(-1); }
.product-card:hover .product-card__link svg { transform: translateX(4px); }
html[dir="rtl"] .product-card:hover .product-card__link svg { transform: scaleX(-1) translateX(4px); }

/* --- split feature -------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--reverse .split__media { order: -1; }
.feature-list { display: grid; gap: 14px; margin-top: 22px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.feature-list svg { color: var(--accent-c); margin-top: 4px; }
.feature-list strong { color: var(--text); display: block; font-family: var(--font-display); font-size: .98rem; }

/* --- panel / mock windows ------------------------------------------------- */
.panel {
    border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden;
    background: linear-gradient(180deg, rgba(10, 21, 38, .96), rgba(6, 13, 24, .98));
    box-shadow: var(--shadow);
}
.panel__bar {
    display: flex; align-items: center; gap: 8px; padding: 12px 16px;
    border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.panel__dots { display: flex; gap: 6px; }
.panel__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.panel__dots i:first-child { background: #ff5f57; } .panel__dots i:nth-child(2) { background: #febc2e; } .panel__dots i:nth-child(3) { background: #28c840; }
.panel__title { font-size: .8rem; color: var(--text-dim); margin-inline-start: auto; font-family: 'Space Grotesk', monospace; }
.panel__body { padding: 20px; }

/* --- process timeline ----------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    font-family: 'Space Grotesk', monospace; font-size: 2.2rem; font-weight: 700;
    color: transparent; -webkit-text-stroke: 1px rgba(var(--accent) / .55); display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* --- tech marquee --------------------------------------------------------- */
.tech { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.tech span {
    padding: 9px 16px; border-radius: 999px; font-family: 'Space Grotesk', monospace; font-size: .85rem;
    background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text-muted);
    transition: color .25s, border-color .25s, transform .25s;
}
.tech span:hover { color: var(--accent-c); border-color: var(--accent-line); transform: translateY(-3px); }

/* --- faq ------------------------------------------------------------------ */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details {
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
    padding: 4px 20px; transition: border-color .25s, background .25s;
}
.faq details[open] { border-color: var(--accent-line); background: rgba(var(--accent) / .05); }
.faq summary {
    cursor: pointer; padding: 16px 0; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-c); font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-muted); font-size: .95rem; padding-bottom: 16px; margin: 0; }

/* --- clients grid --------------------------------------------------------- */
.logo-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.search-field {
    display: flex; align-items: center; gap: 10px; padding: 11px 16px; min-width: 280px; flex: 1; max-width: 420px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 13px; color: var(--text-dim);
}
.search-field input { flex: 1; background: none; border: 0; color: var(--text); font: inherit; outline: none; }
.logo-count { color: var(--text-dim); font-size: .9rem; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.logo-card {
    position: relative; margin: 0; aspect-ratio: 3 / 2; padding: 18px;
    display: flex; align-items: center; justify-content: center;
    background: #f4f6fa; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm);
    overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
    opacity: 0; transform: translateY(16px) scale(.97);
}
.logo-grid__item.is-visible .logo-card { opacity: 1; transform: none; }
.logo-card img {
    max-width: 100%; max-height: 100%; width: auto; height: auto;
    object-fit: contain; display: block; transition: transform .3s var(--ease);
}
.logo-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-line);
    box-shadow: 0 18px 36px -16px rgba(var(--accent) / .9);
}
.logo-card:hover img { transform: scale(1.05); }
.logo-card__name {
    position: absolute; inset-inline: 0; bottom: 0; padding: 7px 10px;
    background: linear-gradient(to top, rgba(6, 9, 18, .93), rgba(6, 9, 18, .78));
    color: #e9edf7; font-size: .76rem; text-align: center; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
    transform: translateY(105%); transition: transform .28s var(--ease);
}
.logo-card:hover .logo-card__name, .logo-card:focus-within .logo-card__name { transform: none; }
.empty { padding: 40px; text-align: center; color: var(--text-dim); border: 1px dashed var(--line); border-radius: var(--radius); }

/* --- contact -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: start; }
.contact-card {
    display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s, background .25s;
}
.contact-card:hover { border-color: var(--accent-line); transform: translateY(-3px); background: rgba(var(--accent) / .06); }
.contact-card__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(var(--accent) / .13); color: var(--accent-c); flex: none; }
.contact-card strong { display: block; font-family: var(--font-display); }
.contact-card small { color: var(--text-dim); }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .86rem; color: var(--text-muted); font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: 12px; font: inherit; color: var(--text);
    background: rgba(255,255,255,.04); border: 1px solid var(--line); outline: none;
    transition: border-color .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-line); background: rgba(var(--accent) / .05); }
.field select option { background: #0b0f1a; }
.form__note { color: var(--text-dim); font-size: .84rem; margin: 0; }

/* --- CTA band ------------------------------------------------------------- */
.cta-band { padding: clamp(48px, 7vw, 80px) 0; }
.cta-band__inner {
    display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between;
    padding: clamp(30px, 4vw, 52px); border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(var(--accent) / .18), rgba(var(--brand-red) / .12));
    border: 1px solid rgba(var(--accent) / .3); position: relative; overflow: hidden;
}
.cta-band__inner::after {
    content: ""; position: absolute; inset: -50% -10%; opacity: .5;
    background: conic-gradient(from 0deg, transparent, rgba(var(--accent) / .3), transparent 40%);
    animation: spin 14s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-band__text { position: relative; max-width: 54ch; }
.cta-band__text h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 8px; }
.cta-band__text p { color: var(--text-muted); margin: 0; }
.cta-band__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }

/* --- footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); background: rgba(3, 8, 16, .65); margin-top: 20px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 34px; padding: 56px 0 40px; }
.footer__desc { color: var(--text-muted); font-size: .92rem; margin: 18px 0 14px; max-width: 42ch; }
.footer__col h3 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { color: var(--text-muted); font-size: .93rem; transition: color .2s; }
.footer__col a:hover { color: var(--accent-c); }
.footer__contact a, .footer__contact span { display: inline-flex; align-items: center; gap: 9px; }
.footer__social a { color: var(--text-muted); display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }
.footer__bar { border-top: 1px solid var(--line); }
.footer__bar-inner { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 18px 0; color: var(--text-dim); font-size: .85rem; }
.footer__bar p { margin: 0; }

/* --- floating contact launcher -------------------------------------------- */
/* Pinned right in both directions: the site-chat panel always opens bottom-right. */
.fab {
    position: fixed; right: 20px; bottom: 20px; z-index: 130;
    display: grid; justify-items: end; gap: 12px;
}
.fab__toggle {
    width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center;
    background: linear-gradient(140deg, rgb(var(--brand-blue)), rgba(var(--brand-blue) / .78));
    color: #041220; box-shadow: 0 14px 34px -10px rgba(var(--brand-blue) / .95);
    transition: transform .25s var(--ease), box-shadow .25s;
}
.fab__toggle:hover { transform: translateY(-3px) scale(1.04); }
.fab__toggle-close { display: none; }
.fab.is-open .fab__toggle {
    background: rgba(10, 21, 38, .96); color: var(--text);
    border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.fab.is-open .fab__toggle-open { display: none; }
.fab.is-open .fab__toggle-close { display: grid; }

.fab__options {
    display: grid; gap: 8px; justify-items: stretch; min-width: 250px;
    padding: 14px; border-radius: 18px;
    background: rgba(8, 17, 31, .97); border: 1px solid var(--line);
    box-shadow: var(--shadow); backdrop-filter: blur(16px);
    animation: fabIn .22s var(--ease);
}
@keyframes fabIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.fab__hint { margin: 0 0 4px; font-size: .8rem; color: var(--text-dim); }
.fab__opt {
    display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 13px;
    background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text);
    text-align: start; transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.fab__opt:hover { border-color: var(--accent-line); background: rgba(var(--accent) / .1); transform: translateY(-2px); }
.fab__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.fab__opt--chat .fab__icon { background: rgba(var(--brand-blue) / .9); color: #041220; }
.fab__opt--wa .fab__icon { background: #25d366; color: #05300f; }
.fab__label strong { display: block; font-family: var(--font-display); font-size: .92rem; }
.fab__label small { color: var(--text-dim); font-size: .76rem; }

/* --- command palette ------------------------------------------------------ */
.palette { position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center; padding-top: 12vh; }
.palette[hidden], .drawer[hidden], .fab__options[hidden], [hidden] { display: none !important; }
.palette__backdrop { position: absolute; inset: 0; background: rgba(3, 8, 16, .74); backdrop-filter: blur(6px); }
.palette__box {
    position: relative; width: min(620px, 92vw); border-radius: 20px; overflow: hidden;
    background: rgba(8, 17, 31, .98); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
    animation: popIn .22s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
.palette__field { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--text-dim); }
.palette__field input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 1.02rem; }
.palette__list { max-height: 46vh; overflow-y: auto; padding: 8px; }
.palette__list li a {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--text-muted);
}
.palette__list li.is-active a, .palette__list li a:hover { background: rgba(var(--accent) / .12); color: var(--text); }
.palette__list strong { font-weight: 600; font-size: .95rem; }
.palette__list small { color: var(--text-dim); font-size: .8rem; margin-inline-start: auto; }
.palette__group { padding: 12px 14px 6px; color: var(--text-dim); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.palette__foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: .78rem; }
.palette__foot span { display: inline-flex; align-items: center; gap: 7px; }
body.is-locked { overflow: hidden; }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
    .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .nav__links { display: none; }
    .burger { display: block; }
    .kbd-btn__keys { display: none; }
}
@media (max-width: 860px) {
    .grid-3, .grid-2, .split, .contact-grid { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .container { width: calc(100% - 32px); }
    .grid-4 { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 26px; }
    .fab { right: 14px; bottom: 14px; }
    .brand__text small { display: none; }
    .nav__actions .btn { display: none; }
    .nav__inner { gap: 10px; height: 66px; }
    .drawer { inset-block-start: 66px; }
    .fab__options { min-width: 0; width: calc(100vw - 28px); max-width: 300px; }
    .kbd-btn { display: none; }
    .hero__actions .btn { width: 100%; }
}

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

/* ==========================================================================
   Product page + live demo widgets
   ========================================================================== */
.phero { padding: clamp(52px, 7vw, 92px) 0 clamp(30px, 4vw, 50px); position: relative; }
.phero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.phero__badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
    background: rgba(var(--accent) / .1); border: 1px solid rgba(var(--accent) / .3); margin-bottom: 20px;
}
html[dir="rtl"] .phero__badge { padding: 8px 8px 8px 14px; }
.phero__badge i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--accent) / .2); color: var(--accent-c); }
.phero__badge span { font-size: .84rem; color: var(--accent-c); font-weight: 600; }
.phero__title { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: 16px; }
.phero__lead { color: var(--text-muted); font-size: 1.08rem; max-width: 54ch; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.phero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.kpi { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.kpi strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--accent-c); }
.kpi span { color: var(--text-dim); font-size: .86rem; }

.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module {
    padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
    transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.module:hover { border-color: var(--accent-line); transform: translateY(-3px); background: rgba(var(--accent) / .05); }
.module__head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.module__head svg { color: var(--accent-c); }
.module__head h3 { margin: 0; font-size: 1rem; }
.module p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.module ul { margin-top: 10px; display: grid; gap: 6px; }
.module li { color: var(--text-muted); font-size: .87rem; padding-inline-start: 16px; position: relative; }
.module li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--accent) / .7); }

.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.audience div {
    padding: 20px; border-radius: var(--radius); text-align: center;
    background: linear-gradient(180deg, rgba(var(--accent) / .08), transparent); border: 1px solid var(--line);
}
.audience svg { color: var(--accent-c); margin-inline: auto; margin-bottom: 10px; }
.audience strong { display: block; font-family: var(--font-display); font-size: .98rem; }
.audience small { color: var(--text-dim); }

/* --- demo: shared --------------------------------------------------------- */
.demo { font-size: .88rem; }
.demo__row { display: flex; align-items: center; gap: 10px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* trio: booking pipeline */
.gds { display: grid; gap: 8px; margin-bottom: 16px; }
.gds__row {
    display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 11px;
    background: rgba(255,255,255,.04); border: 1px solid var(--line); font-family: 'Space Grotesk', monospace; font-size: .82rem;
}
.gds__row span:last-child { margin-inline-start: auto; color: var(--accent-c); }
.track { display: grid; gap: 0; }
.track__step { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 16px; position: relative; }
.track__step::before {
    content: ""; position: absolute; inset-inline-start: 9px; top: 22px; bottom: 0; width: 1.5px;
    background: linear-gradient(var(--accent-line), transparent);
}
.track__step:last-child { padding-bottom: 0; }
.track__step:last-child::before { display: none; }
.track__dot {
    width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: rgba(var(--accent) / .16); border: 1px solid var(--accent-line); color: var(--accent-c); font-size: .6rem;
}
.track__body strong { display: block; font-size: .92rem; font-family: var(--font-display); }
.track__body small { color: var(--text-dim); }

/* gfactory: production lines */
.line { display: grid; gap: 14px; }
.line__item { display: grid; gap: 7px; }
.line__label { display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-muted); }
.line__label b { color: var(--text); font-weight: 600; }
.bar { height: 9px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar__fill {
    height: 100%; border-radius: 999px; width: 0;
    background: linear-gradient(90deg, rgba(var(--accent) / .55), rgb(var(--accent)));
    transition: width 1.6s var(--ease);
    box-shadow: 0 0 16px -2px rgb(var(--accent));
}

/* retail: POS + receipt */
.pos { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
.pos__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.pos__tile {
    padding: 12px 8px; border-radius: 11px; text-align: center; font-size: .78rem;
    background: rgba(255,255,255,.045); border: 1px solid var(--line); transition: .2s; cursor: default;
}
.pos__tile.is-hit { background: rgba(var(--accent) / .18); border-color: var(--accent-line); transform: scale(1.04); }
.pos__tile b { display: block; font-size: .72rem; color: var(--text-dim); font-weight: 500; }
.receipt {
    background: #f7f7f2; color: #111; border-radius: 10px; padding: 16px 14px;
    font-family: 'Space Grotesk', monospace; font-size: .74rem; line-height: 1.9;
    box-shadow: 0 18px 40px -18px rgba(0,0,0,.9);
    mask-image: linear-gradient(#000 92%, transparent);
}
.receipt hr { border: 0; border-top: 1px dashed #bbb; margin: 8px 0; }
.receipt__row { display: flex; justify-content: space-between; gap: 10px; }
.receipt__row--total { font-weight: 700; font-size: .82rem; }
.receipt__head { text-align: center; font-weight: 700; }

/* chatpoot: chat */
.chat { display: grid; gap: 10px; }
.bubble { max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: .88rem; line-height: 1.6; }
.bubble--user { background: rgba(255,255,255,.07); border: 1px solid var(--line); margin-inline-start: auto; border-end-end-radius: 4px; }
.bubble--bot { background: rgba(var(--accent) / .14); border: 1px solid var(--accent-line); border-end-start-radius: 4px; }
.bubble small { display: block; color: var(--text-dim); font-size: .74rem; margin-top: 6px; }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-c); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* crm: omnichannel inbox */
.inbox { display: grid; grid-template-columns: 62px 1fr 1.25fr; min-height: 420px; }
.inbox__rail { border-inline-end: 1px solid var(--line); display: grid; gap: 6px; padding: 12px 8px; align-content: start; background: rgba(255,255,255,.02); }
.inbox__rail button {
    position: relative; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    background: transparent; border: 1px solid transparent; color: var(--text-dim); transition: .2s;
}
.inbox__rail button.is-on { background: rgba(var(--accent) / .16); border-color: var(--accent-line); color: var(--accent-c); }
.inbox__rail button:hover { color: var(--text); }
.inbox__rail b {
    position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 9px; background: #f43f5e; color: #fff; font-size: .64rem; display: grid; place-items: center;
}
.inbox__list { border-inline-end: 1px solid var(--line); overflow: hidden; }
.inbox__search { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text-dim); display: flex; gap: 8px; align-items: center; font-size: .82rem; }
.conv {
    display: grid; gap: 4px; padding: 13px 14px; border-bottom: 1px solid var(--line); cursor: default; transition: background .2s;
}
.conv:hover, .conv.is-on { background: rgba(var(--accent) / .08); }
.conv__top { display: flex; align-items: center; gap: 8px; }
.conv__ch { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.conv__ch svg { width: 13px; height: 13px; }
.conv__name { font-weight: 600; font-size: .88rem; }
.conv__time { margin-inline-start: auto; color: var(--text-dim); font-size: .72rem; }
.conv__snippet { color: var(--text-dim); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__tags { display: flex; gap: 5px; }
.tag { font-size: .68rem; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--text-muted); }
.tag--hot { background: rgba(244,63,94,.18); color: #fda4af; }
.tag--won { background: rgba(34,197,94,.18); color: #86efac; }
.inbox__thread { display: grid; grid-template-rows: auto 1fr auto; }
.inbox__head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.inbox__head strong { font-size: .92rem; }
.inbox__head .tag { margin-inline-start: auto; }
.inbox__msgs { padding: 16px; display: grid; gap: 10px; align-content: start; }
.inbox__composer { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; color: var(--text-dim); font-size: .84rem; }
.inbox__composer .btn { margin-inline-start: auto; }
.ai-hint {
    display: flex; gap: 9px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; font-size: .82rem;
    background: rgba(167,139,250,.12); border: 1px dashed rgba(167,139,250,.45); color: #ddd6fe;
}
.ai-hint svg { color: #c4b5fd; flex: none; }

/* jirans: transparency board */
.board { display: grid; gap: 14px; }
.board__top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.board__stat { padding: 14px; border-radius: 13px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.board__stat b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--accent-c); }
.board__stat span { font-size: .78rem; color: var(--text-dim); }
.flat-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: .84rem; }
.flat-row span:last-child { margin-inline-start: auto; font-size: .76rem; padding: 3px 9px; border-radius: 7px; }
.paid { background: rgba(34,197,94,.16); color: #86efac; }
.due  { background: rgba(244,63,94,.16); color: #fda4af; }

@media (max-width: 1024px) {
    .module-grid, .kpis, .audience { grid-template-columns: repeat(2, 1fr); }
    .inbox { grid-template-columns: 56px 1fr; }
    .inbox__thread { display: none; }
}
@media (max-width: 860px) {
    .phero__grid { grid-template-columns: 1fr; }
    .pos { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .module-grid, .kpis, .audience { grid-template-columns: 1fr; }
    .inbox { grid-template-columns: 1fr; }
    .inbox__rail { display: flex; border-inline-end: 0; border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   Product screenshots - a real screen from the running system
   ========================================================================== */
.panel__body--flush { padding: 0; }
.panel__body--flush .shot,
.panel__body--flush img { display: block; width: 100%; height: auto; }
/* the screen carries on below the panel - say so instead of ending on a hard cut */
.panel__body--flush .shot { -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); }
.panel__body--flush .shot:hover { transform: none; box-shadow: none; border-color: transparent; }

.shots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 22px;
}
.shots__item { margin: 0; display: grid; gap: 12px; }

.shot {
    display: block; position: relative; overflow: hidden;
    border-radius: var(--radius); border: 1px solid var(--line);
    background: #0b1524;
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.shot img {
    display: block; width: 100%; height: auto;
    /* the source is 1600 wide; never let a browser paint it larger than it is */
    max-width: 100%;
}
.shot::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
    border-radius: inherit;
}
.shot:hover {
    transform: translateY(-4px);
    border-color: var(--accent-line);
    box-shadow: 0 20px 44px -20px rgba(var(--accent) / .85);
}
.shots__item figcaption { display: grid; gap: 3px; padding-inline: 2px; }
.shots__item figcaption strong { font-family: var(--font-display); font-size: .96rem; }
.shots__item figcaption span { color: var(--text-dim); font-size: .85rem; line-height: 1.5; }

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