/* ==========================================================================
   Codebox — website design system
   Self-contained: the public site loads only this stylesheet.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Cairo"; src: url("../fonts/woff2/Cairo-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("../fonts/woff2/Cairo-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("../fonts/woff2/Cairo-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("../fonts/woff2/Cairo-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/woff2/Outfit-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/woff2/Outfit-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/woff2/Outfit-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/woff2/Outfit-Bold.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
    --ink: #0b1023;
    --ink-2: #121a35;
    --navy: #1a223e;
    --blue: #455aa4;
    --accent: #e72778;
    --violet: #8b3b95;
    --grad: linear-gradient(120deg, #e72778 0%, #a7368f 45%, #455aa4 100%);
    --grad-soft: linear-gradient(120deg, rgba(231, 39, 120, .12), rgba(69, 90, 164, .12));

    --bg: #ffffff;
    --surface: #f5f6fb;
    --surface-2: #eef0f8;
    --line: #e4e7f1;
    --text: #121831;
    --muted: #5d6585;
    --on-dark: #ffffff;
    --on-dark-muted: rgba(255, 255, 255, .68);
    --line-dark: rgba(255, 255, 255, .1);

    --r-sm: 12px;
    --r: 20px;
    --r-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 56, .06), 0 2px 8px rgba(16, 24, 56, .04);
    --shadow: 0 10px 30px -12px rgba(16, 24, 56, .18);
    --shadow-lg: 0 30px 60px -20px rgba(16, 24, 56, .28);
    --glow: 0 12px 32px -10px rgba(231, 39, 120, .55);

    --container: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(64px, 9vw, 120px);
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    --font: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[lang="en"] { --font: "Outfit", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.025em; }
p { overflow-wrap: anywhere; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent), var(--blue)); border-radius: 99px; border: 2px solid var(--surface); }

.cb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cb-flip { transition: transform .3s var(--ease); }
[dir="rtl"] .cb-flip { transform: scaleX(-1); }

/* ---------- Layout ---------- */
.cb-container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.cb-section { padding-block: var(--section); position: relative; }
.cb-section--alt { background: var(--surface); }
.cb-section--dark { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.cb-section--tight { padding-block: calc(var(--section) * .6); }
.cb-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.cb-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cb-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cb-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .cb-grid-3, .cb-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cb-grid-2, .cb-grid-3, .cb-grid-4 { grid-template-columns: 1fr; } }

/* ---------- Typography ---------- */
.cb-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 8px; border-radius: 99px;
    background: var(--grad-soft); border: 1px solid rgba(231, 39, 120, .18);
    color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
[dir="rtl"] .cb-eyebrow { padding: 6px 8px 6px 14px; }
.cb-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(231, 39, 120, .15); }
.cb-section--dark .cb-eyebrow, .cb-on-dark .cb-eyebrow { color: #ff8cbc; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }

.cb-title { font-size: clamp(28px, 4.2vw, 50px); font-weight: 800; color: inherit; }
.cb-title--xl { font-size: clamp(36px, 6.4vw, 76px); line-height: 1.08; }
/* Cairo's Arabic glyphs are tall; give big headings room to breathe */
[dir="rtl"] .cb-title, [dir="rtl"] .cb-page-hero h1 { line-height: 1.4; }
.cb-lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 62ch; }
.cb-section--dark .cb-lead, .cb-on-dark .cb-lead { color: var(--on-dark-muted); }
.cb-grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cb-muted { color: var(--muted); }

.cb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.cb-head__text { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.cb-head--center { flex-direction: column; align-items: center; text-align: center; }
.cb-head--center .cb-head__text { align-items: center; }

/* ---------- Buttons ---------- */
.cb-btn {
    --btn-bg: var(--navy); --btn-fg: #fff;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 24px; border-radius: 99px;
    background: var(--btn-bg); color: var(--btn-fg);
    font-weight: 700; font-size: 15px; white-space: nowrap; isolation: isolate;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.cb-btn svg { width: 18px; height: 18px; flex: none; }
.cb-btn:hover { transform: translateY(-2px); }
.cb-btn:hover .cb-flip { transform: translateX(3px); }
[dir="rtl"] .cb-btn:hover .cb-flip { transform: scaleX(-1) translateX(3px); }
.cb-btn--primary { background: var(--grad); background-size: 160% 100%; box-shadow: var(--glow); }
.cb-btn--primary:hover { background-position: 100% 0; box-shadow: 0 18px 40px -12px rgba(231, 39, 120, .65); }
.cb-btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); border: 1.5px solid var(--line); }
.cb-btn--ghost:hover { border-color: var(--text); }
.cb-section--dark .cb-btn--ghost, .cb-on-dark .cb-btn--ghost { --btn-fg: #fff; border-color: rgba(255, 255, 255, .22); }
.cb-section--dark .cb-btn--ghost:hover, .cb-on-dark .cb-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.cb-btn--light { --btn-bg: #fff; --btn-fg: var(--navy); }
.cb-btn--wa { --btn-bg: #1fb855; box-shadow: 0 12px 30px -12px rgba(31, 184, 85, .6); }
.cb-btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.cb-btn--block { width: 100%; }

.cb-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
.cb-link svg { width: 16px; height: 16px; }
.cb-link:hover .cb-flip { transform: translateX(4px); }
[dir="rtl"] .cb-link:hover .cb-flip { transform: scaleX(-1) translateX(4px); }

/* ---------- Header ---------- */
.cb-header {
    position: fixed; inset-inline: 0; top: 0; z-index: 100;
    height: var(--header-h); display: flex; align-items: center;
    color: #fff; transition: background-color .35s, box-shadow .35s, color .35s, height .35s;
}
.cb-header.is-scrolled {
    --header-h: 66px;
    background: rgba(255, 255, 255, .82); color: var(--text);
    backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(16, 24, 56, .25);
}
.cb-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cb-logo { display: flex; align-items: center; flex: none; }
.cb-logo img { height: 30px; width: auto; }
.cb-logo .cb-logo--dark { display: none; }
.cb-header.is-scrolled .cb-logo--light { display: none; }
.cb-header.is-scrolled .cb-logo--dark { display: block; }

.cb-nav { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.cb-header.is-scrolled .cb-nav { background: var(--surface); border-color: var(--line); }
.cb-nav a { position: relative; padding: 8px 16px; border-radius: 99px; font-size: 15px; font-weight: 600; opacity: .82; transition: opacity .2s, background-color .2s, color .2s; }
.cb-nav a:hover { opacity: 1; }
.cb-nav a.is-active { opacity: 1; background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.cb-header.is-scrolled .cb-nav a.is-active { background: var(--navy); color: #fff; }

.cb-header__actions { display: flex; align-items: center; gap: 10px; }
.cb-lang { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .2); font-weight: 700; font-size: 14px; transition: border-color .2s, background-color .2s; }
.cb-lang svg { width: 18px; height: 18px; }
.cb-lang:hover { background: rgba(255, 255, 255, .08); }
.cb-header.is-scrolled .cb-lang { border-color: var(--line); }
.cb-header.is-scrolled .cb-lang:hover { background: var(--surface); }
.cb-vision { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.cb-header.is-scrolled .cb-vision { filter: none; opacity: 1; }
.cb-burger { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .2); }
.cb-header.is-scrolled .cb-burger { border-color: var(--line); }
.cb-burger svg { width: 22px; height: 22px; }

@media (max-width: 1120px) {
    .cb-nav, .cb-header__actions .cb-btn, .cb-header__actions .cb-vision { display: none; }
    .cb-burger { display: inline-flex; }
}

/* Drawer */
.cb-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.cb-drawer__overlay { position: absolute; inset: 0; background: rgba(11, 16, 35, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.cb-drawer__panel {
    position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(380px, 88vw);
    background: var(--ink); color: #fff; padding: 22px; display: flex; flex-direction: column; gap: 28px;
    transform: translateX(100%); transition: transform .45s var(--ease); overflow-y: auto;
}
[dir="rtl"] .cb-drawer__panel { transform: translateX(-100%); }
.cb-drawer.is-open { visibility: visible; }
.cb-drawer.is-open .cb-drawer__overlay { opacity: 1; }
.cb-drawer.is-open .cb-drawer__panel { transform: none; }
.cb-drawer__top { display: flex; align-items: center; justify-content: space-between; }
.cb-drawer__nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-size: 20px; font-weight: 700; border-bottom: 1px solid var(--line-dark); }
.cb-drawer__nav a svg { width: 18px; opacity: .4; }
.cb-drawer__nav a.is-active { color: #ff8cbc; }
.cb-drawer__meta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; color: var(--on-dark-muted); font-size: 15px; }
.cb-drawer__meta a { display: flex; gap: 10px; align-items: center; }
.cb-drawer__meta svg { width: 18px; height: 18px; }
body.cb-lock { overflow: hidden; }

/* ---------- Dark backdrop (heroes) ---------- */
.cb-dark-bg { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.cb-dark-bg::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(50% 60% at 12% 10%, rgba(231, 39, 120, .32), transparent 70%),
        radial-gradient(45% 55% at 92% 30%, rgba(69, 90, 164, .45), transparent 70%),
        radial-gradient(40% 50% at 60% 110%, rgba(139, 59, 149, .35), transparent 70%);
}
.cb-dark-bg::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}

/* ---------- Home hero ---------- */
.cb-hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(120px, 14vw, 170px); }
.cb-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.cb-hero__content { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.cb-hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cb-hero__vision { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.cb-hero__title { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.45; min-height: 2.9em; }
html[lang="en"] .cb-hero__title { line-height: 1.2; min-height: 2.4em; }
.cb-rotator { display: grid; }
.cb-rotator > * { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; }
.cb-rotator > .is-active { opacity: 1; transform: none; pointer-events: auto; }
.cb-rotator__desc { font-size: clamp(16px, 1.5vw, 20px); color: var(--on-dark-muted); max-width: 54ch; }
.cb-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cb-dots { display: flex; margin-inline: -8px; }
/* 24px+ tap target around an 8px visual dot */
.cb-dots button { position: relative; width: 24px; height: 28px; transition: width .4s var(--ease); }
.cb-dots button::before { content: ""; position: absolute; inset-inline: 8px; top: 10px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .25); transition: background-color .3s; }
.cb-dots button.is-active { width: 44px; }
.cb-dots button.is-active::before { background: var(--grad); }

/* Robot character */
.cb-hero__visual { position: relative; display: grid; place-items: center; }
.cb-bot { position: relative; width: min(100%, 500px); aspect-ratio: 1; display: grid; place-items: center; }
.cb-bot::before {
    content: ""; position: absolute; inset: 12%; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .18), transparent 55%), var(--grad);
    box-shadow: 0 0 120px -10px rgba(231, 39, 120, .55), inset 0 0 60px rgba(255, 255, 255, .12);
    opacity: .9;
}
.cb-bot__orbit { position: absolute; inset: 2%; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .22); animation: cb-spin 40s linear infinite; }
.cb-bot__orbit::before { content: ""; position: absolute; top: 14%; inset-inline-start: 12%; width: 12px; height: 12px; border-radius: 50%; background: #ff8cbc; box-shadow: 0 0 16px #ff8cbc; }
.cb-bot__orbit--2 { inset: -6%; border-style: solid; border-color: rgba(255, 255, 255, .08); animation-duration: 60s; animation-direction: reverse; }
.cb-bot__orbit--2::before { top: auto; bottom: 18%; inset-inline-start: auto; inset-inline-end: 6%; width: 8px; height: 8px; background: #8ab4ff; box-shadow: 0 0 14px #8ab4ff; }
.cb-bot__img { position: relative; width: 82%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); animation: cb-float 6s ease-in-out infinite; }

/* Robot peeking over the FAQ help card */
.cb-help.cb-help--bot { padding-top: 92px; margin-top: 90px; overflow: visible; }
.cb-help .cb-help__bot { position: absolute; z-index: 1; isolation: isolate; top: -96px; inset-inline-end: 12px; width: 180px; height: 180px; filter: drop-shadow(0 18px 24px rgba(11, 16, 35, .35)); animation: cb-float 6s ease-in-out infinite; pointer-events: none; }
.cb-help .cb-help__bot::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: var(--grad); opacity: .9; z-index: -1; }
.cb-help .cb-help__bot img { width: 100%; height: 100%; }

.cb-chip {
    position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
    background: rgba(255, 255, 255, .95); color: var(--navy); font-weight: 700; font-size: 14px;
    box-shadow: var(--shadow-lg); animation: cb-float 6s ease-in-out infinite; white-space: nowrap;
}
.cb-chip__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.cb-chip__ico svg { width: 18px; height: 18px; }
.cb-chip small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.cb-chip--a { top: 6%; inset-inline-end: 0; }
.cb-chip--b { top: 46%; inset-inline-start: -4%; animation-delay: -2s; }
.cb-chip--c { bottom: 6%; inset-inline-end: 6%; animation-delay: -4s; }
@keyframes cb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 960px) {
    /* Mobile/tablet: small robot first, then centered text */
    .cb-hero { padding-top: calc(var(--header-h) + 20px); }
    .cb-hero__grid { grid-template-columns: 1fr; gap: 8px; }
    .cb-hero__visual { order: -1; max-width: 300px; width: 100%; margin-inline: auto; }
    .cb-hero__content { align-items: center; text-align: center; gap: 18px; }
    .cb-hero__title { min-height: 0; }
    .cb-rotator__desc { margin-inline: auto; }
    .cb-hero__actions { justify-content: center; }
    .cb-chip--b { inset-inline-start: 0; }
}
@media (max-width: 520px) {
    .cb-hero__visual { max-width: 240px; }
    .cb-chip { font-size: 11px; padding: 6px 9px; gap: 6px; border-radius: 12px; }
    .cb-chip__ico { width: 26px; height: 26px; border-radius: 8px; }
    .cb-chip__ico svg { width: 14px; height: 14px; }
    .cb-chip small { display: none; }
    .cb-chip--a { inset-inline-end: -14%; }
    .cb-chip--b { display: none; }
    .cb-chip--c { inset-inline-end: auto; inset-inline-start: -14%; bottom: 10%; }
    .cb-hero__actions .cb-btn { flex: 1 1 100%; }
}

/* ---------- Stats bar ---------- */
.cb-stats-wrap { position: relative; z-index: 2; margin-top: clamp(-110px, -9vw, -80px); }
.cb-stats {
    display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
}
.cb-stat { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; position: relative; }
.cb-stat + .cb-stat::before { content: ""; position: absolute; inset-block: 24%; inset-inline-start: 0; width: 1px; background: var(--line); }
.cb-stat__num { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; line-height: 1.1; direction: ltr; }
.cb-stat__label { color: var(--muted); font-weight: 600; font-size: clamp(14px, 1.3vw, 17px); }
@media (max-width: 560px) {
    /* Two per row; an odd last item spans the full width */
    .cb-stats-wrap { margin-top: -64px; }
    .cb-stats { grid-template-columns: 1fr 1fr; border-radius: 22px; }
    .cb-stat { padding: 18px 10px; }
    .cb-stat__num { font-size: 34px; }
    .cb-stat__label { font-size: 13px; }
    .cb-stat:nth-child(odd):last-child { grid-column: 1 / -1; }
    .cb-stat + .cb-stat::before { display: none; }
    .cb-stat:nth-child(2n)::after { content: ""; position: absolute; inset-block: 22%; inset-inline-start: 0; width: 1px; background: var(--line); }
    .cb-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Cards ---------- */
.cb-card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    padding: clamp(22px, 2.6vw, 32px); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.cb-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cb-card--grad::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: var(--grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .35s; pointer-events: none;
}
.cb-card--grad:hover::after { opacity: 1; }

/* Feature (why choose us) */
.cb-why { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.cb-why__intro { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cb-why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cb-why__list .cb-card:nth-child(even) { transform: translateY(28px); }
.cb-why__list .cb-card:nth-child(even):hover { transform: translateY(22px); }
.cb-feature { display: flex; flex-direction: column; gap: 14px; }
.cb-feature__icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-soft); }
.cb-feature__icon img { width: 36px; height: 36px; object-fit: contain; }
.cb-feature h3 { font-size: 19px; }
.cb-feature p, .cb-feature .cb-rich { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) {
    .cb-why { grid-template-columns: 1fr; }
    .cb-why__intro { position: static; }
}
@media (max-width: 560px) {
    .cb-why__list { grid-template-columns: 1fr; }
    .cb-why__list .cb-card:nth-child(even), .cb-why__list .cb-card:nth-child(even):hover { transform: none; }
}

/* Services */
.cb-service { display: flex; flex-direction: column; gap: 14px; min-height: 260px; overflow: hidden; }
.cb-service__top { display: flex; justify-content: space-between; align-items: center; }
.cb-service__num { font-size: 14px; font-weight: 800; color: var(--accent); font-family: ui-monospace, Menlo, monospace; }
.cb-service__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); }
.cb-service__icon img { width: 32px; height: 32px; object-fit: contain; }
.cb-service h3 { font-size: clamp(19px, 1.8vw, 23px); }
.cb-service p { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cb-service__go { margin-top: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.cb-service__go svg { width: 18px; height: 18px; }
.cb-service:hover .cb-service__go { background: var(--grad); color: #fff; border-color: transparent; transform: rotate(-45deg); }
[dir="rtl"] .cb-service:hover .cb-service__go { transform: rotate(45deg); }
.cb-service--cta { background: var(--ink); color: #fff; border-color: transparent; justify-content: space-between; }
.cb-service--cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 100% 0%, rgba(231, 39, 120, .5), transparent 70%), radial-gradient(60% 60% at 0% 100%, rgba(69, 90, 164, .55), transparent 70%); pointer-events: none; }
.cb-service--cta > * { position: relative; }
.cb-service--cta p { color: var(--on-dark-muted); }
.cb-service--cta .cb-service__go { border-color: rgba(255, 255, 255, .3); }
.cb-service__go--wa { background: #25d366; border-color: transparent !important; color: #fff; }
.cb-service:hover .cb-service__go--wa, [dir="rtl"] .cb-service:hover .cb-service__go--wa { background: #25d366; transform: scale(1.08); }

/* Projects */
.cb-project { display: flex; flex-direction: column; gap: 16px; }
.cb-project__media {
    position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--navy), var(--blue));
}
.cb-project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cb-project__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 16, 35, .55)); opacity: 0; transition: opacity .4s; }
.cb-project:hover .cb-project__media img { transform: scale(1.06); }
.cb-project:hover .cb-project__media::after { opacity: 1; }
.cb-project__tag { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 12px; font-weight: 700; }
.cb-project__open { position: absolute; bottom: 14px; inset-inline-end: 14px; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); transform: translateY(12px) scale(.8); opacity: 0; transition: .4s var(--ease); }
.cb-project__open svg { width: 20px; height: 20px; }
.cb-project:hover .cb-project__open { transform: none; opacity: 1; }
.cb-project h3 { font-size: clamp(19px, 1.9vw, 24px); transition: color .3s; }
.cb-project:hover h3 { color: var(--accent); }
.cb-project p { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Media placeholders: shown when an image is missing or fails */
.cb-ph { position: relative; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.cb-ph::before { content: ""; position: absolute; inset: 0; background: url("../../assets/svg/codebox/light-logo.svg") center / 34% auto no-repeat; opacity: .14; }
.cb-ph img { position: relative; }
img.is-broken { opacity: 0; }

/* Testimonials */
.cb-slider { position: relative; }
.cb-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 8px 4px; }
.cb-track::-webkit-scrollbar { display: none; }
.cb-track > * { scroll-snap-align: start; }
@media (max-width: 1024px) { .cb-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .cb-track { grid-auto-columns: 86%; gap: 14px; } }
.cb-quote { display: flex; flex-direction: column; gap: 18px; height: 100%; padding: 28px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); transition: background-color .3s, border-color .3s, transform .35s var(--ease); }
.cb-quote:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); transform: translateY(-4px); }
.cb-quote__mark { width: 40px; height: 40px; color: var(--accent); }
.cb-quote__stars { display: flex; gap: 3px; color: #ffc24b; }
.cb-quote__stars svg { width: 16px; height: 16px; }
.cb-quote p { color: rgba(255, 255, 255, .86); font-size: 16px; flex: 1; }
.cb-person { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.cb-person__avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--grad); font-weight: 800; color: #fff; }
.cb-person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cb-person strong { display: block; font-size: 16px; }
.cb-person small { color: var(--on-dark-muted); font-size: 13px; }
.cb-arrows { display: flex; gap: 10px; }
.cb-arrow { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); color: #fff; transition: background .3s, border-color .3s, opacity .3s; }
.cb-arrow:hover { background: var(--accent); border-color: var(--accent); }
.cb-arrow:disabled { opacity: .35; pointer-events: none; }
.cb-arrow svg { width: 20px; height: 20px; }

/* Company profile banner */
.cb-banner {
    position: relative; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
    padding: clamp(32px, 5vw, 64px); color: #fff; background: var(--grad);
    display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center;
}
.cb-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 90% 10%, rgba(255, 255, 255, .25), transparent 60%); }
.cb-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25; background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cb-banner__text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cb-banner__text p { color: rgba(255, 255, 255, .85); max-width: 52ch; }
.cb-doc { justify-self: center; position: relative; width: min(220px, 60vw); aspect-ratio: 3 / 4; border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); transform: rotate(-6deg); padding: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--navy); }
[dir="rtl"] .cb-doc { transform: rotate(6deg); }
.cb-doc::before { content: ""; position: absolute; inset: 12px -14px -14px 12px; z-index: -1; border-radius: 18px; background: rgba(255, 255, 255, .35); }
.cb-doc img { height: 22px; width: auto; }
.cb-doc i { display: block; height: 8px; border-radius: 6px; background: var(--surface-2); }
.cb-doc i:nth-of-type(1) { width: 80%; margin-top: 14px; }
.cb-doc i:nth-of-type(2) { width: 60%; }
.cb-doc i:nth-of-type(3) { width: 90%; }
.cb-doc b { margin-top: auto; display: block; height: 70px; border-radius: 12px; background: var(--grad); opacity: .9; }
@media (max-width: 760px) { .cb-banner { grid-template-columns: 1fr; } .cb-doc { display: none; } }

/* Blog cards */
.cb-post { display: flex; flex-direction: column; overflow: hidden; padding: 0; height: 100%; }
.cb-post__media { aspect-ratio: 16 / 10; overflow: hidden; }
.cb-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cb-post:hover .cb-post__media img { transform: scale(1.06); }
.cb-post__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.cb-post__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.cb-post__meta svg { width: 16px; height: 16px; }
.cb-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; background: var(--grad-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.cb-post h3 { font-size: 20px; }
.cb-post p { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cb-post .cb-link { margin-top: auto; padding-top: 6px; }

/* FAQ */
.cb-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.cb-faq__aside { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; position: sticky; top: calc(var(--header-h) + 32px); }
.cb-help { margin-top: 10px; width: 100%; padding: 24px; border-radius: var(--r); background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.cb-help::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 80% at 100% 0%, rgba(231, 39, 120, .45), transparent 60%); pointer-events: none; }
.cb-help > * { position: relative; }
.cb-help p { color: var(--on-dark-muted); font-size: 15px; }
.cb-acc { display: flex; flex-direction: column; gap: 12px; }
.cb-acc details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s, box-shadow .3s; }
.cb-acc details[open] { border-color: transparent; box-shadow: var(--shadow); }
.cb-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: clamp(16px, 1.5vw, 18px); }
.cb-acc summary::-webkit-details-marker { display: none; }
.cb-acc__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); transition: transform .35s var(--ease), background .3s, color .3s; }
.cb-acc__icon svg { width: 16px; height: 16px; }
.cb-acc details[open] .cb-acc__icon { transform: rotate(45deg); background: var(--grad); color: #fff; }
.cb-acc__body { padding: 0 24px 22px; color: var(--muted); }
@media (max-width: 960px) { .cb-faq { grid-template-columns: 1fr; } .cb-faq__aside { position: static; } }

/* ---------- CTA band ---------- */
.cb-cta { position: relative; border-radius: var(--r-lg); padding: clamp(40px, 7vw, 88px) clamp(24px, 5vw, 64px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cb-cta .cb-title { max-width: 18ch; }
.cb-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

/* Inline CTA bar (closes a section) */
.cb-cta-bar {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    margin-top: clamp(36px, 5vw, 56px); padding: 18px 18px 18px 22px; border-radius: 22px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
[dir="rtl"] .cb-cta-bar { padding: 18px 22px 18px 18px; }
.cb-cta-bar::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--grad); }
.cb-cta-bar__ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); }
.cb-cta-bar__ico svg { width: 22px; height: 22px; }
.cb-cta-bar__text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.cb-cta-bar__text strong { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.4; }
.cb-cta-bar__text span { color: var(--muted); font-size: 14px; }
.cb-cta-bar__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cb-cta-bar--dark { background: rgba(255, 255, 255, .05); border-color: var(--line-dark); box-shadow: none; color: #fff; }
.cb-cta-bar--dark .cb-cta-bar__ico { background: rgba(255, 255, 255, .08); color: #ff8cbc; }
.cb-cta-bar--dark .cb-cta-bar__text span { color: var(--on-dark-muted); }
.cb-cta-bar--dark .cb-btn--ghost { --btn-fg: #fff; border-color: rgba(255, 255, 255, .22); }
@media (max-width: 560px) { .cb-cta-bar__actions, .cb-cta-bar__actions .cb-btn { width: 100%; } }

/* ---------- Page hero (inner pages) ---------- */
.cb-page-hero { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 88px)); padding-bottom: clamp(48px, 7vw, 88px); }
.cb-page-hero__inner { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 880px; }
.cb-page-hero--center .cb-page-hero__inner { align-items: center; text-align: center; margin-inline: auto; }
.cb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--on-dark-muted); font-weight: 600; }
.cb-crumbs a:hover { color: #fff; }
.cb-crumbs svg { width: 14px; height: 14px; opacity: .5; }
.cb-crumbs span:last-child { color: #fff; }
.cb-page-hero h1 { font-size: clamp(32px, 5.2vw, 64px); line-height: 1.12; }
.cb-page-hero p { color: var(--on-dark-muted); font-size: clamp(16px, 1.5vw, 19px); max-width: 62ch; }

/* ---------- Tabs / filters ---------- */
.cb-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.cb-tab { padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--muted); transition: .25s; }
.cb-tab:hover { color: var(--text); border-color: var(--text); }
.cb-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.cb-tab-panel[hidden] { display: none; }

/* ---------- Detail pages ---------- */
.cb-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.cb-split__aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1024px) { .cb-split { grid-template-columns: 1fr; } .cb-split__aside { position: static; } }

.cb-cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 8; margin-bottom: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
.cb-cover img { width: 100%; height: 100%; object-fit: cover; }
.cb-hero-cover { margin-top: calc(clamp(48px, 7vw, 88px) * -1 - 40px); position: relative; z-index: 2; }

.cb-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; margin-bottom: clamp(40px, 5vw, 64px); }
.cb-fact { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.cb-fact + .cb-fact { border-inline-start: 1px solid var(--line); }
.cb-fact small { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cb-fact strong { font-size: 17px; }
@media (max-width: 760px) { .cb-facts { grid-template-columns: 1fr 1fr; } .cb-fact:nth-child(3) { border-inline-start: 0; } .cb-fact:nth-child(n+3) { border-top: 1px solid var(--line); } }

.cb-block { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.cb-block h2 { font-size: clamp(22px, 2.4vw, 30px); }
@media (max-width: 760px) { .cb-block { grid-template-columns: 1fr; gap: 12px; } }

.cb-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cb-result { display: flex; flex-direction: column; gap: 10px; }
.cb-result__num { font-size: 40px; font-weight: 800; line-height: 1; }
.cb-result h3 { font-size: 18px; }
.cb-result p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .cb-results { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cb-results { grid-template-columns: 1fr; } }

.cb-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.cb-gallery img { width: 100%; border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 640px) { .cb-gallery { grid-template-columns: 1fr; } }

/* Rich text from the CMS */
.cb-rich { color: #343b58; font-size: 17px; line-height: 1.85; }
.cb-rich > * + * { margin-top: 1em; }
.cb-rich h1, .cb-rich h2, .cb-rich h3, .cb-rich h4 { color: var(--text); margin-top: 1.6em; }
.cb-rich h1 { font-size: 30px; } .cb-rich h2 { font-size: 26px; } .cb-rich h3 { font-size: 21px; } .cb-rich h4 { font-size: 18px; }
.cb-rich a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cb-rich ul, .cb-rich ol { padding-inline-start: 1.4em; }
.cb-rich ul { list-style: none; padding-inline-start: 0; }
.cb-rich ul li { position: relative; padding-inline-start: 28px; }
.cb-rich ul li + li { margin-top: .5em; }
.cb-rich ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .7em; width: 9px; height: 9px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); }
.cb-rich ol { list-style: decimal; }
.cb-rich img { border-radius: var(--r-sm); margin-block: 1.4em; }
.cb-rich blockquote { border-inline-start: 4px solid var(--accent); padding: 8px 20px; background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.cb-rich table { width: 100%; border-collapse: collapse; }
.cb-rich td, .cb-rich th { border: 1px solid var(--line); padding: 10px; }
.cb-rich p:empty { display: none; }
.cb-section--dark .cb-rich, .cb-on-dark .cb-rich { color: var(--on-dark-muted); }

/* Side widgets */
.cb-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.cb-widget h3 { font-size: 17px; margin-bottom: 14px; }
.cb-mini { display: flex; gap: 12px; align-items: center; padding-block: 10px; }
.cb-mini + .cb-mini { border-top: 1px solid var(--line); }
.cb-mini__img { width: 72px; height: 60px; border-radius: 12px; overflow: hidden; flex: none; }
.cb-mini__img img { width: 100%; height: 100%; object-fit: cover; }
.cb-mini small { color: var(--muted); font-size: 12px; font-weight: 600; }
.cb-mini strong { display: block; font-size: 15px; line-height: 1.4; }
.cb-mini:hover strong { color: var(--accent); }
.cb-navlist a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.cb-navlist a:hover { background: var(--surface); color: var(--accent); }
.cb-navlist svg { width: 16px; height: 16px; opacity: .5; }

.cb-contact-card { border-radius: var(--r); padding: 26px; color: #fff; display: flex; flex-direction: column; gap: 16px; }
.cb-contact-card h3 { font-size: 20px; }
.cb-contact-card p { color: var(--on-dark-muted); font-size: 15px; }
.cb-contact-list { display: flex; flex-direction: column; gap: 12px; }
.cb-contact-list a, .cb-contact-list div { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.cb-contact-list .cb-ico-box { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); flex: none; }
.cb-contact-list svg { width: 18px; height: 18px; }
.cb-ltr { direction: ltr; unicode-bidi: embed; }

/* Checklist (service offers) */
.cb-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cb-check { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); font-weight: 700; }
.cb-check__ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.cb-check__ico svg { width: 16px; height: 16px; }
.cb-section--dark .cb-check { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); }
@media (max-width: 640px) { .cb-checks { grid-template-columns: 1fr; } }

/* Tech logos */
.cb-tech { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.cb-tech__item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); text-align: center; font-weight: 700; font-size: 14px; transition: transform .3s var(--ease), box-shadow .3s; }
.cb-tech__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cb-tech__item img { width: 44px; height: 44px; object-fit: contain; }

/* Marquee (partners) */
.cb-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.cb-marquee__track { display: flex; gap: 56px; width: max-content; animation: cb-marquee 40s linear infinite; align-items: center; }
.cb-marquee:hover .cb-marquee__track { animation-play-state: paused; }
.cb-marquee img { height: 40px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.cb-marquee img:hover { filter: none; opacity: 1; }
@keyframes cb-marquee { to { transform: translateX(-50%); } }

/* Jobs */
.cb-job { display: flex; flex-direction: column; gap: 16px; }
.cb-job__head { display: flex; gap: 14px; align-items: center; }
.cb-job__logo { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: var(--surface); flex: none; display: grid; place-items: center; }
.cb-job__logo img { width: 100%; height: 100%; object-fit: cover; }
.cb-job h3 { font-size: 19px; }
.cb-job__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted); }
.cb-tag svg { width: 14px; height: 14px; }
.cb-empty { text-align: center; padding: clamp(40px, 6vw, 72px) 24px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.cb-empty__ico { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); }
.cb-empty__ico svg { width: 32px; height: 32px; }
.cb-empty h3 { font-size: 22px; }
.cb-empty p { color: var(--muted); max-width: 48ch; }

/* ---------- Forms ---------- */
.cb-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cb-field { display: flex; flex-direction: column; gap: 8px; }
.cb-field--full { grid-column: 1 / -1; }
.cb-field label { font-size: 14px; font-weight: 700; }
.cb-input {
    width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line);
    background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; outline: none;
}
textarea.cb-input { min-height: 150px; resize: vertical; }
.cb-input::placeholder { color: #9aa1bb; }
.cb-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(231, 39, 120, .12); }
.cb-input.is-invalid { border-color: #e5484d; }
.cb-error { color: #e5484d; font-size: 13px; font-weight: 600; min-height: 0; }
.cb-error:empty { display: none; }
.cb-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.cb-checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.cb-file { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 8px 8px 16px; border: 1.5px dashed var(--line); border-radius: 14px; cursor: pointer; color: var(--muted); }
[dir="rtl"] .cb-file { padding: 8px 16px 8px 8px; }
.cb-file:hover { border-color: var(--accent); }
.cb-file span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-file input { display: none; }
.cb-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cb-form-card { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.cb-btn.is-loading { pointer-events: none; opacity: .75; }
.cb-btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: cb-spin .7s linear infinite; }
@keyframes cb-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .cb-form { grid-template-columns: 1fr; } }

.cb-contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.cb-contact__info { display: flex; flex-direction: column; gap: 14px; }
.cb-info-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.cb-info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cb-info-card__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.cb-info-card__ico svg { width: 22px; height: 22px; }
.cb-info-card small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.cb-info-card strong { font-size: 16px; overflow-wrap: anywhere; }
.cb-map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--surface); }
.cb-map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 960px) { .cb-contact { grid-template-columns: 1fr; } }

/* Modal */
.cb-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.cb-modal.is-open { visibility: visible; opacity: 1; }
.cb-modal__overlay { position: absolute; inset: 0; background: rgba(11, 16, 35, .6); backdrop-filter: blur(4px); }
.cb-modal__box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); transform: translateY(20px) scale(.98); transition: transform .35s var(--ease); }
.cb-modal.is-open .cb-modal__box { transform: none; }
.cb-modal__close { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.cb-modal__close svg { width: 18px; height: 18px; }

/* Toast */
.cb-toast { position: fixed; bottom: 24px; inset-inline-start: 50%; z-index: 400; transform: translate(-50%, 20px); opacity: 0; display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
[dir="rtl"] .cb-toast { transform: translate(50%, 20px); }
.cb-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
[dir="rtl"] .cb-toast.is-show { transform: translate(50%, 0); }
.cb-toast svg { width: 20px; height: 20px; color: #3ddc84; }
.cb-toast.is-error svg { color: #ff6b6b; }

/* Pagination (Laravel default markup) */
.cb-pagination nav { display: flex; justify-content: center; margin-top: 48px; }
.cb-pagination nav > div:first-child { display: none; }
.cb-pagination nav span, .cb-pagination nav a { display: inline-flex; }
.cb-pagination [aria-current] span, .cb-pagination a, .cb-pagination span[aria-disabled] span { min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); margin: 3px; font-weight: 700; font-size: 14px; }
.cb-pagination [aria-current] span { background: var(--navy); color: #fff; border-color: var(--navy); }
.cb-pagination svg { width: 18px; height: 18px; }
.cb-pagination p { display: none; }

/* ---------- Footer ---------- */
.cb-footer { background: var(--ink); color: #fff; padding-top: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.cb-footer::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(231, 39, 120, .7), rgba(69, 90, 164, .7), transparent); }
.cb-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
.cb-footer__brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cb-footer__brand img { height: 32px; width: auto; }
.cb-footer__brand p { color: var(--on-dark-muted); font-size: 15px; max-width: 40ch; }
.cb-footer__title { font-size: 15px; letter-spacing: .04em; margin-bottom: 18px; color: #fff; }
.cb-footer__links { display: flex; flex-direction: column; gap: 10px; }
.cb-footer__links a, .cb-footer__links div { color: var(--on-dark-muted); font-size: 15px; transition: color .2s; display: flex; gap: 10px; align-items: flex-start; }
.cb-footer__links a:hover { color: #fff; }
.cb-footer__links svg { width: 18px; height: 18px; flex: none; margin-top: 4px; opacity: .7; }
.cb-social { display: flex; gap: 10px; }
.cb-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); transition: background .25s, transform .25s var(--ease), border-color .25s; }
.cb-social a:hover { background: var(--grad); border-color: transparent; transform: translateY(-3px); }
.cb-social svg { width: 18px; height: 18px; }
.cb-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: clamp(36px, 5vw, 56px); padding: 18px 22px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); font-size: 14px; color: var(--on-dark-muted); }
.cb-footer__legal strong { color: #fff; font-weight: 700; }
.cb-footer__legal img { height: 34px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px; margin-inline-start: auto; }
.cb-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; margin-top: 28px; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); font-size: 14px; }
.cb-footer__word { font-size: clamp(64px, 17vw, 240px); font-weight: 800; line-height: .8; letter-spacing: -.04em; text-align: center; margin-bottom: -.12em; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; direction: ltr; font-family: "Outfit", var(--font); }
@media (max-width: 960px) { .cb-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cb-footer__grid { grid-template-columns: 1fr; } .cb-footer__legal img { margin-inline-start: 0; } }

/* Floating WhatsApp */
.cb-fab { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .6); transition: transform .3s var(--ease); }
.cb-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: cb-pulse 2.4s ease-out infinite; }
.cb-fab:hover { transform: scale(1.08); }
.cb-fab svg { width: 30px; height: 30px; }
@keyframes cb-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }
.cb-totop { position: fixed; bottom: 92px; inset-inline-end: 29px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .3s var(--ease); }
.cb-totop.is-show { opacity: 1; transform: none; pointer-events: auto; }
.cb-totop svg { width: 18px; height: 18px; }

/* Scroll progress */
.cb-progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 100%; z-index: 150; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .cb-progress { transform-origin: right; }

/* ---------- Reveal on scroll ---------- */
.cb-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.cb-js [data-reveal].is-in { opacity: 1; transform: none; }

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

/* Redirect page */
.cb-redirect { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.cb-loader { width: 56px; height: 56px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .15); border-top-color: #25d366; animation: cb-spin .9s linear infinite; margin: 0 auto 24px; }
