/* Qawasmeh Tech — product studio visual system */
:root {
    --bg: #f6f8fc;
    --surface: #fff;
    --surface-soft: #eef3f9;
    --text: #101c31;
    --muted: #66758b;
    --line: #e0e7f0;
    --primary: #155eef;
    --primary-strong: #1049c6;
    --cyan: #51c6c6;
    --navy: #0b1930;
    --footer: #091326;
    --radius: 18px;
    --shadow-sm: 0 12px 34px rgba(20, 40, 75, .055);
    --shadow-md: 0 28px 72px rgba(20, 40, 75, .13);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0a1020;
    --surface: #111a2b;
    --surface-soft: #0e1727;
    --text: #f0f4fc;
    --muted: #a9b5c9;
    --line: #26354a;
    --primary: #83aaff;
    --primary-strong: #5c8eff;
    --cyan: #64d0c8;
    --navy: #0a1426;
    --footer: #070d18;
    --shadow-sm: 0 12px 34px rgba(0, 0, 0, .2);
    --shadow-md: 0 28px 72px rgba(0, 0, 0, .34);
}

body { background: var(--bg); color: var(--text); }
.container { width: min(1280px, calc(100% - 64px)); }

/* Navigation */
.site-header--premium {
    border-bottom-color: color-mix(in srgb, var(--line) 72%, transparent);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(22px) saturate(155%);
}
.nav-wrap { min-height: 84px; gap: 34px; }
.brand { gap: 12px; }
.brand-mark { width: 46px; height: 46px; flex-basis: 46px; border-radius: 15px; }
.brand-copy strong { font-size: 15px; letter-spacing: -.35px; }
.brand-copy small { font-size: 8px; letter-spacing: 2.3px; }
.main-nav { gap: clamp(18px, 2.5vw, 34px); }
.main-nav a, .language-switch { font-size: 12px; font-weight: 700; }
.main-nav .nav-contact { min-height: 45px; padding: 13px 19px; border-radius: 10px; }
.nav-tools { gap: 12px; }
.theme-toggle, .nav-toggle { border-radius: 12px; }

/* Buttons and surfaces */
.button { min-height: 50px; padding: 13px 20px; border-radius: 10px; font-size: 12px; letter-spacing: .05px; }
.button-primary { box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 20%, transparent); }
.button-primary:hover { box-shadow: 0 14px 28px color-mix(in srgb, var(--primary) 26%, transparent); }
.button-outline { background: color-mix(in srgb, var(--surface) 78%, transparent); }
.eyebrow { padding: 8px 12px; font-size: 9px; letter-spacing: 1.05px; }

/* Home: an editorial studio introduction with a real product composition */
.hero-section--saas.home-hero {
    padding-block: clamp(60px, 7.4vw, 100px) 30px;
    background:
        radial-gradient(ellipse at 75% 26%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 34rem),
        radial-gradient(ellipse at 13% 4%, color-mix(in srgb, var(--cyan) 8%, transparent), transparent 25rem),
        linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.home-hero::before { top: -320px; inset-inline-end: -170px; width: min(68vw, 900px); opacity: .7; }
.hero-layout--editorial { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(36px, 5vw, 74px); min-height: 510px; }
.hero-copy { max-width: 610px; }
.hero-copy h1 {
    max-width: 650px;
    margin: 24px 0 18px;
    font-size: clamp(50px, 5.7vw, 76px);
    font-weight: 750;
    letter-spacing: -4.2px;
    line-height: 1.01;
}
html[lang="ar"] .hero-copy h1 { font-size: clamp(42px, 5.3vw, 68px); letter-spacing: 0; line-height: 1.35; }
.hero-section--saas .hero-copy h1 {
    background: linear-gradient(112deg, var(--text) 16%, color-mix(in srgb, var(--primary) 87%, var(--text)) 88%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-lead { max-width: 520px; font-size: 16px; line-height: 1.9; }
.hero-actions { gap: 11px; margin-top: 30px; }
.hero-capabilities { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 34px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .15px; }
.hero-capabilities i { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }
.hero-bottom-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1.4px; }
.hero-bottom-line i { width: 1px; height: 12px; margin-inline: auto; background: var(--line); }

.home-product-preview { position: relative; display: grid; width: 100%; min-height: 500px; place-items: center; isolation: isolate; }
.preview-orbit { position: absolute; z-index: -1; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent); border-radius: 50%; }
.preview-orbit--one { width: min(100%, 530px); }
.preview-orbit--two { width: min(80%, 420px); border-color: color-mix(in srgb, var(--cyan) 18%, transparent); }
.studio-board {
    position: relative;
    width: min(100%, 590px);
    overflow: hidden;
    transform: rotate(-1.3deg);
    border: 1px solid rgba(225, 233, 244, .95);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 38px 96px rgba(22, 46, 86, .2), 0 8px 24px rgba(22, 46, 86, .08);
    color: #14243d;
}
.studio-board-top { display: flex; min-height: 54px; align-items: center; gap: 12px; padding-inline: 20px; border-bottom: 1px solid #e9eef5; }
.studio-board-mark { color: #155eef; font-size: 20px; font-weight: 900; letter-spacing: -1.4px; }
.studio-board-mark span { color: #51c6c6; }
.studio-board-label { flex: 1; color: #7b8799; font-size: 7px; font-weight: 850; letter-spacing: 1.15px; }
.studio-board-status { display: flex; align-items: center; gap: 6px; color: #557064; font-size: 7px; font-weight: 800; letter-spacing: .3px; }
.studio-board-status i { width: 6px; height: 6px; border-radius: 50%; background: #4ebd94; box-shadow: 0 0 0 4px #e6f7ef; }
.studio-board-body { padding: clamp(19px, 3vw, 30px); }
.studio-board-copy { max-width: 400px; margin: 0 auto 21px; text-align: center; }
.studio-board-copy > span { color: #5275ad; font-size: 7px; font-weight: 850; letter-spacing: 1.1px; text-transform: uppercase; }
.studio-board-copy h2 { margin: 8px 0 4px; color: #14243d; font-size: clamp(17px, 2vw, 23px); font-weight: 750; letter-spacing: -.7px; line-height: 1.2; }
.studio-board-copy p { margin: 0; color: #8190a5; font-size: 9px; }
.studio-board-interface { display: grid; min-height: 224px; grid-template-columns: 48px minmax(0,1fr); overflow: hidden; border: 1px solid #e6ebf2; border-radius: 13px; background: #f7f9fc; box-shadow: 0 10px 28px rgba(24,45,77,.08); }
.studio-interface-rail { display: flex; align-items: center; flex-direction: column; gap: 13px; padding: 14px 8px; background: #10213c; }
.studio-interface-rail > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; background: #2267e8; color: #fff; font-size: 10px; font-weight: 900; }
.studio-interface-rail > i { width: 14px; height: 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 4px; }
.studio-interface-rail > b { width: 17px; height: 17px; margin-top: auto; border-radius: 50%; background: linear-gradient(140deg,#6cd0c3,#5285ef); }
.studio-interface-main { min-width: 0; padding: 15px; }
.studio-interface-heading { display: flex; align-items: center; gap: 6px; margin-bottom: 13px; }
.studio-interface-heading i { width: 17px; height: 17px; border-radius: 5px; background: #e7efff; }
.studio-interface-heading span { width: 90px; height: 5px; border-radius: 5px; background: #243b5d; }
.studio-interface-heading b { width: 34px; height: 16px; margin-inline-start: auto; border-radius: 5px; background: #e8eef8; }
.studio-interface-feature { overflow: hidden; padding: 12px; border: 1px solid #e6ebf2; border-radius: 9px; background: #fff; }
.studio-interface-caption { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.studio-interface-caption i { width: 7px; height: 7px; border-radius: 2px; background: #4b8af1; }
.studio-interface-caption span { width: 92px; height: 5px; border-radius: 5px; background: #dce5f0; }
.studio-interface-chart { position: relative; display: flex; height: 89px; align-items: end; justify-content: space-around; overflow: hidden; background: repeating-linear-gradient(to bottom, transparent 0 21px, #edf1f6 22px 23px); }
.studio-interface-chart > span { width: 8%; height: 40%; border-radius: 3px 3px 0 0; background: linear-gradient(180deg,#b8d2ff,#e1ebfa); }
.studio-interface-chart > span:nth-child(2) { height: 56%; }
.studio-interface-chart > span:nth-child(3) { height: 45%; }
.studio-interface-chart > span:nth-child(4) { height: 74%; }
.studio-interface-chart > span:nth-child(5) { height: 61%; }
.studio-interface-chart > span:nth-child(6) { height: 88%; }
.studio-interface-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.studio-interface-chart path { fill: none; stroke: #2c72ef; stroke-width: 3; vector-effect: non-scaling-stroke; }
.studio-interface-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.studio-interface-steps > div { display: flex; min-width: 0; align-items: center; gap: 6px; padding: 8px 7px; border: 1px solid #e6ebf2; border-radius: 7px; background: #fff; }
.studio-interface-steps span { color: #2c72ef; font-size: 7px; font-weight: 850; }
.studio-interface-steps i { width: 24px; height: 5px; border-radius: 5px; background: #dbe4f0; }
.studio-interface-steps b { width: 13px; height: 5px; margin-inline-start: auto; border-radius: 5px; background: #e9eff7; }
.studio-float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid rgba(224,232,243,.95); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 16px 36px rgba(20,43,78,.13); color: #20334f; }
.studio-float-card span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: #edf3ff; color: #2868e7; font-size: 8px; font-weight: 900; }
.studio-float-card strong { font-size: 9px; font-weight: 800; }
.studio-float-card--top { top: 11%; inset-inline-start: -3%; }
.studio-float-card--bottom { right: -2%; bottom: 9%; }

/* Page rhythm and section hierarchy */
.section { padding-block: clamp(68px, 8vw, 108px); }
.section-soft { background: color-mix(in srgb, var(--surface-soft) 58%, var(--bg)); }
.section-heading { align-items: end; gap: 36px; margin-bottom: 37px; }
.section-heading h2, .about-copy h2 { max-width: 670px; margin-top: 14px; font-size: clamp(33px, 4vw, 50px); font-weight: 750; letter-spacing: -1.8px; line-height: 1.1; }
html[lang="ar"] .section-heading h2, html[lang="ar"] .about-copy h2 { letter-spacing: 0; line-height: 1.45; }
.section-heading > p { max-width: 390px; font-size: 13px; line-height: 1.9; }
.card-grid, .project-grid, .blog-grid { gap: 20px; }
.service-card, .project-card, .blog-card { border-color: var(--line); border-radius: 17px; box-shadow: 0 8px 24px rgba(18,40,74,.035); }
.service-card:hover, .project-card:hover, .blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card { min-height: 275px; padding: 27px; }
.service-icon { width: 48px; height: 48px; border-radius: 14px; }
.service-card h3, .project-card h3, .blog-card h3 { font-size: 18px; line-height: 1.35; }
.service-card p, .project-card p, .blog-card p { font-size: 12px; line-height: 1.8; }
.section-footer { margin-top: 30px; }

/* Catalogs use an editorial masthead instead of the repeated mock dashboard */
.editorial-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(34px, 5vw, 58px) 30px; border-bottom: 1px solid var(--line); background: var(--surface); }
.editorial-hero::before { position: absolute; z-index: -1; top: 30px; inset-inline-end: -.02em; color: color-mix(in srgb, var(--primary) 5%, transparent); content: attr(data-index); font-size: clamp(260px, 37vw, 520px); font-weight: 800; letter-spacing: -.09em; line-height: .8; pointer-events: none; }
.editorial-hero::after { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 62%; background: radial-gradient(ellipse at 80% 44%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 55%); content: ""; pointer-events: none; }
.editorial-hero-top, .editorial-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1.05px; text-transform: uppercase; }
.editorial-hero-top > span:last-child i { margin-inline: 5px; color: var(--primary); font-style: normal; }
.editorial-hero-main { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(220px,.55fr); align-items: end; gap: clamp(32px, 7vw, 100px); padding-block: clamp(55px, 8vw, 104px) clamp(45px, 6vw, 72px); }
.editorial-hero-title { max-width: 800px; }
.editorial-hero-title .eyebrow { margin-bottom: 10px; }
.editorial-hero-title h1 { max-width: 760px; margin: 12px 0 0; color: var(--text); font-size: clamp(54px, 7vw, 90px); font-weight: 750; letter-spacing: -4.5px; line-height: .99; }
html[lang="ar"] .editorial-hero-title h1 { font-size: clamp(45px, 6vw, 76px); letter-spacing: 0; line-height: 1.3; }
.editorial-hero-aside { position: relative; padding-inline-start: 22px; border-inline-start: 1px solid var(--line); }
.editorial-hero-aside-mark { display: block; margin-bottom: 12px; color: var(--primary); font-size: 11px; font-weight: 850; letter-spacing: 1px; }
.editorial-hero-aside p { max-width: 300px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.editorial-hero-foot { padding-top: 17px; border-top: 1px solid var(--line); font-size: 8px; letter-spacing: .8px; }
.editorial-hero-foot-line { width: clamp(40px, 13vw, 180px); height: 1px; margin-inline-start: auto; background: linear-gradient(90deg, transparent, var(--primary)); }
.editorial-hero--projects::after { background: radial-gradient(ellipse at 72% 62%, color-mix(in srgb, var(--cyan) 10%, transparent), transparent 58%); }
.editorial-hero--blog::after { background: radial-gradient(ellipse at 76% 42%, color-mix(in srgb, #9275ef 9%, transparent), transparent 56%); }
.section--catalog { padding-block: 42px clamp(72px, 8vw, 104px); }
.catalog-heading { margin-bottom: 22px; padding-bottom: 16px; font-size: 9px; letter-spacing: 1.2px; }
.catalog-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); align-items: stretch; justify-content: initial; gap: 19px; }
.catalog-grid > .service-card, .catalog-grid > .project-card, .catalog-grid > .blog-card { width: auto; max-width: none; min-width: 0; flex: initial; grid-column: span 6; }
.project-grid--featured.catalog-grid > .project-card, .blog-grid--featured.catalog-grid > .blog-card { width: auto; max-width: none; flex: initial; }
.catalog-grid > .service-card:only-child, .catalog-grid > .project-card:only-child, .catalog-grid > .blog-card:only-child { width: auto; max-width: none; flex-basis: auto; grid-column: 1 / -1; }
.catalog-grid > .empty-state { grid-column: 1 / -1; }
.services-catalog-grid > .service-card { min-height: 285px; }
.project-card, .blog-card { min-height: 0; }
.project-image, .blog-image { aspect-ratio: 1.48; background: linear-gradient(140deg,#f4f7fb,#e7edf6); }
.project-image img { object-fit: contain; padding: clamp(24px,4vw,48px); }
.blog-image img { object-fit: cover; }
.image-placeholder { position: relative; overflow: hidden; background: radial-gradient(circle at 72% 20%, rgba(54,113,232,.14), transparent 31%), linear-gradient(145deg,#f5f8fc,#e9eff7); color: #1a5fe4; font-size: 68px; font-weight: 850; letter-spacing: -7px; }
.image-placeholder::after { position: absolute; right: 20px; bottom: 15px; width: 48%; height: 32%; border: 1px solid rgba(25,94,224,.15); border-radius: 50% 50% 0 0; content: ""; }
.project-content, .blog-content { padding: clamp(20px,2.4vw,28px); }
.project-meta, .post-date { border-radius: 999px; font-size: 9px; letter-spacing: .1px; }
.catalog-grid > .project-card:only-child, .catalog-grid > .blog-card:only-child { display: grid; min-height: 360px; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); }
.catalog-grid > .project-card:only-child .project-image, .catalog-grid > .blog-card:only-child .blog-image { min-height: 100%; aspect-ratio: auto; }
.catalog-grid > .project-card:only-child .project-content, .catalog-grid > .blog-card:only-child .blog-content { justify-content: center; padding: clamp(28px,5vw,64px); }
.catalog-grid > .service-card:only-child { min-height: 250px; }
.pagination-wrap { margin-top: 34px; }

/* Project and article details */
.page-hero--detail { padding-block: clamp(50px,6vw,76px); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 82% 42%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 31rem), var(--surface); }
.page-hero--detail::before { opacity: .28; }
.page-hero--detail .page-hero-layout { min-height: 350px; }
.page-hero-copy h1 { max-width: 720px; margin-top: 16px; font-size: clamp(42px,6vw,74px); font-weight: 750; letter-spacing: -3px; line-height: 1.02; overflow-wrap: anywhere; }
html[lang="ar"] .page-hero-copy h1 { font-size: clamp(39px,5.5vw,66px); letter-spacing: 0; line-height: 1.36; }
.back-link { margin-bottom: 25px; font-size: 11px; }
.detail-cover--hero { width: min(100%,560px); min-height: 300px; border-radius: 18px; background: linear-gradient(145deg,#f5f8fc,#e7edf6); }
.detail-cover--hero img { max-height: 430px; object-fit: contain; padding: clamp(22px,4vw,46px); }
.detail-art { position: relative; display: grid; width: min(100%,530px); min-height: 330px; overflow: hidden; place-items: center; isolation: isolate; border: 1px solid rgba(135,170,222,.2); border-radius: 20px; background: radial-gradient(circle at 50% 48%,rgba(54,119,227,.25),transparent 42%), linear-gradient(145deg,#10213c,#0a1427); box-shadow: 0 32px 78px rgba(16,37,70,.2); color: #fff; }
.detail-art-index { position: absolute; top: 20px; inset-inline-start: 22px; color: #9bb2d2; font-size: 8px; font-weight: 850; letter-spacing: 1.5px; }
.detail-art-ring { position: absolute; z-index: -1; aspect-ratio: 1; border: 1px solid rgba(137,180,247,.2); border-radius: 50%; }
.detail-art-ring--outer { width: 86%; box-shadow: 0 0 0 26px rgba(137,180,247,.035), 0 0 0 52px rgba(137,180,247,.025); }
.detail-art-ring--inner { width: 60%; border-color: rgba(94,209,202,.25); }
.detail-art-core { color: #f7fbff; font-size: clamp(88px,14vw,150px); font-weight: 800; letter-spacing: -13px; line-height: 1; text-shadow: 0 14px 50px rgba(90,155,245,.3); }
.detail-art-core span { color: #6dd5cf; }
.detail-art-caption { position: absolute; right: 22px; bottom: 20px; color: #9bb2d2; font-size: 7px; font-weight: 850; letter-spacing: 1.2px; }
.detail-art-lines { position: absolute; bottom: 22px; inset-inline-start: 22px; display: flex; align-items: end; gap: 4px; height: 25px; opacity: .75; }
.detail-art-lines i { width: 3px; height: 35%; border-radius: 4px; background: #62cfc9; }
.detail-art-lines i:nth-child(2n) { height: 68%; }
.detail-art-lines i:nth-child(3n) { height: 100%; }
.section--detail { padding-top: clamp(48px,6vw,78px); }
.article-layout { gap: clamp(32px,5vw,72px); }
.detail-content { border-radius: 16px; box-shadow: none; }
.article-aside { border-radius: 16px; box-shadow: var(--shadow-sm); }
.post-detail--editorial .detail-content { border: 0; background: transparent; box-shadow: none; }

/* Contact: put the form beside the introduction, not below another hero */
.contact-scene { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(54px,7vw,92px) clamp(70px,9vw,116px); background: radial-gradient(ellipse at 13% 4%,color-mix(in srgb,var(--cyan) 9%,transparent),transparent 28rem), var(--bg); }
.contact-scene::after { position: absolute; z-index: -1; top: -210px; inset-inline-end: -130px; width: 540px; aspect-ratio: 1; border: 1px solid color-mix(in srgb,var(--primary) 12%,transparent); border-radius: 50%; box-shadow: 0 0 0 46px color-mix(in srgb,var(--primary) 3%,transparent),0 0 0 92px color-mix(in srgb,var(--primary) 2%,transparent); content: ""; }
.contact-layout--direct { grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); align-items: center; gap: clamp(42px,7vw,96px); }
.contact-intro { position: relative; top: auto; }
.contact-kicker { margin: 24px 0 10px; color: var(--primary); font-size: 11px; font-weight: 800; }
.contact-intro h1 { max-width: 500px; margin: 0; color: var(--text); font-size: clamp(42px,5.2vw,65px); font-weight: 750; letter-spacing: -2.5px; line-height: 1.04; }
html[lang="ar"] .contact-intro h1 { font-size: clamp(39px,5vw,60px); letter-spacing: 0; line-height: 1.35; }
.contact-intro-copy { max-width: 420px; margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.contact-brand-lockup { display: flex; align-items: center; gap: 12px; margin-top: 36px; padding-top: 23px; border-top: 1px solid var(--line); }
.contact-brand-lockup > span:last-child { display: grid; gap: 4px; }
.contact-brand-lockup strong { color: var(--text); font-size: 12px; }
.contact-brand-lockup small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.contact-form { gap: 16px; padding: clamp(26px,4vw,42px); border-radius: 18px; box-shadow: 0 28px 80px rgba(20,40,75,.1); }
.contact-form-heading { padding-bottom: 16px; }
.contact-form-heading h2 { max-width: 440px; margin-top: 11px; font-size: 22px; }
.contact-form-code { color: color-mix(in srgb,var(--primary) 17%,var(--surface-soft)); }
.form-row { gap: 14px; }
.form-field { gap: 6px; }
.form-field label { font-size: 11px; }
.form-field input, .form-field textarea { border-radius: 9px; background: var(--bg); font-size: 13px; }
.contact-form > .button { min-width: 165px; }

/* About, closing callout, and footer */
.about-section { background: radial-gradient(ellipse at 18% 38%,rgba(39,100,191,.2),transparent 33rem), linear-gradient(118deg,#0a172b,#10213b 65%,#132747); }
.about-art { border-color: rgba(193,220,255,.13); border-radius: 22px; }
.about-big-q { text-shadow: 0 25px 70px rgba(0,0,0,.2); }
.about-copy > p { max-width: 600px; color: #b4c0d1; font-size: 14px; line-height: 1.95; }
.about-points > div { border-color: rgba(183,207,239,.14); }
.cta-section { padding-block: clamp(48px,6vw,72px); }
.cta-inner { padding: clamp(30px,5vw,56px); 
    /* border: 1px solid rgba(255,255,255,.14); 
    border-radius: 19px;  */
    /* background: linear-gradient(110deg,#0b1b33,#12294a 72%,#18345d); */
     box-shadow: 0 24px 60px rgba(9,19,38,.16);
 }
.cta-section { background: var(--bg); }
.site-footer { padding-top: 62px; }
.footer-main { padding-bottom: 50px; }
.footer-bottom { min-height: 64px; }

/* 404 and feedback */
.not-found-section { min-height: min(780px,calc(100svh - 84px)); background: radial-gradient(ellipse at 50% 36%,color-mix(in srgb,var(--primary) 9%,transparent),transparent 28rem), var(--bg); }
.not-found-card { border-radius: 22px; box-shadow: var(--shadow-md); }
.flash { border-radius: 12px; }
:root[data-theme="dark"] .flash-success { border-color: #286b53; background: #102b25; color: #a4e2c2; }
:root[data-theme="dark"] .flash-error { border-color: #754348; background: #301b23; color: #ffc1c3; }

/* Responsive composition */
@media (max-width: 1050px) {
    .container { width: min(100% - 48px, 920px); }
    .hero-layout--editorial { gap: 28px; }
    .home-product-preview { min-height: 430px; }
    .studio-board { width: min(100%,550px); }
    .studio-float-card--top { inset-inline-start: -1%; }
    .studio-float-card--bottom { right: 0; }
}

@media (max-width: 820px) {
    .container { width: min(100% - 40px, 680px); }
    .nav-wrap { min-height: 74px; }
    .main-nav { gap: 4px; }
    .hero-layout--editorial { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .hero-copy { max-width: 700px; }
    .hero-copy h1 { max-width: 700px; }
    .home-product-preview { width: min(100%,650px); min-height: 470px; margin-inline: auto; }
    .hero-bottom-line { margin-top: 12px; }
    .editorial-hero-main { grid-template-columns: minmax(0,1fr) minmax(190px,.6fr); gap: 32px; }
    .editorial-hero-title h1 { font-size: clamp(50px,9vw,76px); }
    .contact-layout--direct { grid-template-columns: minmax(0,1fr); gap: 34px; }
    .contact-intro { max-width: 650px; }
    .contact-form { width: 100%; }
    .about-layout { gap: 40px; }
}

@media (max-width: 620px) {
    .container { width: calc(100% - 32px); }
    .nav-wrap { min-height: 68px; gap: 8px; }
    .brand { gap: 8px; }
    .brand-mark { width: 39px; height: 39px; flex-basis: 39px; border-radius: 12px; }
    .brand-copy strong { font-size: 12px; }
    .brand-copy small { font-size: 6px; letter-spacing: 1.45px; }
    .nav-tools { gap: 5px; }
    .theme-toggle, .nav-toggle { width: 35px; height: 35px; flex-basis: 35px; }
    .language-switch { font-size: 9px; }
    .main-nav { right: 0; left: 0; }
    .hero-section--saas.home-hero { padding-block: 48px 24px; }
    .hero-copy h1 { margin-block: 18px 14px; font-size: clamp(42px,11vw,58px); letter-spacing: -2.7px; }
    html[lang="ar"] .hero-copy h1 { font-size: clamp(38px,10vw,52px); letter-spacing: 0; line-height: 1.4; }
    .hero-lead { font-size: 14px; }
    .hero-actions { margin-top: 23px; }
    .hero-capabilities { gap: 7px; margin-top: 24px; font-size: 8px; }
    .home-product-preview { min-height: 340px; margin-top: 14px; }
    .preview-orbit--one { width: 94%; }
    .preview-orbit--two { width: 72%; }
    .studio-board { width: 100%; border-radius: 16px; }
    .studio-board-top { min-height: 43px; gap: 8px; padding-inline: 12px; }
    .studio-board-mark { font-size: 17px; }
    .studio-board-label { font-size: 6px; letter-spacing: .5px; }
    .studio-board-status { font-size: 6px; }
    .studio-board-body { padding: 15px 12px; }
    .studio-board-copy { margin-bottom: 13px; }
    .studio-board-copy h2 { font-size: 17px; }
    .studio-board-copy p { font-size: 8px; }
    .studio-board-interface { min-height: 180px; grid-template-columns: 36px minmax(0,1fr); }
    .studio-interface-rail { gap: 9px; padding: 11px 5px; }
    .studio-interface-rail > span { width: 21px; height: 21px; }
    .studio-interface-main { padding: 10px; }
    .studio-interface-chart { height: 65px; }
    .studio-interface-steps > div { gap: 4px; padding: 6px 4px; }
    .studio-interface-steps i { width: 15px; }
    .studio-float-card { gap: 6px; padding: 8px 9px; border-radius: 9px; }
    .studio-float-card span { width: 23px; height: 23px; font-size: 7px; }
    .studio-float-card strong { font-size: 7px; }
    .studio-float-card--top { top: 3%; inset-inline-start: -1%; }
    .studio-float-card--bottom { right: -1%; bottom: 2%; }
    .hero-bottom-line { gap: 10px; font-size: 7px; letter-spacing: .7px; }
    .section { padding-block: 60px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 26px; }
    .section-heading h2 { font-size: 35px; letter-spacing: -1.2px; }
    .card-grid, .project-grid:not(.project-grid--featured):not(.project-catalog-grid), .blog-grid:not(.blog-catalog-grid):not(.blog-grid--featured) { grid-template-columns: minmax(0,1fr); }
    .service-card { min-height: 0; }
    .editorial-hero { padding-block: 28px 20px; }
    .editorial-hero-top, .editorial-hero-foot { font-size: 7px; letter-spacing: .55px; }
    .editorial-hero-main { grid-template-columns: minmax(0,1fr); gap: 22px; padding-block: 45px 35px; }
    .editorial-hero::before { top: 105px; font-size: 280px; }
    .editorial-hero-title h1 { font-size: clamp(46px,13vw,68px); letter-spacing: -2.5px; }
    html[lang="ar"] .editorial-hero-title h1 { font-size: clamp(40px,11vw,58px); letter-spacing: 0; line-height: 1.4; }
    .editorial-hero-aside { display: flex; align-items: flex-start; gap: 14px; padding-inline-start: 13px; }
    .editorial-hero-aside-mark { margin: 3px 0 0; }
    .editorial-hero-aside p { font-size: 12px; }
    .catalog-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
    .catalog-grid > .service-card, .catalog-grid > .project-card, .catalog-grid > .blog-card { grid-column: 1 / -1; }
    .catalog-grid > .project-card:only-child, .catalog-grid > .blog-card:only-child { grid-template-columns: minmax(0,1fr); }
    .catalog-grid > .project-card:only-child .project-image, .catalog-grid > .blog-card:only-child .blog-image { min-height: 220px; aspect-ratio: 1.48; }
    .catalog-grid > .project-card:only-child .project-content, .catalog-grid > .blog-card:only-child .blog-content { padding: 22px; }
    .section--catalog { padding-block: 30px 60px; }
    .page-hero--detail { padding-block: 42px 32px; }
    .page-hero--detail .page-hero-layout { min-height: 0; grid-template-columns: minmax(0,1fr); gap: 20px; }
    .page-hero-copy h1 { font-size: clamp(38px,10vw,56px); letter-spacing: -1.7px; }
    html[lang="ar"] .page-hero-copy h1 { font-size: clamp(37px,9vw,52px); letter-spacing: 0; line-height: 1.4; }
    .detail-cover--hero { min-height: 220px; }
    .detail-art { min-height: 250px; }
    .detail-art-core { font-size: 100px; }
    .contact-scene { padding-block: 42px 64px; }
    .contact-intro h1 { font-size: clamp(40px,10vw,56px); letter-spacing: -1.8px; }
    html[lang="ar"] .contact-intro h1 { font-size: clamp(38px,9vw,52px); letter-spacing: 0; }
    .contact-form { padding: 21px 17px; gap: 14px; }
    .contact-form-heading h2 { font-size: 19px; }
    .form-row { grid-template-columns: minmax(0,1fr); }
    .about-art { min-height: 245px; }
    .cta-inner { align-items: flex-start; flex-direction: column; gap: 20px; padding: 25px 21px; }
    .footer-main { grid-template-columns: minmax(0,1fr) minmax(110px,.7fr); gap: 25px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 13px; font-size: 9px; }
}

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

/* Company story and service scope: make the offer clear before the catalog */
.company-intro { position: relative; overflow: hidden; background: var(--surface); }
.company-intro::after { position: absolute; top: -190px; inset-inline-end: -120px; width: 390px; aspect-ratio: 1; border: 1px solid color-mix(in srgb,var(--primary) 9%,transparent); border-radius: 50%; box-shadow: 0 0 0 34px color-mix(in srgb,var(--primary) 3%,transparent),0 0 0 68px color-mix(in srgb,var(--primary) 2%,transparent); content: ""; pointer-events: none; }
.company-intro-heading, .service-approach-heading { position: relative; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(260px,.7fr); align-items: end; gap: clamp(32px,7vw,100px); margin-bottom: 42px; }
.company-intro-heading h2, .service-approach-heading h2 { max-width: 760px; margin: 16px 0 0; color: var(--text); font-size: clamp(36px,4.7vw,58px); font-weight: 750; letter-spacing: -2.5px; line-height: 1.08; }
.company-intro-heading > p, .service-approach-heading > p { max-width: 470px; margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.95; }
html[lang="ar"] .company-intro-heading h2, html[lang="ar"] .service-approach-heading h2 { letter-spacing: 0; line-height: 1.4; }
.company-capabilities { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.company-capability { position: relative; min-height: 255px; padding: 28px clamp(19px,3vw,38px) 32px; border-inline-start: 1px solid var(--line); transition: background .25s ease, transform .25s ease; }
.company-capability:first-child { border-inline-start: 0; }
.company-capability:hover { transform: translateY(-4px); background: color-mix(in srgb,var(--surface-soft) 58%,transparent); }
.company-capability-index { position: absolute; top: 31px; inset-inline-end: 26px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: 1px; }
.company-capability-mark { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 28px; border: 1px solid color-mix(in srgb,var(--primary) 19%,var(--line)); border-radius: 13px; background: color-mix(in srgb,var(--primary) 7%,var(--surface)); color: var(--primary); font-size: 20px; }
.company-capability h3 { max-width: 290px; margin: 0 0 10px; color: var(--text); font-size: 17px; font-weight: 750; letter-spacing: -.3px; }
.company-capability p { max-width: 340px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.service-inquiry-card { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(145px,.4fr) minmax(0,1fr) auto; align-items: center; gap: 26px; padding: 27px 30px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(110deg,color-mix(in srgb,var(--surface) 95%,var(--primary)),var(--surface)); box-shadow: var(--shadow-sm); }
.service-inquiry-mark { color: var(--primary); font-size: 9px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }
.service-inquiry-card h3 { margin: 0 0 5px; color: var(--text); font-size: 18px; font-weight: 750; }
.service-inquiry-card p { max-width: 600px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.delivery-section { position: relative; overflow: hidden; background: radial-gradient(ellipse at 84% 0%,rgba(50,109,207,.22),transparent 34rem),linear-gradient(120deg,#09152a,#10213b 62%,#102543); color: #fff; }
.delivery-section .section-heading h2 { max-width: 660px; color: #f7f9fd; }
.delivery-section .section-heading > p { color: #adbbce; }
.delivery-section .eyebrow { border-color: rgba(179,204,239,.18); background: rgba(255,255,255,.055); color: #a8c8ff; }
.delivery-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; border-top: 1px solid rgba(184,207,238,.19); }
.delivery-step { position: relative; min-height: 208px; padding: 24px clamp(14px,2.4vw,30px) 0 0; }
.delivery-step + .delivery-step { padding-inline-start: clamp(14px,2.4vw,30px); border-inline-start: 1px solid rgba(184,207,238,.15); }
.delivery-step-number { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid rgba(143,182,242,.32); border-radius: 50%; background: rgba(38,102,201,.2); color: #bcd4ff; font-size: 10px; font-weight: 850; }
.delivery-step-line { position: absolute; top: 43px; inset-inline-start: 48px; width: 27px; height: 1px; background: rgba(143,182,242,.38); }
.delivery-step h3 { margin: 27px 0 9px; color: #f4f7fd; font-size: 17px; font-weight: 750; }
.delivery-step p { max-width: 250px; margin: 0; color: #aebbd0; font-size: 11px; line-height: 1.9; }
.service-approach { background: var(--bg); }
.service-approach-heading { margin-bottom: 34px; }
.service-scope-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.service-scope-card { display: grid; min-height: 206px; grid-template-columns: 34px minmax(0,1fr) 24px; align-items: start; gap: 14px; padding: 24px 21px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 9px 27px rgba(20,40,75,.035); transition: border-color .25s ease,transform .25s ease,box-shadow .25s ease; }
.service-scope-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb,var(--primary) 38%,var(--line)); box-shadow: var(--shadow-sm); }
.service-scope-card > span { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid color-mix(in srgb,var(--primary) 17%,var(--line)); border-radius: 9px; background: color-mix(in srgb,var(--primary) 6%,var(--surface)); color: var(--primary); font-size: 9px; font-weight: 850; }
.service-scope-card h3 { margin: 3px 0 9px; color: var(--text); font-size: 15px; font-weight: 750; line-height: 1.45; }
.service-scope-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.85; }
.service-scope-card > i { margin-top: 7px; color: var(--primary); font-size: 15px; font-style: normal; }
.service-scope-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 28px; padding: 25px clamp(22px,4vw,38px); border: 1px solid var(--line); border-radius: 15px; background: radial-gradient(ellipse at 84% 0%,color-mix(in srgb,var(--primary) 12%,transparent),transparent 30rem),var(--surface); box-shadow: var(--shadow-sm); }
.service-scope-cta > div { max-width: 700px; }
.service-scope-cta > div > span { color: var(--primary); font-size: 9px; font-weight: 850; letter-spacing: .6px; text-transform: uppercase; }
.service-scope-cta h3 { margin: 8px 0 5px; color: var(--text); font-size: 19px; font-weight: 750; }
.service-scope-cta p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.catalog-heading-copy { display: grid; gap: 8px; }
.catalog-heading-copy p { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
:root[data-theme="dark"] .company-capability:hover { background: rgba(255,255,255,.025); }
:root[data-theme="dark"] .service-scope-card { box-shadow: 0 9px 27px rgba(0,0,0,.12); }

@media (max-width: 820px) {
    .company-intro-heading, .service-approach-heading { grid-template-columns: minmax(0,1fr); gap: 16px; }
    .company-capabilities { grid-template-columns: minmax(0,1fr); }
    .service-inquiry-card { grid-template-columns: minmax(0,1fr) auto; gap: 15px 22px; padding: 22px; }
    .service-inquiry-mark { grid-column: 1 / -1; }
    .company-capability { min-height: 0; padding: 22px 8px 25px; border-inline-start: 0; }
    .company-capability + .company-capability { border-top: 1px solid var(--line); }
    .company-capability-mark { margin-bottom: 18px; }
    .delivery-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .delivery-step { min-height: 190px; }
    .delivery-step:nth-child(3) { border-inline-start: 0; }
    .delivery-step:nth-child(n+3) { border-top: 1px solid rgba(184,207,238,.15); }
    .service-scope-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .service-scope-cta { align-items: flex-start; flex-direction: column; gap: 17px; }
}

@media (max-width: 620px) {
    .company-intro-heading h2, .service-approach-heading h2 { font-size: 36px; letter-spacing: -1.3px; }
    html[lang="ar"] .company-intro-heading h2, html[lang="ar"] .service-approach-heading h2 { letter-spacing: 0; }
    .company-intro-heading > p, .service-approach-heading > p { font-size: 12px; }
    .company-capability-index { top: 25px; inset-inline-end: 10px; }
    .delivery-steps { grid-template-columns: minmax(0,1fr); }
    .delivery-step, .delivery-step + .delivery-step { min-height: 0; padding: 19px 0 22px; border-inline-start: 0; }
    .delivery-step + .delivery-step { border-top: 1px solid rgba(184,207,238,.15); }
    .delivery-step-number { width: 34px; height: 34px; }
    .delivery-step-line { top: 36px; inset-inline-start: 43px; }
    .delivery-step h3 { margin-top: 17px; }
    .delivery-step p { max-width: 100%; }
    .service-scope-grid { grid-template-columns: minmax(0,1fr); }
    .service-scope-card { min-height: 0; padding: 19px 16px; }
    .service-inquiry-card { grid-template-columns: minmax(0,1fr); padding: 20px 17px; }
    .service-inquiry-mark { grid-column: auto; }
}
