/* ============ AJ Solutions — design tokens ============ */
:root {
  --bg: #07070c;
  --bg-2: #0c0c14;
  --card: rgba(255, 255, 255, .035);
  --card-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f7;
  --muted: #a1a1b5;
  --dim: #7a7a90;  /* 4.5:1 on --bg (readable small text) */
  --a1: #8b5cf6;   /* violet */
  --a2: #22d3ee;   /* cyan */
  --a3: #f472b6;   /* pink */
  --grad: linear-gradient(110deg, #a78bfa 0%, #22d3ee 55%, #a78bfa 100%);
  --grad-btn: linear-gradient(135deg, #7c3aed, #2563eb 55%, #06b6d4);
  --r: 20px;
  --r-lg: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1180px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Sora', 'Inter', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -.025em; line-height: 1.08; font-weight: 700; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(139, 92, 246, .45); }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip {
  position: fixed; top: 12px; inset-inline-start: 12px; z-index: 300; padding: 10px 16px; border-radius: 10px;
  background: #fff; color: #0b0b12; font-weight: 600; transform: translateY(-160%); transition: transform .25s;
}
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.grad {
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ============ Ambient background ============ */
.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: .55;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 620px; height: 620px; background: #5b21b6; top: -220px; left: -160px; }
.aurora span:nth-child(2) { width: 520px; height: 520px; background: #0e7490; top: 10%; right: -200px; animation-delay: -7s; opacity: .4; }
.aurora span:nth-child(3) { width: 420px; height: 420px; background: #9d174d; top: 60%; left: 30%; animation-delay: -14s; opacity: .22; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.15); } }
main, .footer, .nav { position: relative; z-index: 1; }

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 200;
  background: var(--grad-btn); transform-origin: 0 50%; transform: scaleX(0);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 14px;
  font-weight: 600; font-size: .97rem; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s;
}
.btn svg { transition: transform .35s var(--ease); flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  color: #fff; background: var(--grad-btn); background-size: 160% 160%;
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, .7), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 40px -12px rgba(37, 99, 235, .8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.03); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.07); transform: translateY(-2px); }
.btn-light { background: #fff; color: #0b0b12; }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255,255,255,.5); }
.btn-sm { height: 42px; padding: 0 18px; border-radius: 12px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ============ Nav ============ */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding: 18px 0; transition: padding .4s var(--ease); }
.nav::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: rgba(7, 7, 12, .72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav.scrolled { padding: 10px 0; }
.nav.scrolled::before { opacity: 1; }
.nav-inner { position: relative; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; white-space: nowrap; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: .95rem; letter-spacing: -.04em; color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 6px 20px -6px rgba(124,58,237,.8), inset 0 1px 0 rgba(255,255,255,.3);
}
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; letter-spacing: -.02em; }
.brand-name b { font-weight: 600; color: var(--muted); }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a { padding: 8px 14px; border-radius: 10px; font-size: .92rem; color: var(--muted); white-space: nowrap; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.05); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: .88rem; font-weight: 600; color: var(--muted);
  white-space: nowrap; transition: color .2s, border-color .2s, background .2s;
}
.lang:hover { color: var(--text); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.07); }
.lang svg { width: 16px; height: 16px; }
.lang[lang="ar"] { font-family: 'IBM Plex Sans Arabic', var(--font); }
.burger { display: none; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--text); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.menu-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; min-height: 100vh; padding: 150px 0 90px; display: flex; align-items: center; overflow: hidden; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 100px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); backdrop-filter: blur(10px);
  font-size: .86rem; color: var(--muted); margin-bottom: 28px; transition: border-color .3s, color .3s;
}
.pill:hover { border-color: rgba(34,211,238,.5); color: var(--text); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero-title { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; max-width: 640px; }
#rotator { display: inline-block; transition: opacity .35s, transform .45s var(--ease), filter .35s; }
#rotator.out { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.hero-sub { margin-top: 26px; max-width: 540px; font-size: 1.12rem; color: var(--muted); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 44px; margin-top: 64px;
  padding-top: 30px; border-top: 1px solid var(--line); max-width: 640px;
}
.hero-stats strong { font-family: var(--font-head); font-size: 2rem; font-weight: 700; letter-spacing: -.03em; }
.hero-stats span { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--a2); }
.hero-stats p { font-size: .82rem; color: var(--dim); margin-top: 2px; }

/* Device showcase */
.showcase { position: absolute; inset-inline-end: max(24px, calc((100vw - var(--wrap)) / 2 + 10px)); top: 50%; translate: 0 -46%; width: 460px; height: 560px; z-index: 1; perspective: 1400px; }
.phone {
  position: absolute; width: 210px; height: 432px; border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #2a2a38, #0e0e16);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 50px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.15);
  animation: bob 7s ease-in-out infinite;
}
.phone::before { content: ''; position: absolute; top: 17px; left: 50%; translate: -50% 0; width: 64px; height: 18px; border-radius: 20px; background: #000; z-index: 2; }
.p1 { left: 0; top: 70px; transform: rotateY(18deg) rotateZ(-6deg); }
.p2 { left: 125px; top: 0; z-index: 2; animation-delay: -2.3s; }
.p3 { left: 250px; top: 90px; transform: rotateY(-18deg) rotateZ(6deg); animation-delay: -4.6s; }
@keyframes bob { 50% { translate: 0 -14px; } }
.screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; padding: 44px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.s-wasaly { background: linear-gradient(180deg, #f97316 0 34%, #13131b 34%); }
.s-velour { background: linear-gradient(180deg, #be185d 0 34%, #13131b 34%); }
.s-sharp  { background: linear-gradient(180deg, #334155 0 34%, #13131b 34%); }
.sc-top { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .95rem; color: #fff; }
.sc-top span { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.2); font-size: .95rem; }
.sc-card { height: 46px; border-radius: 12px; background: rgba(255,255,255,.07); }
.sc-card.big { height: 92px; background: rgba(255,255,255,.95); box-shadow: 0 10px 20px -8px rgba(0,0,0,.5); }
.sc-row { display: flex; gap: 8px; }
.sc-row i { flex: 1; height: 54px; border-radius: 12px; background: rgba(255,255,255,.1); }

/* ============ Marquee ============ */
.marquee { position: relative; z-index: 1; direction: ltr; border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: '✦'; font-size: .7rem; color: var(--a1); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding: 130px 0 0; }
.head { margin-bottom: 56px; max-width: 720px; }
.head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--a2); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 18px; height: 1.5px; background: currentColor; }
.head h2, .why h2, .contact-left h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.head p { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }

/* Spotlight cards */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139,92,246,.16), transparent 45%);
}
.spot:hover::before { opacity: 1; }

/* ============ Bento ============ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px; overflow: hidden; transition: border-color .4s, transform .5s var(--ease);
}
.tile:hover { border-color: var(--line-2); transform: translateY(-4px); }
.t-wide { grid-column: span 2; }
.tile-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.02)); border: 1px solid var(--line-2); margin-bottom: 22px;
}
.tile h3 { font-size: 1.35rem; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: .97rem; max-width: 440px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { padding: 6px 12px; border-radius: 100px; font-size: .8rem; color: var(--muted); border: 1px solid var(--line-2); background: rgba(255,255,255,.03); }
.tile-art { position: absolute; inset-inline-end: -10px; bottom: -40px; display: flex; gap: 14px; opacity: .9; pointer-events: none; }
.art-phones i { width: 110px; height: 200px; border-radius: 24px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(139,92,246,.5), rgba(34,211,238,.15) 45%, rgba(255,255,255,.03)); transform: rotate(10deg); }
.art-phones i:last-child { translate: 0 30px; background: linear-gradient(180deg, rgba(244,114,182,.45), rgba(255,255,255,.03) 55%); }

/* ============ Work ============ */
.filters { display: inline-flex; padding: 5px; gap: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.filters button { padding: 9px 16px; border-radius: 10px; font-size: .88rem; font-weight: 500; color: var(--muted); transition: color .2s, background .3s; }
.filters button:hover { color: var(--text); }
.filters button.active { background: #fff; color: #0b0b12; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; transition: opacity .3s; }
.work-grid.fade { opacity: 0; }
.work {
  border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease);
  animation: rise .7s var(--ease) both;
}
.work:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.work-cover { position: relative; height: 260px; overflow: hidden; display: grid; place-items: center; }
.work-cover::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 120%, rgba(0,0,0,.5), transparent 60%),
              linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}
.work-emoji {
  position: relative; z-index: 1; width: 112px; height: 112px; border-radius: 30px;
  display: grid; place-items: center; font-size: 3.4rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .6s var(--ease);
}
.work:hover .work-emoji { transform: scale(1.08) rotate(-4deg); }
.work-tag {
  position: absolute; top: 18px; inset-inline-start: 18px; z-index: 2; padding: 6px 12px; border-radius: 100px; font-size: .75rem; font-weight: 600;
  background: rgba(0,0,0,.35); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18);
}
.work-badge {
  position: absolute; top: 18px; inset-inline-end: 18px; z-index: 2; padding: 6px 12px; border-radius: 100px; font-size: .75rem; font-weight: 600;
  background: rgba(255,255,255,.92); color: #0b0b12; display: inline-flex; align-items: center; gap: 6px;
}
.work-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.work-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { font-size: 1.35rem; }
.work-body .sub { color: var(--a2); font-size: .85rem; font-weight: 500; margin-top: 4px; }
.work-body p { color: var(--muted); font-size: .95rem; margin-top: 12px; }
.tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tech span { font-size: .75rem; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--line); }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.links a {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 11px;
  font-size: .84rem; font-weight: 600; border: 1px solid var(--line-2); transition: background .25s, border-color .25s, transform .3s var(--ease);
}
.links a:hover { background: rgba(255,255,255,.07); transform: translateY(-1px); }
.links a svg { width: 15px; height: 15px; }
.links a.l-live { background: #fff; color: #0b0b12; border-color: #fff; }
.links a.l-ios { background: #0b0b12; border-color: rgba(255,255,255,.22); }
.links a.l-play { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); color: #86efac; }

/* ============ Process ============ */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 30px 26px 32px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease); }
.step:hover { border-color: var(--line-2); transform: translateY(-4px); }
.step-n { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--dim); display: block; margin-bottom: 44px; }
.step::after { content: ''; position: absolute; top: 40px; inset-inline: 64px 26px; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .93rem; }

/* ============ Stack ============ */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stack-item {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); font-weight: 500; font-size: .95rem;
  transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.stack-item:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-2px); }
.stack-item i { font-style: normal; font-size: 1.3rem; }
.stack-item small { display: block; font-size: .72rem; color: var(--dim); font-weight: 400; }

/* ============ Why ============ */
.why-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; padding: 56px; border-radius: 36px;
  background: linear-gradient(135deg, rgba(139,92,246,.12), rgba(34,211,238,.05) 60%, transparent); border: 1px solid var(--line); }
.why-list { list-style: none; display: grid; gap: 4px; }
.why-list li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 0; }
.why-list b { font-family: var(--font-head); font-weight: 600; }
.why-list span { color: var(--muted); font-size: .93rem; text-align: end; }

/* ============ Contact ============ */
.contact-card {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; padding: 56px; border-radius: 36px;
  background: var(--bg-2); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.contact-card::before { content: ''; position: absolute; width: 500px; height: 500px; inset-inline-start: -200px; bottom: -260px; border-radius: 50%; background: rgba(124,58,237,.25); filter: blur(100px); pointer-events: none; }
.contact-left { position: relative; }
.contact-left > p { margin-top: 18px; color: var(--muted); max-width: 380px; }
.contact-list { list-style: none; margin-top: 36px; display: grid; gap: 20px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.ci { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.contact-list small { display: block; font-size: .75rem; color: var(--dim); }
.contact-list a, .contact-list span:not(.ci) { font-weight: 500; word-break: break-word; }
.contact-list a:hover { color: var(--a2); }
.socials { display: flex; gap: 10px; margin-top: 34px; }
.socials a { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); transition: color .2s, background .25s, transform .3s var(--ease); }
.socials a:hover { color: var(--text); background: rgba(255,255,255,.07); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.form { position: relative; display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span { font-size: .82rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 13px; resize: vertical;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2); outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1b5' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-inline-end: 42px; }
.field select option { background: #15151f; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(139,92,246,.7); background: rgba(139,92,246,.06); box-shadow: 0 0 0 4px rgba(139,92,246,.15); }
.field.invalid input, .field.invalid textarea { border-color: #f87171; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { cursor: pointer; position: relative; }
.choice input { position: absolute; inset: 0; width: auto; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 9px 14px; border-radius: 100px; font-size: .86rem; border: 1px solid var(--line-2); color: var(--muted); transition: all .25s; }
.choice input:checked + span { background: rgba(139,92,246,.18); border-color: rgba(139,92,246,.7); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--a2); outline-offset: 2px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.form-note { font-size: .9rem; min-height: 1.4em; text-align: center; }
.form-note.ok { color: #4ade80; }
.form-note.err { color: #f87171; }

/* ============ Footer ============ */
.footer { margin-top: 130px; border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.footer nav a, .footer p { color: var(--dim); font-size: .88rem; }
.footer nav a:hover { color: var(--text); }

.wa-float {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #22c55e; color: #fff;
  box-shadow: 0 14px 30px -8px rgba(34,197,94,.7); transition: transform .35s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
/* Netlify's free-plan "Powered by Netlify" badge (iframe, bottom-right, ~64px tall) covers the button on the English page */
html[dir="ltr"]:has(#nl-badge-frame) .wa-float { bottom: 80px; }
.wa-float svg { width: 28px; height: 28px; }

/* ============ Reveal ============ */
/* Hidden only when JS runs, so the page never stays blank if a script fails */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
/* phones mockup needs ~1200px or it runs into the hero title */
@media (max-width: 1200px) {
  .showcase { display: none; }
}
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
/* full-screen menu from tablet width down, so the logo never gets squeezed */
@media (max-width: 980px) {
  .nav-inner { gap: 12px; }
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
    background: rgba(7,7,12,.97); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; margin: 0;
  }
  .nav-links a { font-family: var(--font-head); font-size: 1.6rem; color: var(--text); }
  .menu-open { overflow: hidden; }
  .menu-open .nav-links { opacity: 1; visibility: visible; }
  .nav-actions { margin-inline-start: auto; position: relative; z-index: 2; }
  .nav-cta { display: none; }
  .burger { display: block; z-index: 2; }
}
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .why-inner, .contact-card { grid-template-columns: 1fr; padding: 36px 26px; gap: 40px; }
  .br-d { display: none; }
}
@media (max-width: 760px) {
  .hero { padding: 120px 0 70px; min-height: auto; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-top: 48px; }
  .bento { grid-template-columns: 1fr; }
  .t-wide { grid-column: auto; }
  .tile-art { display: none; }
  .steps { grid-template-columns: 1fr; }
  .section { padding-top: 96px; }
  .row2 { grid-template-columns: 1fr; }
  .work-cover { height: 210px; }
  .why-list li { flex-direction: column; gap: 2px; }
  .why-list span { text-align: start; }
  .footer-inner { flex-direction: column; text-align: center; }
  .wrap { padding: 0 16px; }
  .hero-cta .btn { flex: 1 1 100%; }
}
/* very small phones: language button becomes a globe icon so the top bar fits */
@media (max-width: 360px) {
  .lang { width: 42px; padding: 0; justify-content: center; gap: 0; font-size: 0; }
  .lang svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* filters: never overflow the page on small screens */
.filters { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { white-space: nowrap; flex-shrink: 0; }

/* ============ 404 ============ */
.nf { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 40px 16px; text-align: center; }
.nf .brand { margin-bottom: 36px; }
.nf-code { font-family: var(--font-head); font-size: clamp(5rem, 20vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.nf h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-top: 14px; }
.nf h1 span { display: block; margin-top: 8px; font-family: 'Readex Pro', var(--font-head); letter-spacing: 0; line-height: 1.4; }
.nf .hero-cta { justify-content: center; }

/* ============ Arabic (RTL) ============
   Latin words keep Inter/Sora; Arabic letters fall through to the Arabic fonts. */
[dir="rtl"] {
  --font: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-head: 'Sora', 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
}
[dir="rtl"] body *:not(.brand-mark) { letter-spacing: 0; }  /* tracking breaks Arabic letter joins */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.32; }
[dir="rtl"] .hero-title { line-height: 1.28; font-size: clamp(2.3rem, 5vw, 4.3rem); }
/* gradient text is painted only inside its box: give the dots under Arabic letters room */
[dir="rtl"] .grad { padding-bottom: .16em; margin-bottom: -.16em; }
[dir="rtl"] .eyebrow { font-size: .88rem; }
[dir="rtl"] .hero-sub, [dir="rtl"] .head p { line-height: 1.8; }
[dir="rtl"] .ic-arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg { transform: translateX(-3px); }
[dir="rtl"] .btn:hover .ic-arrow { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .progress { transform-origin: 100% 50%; }
[dir="rtl"] .grid-bg {
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
}
[dir="rtl"] .step::after { background: linear-gradient(270deg, var(--line-2), transparent); }
[dir="rtl"] .field select { background-position: left 16px center; }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
