/* =========================================================
   حلول تكنولوجي — Holol Technology
   Brand tokens, light/dark themes, RTL/LTR aware layout
   ========================================================= */

:root {
  /* Brand palette */
  --navy: #012C81;
  --blue: #0146AB;
  --bright: #0168D1;
  --deep: #011C55;
  --gold: #FCA304;
  --orange: #D46D08;
  --soft: #F3F8FF;
  --border: #DCE7F5;
  --ink: #172033;
  --white: #FFFFFF;

  /* Semantic tokens (light) */
  --bg: var(--white);
  --bg-alt: var(--soft);
  --surface: var(--white);
  --surface-2: #F8FBFF;
  --text: var(--ink);
  --muted: #56627A;
  --heading: var(--navy);
  --line: var(--border);
  --accent: var(--bright);
  --shadow-sm: 0 2px 8px rgba(1, 44, 129, .06);
  --shadow: 0 14px 40px rgba(1, 44, 129, .10);
  --header-bg: rgba(255, 255, 255, .82);

  --grad-brand: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--bright) 100%);
  --grad-gold: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
  --grad-hero: radial-gradient(1200px 600px at 85% -10%, rgba(1,104,209,.55), transparent 60%),
               radial-gradient(800px 500px at 0% 110%, rgba(252,163,4,.18), transparent 60%),
               linear-gradient(160deg, var(--deep) 0%, var(--navy) 60%, #01399A 100%);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --font-head: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Cairo", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #061127;
  --bg-alt: #0A1834;
  --surface: #0E1F42;
  --surface-2: #11254E;
  --text: #E3EAF7;
  --muted: #9EADC9;
  --heading: #FFFFFF;
  --line: #1B3266;
  --accent: #3D8FEA;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
  --shadow: 0 16px 44px rgba(0, 0, 0, .40);
  --header-bg: rgba(6, 17, 39, .82);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  transition: background-color .35s var(--ease), color .35s var(--ease);
  overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.65; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.3; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(64px, 9vw, 110px); }
.section--alt { background: var(--bg-alt); }

.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
[dir="rtl"] .icon--flip { transform: scaleX(-1); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px;
  background: var(--grad-gold); transform: rotate(45deg);
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.text-gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--grad-gold); color: var(--deep); box-shadow: 0 10px 24px rgba(212, 109, 8, .28); }
.btn--gold:hover { box-shadow: 0 14px 30px rgba(212, 109, 8, .38); }
.btn--primary { background: var(--bright); color: #fff; box-shadow: 0 10px 24px rgba(1, 104, 209, .25); }
.btn--primary:hover { background: var(--blue); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--outline { border-color: var(--line); color: var(--heading); background: var(--surface); }
.btn--outline:hover { border-color: var(--bright); color: var(--bright); }
.btn--sm { padding: 9px 18px; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .35s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.brand { display: flex; align-items: center; flex: none; }
/* logo: remote file has empty margins → frame it and crop with CSS */
.brand-logo { position: relative; display: block; height: 48px; aspect-ratio: 1488 / 571; overflow: hidden; }
.brand-logo img { position: absolute; max-width: none; width: 133.27%; height: auto; left: -16.67%; top: -21.54%; }
/* dark backgrounds: the wordmark is overlaid in pure white (icon + gold divider keep their colors),
   then the gold accent above "حلول" is restored on top from the original image */
.brand-logo__word, .brand-logo__accent { display: none; }
.brand-logo__word { clip-path: inset(0 0 0 43.1%); filter: brightness(0) invert(1); }
.brand-logo__accent { clip-path: inset(24.8% 31.6% 63.8% 63.5%); }
[data-theme="dark"] .brand-logo__word, .brand-logo--on-dark .brand-logo__word,
[data-theme="dark"] .brand-logo__accent, .brand-logo--on-dark .brand-logo__accent { display: block; }

.nav-links { display: flex; align-items: center; gap: 4px; align-self: stretch; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border: 0; border-radius: 10px; background: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--text);
  transition: color .2s, background .2s;
}
.nav-link:hover, .has-mega.is-open .mega-toggle { color: var(--bright); background: var(--bg-alt); }
.nav-link.is-active { color: var(--bright); }
.nav-link.is-active::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 3px;
  border-radius: 3px; background: var(--grad-gold);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--heading); transition: border-color .2s, color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--bright); color: var(--bright); }
.lang-btn { width: auto; padding-inline: 12px; gap: 6px; display: inline-flex; align-items: center; font-family: var(--font-head); font-weight: 700; font-size: .9rem; }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }
.menu-btn { display: none; }

/* ---------- Services mega menu ---------- */
.has-mega { display: flex; align-items: center; align-self: stretch; }
.mega-chev { width: 16px; height: 16px; transition: transform .25s; }
.has-mega.is-open .mega-chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: 100%; inset-inline: 0; z-index: 5;
  background: var(--surface); border-block: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 981px) {
  .has-mega:hover .mega { opacity: 1; visibility: visible; transform: none; }
  .has-mega:hover .mega-chev { transform: rotate(180deg); }
  .has-mega:hover .mega-toggle { color: var(--bright); background: var(--bg-alt); }
}
.mega__inner { display: grid; grid-template-columns: 310px 1fr; gap: 32px; padding-block: 28px; }
.mega__groups { display: flex; flex-direction: column; gap: 4px; padding-inline-end: 24px; border-inline-end: 1px solid var(--line); }
.mega__group { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; font-family: var(--font-head); font-weight: 700; color: var(--text); transition: background .2s, color .2s; }
.mega__group > .icon:first-child { color: var(--accent); }
.mega__arrow { margin-inline-start: auto; opacity: 0; transition: opacity .2s; }
.mega__group.is-active { background: var(--bg-alt); color: var(--heading); }
.mega__group.is-active .mega__arrow { opacity: 1; }
.mega__all { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 14px 16px 0; font-family: var(--font-head); font-weight: 700; color: var(--bright); text-decoration: underline; text-underline-offset: 6px; }
.mega__panel { display: none; grid-template-columns: 1fr 210px; gap: 28px; align-items: center; }
.mega__panel.is-active { display: grid; animation: fadeUp .3s var(--ease) both; }
.mega__label { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--heading); }
.mega__desc { color: var(--muted); margin: 4px 0 18px; max-width: 540px; }
.mega__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mega__link { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); transition: border-color .2s, transform .2s; }
.mega__link:hover, .mega__link.is-current { border-color: var(--bright); transform: translateY(-2px); }
.mega__link .ico-box { width: 44px; height: 44px; border-radius: 12px; margin: 0; flex: none; }
.mega__link .ico-box .icon { width: 20px; height: 20px; }
.mega__link b { display: block; font-family: var(--font-head); font-weight: 700; color: var(--heading); }
.mega__link small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.6; margin-top: 2px; }
.mega__img { width: 100%; max-width: 210px; justify-self: center; filter: drop-shadow(0 20px 26px rgba(1, 44, 129, .25)); }

@media (max-width: 980px) {
  .menu-btn { display: inline-grid; }
  .nav-cta { display: none; }
  /* absolute (not fixed): the header's backdrop-filter would trap a fixed child */
  .nav-links {
    position: absolute; inset-inline: 0; top: 100%; height: calc(100vh - 78px); height: calc(100dvh - 78px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 20px;
    background: var(--bg); border-top: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 1.1rem; }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { background: var(--bg-alt); }
  .nav-links .mobile-cta { display: flex; margin-top: 12px; }
  body.nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  .has-mega { display: block; }
  .mega { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; }
  .has-mega.is-open .mega { display: block; }
  .mega .container { padding-inline: 0; }
  .mega__inner { display: flex; flex-direction: column; gap: 0; padding: 0 0 8px; }
  .mega__groups { order: 2; border: 0; padding: 0; }
  .mega__group, .mega__img, .mega__desc { display: none; }
  .mega__all { padding: 12px 16px; }
  .mega__panel, .mega__panel.is-active { display: block; animation: none; }
  .mega__label { font-size: .9rem; color: var(--accent); padding: 12px 16px 6px; }
  .mega__links { grid-template-columns: 1fr; gap: 8px; padding-inline: 8px; }
  .mega__link { padding: 12px; }
  .mega__link small { display: none; }
}
.nav-links .mobile-cta { display: none; }
@media (max-width: 420px) { .brand .brand-logo { height: 40px; } .nav-actions { gap: 6px; } .icon-btn { width: 38px; height: 38px; } .lang-btn { width: auto; padding-inline: 10px; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad-hero); color: #fff;
  padding-block: clamp(70px, 10vw, 130px) clamp(80px, 11vw, 140px);
}
.hero::after { /* subtle grid */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; margin-bottom: 20px; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 34px; }
.hero .eyebrow { color: var(--gold); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 6px 14px; border-radius: 999px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 44px; color: rgba(255,255,255,.8); font-size: .95rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .icon { color: var(--gold); }

/* decorative diamonds echoing the logo */
.diamond { position: absolute; z-index: -1; border-radius: 22%; transform: rotate(45deg); }
.diamond--1 { width: 340px; height: 340px; inset-inline-start: -120px; top: 60%; border: 38px solid rgba(1,104,209,.25); }
.diamond--2 { width: 120px; height: 120px; inset-inline-end: 8%; top: 8%; background: var(--grad-gold); opacity: .16; }
.diamond--3 { width: 60px; height: 60px; inset-inline-start: 46%; bottom: 10%; border: 10px solid rgba(252,163,4,.35); }

/* hero visual composition */
.hero-visual { position: relative; min-height: 440px; }
.glass {
  position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.25); color: #fff;
}
.glass--code { inset-inline-end: 0; top: 0; width: 82%; padding: 18px 20px; direction: ltr; text-align: left; }
.glass--code .dots { display: flex; gap: 6px; margin-bottom: 14px; }
.glass--code .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); }
.glass--code .dots i:first-child { background: #FF6B6B; } .glass--code .dots i:nth-child(2) { background: var(--gold); } .glass--code .dots i:nth-child(3) { background: #3DDC97; }
.code-line { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .86rem; line-height: 1.9; white-space: nowrap; overflow: hidden; color: rgba(255,255,255,.75); }
.code-line .k { color: #7FB8FF; } .code-line .s { color: var(--gold); } .code-line .f { color: #3DDC97; }
.glass--chart { inset-inline-start: 0; top: 46%; width: 58%; padding: 18px 20px; }
.glass--chart .label { font-size: .82rem; color: rgba(255,255,255,.7); }
.glass--chart .value { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; }
.glass--chart .value small { font-size: .85rem; color: #3DDC97; font-weight: 700; margin-inline-start: 6px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 10px; }
.bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #4EA2FF, rgba(1,104,209,.35)); animation: grow 1.4s var(--ease) both; transform-origin: bottom; }
.bars span:nth-child(5) { background: var(--grad-gold); }
@keyframes grow { from { transform: scaleY(0); } }
.glass--phone { inset-inline-end: 6%; bottom: -10px; width: 150px; height: 230px; padding: 14px 12px; border-radius: 28px; }
.glass--phone .notch { width: 46px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.35); margin: 0 auto 14px; }
.glass--phone .tile { height: 44px; border-radius: 12px; background: rgba(255,255,255,.12); margin-bottom: 10px; }
.glass--phone .tile:first-of-type { background: var(--grad-gold); opacity: .9; }
.float { animation: float 6s ease-in-out infinite; }
.float--2 { animation-delay: -2s; } .float--3 { animation-delay: -4s; }
@keyframes float { 50% { translate: 0 -12px; } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) {
  .hero-visual { min-height: 330px; }
  .hero-visual { min-height: 400px; }
  .glass--code { width: 100%; } .glass--chart { width: 78%; top: auto; bottom: 0; } .glass--phone { display: none; }
}

/* ---------- Stats strip ---------- */
.stats { margin-top: -56px; position: relative; z-index: 2; }
.stats-card {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 30px 24px; text-align: center; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 900; color: var(--heading); line-height: 1.1; }
.stat strong em { font-style: normal; color: var(--gold); }
.stat > span { color: var(--muted); font-size: .96rem; }
.stat strong.stat-text { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.6; direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .stat strong.stat-text span { direction: rtl; display: inline-block; }
@media (max-width: 760px) {
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; }

.ico-box {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  background: var(--grad-brand); color: #fff; margin-bottom: 20px;
  box-shadow: 0 10px 22px rgba(1,70,171,.25);
}
.ico-box .icon { width: 28px; height: 28px; }
.ico-box--gold { background: var(--grad-gold); color: var(--deep); box-shadow: 0 10px 22px rgba(212,109,8,.25); }
.ico-box--soft { background: var(--bg-alt); color: var(--bright); box-shadow: none; border: 1px solid var(--line); }

.service-card { display: flex; flex-direction: column; overflow: hidden; }
.service-card::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 4px; width: 0;
  background: var(--grad-gold); transition: width .4s var(--ease);
}
.service-card:hover::before { width: 100%; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--accent); border: 1px solid var(--line); }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; font-family: var(--font-head); font-weight: 700; color: var(--bright); }
.card-link .icon { transition: translate .25s; }
.card:hover .card-link .icon { translate: 4px 0; }
[dir="rtl"] .card:hover .card-link .icon { translate: -4px 0; }

/* ---------- Why us / features ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.feature-list { display: grid; gap: 18px; }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--radius); transition: background .25s; }
.feature:hover { background: var(--surface); box-shadow: var(--shadow-sm); }
.feature .ico-box { width: 48px; height: 48px; border-radius: 14px; margin: 0; }
.feature .ico-box .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

.showcase {
  position: relative; border-radius: var(--radius-lg); background: var(--grad-brand);
  min-height: 420px; overflow: hidden; padding: 36px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.showcase img.mark { position: absolute; width: 62%; inset-inline-end: -8%; top: -6%; opacity: .95; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.showcase .exp { font-family: var(--font-head); font-size: 5rem; font-weight: 900; line-height: 1; color: var(--gold); }
.showcase .exp-label { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; }
.showcase p { color: rgba(255,255,255,.78); max-width: 340px; margin: 8px 0 0; }

/* ---------- Process ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 34px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-size: 3rem; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent); opacity: .5;
  position: absolute; top: 18px; inset-inline-end: 22px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); background: var(--grad-hero); color: #fff;
  padding: clamp(40px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 560px; }
.cta-band .diamond--2 { opacity: .25; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad-hero); color: #fff; padding-block: 80px 90px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 900; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 640px; margin: 0 auto; font-size: 1.1rem; }
.crumbs { display: inline-flex; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.65); margin-bottom: 14px; }
.crumbs a:hover { color: var(--gold); }

/* ---------- Services page ---------- */
.subnav-wrap { position: sticky; top: 78px; z-index: 20; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.subnav { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--text); transition: all .2s;
}
.subnav a:hover, .subnav a.is-active { background: var(--bright); color: #fff; border-color: var(--bright); }

.svc-block { scroll-margin-top: 90px; }
.svc-head { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.svc-head .ico-box { margin: 0; width: 72px; height: 72px; border-radius: 20px; }
.svc-head .ico-box .icon { width: 34px; height: 34px; }
.svc-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0; }
.svc-head p { color: var(--muted); margin: 4px 0 0; max-width: 640px; }
.svc-num { font-family: var(--font-head); font-weight: 800; color: var(--gold); font-size: .95rem; }

.sub-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); margin-bottom: 24px; }
.sub-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.sub-group__head h3 { margin: 0; font-size: 1.4rem; }
.sub-group__head .pill { margin-inline-start: auto; }
.pill { font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(252,163,4,.14); color: var(--orange); }
[data-theme="dark"] .pill { color: var(--gold); }
.mini-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .3s var(--ease), border-color .3s; }
.mini-card:hover { transform: translateY(-4px); border-color: var(--bright); }
.mini-card h4 { font-size: 1.1rem; margin: 14px 0 8px; }
.mini-card p { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.mini-card .ico-box { width: 48px; height: 48px; border-radius: 14px; margin: 0; }
.mini-card .ico-box .icon { width: 22px; height: 22px; }
.checks { display: grid; gap: 6px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; font-size: .93rem; color: var(--text); }
.checks .icon { color: #1BAE6F; width: 18px; height: 18px; margin-top: 4px; }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-family: var(--font-head); font-weight: 700; color: var(--text); transition: all .2s;
}
.filter-btn:hover { border-color: var(--bright); color: var(--bright); }
.filter-btn.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; }

.project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; display: flex; flex-direction: column; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.projects-grid .project { animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

.filter-btn { display: inline-flex; align-items: center; gap: 8px; }
.filter-btn .count { font-size: .78rem; min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--bg-alt); color: var(--accent); }
.filter-btn.is-active .count { background: rgba(255,255,255,.2); color: #fff; }

/* square design images (apps / UI) */
.project-media { display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; background: var(--bg-alt); cursor: zoom-in; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover .project-media img { transform: scale(1.04); }

/* tall full-page designs (platforms / stores) in a browser frame that scrolls on hover */
.browser { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; text-align: start; }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); direction: ltr; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #FF6B6B; flex: none; }
.browser__bar i:nth-child(2) { background: var(--gold); } .browser__bar i:nth-child(3) { background: #3DDC97; }
.browser__url { margin-left: 10px; flex: 1; min-width: 0; font-size: .75rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.browser__screen { display: block; height: 340px; overflow: hidden; }
.browser__screen img { width: 100%; height: auto; transition: transform 6s ease-in-out; }
.project:hover .browser__screen img { transform: translateY(calc(-100% + 340px)); }

.project-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.project-actions .btn { padding: 8px 16px; font-size: .88rem; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(1, 12, 36, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox.is-open { display: block; }
.lightbox__inner { height: 100%; overflow-y: auto; padding: 64px 16px 40px; display: flex; justify-content: center; align-items: flex-start; }
.lightbox__inner img { width: min(1000px, 100%); height: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox.is-fit .lightbox__inner { align-items: center; }
.lightbox.is-fit .lightbox__inner img { width: auto; max-width: 100%; max-height: calc(100vh - 104px); }
.lightbox__close { position: fixed; top: 14px; inset-inline-end: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #fff; color: var(--deep); z-index: 1; }
body.lb-open { overflow: hidden; }
.project-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center; color: rgba(255,255,255,.95); }
.project-thumb .icon { width: 64px; height: 64px; opacity: .9; transition: transform .5s var(--ease); }
.project:hover .project-thumb .icon { transform: scale(1.12) rotate(-4deg); }
.project-thumb::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 26%; transform: rotate(45deg); border: 24px solid rgba(255,255,255,.1); inset-inline-end: -50px; bottom: -70px; }
.thumb--software { background: linear-gradient(135deg, #012C81, #0168D1); }
.thumb--uiux { background: linear-gradient(135deg, #3A2DB8, #0168D1); }
.thumb--data { background: linear-gradient(135deg, #011C55, #0E7C86); }
.thumb--marketing { background: linear-gradient(135deg, #D46D08, #FCA304); }
.project-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project-body .tag { align-self: flex-start; margin-bottom: 12px; }
.project-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.project-body p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

/* ---------- About ---------- */
.about-visual { position: relative; border-radius: var(--radius-lg); background: var(--bg-alt); border: 1px solid var(--line); padding: 50px; display: grid; place-items: center; min-height: 380px; overflow: hidden; }
.about-visual img { width: 70%; max-width: 320px; filter: drop-shadow(0 30px 30px rgba(1,44,129,.25)); animation: float 7s ease-in-out infinite; }
.about-visual .exp-badge { position: absolute; inset-inline-start: 24px; bottom: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px; box-shadow: var(--shadow); }
.about-visual .exp-badge strong { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1; }
.about-visual .exp-badge span { font-size: .9rem; color: var(--muted); }

.mvv .card { text-align: start; }

.team-card { text-align: center; padding: 40px 30px; }
.avatar {
  width: 128px; height: 128px; border-radius: 34%; margin: 0 auto 22px; position: relative;
  display: grid; place-items: center; background: var(--grad-brand); color: #fff;
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 900;
}
.avatar::after { content: ""; position: absolute; inset: -8px; border-radius: 38%; border: 2px dashed var(--gold); opacity: .6; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.team-card .role { display: inline-block; font-weight: 700; color: var(--orange); margin-bottom: 12px; }
[data-theme="dark"] .team-card .role { color: var(--gold); }
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); color: var(--heading); transition: all .2s; }
.socials a:hover { background: var(--bright); color: #fff; border-color: var(--bright); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg); padding: 36px; position: relative; overflow: hidden; isolation: isolate; }
.info-card h3 { color: #fff; font-size: 1.5rem; }
.info-card > p { color: rgba(255,255,255,.8); }
.info-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.info-item:last-of-type { border-bottom: 0; }
.info-item .ico-box { width: 46px; height: 46px; border-radius: 14px; margin: 0; background: rgba(255,255,255,.12); box-shadow: none; }
.info-item .ico-box .icon { width: 20px; height: 20px; }
.info-item small { display: block; color: rgba(255,255,255,.65); font-size: .85rem; }
.info-item b { font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.info-card .socials { justify-content: flex-start; margin-top: 24px; }
.info-card .socials a { border-color: rgba(255,255,255,.2); color: #fff; }
.info-card .socials a:hover { background: var(--gold); color: var(--deep); border-color: var(--gold); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .95rem; margin-bottom: 8px; color: var(--heading); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bright); box-shadow: 0 0 0 4px rgba(1,104,209,.15); }
.form-note { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: rgba(27,174,111,.12); color: #12865A; font-weight: 600; display: none; }
[data-theme="dark"] .form-note { color: #4FE0A2; }
.form-note.is-visible { display: block; }
.form-note--err { background: rgba(198,40,40,.1); color: #C62828; }
[data-theme="dark"] .form-note--err { color: #FF8A80; }
.register-wrap { max-width: 820px; margin: 0 auto; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-grid button[disabled] { opacity: .6; cursor: wait; }

.map-box { margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 280px; display: grid; place-items: center; background: var(--bg-alt); color: var(--muted); text-align: center; padding: 24px; }
.map-box .icon { width: 42px; height: 42px; color: var(--bright); margin: 0 auto 10px; display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--bright); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--font-head); font-weight: 700; color: var(--heading); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,.75); padding-top: 70px; margin-top: 0; }
[data-theme="dark"] .site-footer { background: #030B1D; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-logo { height: 56px; margin-bottom: 18px; }
.footer-brand p { font-size: .95rem; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: .95rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.site-footer .socials { justify-content: flex-start; }
.site-footer .socials a { border-color: rgba(255,255,255,.15); color: #fff; }
.site-footer .socials a:hover { background: var(--gold); color: var(--deep); border-color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--grad-gold); color: var(--deep); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(212,109,8,.35); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

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

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

/* ---------- Service pages ---------- */
.page-hero--svc { text-align: start; padding-block: 70px 84px; }
.page-hero--svc p { margin: 0 0 28px; max-width: 600px; }
.svc-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.svc-hero__img { width: 100%; max-width: 360px; justify-self: center; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
@media (max-width: 860px) {
  .svc-hero { grid-template-columns: 1fr; }
  .svc-hero__img { max-width: 240px; order: -1; }
}
.h2-lg { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.lead-muted { color: var(--muted); font-size: 1.08rem; }
.sibling-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-family: var(--font-head); font-weight: 700; color: var(--heading); transition: border-color .2s, color .2s; }
.chip-link:hover { border-color: var(--bright); color: var(--bright); }
.svc-why { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc-why .feature { flex-direction: column; gap: 14px; background: var(--bg-alt); border: 1px solid var(--line); }
@media (max-width: 560px) { .svc-why { grid-template-columns: 1fr; } }
.offer-card .checks { margin-top: 16px; }
.center-cta { text-align: center; margin-top: 40px; }

.highlight {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg);
  background: var(--grad-hero); color: #fff;
}
.highlight h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.highlight p { color: rgba(255, 255, 255, .8); margin-bottom: 24px; }
.highlight .eyebrow { color: var(--gold); }
.highlight__points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.highlight__points li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-weight: 600; font-size: .95rem; }
.highlight__points .icon { color: var(--gold); width: 18px; height: 18px; margin-top: 4px; }
@media (max-width: 900px) { .highlight { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .highlight__points { grid-template-columns: 1fr; } }

/* services overview */
.hub-group { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.hub-group--flip { grid-template-columns: 1.2fr .8fr; }
.hub-group--flip .hub-group__visual { order: 2; }
.hub-group__visual img { width: 100%; max-width: 380px; margin-inline: auto; filter: drop-shadow(0 24px 30px rgba(1, 44, 129, .25)); }
.hub-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.hub-link { display: flex; gap: 16px; align-items: flex-start; }
.hub-link .ico-box { margin: 0; flex: none; }
.hub-link h4 { margin: 0 0 6px; }
.hub-link .card-link { padding-top: 6px; }
@media (max-width: 900px) {
  .hub-group, .hub-group--flip { grid-template-columns: 1fr; gap: 28px; }
  .hub-group--flip .hub-group__visual { order: 0; }
  .hub-group__visual img { max-width: 240px; }
}
@media (max-width: 600px) { .hub-links { grid-template-columns: 1fr; } }

/* ---------- Founders ---------- */
.founder-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.founder-photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--grad-brand); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .6s var(--ease); }
.founder-card:hover .founder-photo img { transform: scale(1.04); }
.founder-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 30px; }
.founder-body h3 { font-size: 1.45rem; margin-bottom: 2px; }
.founder-body .role { display: inline-block; font-weight: 700; color: var(--orange); margin-bottom: 14px; }
[data-theme="dark"] .founder-body .role { color: var(--gold); }
.founder-body p { color: var(--muted); font-size: .98rem; }
.founder-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }
.founder-links .btn { padding: 9px 16px; font-size: .9rem; }
.founder-links .btn span { direction: ltr; unicode-bidi: isolate; }
