/* =========================================================
   Lifetime Code 2027 — Design system
   Dark, precise, steel-blue (sampled from the LTC logo).
   Logical properties throughout so /ar/ (RTL) just works.
   ========================================================= */

:root {
  /* Brand — from the logo */
  --steel: #7BA3C8;          /* logo blue */
  --steel-hi: #A9CBEE;
  --steel-deep: #3F6E9E;
  --ice: #CFE6FF;
  --graphite: #4b4d52;
  --accent: #8DB9E6;
  --accent-soft: rgba(123, 163, 200, .14);
  --accent-line: rgba(141, 185, 230, .38);
  --grad: linear-gradient(100deg, #EAF3FD 0%, #A9CBEE 45%, #6E9CCB 100%);
  --grad-btn: linear-gradient(135deg, #A9CBEE 0%, #7BA3C8 55%, #5D8BBB 100%);

  /* Surfaces */
  --bg: #05070b;
  --bg-2: #080b11;
  --panel: #0d1118;
  --panel-2: #121823;
  --panel-3: #19212e;
  --line: rgba(190, 215, 245, .08);
  --line-2: rgba(190, 215, 245, .16);

  /* Text */
  --fg: #EEF3F9;
  --muted: #9AA7B8;
  --dim: #66727F;
  --ok: #4ade9b;

  /* Type */
  --display: "Sora", "Readex Pro", system-ui, sans-serif;
  --body: "Inter", "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Shape */
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .65);

  --header-h: 72px;
  --tabbar-h: 64px;
  --wrap: 1240px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  color-scheme: dark;
}
:root:lang(ar) {
  --display: "Readex Pro", system-ui, sans-serif;
  --body: "Readex Pro", system-ui, sans-serif;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
:lang(ar) body { line-height: 1.75; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--steel); color: #04070c; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; }
[dir="rtl"] .ic.flip { transform: scaleX(-1); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; position: relative; }
.section-sm { padding: 40px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; margin: 0; }
:lang(ar) :is(h1, h2, h3, h4, .display) { letter-spacing: 0; line-height: 1.3; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 7.4vw, 5.6rem); letter-spacing: -.04em; }
:lang(ar) h1 { font-size: clamp(2.2rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; }
p { margin: 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 62ch; line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-hi);
}
:lang(ar) .eyebrow { font-family: var(--body); letter-spacing: 0; font-size: .9rem; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.mono { font-family: var(--mono); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 40px; }
.section-head h2 { margin-top: 14px; max-width: 18ch; }
.section-head .lede { max-width: 46ch; }
@media (min-width: 900px) { .section-head { margin-bottom: 56px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: -.005em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
[dir="rtl"] .btn:hover .ic.flip { transform: scaleX(-1) translateX(3px); }
.btn-primary { background: var(--grad-btn); color: #061018; box-shadow: 0 10px 30px -10px rgba(123, 163, 200, .6), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(141, 185, 230, .75), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--line-2); color: var(--fg); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.btn-sm { height: 42px; padding: 0 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--steel-hi); }
.text-link:hover { color: var(--ice); }

/* ---------- Chips / tags ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); font-size: .84rem; color: var(--muted); white-space: nowrap; }
.chip .ic { width: 15px; height: 15px; color: var(--steel-hi); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(5, 7, 11, .72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom-color: var(--line); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { flex-shrink: 0; display: flex; align-items: center; }
.brand-img { height: 38px; width: auto; }
.main-nav { display: none; margin-inline-start: auto; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.main-nav a { padding: 8px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.main-nav a:hover { color: var(--fg); }
.main-nav a.active { color: var(--fg); background: var(--panel-3); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .2s, border-color .2s; }
.lang-btn:hover { color: var(--fg); border-color: var(--accent-line); }
.menu-btn, .icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); cursor: pointer; }
.menu-btn .ic, .icon-btn .ic { width: 20px; height: 20px; }
.hide-sm { display: none; }
@media (min-width: 720px) { .hide-sm { display: inline-flex; } }
@media (min-width: 1040px) {
  .main-nav { display: flex; }
  .header-actions { margin-inline-start: 0; }
  .menu-btn { display: none; }
}
@media (max-width: 420px) { .lang-btn span { display: none; } .lang-btn { width: 42px; padding: 0; justify-content: center; } .brand-img { height: 32px; } }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(2,4,8,.6); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 100%); background: var(--bg-2); border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom)); transform: translateX(100%); transition: transform .45s var(--ease); }
[dir="rtl"] .drawer-panel { transform: translateX(-100%); }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.drawer-top .brand-img { height: 32px; }
.drawer-nav { margin-top: 28px; display: flex; flex-direction: column; }
.drawer-nav a { display: flex; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 1.7rem; font-weight: 500; letter-spacing: -.02em; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s var(--ease), color .2s; transition-delay: calc(var(--i) * 45ms + 120ms); }
.drawer-nav a .n { font-family: var(--mono); font-size: .75rem; color: var(--dim); letter-spacing: .1em; }
.drawer-nav a .ic { margin-inline-start: auto; color: var(--dim); }
.drawer-nav a.active { color: var(--steel-hi); }
.drawer.open .drawer-nav a { opacity: 1; transform: none; }
.drawer-foot { margin-top: auto; display: grid; gap: 16px; }
.drawer-meta { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: .92rem; }

/* ---------- Tab bar (phones) ---------- */
.tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(8, 11, 17, .86); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 500; color: var(--dim); position: relative; }
.tabbar a .ic { width: 22px; height: 22px; }
.tabbar a.active { color: var(--steel-hi); }
.tabbar a.active::before { content: ""; position: absolute; top: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--steel-hi); box-shadow: 0 0 12px var(--steel); }
body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { .tabbar { display: none; } body { padding-bottom: 0; } }

/* ---------- Ambient background ---------- */
.ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient .grid-bg { position: absolute; inset: -1px; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }
.ambient .orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.ambient .o1 { width: 620px; height: 620px; background: radial-gradient(circle, rgba(123,163,200,.55), transparent 65%); top: -220px; inset-inline-end: -160px; animation: drift 18s ease-in-out infinite alternate; }
.ambient .o2 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(63,110,158,.6), transparent 65%); top: 260px; inset-inline-start: -220px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.ambient .o3 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(207,230,255,.25), transparent 65%); top: 40%; inset-inline-start: 45%; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }
.noise::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 56px; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 40px); }
.hero > .wrap { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; }
@media (min-width: 1040px) { .hero { padding-bottom: 96px; padding-top: calc(var(--header-h) + 72px); } .hero > .wrap { grid-template-columns: 1.08fr .92fr; gap: 48px; } }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: .85rem; color: var(--muted); }
[dir="rtl"] .hero-badge { padding: 6px 6px 6px 14px; }
.hero-badge b { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--steel-hi); font-weight: 600; font-size: .78rem; }
.hero-badge b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(74,222,155,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(74,222,155,0); } }
.hero h1 { margin: 22px 0 24px; }
.hero h1 .line { display: block; }
.hero .lede { margin-bottom: 34px; }
.hero-proof { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; color: var(--muted); font-size: .9rem; }
.hero-proof .faces { display: flex; }
.hero-proof .faces .logo-tile { width: 40px; height: 40px; border-radius: 50%; margin-inline-start: -10px; border: 2px solid var(--bg); padding: 7px; }
.hero-proof .faces .logo-tile:first-child { margin-inline-start: 0; }
.hero-proof b { color: var(--fg); }

/* Hero visual: terminal + floating product cards */
.hero-visual { position: relative; padding: 44px 0 64px; }
@media (min-width: 1040px) { .hero-visual { padding: 70px 0 90px; } }
.term { position: relative; z-index: 2; border-radius: var(--r); background: linear-gradient(180deg, rgba(20,27,38,.92), rgba(12,16,23,.92)); border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.02) inset; backdrop-filter: blur(14px); overflow: hidden; max-width: 520px; margin-inline: auto; direction: ltr; text-align: left; }
.term-top { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.term-top i { width: 11px; height: 11px; border-radius: 50%; background: #3a4352; }
.term-top i:nth-child(1) { background: #ff6159; } .term-top i:nth-child(2) { background: #ffbd2e; } .term-top i:nth-child(3) { background: #28c941; }
.term-top span { margin-inline-start: 10px; font-family: var(--mono); font-size: .75rem; color: var(--dim); }
.term-body { padding: 18px 18px 22px; font-family: var(--mono); font-size: .8rem; line-height: 1.85; min-height: 312px; color: #c6d3e2; }
@media (min-width: 560px) { .term-body { min-height: 262px; } }
@media (min-width: 560px) { .term-body { font-size: .84rem; } }
.term-body .ln { white-space: pre-wrap; word-break: break-word; }
.term-body .cmd::before { content: "❯ "; color: var(--steel-hi); }
.term-body .cmd { color: var(--fg); }
.term-body .ok { color: var(--ok); }
.term-body .dim { color: var(--dim); }
.term-body .hl { color: var(--steel-hi); }
.term-body .ln:last-child::after { content: ""; display: inline-block; width: 8px; height: 1.05em; background: var(--steel-hi); vertical-align: -2px; margin-inline-start: 3px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.float { position: absolute; z-index: 3; border-radius: 16px; background: rgba(15, 20, 29, .82); border: 1px solid var(--line-2); backdrop-filter: blur(14px); box-shadow: var(--shadow); padding: 14px; display: flex; gap: 12px; align-items: center; font-size: .85rem; animation: bob 7s ease-in-out infinite; }
.float b { display: block; font-size: .92rem; }
.float small { color: var(--muted); font-size: .78rem; }
.float .logo-tile { width: 42px; height: 42px; border-radius: 12px; padding: 6px; }
.float.f1 { bottom: 0; inset-inline-start: 0; }
.float.f2 { top: 0; inset-inline-end: 0; animation-delay: -2.5s; }
.float.f3 { bottom: 0; inset-inline-end: 0; animation-delay: -4.5s; }
.float .meter { width: 100px; height: 6px; border-radius: 6px; background: var(--panel-3); overflow: hidden; margin-top: 6px; }
.float .meter i { display: block; height: 100%; width: 86%; background: var(--grad-btn); border-radius: inherit; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 559px) { .float.f3 { display: none; } .float { padding: 10px; } }
@media (min-width: 1040px) { .float.f1 { inset-inline-start: -36px; } .float.f2 { inset-inline-end: -20px; } }

/* ---------- Marquee ---------- */
.marquee-sec { border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); padding: 28px 0; position: relative; }
.marquee-sec .label { text-align: center; font-size: .84rem; color: var(--dim); margin-bottom: 20px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-track { display: flex; gap: 14px; width: max-content; margin: 0; padding: 0; list-style: none; animation: mq 46s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
[dir="rtl"] .mq-track { animation-name: mq-rtl; }
@keyframes mq { to { transform: translateX(calc(-50% - 7px)); } }
@keyframes mq-rtl { to { transform: translateX(calc(50% + 7px)); } }
.mq-track li { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); white-space: nowrap; }
[dir="rtl"] .mq-track li { padding: 8px 8px 8px 18px; }
.mq-track .logo-tile { width: 64px; height: 44px; border-radius: 999px; padding: 7px 10px; }
.mq-name { font-weight: 500; font-size: .95rem; color: var(--muted); }

/* ---------- Logo tile ---------- */
.logo-tile { display: inline-grid; place-items: center; flex-shrink: 0; background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--c) 30%, var(--ink)), var(--ink)); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.logo-tile.on-light { background: #fbf8f4; }
.logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- Cards ---------- */
.card { position: relative; border-radius: var(--r); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); overflow: hidden; }
.card-pad { padding: 28px; }
@media (min-width: 720px) { .card-pad { padding: 34px; } }
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(141,185,230,.12), transparent 45%); }
.spot:hover::before { opacity: 1; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(169,203,238,.5), transparent 50%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.spot:hover::after { opacity: 1; }

/* ---------- Services bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(6, 1fr); } .bento .b-lg { grid-column: span 3; } .bento .b-md { grid-column: span 2; } .bento .b-wide { grid-column: span 4; } }
.svc { display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.svc .svc-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--steel-hi); }
.svc .svc-ic .ic { width: 24px; height: 24px; }
.svc h3 { font-size: 1.4rem; margin-top: 8px; }
.svc p { color: var(--muted); }
.svc .chips { margin-top: auto; padding-top: 10px; }
.svc .num { position: absolute; top: 26px; inset-inline-end: 28px; font-family: var(--mono); font-size: .75rem; color: var(--dim); }
.svc-art { margin-top: auto; }

/* mini art inside bento tiles */
.art-devices { display: flex; align-items: flex-end; gap: 12px; height: 120px; margin-top: auto; }
.art-devices .d { border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel-3), var(--panel)); position: relative; overflow: hidden; }
.art-devices .d::before { content: ""; position: absolute; inset: 10px; border-radius: 6px; background: linear-gradient(160deg, rgba(141,185,230,.35), rgba(63,110,158,.08)); }
.art-devices .d.ph { width: 62px; height: 118px; border-radius: 16px; }
.art-devices .d.tb { width: 120px; height: 90px; }
.art-devices .d.lp { flex: 1; height: 104px; max-width: 220px; }
.art-ai { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.art-ai span { padding: 9px 13px; border-radius: 12px; background: var(--panel-3); border: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.art-ai span.me { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ice); margin-inline-start: auto; }

/* ---------- Work cards ---------- */
.work-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .work-grid.three { grid-template-columns: repeat(3, 1fr); } }
.work-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), border-color .3s; isolation: isolate; }
.work-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.work-visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; background: radial-gradient(120% 100% at 70% 0%, color-mix(in srgb, var(--c) 42%, var(--ink)) 0%, var(--ink) 70%); }
.work-card.big .work-visual { aspect-ratio: 16 / 11; }
.work-visual .glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--c); filter: blur(90px); opacity: .35; bottom: -40%; inset-inline-start: 15%; transition: opacity .5s; }
.work-card:hover .work-visual .glow { opacity: .55; }
.work-img { position: relative; max-height: 92%; max-width: 88%; width: auto; object-fit: contain; align-self: end; transition: transform .8s var(--ease); filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.work-card:hover .work-img { transform: scale(1.035) translateY(-4px); }
.work-meta { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work-meta .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.work-meta .tag { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); color: color-mix(in srgb, var(--c) 55%, #fff); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.work-meta .plat { font-size: .78rem; color: var(--dim); font-family: var(--mono); }
:lang(ar) .work-meta .plat { font-family: var(--body); }
.work-meta h3 { font-size: 1.45rem; }
.work-meta p { color: var(--muted); }
.work-meta .more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--fg); }
.work-meta .more .ic { transition: transform .3s var(--ease); }
.work-card:hover .more .ic { transform: translateX(4px); }
[dir="rtl"] .work-card:hover .more .ic { transform: scaleX(-1) translateX(4px); }

/* ---------- Mockups (CSS-built screens) ---------- */
.mock { position: relative; width: 84%; align-self: end; margin-bottom: -2px; transition: transform .8s var(--ease); }
.work-card:hover .mock { transform: translateY(-6px); }
.mock-browser { border-radius: 14px 14px 0 0; background: #0f141c; border: 1px solid rgba(255,255,255,.12); border-bottom: 0; box-shadow: 0 -10px 60px -10px rgba(0,0,0,.5); overflow: hidden; }
.mock .chrome { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #151b25; border-bottom: 1px solid rgba(255,255,255,.06); }
.mock .chrome i { width: 8px; height: 8px; border-radius: 50%; background: #2e3644; }
.mock .chrome span { margin-inline-start: 10px; flex: 1; font-family: var(--mono); font-size: .66rem; color: var(--dim); background: #0c1118; border-radius: 6px; padding: 3px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock .screen { padding: 12px; display: grid; gap: 10px; aspect-ratio: 16 / 9.5; align-content: start; }
.m-hero { height: 30%; min-height: 54px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(120deg, var(--ink), color-mix(in srgb, var(--c) 45%, var(--ink))); }
.m-hero.light { background: #f6f1ea; }
.m-hero img { max-height: 70%; max-width: 50%; object-fit: contain; }
.m-search { display: flex; align-items: center; gap: 8px; height: 26px; border-radius: 8px; background: #19212e; padding: 0 10px; color: var(--dim); }
.m-search .ic { width: 12px; height: 12px; }
.m-search i { height: 6px; width: 40%; border-radius: 4px; background: #2a3342; }
.m-books { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.m-books span { aspect-ratio: 2 / 3; border-radius: 4px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #fff 0%), color-mix(in srgb, var(--c) 30%, #0f141c)); box-shadow: inset 3px 0 0 rgba(0,0,0,.25); }
.m-books span:nth-child(2n) { background: linear-gradient(160deg, #e7ddd0, #a99a86); }
.m-books span:nth-child(3n) { background: linear-gradient(160deg, #2f3d52, #19212e); }
.m-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.m-cards span { border-radius: 8px; background: #19212e; padding: 6px; display: grid; gap: 5px; }
.m-cards b { aspect-ratio: 4 / 3; border-radius: 5px; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 60%, #19212e), #2a3342); }
.m-cards span:nth-child(2) b { background: linear-gradient(140deg, #2DB4B8, #19212e); }
.m-cards i { height: 5px; border-radius: 3px; background: #2a3342; }
.m-cards i + i { width: 60%; background: color-mix(in srgb, var(--c) 55%, #2a3342); }
.m-portal { display: grid; grid-template-columns: 26% 1fr; gap: 8px; }
.m-portal .side, .m-portal .rows { display: grid; gap: 7px; align-content: start; }
.m-portal .side { background: #151b25; border-radius: 8px; padding: 8px; }
.m-portal i { display: block; height: 6px; width: var(--w); border-radius: 3px; background: #2a3342; }
.m-portal .side i:first-child { background: var(--c); }
.m-portal .main { display: grid; gap: 8px; align-content: start; }
.m-portal .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.m-portal .kpis span { height: 34px; border-radius: 7px; background: #19212e; border-top: 2px solid var(--c); }
.m-portal .rows { background: #151b25; border-radius: 8px; padding: 9px; }

.mock-phone { width: 46%; max-width: 230px; }
.mock-phone .phone { border-radius: 30px 30px 0 0; background: #0b1016; border: 6px solid #1d2430; border-bottom: 0; padding: 26px 12px 16px; aspect-ratio: 9 / 15; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -10px 60px -10px rgba(0,0,0,.6); position: relative; }
.mock-phone .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 34%; height: 12px; border-radius: 10px; background: #1d2430; }
.chat-top { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.chat-top img { width: 30px; height: 30px; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain; }
.chat-top b { display: block; font-size: .74rem; }
.chat-top small { display: block; font-size: .62rem; color: var(--ok); }
.chat-body { display: flex; flex-direction: column; gap: 7px; font-size: .66rem; line-height: 1.4; }
.chat-body p { max-width: 84%; padding: 7px 10px; border-radius: 12px; }
.chat-body .in { background: #19212e; align-self: flex-start; border-end-start-radius: 3px; }
.chat-body .out { background: color-mix(in srgb, var(--c) 70%, #0b1016); color: #fff; align-self: flex-end; border-end-end-radius: 3px; }
.chat-body .typing { display: flex; gap: 3px; background: #19212e; align-self: flex-start; padding: 9px 11px; }
.chat-body .typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.chat-body .typing i:nth-child(2) { animation-delay: .15s; } .chat-body .typing i:nth-child(3) { animation-delay: .3s; }
.chat-input { margin-top: auto; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 5px 0 12px; border-radius: 999px; background: #19212e; font-size: .64rem; color: var(--dim); }
[dir="rtl"] .chat-input { padding: 0 12px 0 5px; }
.chat-input span { flex: 1; }
.chat-input b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; }
.chat-input .ic { width: 12px; height: 12px; }
@keyframes typing { 30% { transform: translateY(-3px); opacity: .5; } }

/* ---------- Clients wall ---------- */
.client-wall { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 720px) { .client-wall { grid-template-columns: repeat(3, 1fr); } }
.client-cell { position: relative; background: var(--bg); padding: 26px 18px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; transition: background .3s; min-height: 210px; }
.client-cell:hover { background: var(--panel); }
.client-cell .logo-tile { width: 128px; height: 84px; border-radius: 22px; padding: 12px 14px; transition: transform .5s var(--ease), box-shadow .5s; }
.client-cell:hover .logo-tile { transform: translateY(-3px) scale(1.04); box-shadow: 0 20px 40px -14px color-mix(in srgb, var(--c) 70%, transparent); }
.client-cell b { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.client-cell small { color: var(--dim); font-size: .8rem; font-family: var(--mono); }
:lang(ar) .client-cell small { font-family: var(--body); }
.client-cell .arrow { position: absolute; top: 16px; inset-inline-end: 16px; color: var(--dim); opacity: 0; transition: opacity .3s, transform .3s; }
.client-cell:hover .arrow { opacity: 1; transform: translate(2px, -2px); }
@media (min-width: 720px) { .client-cell { padding: 36px 24px 30px; min-height: 240px; } .client-cell .logo-tile { width: 150px; height: 96px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg-2); padding: 28px 22px; }
.stat .v { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
:lang(ar) .stat .v { letter-spacing: 0; }
.stat .k { margin-top: 10px; color: var(--muted); font-size: .92rem; }
@media (min-width: 720px) { .stat { padding: 40px 32px; } }

/* ---------- Process ---------- */
.process { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 900px) { .process { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; padding: 26px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.step .n { font-family: var(--mono); font-size: .78rem; color: var(--steel-hi); }
.step h3 { margin: 30px 0 10px; font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .93rem; }
.step::after { content: ""; position: absolute; top: 34px; inset-inline-start: 56px; inset-inline-end: 22px; height: 1px; background: linear-gradient(90deg, var(--accent-line), transparent); }
[dir="rtl"] .step::after { background: linear-gradient(-90deg, var(--accent-line), transparent); }

/* ---------- Stack ---------- */
.stack-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.stack-cloud span { padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-family: var(--mono); font-size: .88rem; color: var(--muted); transition: color .2s, border-color .2s, transform .3s var(--ease); direction: ltr; }
.stack-cloud span:hover { color: var(--ice); border-color: var(--accent-line); transform: translateY(-2px); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 56px) 0 56px; }
@media (min-width: 900px) { .page-hero { padding: calc(var(--header-h) + 96px) 0 88px; } }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.8rem); margin: 20px 0 22px; max-width: 16ch; }
:lang(ar) .page-hero h1 { font-size: clamp(2.1rem, 5.6vw, 4rem); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--dim); }
.crumbs a:hover { color: var(--fg); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex-shrink: 0; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-weight: 500; font-size: .9rem; cursor: pointer; transition: all .2s; }
.filters button:hover { color: var(--fg); }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters button .c { font-family: var(--mono); font-size: .72rem; opacity: .6; margin-inline-start: 6px; }
.work-card.is-hidden { display: none; }

/* ---------- Case study ---------- */
.case-hero { position: relative; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 48px) 0 0; background: radial-gradient(90% 70% at 70% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), var(--bg); }
.case-hero .wrap { position: relative; z-index: 1; display: grid; gap: 40px; }
@media (min-width: 1040px) { .case-hero .wrap { grid-template-columns: 1fr 1fr; align-items: end; padding-top: 40px; } }
.case-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); margin: 18px 0 20px; }
:lang(ar) .case-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.case-id { display: flex; align-items: center; gap: 14px; }
.case-id .logo-tile { width: 92px; height: 60px; border-radius: 16px; padding: 8px 10px; }
.case-id b { display: block; font-size: 1.05rem; }
.case-id small { color: var(--muted); }
.case-stage { position: relative; min-height: 340px; display: grid; place-items: end center; }
.case-stage .glow { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: var(--c); filter: blur(110px); opacity: .32; bottom: -30%; }
.case-stage .work-img { max-height: 520px; max-width: 100%; }
.case-stage .mock { width: 100%; max-width: 600px; }
.case-stage .mock-phone { width: 58%; max-width: 300px; }
.case-facts-bar { border-block: 1px solid var(--line); }
.case-facts { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); background: var(--line); }
@media (min-width: 900px) { .case-facts { grid-template-columns: repeat(4, 1fr); } }
.case-facts div { background: var(--bg); padding: 22px 20px; }
.case-facts div:first-child { padding-inline-start: 0; }
@media (max-width: 899px) { .case-facts div:nth-child(odd) { padding-inline-start: 0; } }
.case-facts span { display: block; font-size: .78rem; color: var(--dim); margin-bottom: 6px; }
.case-facts b { font-weight: 500; }
.case-facts a { color: var(--steel-hi); display: inline-flex; gap: 6px; align-items: center; }
.case-body { display: grid; gap: 28px; }
@media (min-width: 900px) { .case-body { grid-template-columns: 1fr 1fr; gap: 20px; } }
.case-body .card h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 14px 0 14px; }
.case-body .card p { color: var(--muted); font-size: 1.05rem; }
.feature-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.feature .ck { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--steel)) 18%, transparent); color: color-mix(in srgb, var(--c, var(--steel)) 60%, #fff); }
.feature .ck .ic { width: 16px; height: 16px; }
.feature b { font-weight: 500; }
.case-poster { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(100% 100% at 50% 0%, color-mix(in srgb, var(--c) 30%, var(--ink)), var(--ink)); display: grid; place-items: center; min-height: 320px; }
.case-poster img { width: 100%; height: auto; max-height: 720px; object-fit: contain; }
.case-poster.tall img { max-height: 620px; width: auto; padding: 32px 0 0; }
.next-case { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px; border-radius: var(--r-lg); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c) 35%, transparent), transparent 60%), var(--panel); border: 1px solid var(--line); transition: border-color .3s; }
.next-case:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.next-case small { color: var(--muted); }
.next-case h3 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); margin-top: 6px; }
.next-case .logo-tile { width: 112px; height: 72px; border-radius: 20px; padding: 10px 12px; flex-shrink: 0; }

/* ---------- Team ---------- */
.team { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .team { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(4, 1fr); } }
.member { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), border-color .3s; }
.member:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.member .ph { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--panel-2); }
.member .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.member:hover .ph img { transform: scale(1.04); }
.member .ph .tag { position: absolute; inset-inline-start: 16px; bottom: 14px; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--ice); text-transform: uppercase; background: rgba(5,7,11,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line-2); }
:lang(ar) .member .ph .tag { font-family: var(--body); letter-spacing: 0; font-size: .78rem; }
.member .bd { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.member h3 { font-size: 1.35rem; }
.member .role { color: var(--steel-hi); font-size: .9rem; font-weight: 500; }
.member p { color: var(--muted); font-size: .93rem; }
.member .chips { margin-top: 4px; }
.member .chip { font-size: .76rem; padding: 5px 10px; }
.member .links { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.member .links .ic { width: 16px; height: 16px; }
.founders-band { display: grid; gap: 22px; align-items: center; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: radial-gradient(120% 160% at 0% 0%, rgba(123,163,200,.14), transparent 60%), var(--panel); }
[dir="rtl"] .founders-band { background: radial-gradient(120% 160% at 100% 0%, rgba(123,163,200,.14), transparent 60%), var(--panel); }
@media (min-width: 860px) { .founders-band { grid-template-columns: auto 1fr auto; padding: 30px 34px; gap: 30px; } }
.founders-band .faces { display: flex; }
.founders-band .faces img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--panel); margin-inline-start: -16px; }
.founders-band .faces img:first-child { margin-inline-start: 0; }
.founders-band h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 6px; }
.founders-band p { color: var(--muted); }

/* ---------- About ---------- */
.quote { font-family: var(--display); font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 500; max-width: 26ch; }
:lang(ar) .quote { letter-spacing: 0; line-height: 1.5; }
.quote-by { margin-top: 22px; display: flex; align-items: center; gap: 12px; color: var(--muted); }
.quote-by b { color: var(--fg); }
.timeline { position: relative; display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .tl { grid-template-columns: 180px 1fr 1fr; gap: 32px; padding: 32px 0; } }
.tl .y { font-family: var(--mono); color: var(--steel-hi); font-size: .95rem; }
.tl h3 { font-size: 1.25rem; }
.tl p { color: var(--muted); grid-column: 2; }
@media (min-width: 720px) { .tl p { grid-column: 3; } }
.award { display: flex; gap: 20px; align-items: flex-start; }
.award .medal { width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(140deg, #f3d27a, #b7862f); color: #2a1d05; box-shadow: 0 10px 30px -10px rgba(243,210,122,.6); }
.award .medal .ic { width: 26px; height: 26px; }
.award h3 { font-size: 1.15rem; margin-bottom: 8px; }
.award p { color: var(--muted); font-size: .95rem; }
.values { counter-reset: v; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 1040px) { .contact-grid { grid-template-columns: 1.25fr .75fr; } }
.form { display: grid; gap: 16px; }
.form .two { display: grid; gap: 16px; }
@media (min-width: 720px) { .form .two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .86rem; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; height: 54px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field textarea { height: 150px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick label { margin: 0; cursor: pointer; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; color: var(--muted); transition: all .2s; }
.pick input:checked + label { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ice); }
.pick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: .85rem; color: var(--dim); }
.form-status { padding: 14px 16px; border-radius: 14px; font-size: .95rem; }
.form-status.ok { background: rgba(74,222,155,.1); border: 1px solid rgba(74,222,155,.35); color: #b8f5d7; }
.form-status.err { background: rgba(255,97,89,.1); border: 1px solid rgba(255,97,89,.35); color: #ffc9c5; }
.reach { display: grid; gap: 12px; align-content: start; }
.reach a, .reach div.r { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s; }
.reach a:hover { border-color: var(--accent-line); }
.reach .ri { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: var(--accent-soft); color: var(--steel-hi); }
.reach small { display: block; color: var(--dim); font-size: .8rem; }
.reach b { font-weight: 500; word-break: break-word; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 500; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.3rem; color: var(--steel-hi); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 70ch; }

/* ---------- Service detail rows ---------- */
.svc-row { display: grid; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .svc-row { grid-template-columns: 80px 1fr 1fr; gap: 40px; padding: 56px 0; } }
.svc-row .n { font-family: var(--mono); color: var(--steel-hi); font-size: .85rem; }
.svc-row h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.svc-row .muted { font-size: 1.05rem; }
.svc-row ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc-row li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.svc-row li .ic { color: var(--steel-hi); margin-top: 4px; }
.svc-row .used { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.svc-row .used a { display: inline-flex; }
.svc-row .used .logo-tile { width: 64px; height: 42px; border-radius: 12px; padding: 6px 8px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); overflow: hidden; }
.footer-cta { padding: 72px 0 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; border-bottom: 1px solid var(--line); }
.footer-cta h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); max-width: 13ch; letter-spacing: -.04em; }
:lang(ar) .footer-cta h2 { letter-spacing: 0; }
.site-footer .cols { display: grid; gap: 36px; padding: 56px 0 40px; grid-template-columns: 1fr 1fr; }
.site-footer .cols .about { grid-column: 1 / -1; }
@media (min-width: 900px) { .site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } .site-footer .cols .about { grid-column: auto; } }
.footer-logo { width: 74px; height: auto; margin-bottom: 18px; }
.site-footer .about p { color: var(--muted); max-width: 38ch; font-size: .95rem; }
.site-footer h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 16px; }
:lang(ar) .site-footer h4 { font-family: var(--body); letter-spacing: 0; font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.site-footer ul a:hover { color: var(--fg); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.contact-list .ic { margin-top: 4px; color: var(--steel-hi); }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); transition: color .2s, border-color .2s; }
.social a:hover { color: var(--fg); border-color: var(--accent-line); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 0 30px; border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.1s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.nf .code { font-family: var(--mono); font-size: clamp(5rem, 20vw, 11rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.06em; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.center .section-head, .section-head.center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.mt-0 { margin-top: 0; }
.divider { height: 1px; background: var(--line); }
