/* Q8DM — styles */
:root {
  --font-en: "IBM Plex Sans", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  background: var(--bg, #0a0e15);
  color: var(--text, #e9edf4);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}
html[lang="ar"] body { font-family: var(--font-ar); }

.site { min-height: 100vh; }

a { color: inherit; text-decoration: none; }

/* ---------- brand mark ---------- */
.dm-mark {
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--onAccent);
  border-radius: 9px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--glow);
  flex: none;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: var(--navBg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--lineSoft);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-name {
  font-family: var(--font-mono); font-weight: 600; font-size: 17px;
  letter-spacing: 0.06em;
}
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a {
  font-size: 14.5px; color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  background: none; border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-ar); font-size: 13.5px;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.lang-toggle:hover { border-color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 10px;
  font-size: 15.5px; font-weight: 600; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--accent); color: var(--onAccent);
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 10vh, 130px) clamp(20px, 5vw, 64px) 0;
  background:
    radial-gradient(900px 480px at 75% -10%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%),
    repeating-linear-gradient(0deg, var(--lineSoft) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, var(--lineSoft) 0 1px, transparent 1px 72px);
}
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 34px;
}
.hero-h1 {
  display: flex; flex-direction: column;
  font-size: clamp(56px, 9.5vw, 124px);
  line-height: 1.0;
  font-weight: 700;
  letter-spacing: -0.025em;
}
html[lang="ar"] .hero-h1 { letter-spacing: 0; line-height: 1.25; }
.h1-accent { color: var(--accent); }
.hero-sub {
  max-width: 560px;
  margin-top: 30px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats {
  max-width: 1100px;
  margin: clamp(56px, 8vh, 96px) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.stat { background: var(--bg); padding: 26px 4px 30px; text-align: center; }
.stat-n {
  font-family: var(--font-mono); font-size: clamp(26px, 3vw, 36px);
  font-weight: 600; color: var(--accent);
}
.stat-l { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

/* ---------- sections ---------- */
.section {
  padding: clamp(72px, 10vh, 120px) clamp(20px, 5vw, 64px);
  max-width: 1228px; margin: 0 auto;
}
.section-alt {
  max-width: none;
  background: var(--bg2);
  border-top: 1px solid var(--lineSoft);
  border-bottom: 1px solid var(--lineSoft);
}
.section-alt > * { max-width: 1100px; margin-inline: auto; }
.kicker {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
html[lang="ar"] .kicker { letter-spacing: 0; }
.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700; letter-spacing: -0.015em;
  max-width: 720px;
  text-wrap: pretty;
}
html[lang="ar"] .section-title { letter-spacing: 0; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 16.5px; max-width: 600px; line-height: 1.6; }

/* ---------- services ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 48px;
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--lineSoft);
  border-radius: 16px;
  padding: 30px 28px 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.2s, border-color 0.2s;
}
.svc-card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--accent) 40%, transparent); }
.svc-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
}
.svc-name { font-size: 22px; font-weight: 700; }
.svc-desc { color: var(--muted); font-size: 15px; line-height: 1.6; }
.svc-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.svc-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px;
}
.svc-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent); flex: none;
}

/* ---------- process ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 48px;
}
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--lineSoft);
  border-radius: 16px; padding: 26px 24px;
}
.step-n {
  font-family: var(--font-mono); font-weight: 600; font-size: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--accent);
}
.step-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.step-body p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.process-note {
  margin-top: 30px;
  font-size: 15px; line-height: 1.7; color: var(--muted);
  max-width: 640px;
  padding: 18px 22px;
  border: 1px dashed color-mix(in oklab, var(--accent) 45%, transparent);
  border-radius: 12px;
}

/* ---------- work ---------- */
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 48px;
}
.work-grid-apps { grid-template-columns: repeat(4, 1fr); }
.work-tile {
  border: 1px solid var(--lineSoft); border-radius: 14px; overflow: hidden;
  background: var(--surface);
}
.work-shot {
  aspect-ratio: 9 / 15;
  overflow: hidden;
  background: #000;
}
.work-shot img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}
.work-ph {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background: repeating-linear-gradient(-45deg,
    var(--surface2) 0 14px, var(--surface) 14px 28px);
  padding: 16px;
}
.work-ph-label {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  text-align: center; direction: ltr;
}
html[lang="ar"] .work-ph-label { direction: rtl; }
.work-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; font-size: 14px;
  border-top: 1px solid var(--lineSoft);
}
.work-cap-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.work-cap-name { font-weight: 600; }
.work-cap-desc {
  font-size: 12px; color: var(--muted); line-height: 1.35;
  text-wrap: pretty;
}
.work-tag {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  padding: 3px 9px; border-radius: 999px;
  white-space: nowrap; flex: none;
}

/* ---------- training ---------- */
.train-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin-top: 48px;
}
.train-card {
  background: var(--surface);
  border: 1px solid var(--lineSoft);
  border-radius: 16px; padding: 30px 28px;
}
.train-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.train-card p { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.form {
  background: var(--surface);
  border: 1px solid var(--lineSoft);
  border-radius: 18px;
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
}
.form-success { align-items: center; text-align: center; padding: 56px 28px; gap: 10px; }
.success-mark {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--accent) 20%, transparent);
  color: var(--accent); font-size: 24px; font-weight: 700;
  margin-bottom: 6px;
}
.form-success p { color: var(--muted); line-height: 1.6; max-width: 320px; }

/* ---------- footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
  padding: 30px clamp(20px, 5vw, 64px) 40px;
  border-top: 1px solid var(--lineSoft);
  color: var(--muted); font-size: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-url { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .svc-grid, .steps, .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid-apps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .svc-grid, .steps, .work-grid, .train-grid { grid-template-columns: 1fr; }
  .work-grid-apps { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr; border: none; gap: 0; }
  .stat { text-align: start; border-bottom: 1px solid var(--lineSoft); padding: 18px 0; }
}
