:root {
    --bg-primary: #282828;
    --bg-secondary: #1a1a1a;
    --bg-soft: #3d3d3d;
    --bg-card: rgba(51, 51, 51, 0.92);
    --bg-glass: rgba(255, 255, 255, 0.08);
    --bg-glass-hover: rgba(255, 255, 255, 0.1);
    --accent-blue: #e9a426;
    --accent-cyan: #f4b942;
    --accent-purple: #d97706;
    --accent-green: #e9a426;
    --accent-orange: #f4b942;
    --gradient-primary: linear-gradient(135deg, #e9a426 0%, #f4b942 100%);
    --gradient-secondary: linear-gradient(135deg, #d97706, #e9a426);
    --text-primary: #f5f5f5;
    --text-secondary: #e0e0e0;
    --text-muted: #b3b3b3;
    --border-color: rgba(71, 71, 71, 0.95);
    --border-strong: rgba(233, 164, 38, 0.5);
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 20px 50px -15px rgba(2, 2, 2, 0.85);
    --shadow-glow: 0 20px 60px -15px rgba(233, 164, 38, 0.45);
    --font-ar: "Cairo", sans-serif;
    --font-en: "Inter", sans-serif;
    --container-width: 1180px;
    --section-padding: 96px 0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 28px;
    --transition-normal: 0.25s ease;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-soft: #f0f0f0;
    --bg-card: rgba(245, 245, 245, 0.95);
    --bg-glass: rgba(0, 0, 0, 0.04);
    --bg-glass-hover: rgba(0, 0, 0, 0.075);
    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-muted: #666666;
    --border-color: rgba(224, 224, 224, 0.95);
    --border-strong: rgba(233, 164, 38, 0.45);
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 20px 50px -15px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 20px 60px -15px rgba(233, 164, 38, 0.25);
}

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

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    margin: 0;
    font-family: var(--font-ar);
    direction: rtl;
    background:
        radial-gradient(circle at 80% 4%, rgba(233, 164, 38, 0.14), transparent 30rem),
        radial-gradient(circle at 12% 18%, rgba(244, 185, 66, 0.08), transparent 28rem),
        var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    overflow-x: hidden;
}

p,
li,
a,
button,
input,
textarea,
select {
    font-size: 0.95rem;
}

body[dir="ltr"] {
    direction: ltr;
    font-family: var(--font-en);
}

body[dir="ltr"] .brand-link,
body[dir="ltr"] .hero-actions,
body[dir="ltr"] .footer-links a,
body[dir="ltr"] .wa-float-btn {
    direction: ltr;
}

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

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

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(var(--container-width), calc(100% - 40px));
    margin-inline: auto;
}

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent-blue);
    opacity: 0.18;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(105vh); opacity: 0; }
    14% { opacity: 0.18; }
    85% { opacity: 0.18; }
    100% { transform: translateY(-12vh); opacity: 0; }
}

.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 10px 0;
    background: color-mix(in srgb, var(--bg-primary) 88%, transparent);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-sm);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 58px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: 0 0 40px;
}

.brand-copy {
    display: grid;
    line-height: 1;
    font-family: var(--font-en);
}

.brand-copy strong {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0;
}

.brand-copy strong span {
    color: var(--accent-blue);
}

.brand-copy small {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.brand-copy-ar {
    font-family: var(--font-ar);
}

.brand-copy-ar strong {
    font-size: 1.58rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.brand-copy-ar strong span {
    font-family: var(--font-en);
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.brand-copy-ar small {
    font-family: var(--font-en);
}

.navbar-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.92rem;
}

.navbar-links > a,
.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 0;
    transition: var(--transition-normal);
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--accent-blue);
}

.nav-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    display: grid;
    gap: 8px;
    min-width: 240px;
    padding: 14px;
    background: color-mix(in srgb, var(--bg-card) 96%, transparent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: var(--transition-normal);
}

.nav-dropdown:hover .mega-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mega-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}

.mega-menu a:hover {
    background: var(--bg-glass-hover);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-actions form {
    margin: 0;
}

.btn,
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    border-radius: var(--radius-sm);
    min-height: 42px;
    padding: 10px 18px;
    font-weight: 800;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #161104;
    box-shadow: 0 16px 32px rgba(233, 164, 38, 0.3);
}

.btn-primary:hover,
.btn-outline:hover,
.btn-soft:hover,
.icon-btn:hover {
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--border-strong);
}

.btn-soft,
.icon-btn {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.home-lang-switch {
    min-width: 104px;
}

.icon-btn {
    width: 42px;
    padding: 0;
}

.btn-lg {
    min-height: 52px;
    padding: 13px 28px;
    border-radius: var(--radius-md);
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    color: var(--text-primary);
}

.hero {
    position: relative;
    min-height: 100vh;
    padding: 138px 0 72px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 78px 4% auto;
    height: min(58vw, 620px);
    background:
        linear-gradient(90deg, transparent, rgba(233, 164, 38, 0.13), transparent),
        repeating-linear-gradient(135deg, transparent 0 18px, rgba(233, 164, 38, 0.055) 18px 19px);
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
    pointer-events: none;
}

.hero-stack {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    text-align: center;
}

.hero-kicker,
.section-eyebrow {
    color: var(--accent-blue);
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 14px;
}

.hero-title {
    max-width: 980px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.35rem);
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-title span {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-visual {
    position: relative;
    width: min(720px, 100%);
    margin: 28px auto 24px;
    min-height: 520px;
    display: grid;
    place-items: center;
}

.phone-mockup {
    position: relative;
    width: min(326px, 82vw);
    aspect-ratio: 0.72;
    padding: 6px;
    border: 1px solid #595959;
    border-radius: 48px;
    background: #080808;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 18px 55px rgba(233, 164, 38, 0.2);
    animation: heroPhoneFloat 5.4s ease-in-out infinite;
}

.phone-mockup::after {
    content: "";
    position: absolute;
    inset: -42px;
    z-index: -1;
    background: radial-gradient(circle, rgba(233, 164, 38, 0.27), transparent 64%);
    filter: blur(18px);
}

.phone-side-button {
    position: absolute;
    right: -4px;
    width: 4px;
    border-radius: 0 3px 3px 0;
    background: #333;
}

.phone-side-button-top {
    top: 112px;
    height: 56px;
}

.phone-side-button-bottom {
    top: 182px;
    height: 72px;
}

.phone-screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    display: grid;
    grid-template-rows: 28px 58px 1fr 24px;
    border: 1px solid #292929;
    border-radius: 41px;
    background: #151515;
    color: #f7f7f7;
}

.phone-island {
    position: absolute;
    z-index: 8;
    top: 7px;
    left: 50%;
    width: 92px;
    height: 23px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #030303;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.phone-island span {
    position: absolute;
    top: 8px;
    right: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #101b25;
    box-shadow: inset 0 0 2px #4aa3ff;
}

.phone-status {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 6px 19px 0;
    direction: ltr;
    color: #e7e7e7;
    font-family: var(--font-en);
    font-size: 0.63rem;
    font-weight: 800;
}

.phone-status > span:last-child {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    font-size: 0.58rem;
}

.motion-appbar {
    display: grid;
    grid-template-columns: 36px 1fr 12px;
    gap: 9px;
    align-items: center;
    text-align: start;
    padding: 8px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(233, 164, 38, 0.18);
    background: #101010;
}

.motion-appbar img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

.motion-appbar strong,
.motion-appbar small {
    display: block;
    line-height: 1.25;
}

.motion-appbar strong {
    color: #f4b942;
    font-family: var(--font-en);
    font-size: 0.82rem;
}

.motion-appbar small {
    margin-top: 3px;
    color: #a9a9a9;
    font-size: 0.62rem;
}

.motion-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #23c875;
    box-shadow: 0 0 0 0 rgba(35, 200, 117, 0.55);
    animation: motionLivePulse 1.8s ease-out infinite;
}

.motion-scenes {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(233, 164, 38, 0.055), transparent 38%),
        #171717;
}

.motion-scenes::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 24px;
    pointer-events: none;
}

.motion-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    padding: 13px;
    opacity: 0;
    text-align: start;
    color: #f4f4f4;
    animation: heroSceneCycle 16s ease-in-out infinite;
}

.motion-scene:nth-child(2) { animation-delay: 4s; }
.motion-scene:nth-child(3) { animation-delay: 8s; }
.motion-scene:nth-child(4) { animation-delay: 12s; }

.motion-scene-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
}

.motion-scene-heading span,
.motion-scene-heading small {
    display: block;
}

.motion-scene-heading > div > span {
    font-size: 0.8rem;
    font-weight: 900;
}

.motion-scene-heading small {
    margin-top: 2px;
    color: #929292;
    font-size: 0.61rem;
}

.motion-count,
.motion-score {
    min-width: 34px;
    padding: 4px 7px;
    border: 1px solid rgba(233, 164, 38, 0.38);
    border-radius: 999px;
    background: rgba(233, 164, 38, 0.12);
    color: #f4b942;
    text-align: center;
    font-family: var(--font-en);
    font-size: 0.67rem;
    font-weight: 900;
}

.motion-inbox-list {
    display: grid;
    gap: 8px;
}

.motion-inbox-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 8px;
    border: 1px solid #343434;
    border-radius: 8px;
    background: #202020;
}

.motion-inbox-item.is-highlighted {
    border-color: rgba(233, 164, 38, 0.55);
    background: linear-gradient(90deg, rgba(233, 164, 38, 0.14), #202020 60%);
    animation: motionInboxHighlight 2s ease-in-out infinite;
}

.motion-inbox-item strong,
.motion-inbox-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.motion-inbox-item strong {
    font-size: 0.69rem;
}

.motion-inbox-item small {
    margin-top: 3px;
    color: #9d9d9d;
    font-size: 0.56rem;
}

.motion-inbox-item time {
    color: #d6a633;
    font-size: 0.53rem;
    font-weight: 800;
}

.motion-channel {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
}

.motion-channel.whatsapp { background: #1e9e57; }
.motion-channel.messenger { background: #2563c9; }
.motion-channel.instagram { background: linear-gradient(135deg, #9b3bcc, #df3d71 55%, #e2a024); }

.motion-sync {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    color: #b9b9b9;
    font-size: 0.59rem;
}

.motion-sync i {
    color: #f4b942;
    animation: motionSpin 2.4s linear infinite;
}

.motion-chat-profile {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 9px;
    margin: -2px -2px 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #303030;
}

.motion-chat-profile strong,
.motion-chat-profile small {
    display: block;
}

.motion-chat-profile strong { font-size: 0.72rem; }
.motion-chat-profile small { color: #27c876; font-size: 0.55rem; }

.motion-chat-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.motion-bubble {
    max-width: 88%;
    margin: 0;
    padding: 8px 9px;
    border-radius: 8px;
    font-size: 0.63rem;
    line-height: 1.55;
}

.motion-bubble.customer {
    align-self: flex-start;
    background: #2a2a2a;
    color: #efefef;
}

.motion-bubble.bot {
    align-self: flex-end;
    border: 1px solid rgba(233, 164, 38, 0.35);
    background: rgba(233, 164, 38, 0.14);
    color: #f6e6bc;
}

.motion-options {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
}

.motion-options span {
    padding: 5px 7px;
    border: 1px solid rgba(233, 164, 38, 0.45);
    border-radius: 999px;
    color: #f4b942;
    font-size: 0.55rem;
    font-weight: 800;
}

.motion-typing {
    width: 42px;
    display: flex;
    justify-content: center;
    gap: 3px;
    padding: 7px;
    border-radius: 8px;
    background: #292929;
}

.motion-typing i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #aaa;
    animation: motionTyping 1s ease-in-out infinite;
}

.motion-typing i:nth-child(2) { animation-delay: 0.15s; }
.motion-typing i:nth-child(3) { animation-delay: 0.3s; }

.motion-composer {
    position: absolute;
    right: 13px;
    bottom: 12px;
    left: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border: 1px solid #383838;
    border-radius: 999px;
    background: #202020;
    color: #858585;
    font-size: 0.58rem;
}

.motion-composer i { color: #f4b942; }

.motion-lead-card {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid rgba(233, 164, 38, 0.36);
    border-radius: 8px;
    background: rgba(233, 164, 38, 0.09);
}

.motion-lead-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e9a426;
    color: #111;
    font-family: var(--font-en);
    font-size: 0.65rem;
    font-weight: 900;
}

.motion-lead-card strong,
.motion-lead-card small {
    display: block;
    font-family: var(--font-en);
}

.motion-lead-card strong { font-size: 0.66rem; }
.motion-lead-card small { color: #9d9d9d; font-size: 0.54rem; }

.motion-hot {
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(35, 200, 117, 0.16);
    color: #58dc96;
    font-size: 0.53rem;
    font-weight: 900;
}

.motion-data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 2px;
    border-bottom: 1px solid #2e2e2e;
    font-size: 0.6rem;
}

.motion-data-row span { color: #929292; }
.motion-data-row strong { color: #e8e8e8; font-size: 0.61rem; }

.motion-automation-flow {
    display: grid;
    grid-template-columns: 24px 1fr 24px 1fr 24px;
    align-items: center;
    margin: 12px 2px 8px;
}

.motion-automation-flow span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #2c2c2c;
    color: #aaa;
    font-size: 0.56rem;
}

.motion-automation-flow > i {
    height: 2px;
    background: linear-gradient(90deg, #23c875, #e9a426);
    transform-origin: right;
    animation: motionFlow 2.2s ease-in-out infinite;
}

.motion-automation-flow .is-done { background: #1c8b50; color: #fff; }
.motion-automation-flow .is-current { background: #e9a426; color: #111; box-shadow: 0 0 0 5px rgba(233, 164, 38, 0.12); }

.motion-analysis {
    margin: 0;
    color: #b9b9b9;
    text-align: center;
    font-size: 0.57rem;
}

.scene-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.motion-success-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border: 1px solid rgba(233, 164, 38, 0.55);
    border-radius: 50%;
    background: rgba(233, 164, 38, 0.14);
    color: #f4b942;
    font-size: 1.35rem;
    box-shadow: 0 0 0 8px rgba(233, 164, 38, 0.06);
    animation: motionSuccessPulse 1.8s ease-in-out infinite;
}

.scene-success > strong { color: #f4b942; font-size: 0.94rem; }
.scene-success > p { max-width: 240px; margin: 7px 0 12px; color: #adadad; font-size: 0.62rem; line-height: 1.6; }

.motion-result-card {
    width: 100%;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid #393939;
    border-radius: 8px;
    background: #212121;
    text-align: start;
}

.motion-result-card > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e9a426;
    color: #111;
}

.motion-result-card small,
.motion-result-card strong { display: block; }
.motion-result-card small { color: #999; font-size: 0.54rem; }
.motion-result-card strong { font-family: var(--font-en); font-size: 0.64rem; }
.motion-result-card > i { color: #e9a426; font-size: 0.65rem; }

body[dir="ltr"] .motion-result-card > i { transform: rotate(180deg); }

.motion-response-time {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #9f9f9f;
    font-size: 0.56rem;
}

.motion-response-time i { color: #f4b942; }

.motion-dots {
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #151515;
}

.motion-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4a4a4a;
    animation: motionDotCycle 16s ease-in-out infinite;
}

.motion-dots i:nth-child(2) { animation-delay: 4s; }
.motion-dots i:nth-child(3) { animation-delay: 8s; }
.motion-dots i:nth-child(4) { animation-delay: 12s; }

@keyframes heroPhoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@keyframes heroSceneCycle {
    0%, 21% { opacity: 1; transform: translateY(0) scale(1); }
    25%, 100% { opacity: 0; transform: translateY(-12px) scale(0.985); }
}

@keyframes motionDotCycle {
    0%, 21% { width: 17px; border-radius: 999px; background: #e9a426; }
    25%, 100% { width: 5px; border-radius: 50%; background: #4a4a4a; }
}

@keyframes motionLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(35, 200, 117, 0.48); }
    70%, 100% { box-shadow: 0 0 0 7px rgba(35, 200, 117, 0); }
}

@keyframes motionInboxHighlight {
    0%, 100% { box-shadow: inset 0 0 0 rgba(233, 164, 38, 0); }
    50% { box-shadow: inset 0 0 18px rgba(233, 164, 38, 0.08); }
}

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

@keyframes motionTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
    30% { transform: translateY(-3px); opacity: 1; }
}

@keyframes motionFlow {
    0% { transform: scaleX(0); }
    65%, 100% { transform: scaleX(1); }
}

@keyframes motionSuccessPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.floating-channel {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    animation: floatCard 4.8s ease-in-out infinite;
}

.floating-channel i {
    color: var(--accent-blue);
}

.floating-channel.top {
    top: 20px;
    right: 50%;
    transform: translateX(50%);
}

.floating-channel.left {
    top: 45%;
    right: 2%;
    animation-delay: 0.8s;
}

.floating-channel.right {
    bottom: 14%;
    left: 2%;
    animation-delay: 1.4s;
}

@keyframes floatCard {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -12px; }
}

@media (prefers-reduced-motion: reduce) {
    .phone-mockup,
    .floating-channel,
    .motion-live-dot,
    .motion-sync i,
    .motion-inbox-item.is-highlighted,
    .motion-typing i,
    .motion-automation-flow > i,
    .motion-success-icon {
        animation: none;
    }

    .motion-scene,
    .motion-dots i {
        animation: none;
        opacity: 0;
    }

    .motion-scene:first-child { opacity: 1; }
    .motion-dots i:first-child { width: 17px; border-radius: 999px; background: #e9a426; opacity: 1; }
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 980px;
}

.hero-features span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 800;
}

.hero-features i {
    color: var(--accent-blue);
}

.hero-desc {
    max-width: 720px;
    margin: 26px auto 0;
    color: var(--text-secondary);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.hero-note {
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.trust-section {
    padding: 42px 0;
    border-block: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--bg-secondary) 82%, transparent);
}

.trust-section h2 {
    margin: 0 auto 22px;
    max-width: 720px;
    text-align: center;
    font-size: clamp(1.1rem, 2.6vw, 1.7rem);
}

.logo-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.logo-cloud span {
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-muted);
    background: var(--bg-glass);
    font-weight: 800;
}

.section {
    padding: var(--section-padding);
}

.section-header {
    max-width: 760px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-title {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.18;
    font-weight: 900;
}

.section-desc {
    margin: 16px 0 0;
    color: var(--text-secondary);
    font-size: 1.04rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.product-card,
.benefit-card,
.pricing-card,
.portfolio-card,
.faq-item,
.channel-grid article {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.product-card {
    padding: 24px;
    display: flex;
    min-height: 330px;
    flex-direction: column;
}

.product-card:hover,
.benefit-card:hover,
.pricing-card:hover,
.portfolio-card:hover,
.channel-grid article:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-glow);
}

.product-card.featured {
    background:
        linear-gradient(180deg, rgba(233, 164, 38, 0.16), transparent 54%),
        var(--bg-card);
    border-color: var(--border-strong);
}

.product-icon,
.benefit-card i,
.channel-grid i {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--gradient-primary);
    color: #161104;
    font-size: 1.35rem;
    margin-bottom: 18px;
}

.product-card h3,
.benefit-card h3,
.channel-grid h3,
.pricing-card h3,
.portfolio-body h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.product-card p,
.benefit-card p,
.channel-grid p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.93rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.tag-list span {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--bg-glass);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    font-size: 0.78rem;
    font-weight: 800;
}

.product-card a {
    margin-top: auto;
    color: var(--accent-blue);
    font-weight: 900;
}

.split-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 44px;
    align-items: center;
}

.section-copy .section-title,
.section-copy .section-desc {
    text-align: start;
}

.section-copy .btn {
    margin-top: 24px;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.channel-grid article {
    padding: 22px;
}

.channel-grid article.wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 16px;
    align-items: center;
}

.channel-grid article.wide i {
    margin: 0;
}

.integration-board {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1fr;
    grid-template-areas:
        "commerce core crm"
        "payments core crm";
    gap: 18px;
}

.integration-group,
.integration-core {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.integration-group:nth-child(1) { grid-area: commerce; }
.integration-core { grid-area: core; }
.integration-group:nth-child(3) { grid-area: crm; }
.integration-group.payments { grid-area: payments; }

.integration-group h3 {
    margin: 0 0 16px;
    font-size: 1.05rem;
}

.integration-group span {
    display: inline-flex;
    margin: 0 0 9px 7px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    background: var(--bg-glass);
    font-weight: 800;
    font-size: 0.86rem;
}

.integration-core {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 360px;
    background:
        radial-gradient(circle, rgba(233, 164, 38, 0.22), transparent 58%),
        var(--bg-card);
}

.brand-emblem {
    display: grid;
    place-items: center;
    min-width: min(260px, 90%);
    padding: 24px 28px;
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(51, 51, 51, 0.95), rgba(40, 40, 40, 0.85));
    box-shadow: var(--shadow-glow);
}

.brand-emblem strong {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.brand-emblem strong span {
    font-family: var(--font-en);
}

.brand-emblem small {
    margin-top: 10px;
    color: var(--text-muted);
    font-family: var(--font-en);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.integration-core > strong {
    display: block;
    margin-top: 18px;
    font-size: 1.28rem;
}

.integration-core p {
    margin: 6px 0 0;
    color: var(--text-secondary);
}

.benefit-grid,
.pricing-grid,
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.benefit-card {
    padding: 24px;
}

.stats-section {
    padding: 58px 0;
    background:
        linear-gradient(135deg, rgba(233, 164, 38, 0.14), transparent),
        var(--bg-secondary);
    border-block: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-en);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: var(--accent-blue);
    line-height: 1;
}

.stat-item p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-weight: 800;
}

.pricing-card {
    position: relative;
    padding: 34px 26px;
}

.pricing-card.featured {
    border-color: var(--border-strong);
    transform: translateY(-10px);
    background:
        linear-gradient(180deg, rgba(233, 164, 38, 0.18), transparent 50%),
        var(--bg-card);
}

.pricing-popular {
    position: absolute;
    top: -15px;
    right: 26px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--gradient-primary);
    color: #161104;
    font-weight: 900;
    font-size: 0.78rem;
}

.price {
    margin: 14px 0 22px;
    color: var(--accent-blue);
    font-family: var(--font-en);
    font-size: 2.45rem;
    font-weight: 900;
}

.price small {
    font-family: var(--font-ar);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: grid;
    gap: 12px;
}

.pricing-card li {
    color: var(--text-secondary);
}

.pricing-card li i {
    color: var(--accent-blue);
    margin-left: 8px;
}

.pricing-card .btn {
    width: 100%;
}

.portfolio-card {
    overflow: hidden;
    padding: 0;
}

.portfolio-media {
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(135deg, rgba(233, 164, 38, 0.16), transparent),
        var(--bg-soft);
    display: grid;
    place-items: center;
}

.portfolio-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-media span {
    width: 62px;
    height: 62px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    background: var(--gradient-primary);
    color: #161104;
    font-size: 1.7rem;
    font-weight: 900;
}

.portfolio-body {
    padding: 22px;
}

.portfolio-category {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--accent-blue);
    font-size: 0.78rem;
    font-weight: 900;
}

.portfolio-body h3 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 1.12rem;
    line-height: 1.45;
}

.portfolio-body p {
    margin: 0 0 16px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.portfolio-body a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    font-weight: 900;
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 22px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 900;
}

.faq-question i {
    color: var(--accent-blue);
    transition: var(--transition-normal);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-content {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--text-secondary);
}

.faq-item.active {
    border-color: var(--border-strong);
}

.faq-item.active .faq-answer {
    max-height: 180px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.4s; }

.cta-section {
    padding: 34px 0 92px;
}

.cta-box {
    padding: clamp(34px, 7vw, 72px);
    text-align: center;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 50% 0%, rgba(233, 164, 38, 0.24), transparent 50%),
        var(--bg-card);
    box-shadow: var(--shadow-glow);
}

.cta-box p {
    margin: 0 0 8px;
    color: var(--accent-blue);
    font-weight: 900;
}

.cta-box h2 {
    margin: 0 0 24px;
    font-size: clamp(1.8rem, 4.4vw, 3.3rem);
    line-height: 1.18;
}

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding-bottom: 76px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(190px, 0.5fr);
    gap: clamp(34px, 7vw, 96px);
    align-items: start;
    justify-content: space-between;
    padding: 64px 0 46px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 18px 0 0;
    max-width: 560px;
    line-height: 2;
    text-wrap: balance;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: var(--bg-glass);
}

.footer-col h3 {
    margin: 0 0 14px;
    font-size: 1.15rem;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    padding: 7px 0;
    white-space: nowrap;
}

.footer-col a:hover,
.footer-social a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 22px 20px;
    text-align: center;
    color: var(--text-muted);
}

.footer-bottom p {
    margin: 0;
}

.wa-float-btn {
    position: fixed;
    z-index: 1002;
    right: 24px;
    left: auto;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 16px 32px rgba(37, 211, 102, 0.25);
    font-weight: 900;
}

body[dir="ltr"] .wa-float-btn {
    right: auto;
    left: 24px;
}

@media (max-width: 1120px) {
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 20px;
        left: 20px;
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--border-color);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        background: color-mix(in srgb, var(--bg-primary) 95%, transparent);
        backdrop-filter: blur(18px);
    }

    .navbar-links.active {
        display: flex;
    }

    .navbar-links > a,
    .nav-dropdown > a {
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-dropdown:hover .mega-menu {
        display: grid;
    }

    .mega-menu {
        position: static;
        display: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        margin: 8px 0 12px;
        box-shadow: none;
    }

    .mobile-menu-btn {
        display: inline-grid;
        place-items: center;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .integration-board {
        grid-template-columns: 1fr;
        grid-template-areas:
            "core"
            "commerce"
            "crm"
            "payments";
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(170px, 0.45fr);
        gap: 42px;
    }
}

@media (max-width: 820px) {
    :root {
        --section-padding: 68px 0;
    }

    .container {
        width: min(100% - 28px, var(--container-width));
    }

    .brand-copy strong {
        font-size: 1.05rem;
    }

    .brand-copy small {
        font-size: 0.54rem;
    }

    .navbar-actions .btn-soft:not(.home-lang-switch) {
        display: none;
    }

    .home-lang-switch {
        display: inline-flex;
        min-width: 42px;
        padding: 0 12px;
    }

    .home-lang-switch span {
        display: none;
    }

    .hero {
        padding-top: 110px;
    }

    .hero-visual {
        min-height: 480px;
    }

    .floating-channel {
        display: none;
    }

    .hero-actions,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        display: grid;
        width: 100%;
        max-width: 340px;
    }

    .split-section,
    .section-copy .section-title,
    .section-copy .section-desc {
        text-align: center;
    }

    .product-grid,
    .benefit-grid,
    .pricing-grid,
    .portfolio-grid,
    .stats-grid,
    .channel-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding-bottom: 88px;
    }

    .footer-grid {
        padding: 44px 0 34px;
        gap: 30px;
        text-align: center;
    }

    .footer-brand,
    .footer-col {
        justify-self: center;
        width: min(100%, 460px);
    }

    .footer-brand .brand-link,
    .footer-social {
        justify-content: center;
    }

    .footer-brand p {
        margin-inline: auto;
    }

    .footer-col a {
        white-space: normal;
    }

    .pricing-card.featured {
        transform: none;
    }

    .channel-grid article.wide {
        grid-template-columns: 1fr;
    }

    .channel-grid article.wide i {
        margin-bottom: 18px;
    }
}

@media (max-width: 520px) {
    .hero-title {
        font-size: 2.28rem;
    }

    .hero-kicker {
        font-size: 0.9rem;
    }

    .phone-mockup {
        width: min(316px, 92vw);
        padding: 5px;
        border-width: 1px;
    }

    .hero-features span {
        width: 100%;
        justify-content: center;
    }

    .btn-lg,
    .btn {
        width: 100%;
    }

    .navbar-actions .btn-primary {
        display: none;
    }

    .wa-float-btn span {
        display: none;
    }

    .wa-float-btn {
        right: 18px;
        left: auto;
        bottom: 18px;
        width: 54px;
        height: 54px;
        padding: 0;
        justify-content: center;
        gap: 0;
        border-radius: 50%;
    }

    body[dir="ltr"] .wa-float-btn {
        right: auto;
        left: 18px;
    }

    .wa-float-btn i {
        font-size: 1.65rem;
        line-height: 1;
    }
}
/* 4-column layout adjustments */
@media (min-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px !important;
    }
    .pricing-card {
        padding: 24px 16px !important;
    }
    .price {
        font-size: 1.8rem !important;
    }
    .pricing-card h3 {
        font-size: 1.1rem !important;
    }
    .pricing-card ul li {
        font-size: 0.85rem !important;
        padding: 6px 0 !important;
    }
    .pricing-card .btn {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
    }
}
/* ============================================
   Audit Section
   ============================================ */
.audit-section {
    padding: 80px 0;
}
.audit-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-glow);
}
.audit-form .form-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}
.audit-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.audit-form .btn-group {
    flex: 0 0 auto;
}
.audit-form label {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.audit-form .hidden-label {
    visibility: hidden;
}
.audit-form input {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    outline: none;
    font-family: inherit;
    transition: var(--transition-normal);
}
.audit-form input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(233, 164, 38, 0.15);
}
.audit-form .btn {
    height: 52px;
    padding: 0 30px;
    font-size: 1.1rem;
    font-weight: 700;
}
@media (max-width: 768px) {
    .audit-form .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    .audit-card {
        padding: 30px 20px;
    }
}

/* ============================================
   Partners
   ============================================ */
.partners-section {
    position: relative;
    background: color-mix(in srgb, var(--bg-secondary) 88%, var(--bg-primary));
    border-block: 1px solid var(--border-color);
}

.partners-section::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: -1px;
    width: min(210px, 36vw);
    height: 2px;
    margin-inline: auto;
    background: var(--accent-blue);
}

.partners-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 48px;
    align-items: end;
    margin-bottom: 42px;
}

.partners-copy {
    max-width: 760px;
}

.partners-copy .section-title,
.partners-copy .section-desc {
    text-align: start;
}

.partners-copy .section-title {
    margin-bottom: 16px;
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.partners-copy .section-desc {
    margin: 0;
    max-width: 680px;
}

.partners-count {
    min-height: 116px;
    padding-inline-start: 24px;
    border-inline-start: 1px solid var(--border-strong);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partners-count strong {
    color: var(--accent-cyan);
    font-family: var(--font-en);
    font-size: 3.4rem;
    line-height: 1;
}

.partners-count span {
    margin-top: 10px;
    color: var(--text-muted);
    font-weight: 700;
    line-height: 1.55;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.partner-card {
    min-width: 0;
    min-height: 180px;
    padding: 14px;
    display: grid;
    grid-template-rows: 100px auto;
    gap: 14px;
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
}

.partner-card:hover,
.partner-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background: var(--bg-glass-hover);
    outline: none;
}

.partner-logo-stage {
    width: 100%;
    height: 100px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f8f5;
    border-radius: 6px;
}

.partner-logo-stage img {
    width: auto;
    max-width: 88%;
    height: auto;
    max-height: 72px;
    object-fit: contain;
}

.partner-card--photo .partner-logo-stage {
    padding: 0;
    background: #b51c22;
}

.partner-card--photo .partner-logo-stage img {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.partner-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.partner-meta > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.partner-meta strong {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partner-meta small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partner-meta i {
    flex: 0 0 auto;
    color: var(--accent-blue);
    font-size: 0.82rem;
    opacity: 0.72;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.partner-card:hover .partner-meta i,
.partner-card:focus-visible .partner-meta i {
    opacity: 1;
    transform: translate(-2px, -2px);
}

body[dir="ltr"] .partner-card:hover .partner-meta i,
body[dir="ltr"] .partner-card:focus-visible .partner-meta i {
    transform: translate(2px, -2px);
}

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

@media (max-width: 680px) {
    .partners-intro {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 30px;
    }

    .partners-count {
        min-height: auto;
        padding: 0 0 0 18px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
    }

    body[dir="rtl"] .partners-count {
        padding: 0 18px 0 0;
    }

    .partners-count strong {
        font-size: 2.6rem;
    }

    .partners-count span {
        margin-top: 0;
    }
}

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

    .partner-card {
        min-height: 168px;
        grid-template-rows: 92px auto;
    }

    .partner-logo-stage {
        height: 92px;
    }
}
