/* ==========================================================================
   Codeme — homepage styles
   Palette and shapes come from the logo: a pink > violet > blue > cyan
   gradient and pixel letters with cut (chamfered) corners.
   Direction-aware: uses logical properties, so it works in RTL and LTR.
   ========================================================================== */

:root {
    --bg: #060A12;
    --bg-alt: #08101A;
    --surface: #0B1320;
    --surface-2: #101A29;
    --line: #1A2738;
    --line-2: #22344B;
    --line-3: #2B3C52;
    --text: #EEF2F6;
    --soft: #B7C2CE;
    --muted: #9AA6B2;
    --faint: #6F7B88;
    --ghost-num: #14212F;

    --accent: #3CC4EA;
    --accent-soft: rgba(60, 196, 234, 0.14);
    --pink: #EC8DB9;
    --violet: #8B72B1;
    --blue: #0088CC;

    --paper: #F1EDE3;
    --ink: #031318;

    --grad: linear-gradient(135deg, #EC8DB9 0%, #8B72B1 30%, #0088CC 65%, #3CC4EA 100%);
    --grad-btn: linear-gradient(100deg, #F29BC4 0%, #A9A0EE 45%, #3CC4EA 100%);
    --grad-stripe: linear-gradient(90deg, #EC8DB9 0%, #8B72B1 30%, #0088CC 65%, #3CC4EA 100%);
    --grad-text: linear-gradient(to right, #EC8DB9 0%, #8B72B1 30%, #0088CC 65%, #3CC4EA 100%);

    --font-body: 'IBM Plex Sans', system-ui, sans-serif;
    --font-head: 'Chakra Petch', 'IBM Plex Sans', system-ui, sans-serif;

    --gutter: 32px;
    --maxw: 1200px;
}

[dir='rtl'] {
    --grad-text: linear-gradient(to left, #EC8DB9 0%, #8B72B1 30%, #0088CC 65%, #3CC4EA 100%);
}

.lang-ar {
    --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --font-head: 'Reem Kufi', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--font-head); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }

a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
}

.skip {
    position: absolute;
    top: 16px;
    inset-inline-start: -9999px;
    z-index: 100;
    padding: 8px 14px;
    background: #FFFFFF;
    color: #000000;
}
.skip:focus { inset-inline-start: 16px; }

.container { max-width: var(--maxw); margin-inline: auto; }
.container--narrow { max-width: 860px; }
.stack { display: flex; flex-direction: column; gap: 48px; }
.stack--lg { gap: 56px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
[dir='rtl'] .ltr { text-align: right; }

/* ---------- Shapes: logo-style cut corners ---------- */

.chamf, .bcard {
    --cut: 18px;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.chamf-in, .bcard__in {
    --cut: 17px;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

/* A card with a 1px border: .bcard is the border, .bcard__in is the fill. */
.bcard { display: block; margin: 0; padding: 1px; background: var(--line-2); }
.bcard__in { height: 100%; background: var(--surface); }
.bcard--grad { background: var(--grad); }
.bcard--link { color: inherit; transition: transform 0.25s ease, background 0.25s ease; }
.bcard--link:hover { background: var(--grad); transform: translateY(-4px); }

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

.btn {
    --cut: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 30px;
    background: var(--grad-btn);
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    transition: filter 0.2s ease;
}
.btn:hover { filter: brightness(1.1); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 15px; }

.btn--ghost {
    min-height: 0;
    padding: 1px;
    background: var(--line-3);
    color: var(--text);
    transition: background 0.2s ease;
}
.btn--ghost > span {
    --cut: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    background: var(--bg);
    font-weight: 500;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.btn--ghost:hover { background: var(--grad); filter: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* ---------- Typography helpers ---------- */

.grad-text {
    background-image: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; }
.h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
.lang-ar .h2 { line-height: 1.3; letter-spacing: 0; }
.lead { color: var(--soft); font-size: 18px; }

.section { padding: 96px var(--gutter); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }
.section__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* ---------- Header ---------- */

.stripe { height: 4px; background: var(--grad-stripe); }
.site-header { padding: 20px var(--gutter); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.logo { display: flex; align-items: center; }
.logo img { display: block; height: 40px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 16px; font-weight: 500; }
.nav a { color: var(--soft); }
.nav a:hover { color: #FFFFFF; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line-3);
    color: var(--soft);
    font-size: 15px;
    font-weight: 600;
}
.lang-switch:hover { color: #FFFFFF; border-color: var(--accent); }

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

.hero { position: relative; overflow: hidden; padding: 96px var(--gutter) 80px; }
.hero__glow {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(620px 420px at 12% 20%, rgba(236, 141, 185, 0.16), transparent 70%),
        radial-gradient(720px 520px at 90% 85%, rgba(60, 196, 234, 0.16), transparent 70%);
}
.hero__lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero__visual { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tag { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 15px; font-weight: 600; }
.tag i { display: block; width: 10px; height: 10px; background: var(--accent); }
.hero__title { font-size: clamp(46px, 7vw, 92px); line-height: 1.15; font-weight: 700; }
.lang-en .hero__title { font-size: clamp(42px, 6vw, 80px); line-height: 1.05; letter-spacing: -0.02em; }
.hero__title span { display: block; }
.hero__lead { max-width: 540px; color: var(--soft); font-size: 19px; }

/* Paper that breaks into logo-coloured pixels */
.pixels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
/* Each square gets --px-bg, --px-op and --px-d (delay) inline from HomeController. */
.pixels i { display: block; aspect-ratio: 1; border-radius: 2px; background: var(--px-bg, transparent); opacity: var(--px-op, 1); }
.pixels .tw { animation: pxpulse 3.4s ease-in-out infinite; animation-delay: var(--px-d, 0s); }
.pixels__caption { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; font-weight: 500; }
.pixels__line { flex: 1; height: 2px; background: linear-gradient(to right, #EDE8DC, #EC8DB9, #8B72B1, #0088CC, #3CC4EA); }
[dir='rtl'] .pixels__line { background: linear-gradient(to left, #EDE8DC, #EC8DB9, #8B72B1, #0088CC, #3CC4EA); }
.is-paper { color: #EDE8DC; }
.is-digital { color: var(--accent); }

/* ---------- Marquee ---------- */

.marquee { overflow: hidden; padding: 22px 0; background: var(--bg-alt); border-block: 1px solid var(--line); }
.marquee__track {
    display: flex;
    width: max-content;
    font-family: var(--font-head);
    font-size: 44px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
}
.lang-en .marquee__track { text-transform: uppercase; }
.marquee__group { display: flex; align-items: center; gap: 36px; padding-inline-end: 36px; }
.marquee__word { color: var(--text); }
.marquee__word.is-alt { color: var(--accent); }
.lang-en .marquee__word.is-alt { color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.marquee__sq { display: block; width: 12px; height: 12px; }
.sq-0 { background: var(--pink); }
.sq-1 { background: var(--violet); }
.sq-2 { background: var(--blue); }
.sq-3 { background: var(--accent); }

/* ---------- Clients ---------- */

.clients { padding: 72px var(--gutter) 40px; }
.clients__in { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.clients__title { color: var(--muted); font-size: 15px; font-weight: 500; }
.clients__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; width: 100%; }
.client-slot { display: flex; align-items: center; justify-content: center; height: 74px; background: var(--bg-alt); color: var(--faint); font-size: 14px; }

/* ---------- Services ---------- */

.service { position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 340px; padding: 32px; }
.service__num {
    position: absolute;
    top: 18px;
    inset-inline-end: 24px;
    color: var(--ghost-num);
    font-family: var(--font-head);
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}
.icon-box { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--accent-soft); color: var(--accent); }
.service__title { margin-top: 24px; font-size: 26px; font-weight: 600; }
.lang-en .service__title { font-size: 24px; }
.service__text { color: var(--muted); font-size: 16px; }
.service__more { margin-top: auto; color: var(--accent); font-size: 15px; font-weight: 600; }

/* ---------- Paper vs system ---------- */

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.split__text .lead { max-width: 480px; }
.split__panel { flex: 1 1 420px; min-width: 0; }

.segmented { display: inline-flex; gap: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--line); }
.segmented__btn {
    min-height: 46px;
    padding: 0 26px;
    border: 0;
    background: transparent;
    color: var(--soft);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.segmented__btn.is-active[data-tab='paper'] { background: #EDE8DC; color: #2A2620; }
.segmented__btn.is-active[data-tab='digital'] { background: var(--grad-btn); color: var(--ink); }

.paper-card {
    min-height: 360px;
    padding: 36px;
    background-color: var(--paper);
    background-image: repeating-linear-gradient(var(--paper) 0, var(--paper) 35px, #D9D2BF 36px);
    color: #2A2620;
    transform: rotate(-1.2deg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.paper-card__head { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.paper-card__title { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.paper-card__stamp { padding: 2px 14px; border: 2px solid #B4483A; color: #B4483A; font-size: 15px; font-weight: 600; transform: rotate(-6deg); }
.lang-en .paper-card__stamp { font-size: 14px; text-transform: uppercase; }
.paper-card p { font-size: 19px; line-height: 36px; }

.digital-card { display: flex; flex-direction: column; gap: 18px; min-height: 360px; padding: 36px; }
.digital-card__head { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
.digital-card__title { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.badge { padding: 2px 14px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.check-row { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface-2); font-size: 18px; }
.check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--accent-soft); color: var(--accent); }

/* ---------- AI solutions ---------- */

.ai { position: relative; overflow: hidden; }
.ai__glow {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(700px 420px at 85% 8%, rgba(139, 114, 177, 0.2), transparent 70%),
        radial-gradient(600px 400px at 5% 92%, rgba(60, 196, 234, 0.13), transparent 70%);
}
.ai .container { position: relative; }
.ai-badge { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font-size: 15px; font-weight: 600; }
.ai-badge b { padding: 2px 12px; background: var(--grad-btn); color: var(--ink); font-size: 13px; letter-spacing: 0.08em; }

.ai__layout { display: flex; flex-wrap: wrap; align-items: stretch; gap: 32px; }
.ai__tabs { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ai-tab { width: 100%; border: 0; text-align: start; font: inherit; color: inherit; cursor: pointer; }
.ai-tab__in { display: flex; flex-direction: column; gap: 6px; height: auto; padding: 20px 24px; }
.ai-tab.is-active { background: var(--grad); }
.ai-tab.is-active .ai-tab__in { background: var(--surface-2); }
.ai-tab__num { color: var(--accent); font-size: 13px; font-weight: 600; }
.ai-tab__title { font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.lang-en .ai-tab__title { font-size: 21px; }
.ai-tab__text { color: var(--muted); font-size: 15px; line-height: 1.6; }

.ai__demo { flex: 1 1 460px; min-width: 0; display: flex; }
.ai-demo { flex: 1; }
.ai-demo__in { display: flex; flex-direction: column; min-height: 440px; padding: 28px; }
.demo { display: flex; flex: 1; flex-direction: column; gap: 18px; }
.demo--center { justify-content: center; gap: 24px; }
.demo__caption { text-align: center; color: var(--soft); font-size: 16px; }

.demo-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.demo-head__who { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.avatar { display: block; width: 40px; height: 40px; background: linear-gradient(135deg, var(--pink), var(--accent)); }
.status { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; font-weight: 600; }
.status i { display: block; width: 8px; height: 8px; background: var(--accent); }
.bubble { padding: 14px 18px; font-size: 17px; }
.bubble--in { align-self: flex-start; max-width: 80%; background: var(--surface-2); }
.bubble--out { align-self: flex-end; max-width: 88%; background: var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-self: flex-end; }
.chip { padding: 8px 16px; border: 1px solid var(--line-3); color: #DCE3EA; font-size: 15px; }
.typing { display: flex; gap: 5px; align-self: flex-start; margin-top: auto; }
.typing i { display: block; width: 10px; height: 10px; }
.typing i:nth-child(1) { background: var(--violet); }
.typing i:nth-child(2) { background: var(--blue); animation-delay: 0.2s; }
.typing i:nth-child(3) { background: var(--accent); animation-delay: 0.4s; }
.blink { animation: blink 1.3s ease-in-out infinite; }

.doc-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; }
.doc-paper { display: flex; flex-direction: column; gap: 12px; width: 170px; padding: 22px 20px; background: var(--paper); transform: rotate(-3deg); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.doc-paper i { display: block; height: 8px; background: #C4BCAA; }
.doc-paper i:nth-child(1) { height: 10px; width: 55%; background: #8F8672; }
.doc-paper i:nth-child(3) { width: 90%; }
.doc-paper i:nth-child(4) { width: 95%; }
.doc-paper i:nth-child(5) { width: 60%; }
.doc-paper i:nth-child(6) { height: 12px; width: 40%; margin-top: 8px; background: #8F8672; }
.doc-arrow { color: var(--accent); }
[dir='rtl'] .doc-arrow { transform: scaleX(-1); }
.doc-fields { flex: 1 1 180px; display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--surface-2); color: var(--muted); font-size: 14px; }
.field i { display: block; height: 10px; background: var(--accent-soft); }

.chart { display: block; width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--soft); font-size: 15px; }
.legend span { display: flex; align-items: center; gap: 10px; }
.legend__solid { display: block; width: 24px; height: 3px; background: linear-gradient(90deg, var(--pink), var(--accent)); }
.legend__dash { display: block; width: 24px; height: 0; border-top: 3px dashed var(--accent); }

.task { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface-2); font-size: 17px; }
.task .check { width: 28px; height: 28px; }
.task--working { border-inline-start: 3px solid var(--accent); }
.task__slot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.task__dot { display: block; width: 12px; height: 12px; background: var(--accent); }
.demo__tag { align-self: flex-start; margin-top: auto; padding: 8px 16px; border: 1px solid var(--line-3); color: #DCE3EA; font-size: 15px; }

/* ---------- Why Codeme ---------- */

.why-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.why-card h3 { font-size: 22px; font-weight: 600; }
.lang-en .why-card h3 { font-size: 21px; }
.why-card p { color: var(--muted); font-size: 16px; }
.dots { display: flex; gap: 4px; }
.dots i { display: block; width: 12px; height: 12px; }
.dots i:nth-child(1) { background: var(--pink); }
.dots i:nth-child(2) { background: var(--violet); }
.dots i:nth-child(3) { background: var(--accent); }

/* ---------- Stats ---------- */

.stats { padding-block: 80px; }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; text-align: center; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stat__num {
    font-family: var(--font-head);
    font-size: clamp(72px, 10vw, 128px);
    font-weight: 700;
    line-height: 1;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat__bar { display: block; width: 48px; height: 4px; }
.stat__label { color: var(--soft); font-size: 18px; }
.stat--1 .stat__num { background-image: linear-gradient(135deg, #EC8DB9, #8B72B1); }
.stat--1 .stat__bar { background: var(--pink); }
.stat--2 .stat__num { background-image: linear-gradient(135deg, #8B72B1, #0088CC); }
.stat--2 .stat__bar { background: var(--blue); }
.stat--3 .stat__num { background-image: linear-gradient(135deg, #0088CC, #3CC4EA); }
.stat--3 .stat__bar { background: var(--accent); }

/* ---------- Process ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 24px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step__node {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 700;
}
.node-1 { background: var(--pink); }
.node-2 { background: var(--violet); }
.node-3 { background: var(--blue); }
.node-4 { background: var(--accent); }
.step__title { margin-top: 8px; font-size: 24px; font-weight: 600; }
.step__text { color: var(--muted); font-size: 16px; }

/* ---------- Testimonials ---------- */

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.quote { display: flex; flex-direction: column; gap: 20px; padding: 32px; }
.quote__mark {
    height: 36px;
    font-family: var(--font-head);
    font-size: 72px;
    line-height: 0.7;
    background-image: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.quote__text { color: #DCE3EA; font-size: 18px; line-height: 1.8; }
.quote__by { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote__avatar { flex: none; display: block; width: 48px; height: 48px; background: var(--line); }
.quote__who { display: flex; flex-direction: column; }
.quote__who b { font-weight: 600; }
.quote__role { color: var(--muted); font-size: 14px; }

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

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq {
    padding: 4px 24px;
    background: var(--surface);
    border-inline-start: 3px solid var(--line-3);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
[dir='rtl'] .faq { clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.faq[open] { border-inline-start-color: var(--accent); }
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    font-size: 18px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__plus { color: var(--accent); font-size: 26px; transition: transform 0.2s ease; }
.faq[open] .faq__plus { transform: rotate(45deg); }
.faq__a { margin-bottom: 20px; color: var(--muted); font-size: 16px; }

/* ---------- Call to action ---------- */

.cta { padding-top: 24px; }
.cta__frame { --cut: 28px; padding: 2px; }
.cta__in {
    --cut: 26px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 80px 40px;
    background-color: var(--surface);
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 18px 18px;
    text-align: center;
}
.cta__pixels { position: absolute; top: 28px; inset-inline-end: 28px; display: grid; grid-template-columns: repeat(4, 14px); gap: 6px; }
.cta__pixels i { display: block; height: 14px; }
.cta__title { position: relative; max-width: 820px; font-size: clamp(34px, 5vw, 64px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.lang-ar .cta__title { line-height: 1.3; letter-spacing: 0; }
.cta__text { position: relative; max-width: 560px; color: var(--soft); font-size: 18px; }
.cta .btn-row { position: relative; }

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

.site-footer { padding: 56px var(--gutter) 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.footer__brand { flex: 1 1 260px; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.footer__brand img { align-self: flex-start; display: block; height: 36px; width: auto; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col b { color: var(--text); font-weight: 600; }
.footer__col a:hover { color: #FFFFFF; }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- Placeholder pages ---------- */

.page-soon { min-height: 50vh; }
.page-soon .container { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

/* ---------- Animation ---------- */

@keyframes pxpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.45); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pixels .tw, .marquee__track, .blink { animation: none; }
    .bcard--link, .btn, .btn--ghost, .faq__plus { transition: none; }
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
    :root { --gutter: 20px; }
    .section { padding-block: 72px; }
    .hero { padding-block: 64px 56px; }
    .marquee__track { font-size: 32px; }
    .paper-card, .digital-card { padding: 24px; }
    .cta__in { padding: 56px 20px; }
    .service { min-height: 0; }
}
.client-slot { background: #fff; padding: 12px 20px; }
.client-slot img { max-width: 100%; max-height: 50px; width: auto; height: auto; object-fit: contain; }