/* CoreCode — light theme
   White, clean, professional — the way most software companies present themselves.
   Brand identity preserved: electric blue accent, per-product color stories.
   The logo (which is rendered for dark backgrounds) sits inside a dark "showcase pill"
   so it still looks right.
*/

:root {
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-soft-2: #eef2f7;
  --bg-dark: #0b0e15;            /* used for brand-showcase pills only */
  --line: rgba(10, 12, 21, 0.08);
  --line-strong: rgba(10, 12, 21, 0.16);
  --text: #0b0e15;
  --text-2: #4a5260;
  --muted: #6b7280;
  --muted-2: #9aa1ad;
  --blue: #0061ff;
  --blue-2: #1e90ff;
  --blue-3: #38a6ff;
  --blue-soft: rgba(30, 144, 255, 0.12);
  --blue-faint: rgba(30, 144, 255, 0.06);
  --radius: 16px;
  --radius-lg: 24px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-card: 0 1px 2px rgba(10, 12, 21, 0.04), 0 8px 30px -8px rgba(10, 12, 21, 0.08);
  --shadow-lg: 0 30px 60px -20px rgba(10, 12, 21, 0.18), 0 0 0 1px rgba(10, 12, 21, 0.04);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ============================================================
   NAV
============================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.brand .wordmark {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.brand .b1 { color: var(--text); }
.brand .b2 {
  background: linear-gradient(95deg, var(--text) 0%, var(--blue) 60%, var(--blue-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-2);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 10px 18px;
  background: var(--text);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }

/* ============================================================
   HERO
============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 140px 32px 80px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1000px 600px at 20% 20%, rgba(30, 144, 255, 0.12), transparent 60%),
    radial-gradient(800px 500px at 80% 70%, rgba(140, 80, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(10, 12, 21, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 12, 21, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 30%, transparent 75%);
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.05); }
}

/* Hero mark — logo sits directly on the light page (no dark pill).
   The hero uses logo-light.png which has the white parts recolored to dark navy. */
.hero-mark {
  width: 200px;
  height: 200px;
  margin-bottom: 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(30, 144, 255, 0.25));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 28px;
  font-weight: 500;
  box-shadow: var(--shadow-card);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.hero h1 {
  font-size: clamp(46px, 8.5vw, 100px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 26px;
  max-width: 1100px;
  color: var(--text);
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--text) 0%, var(--text) 35%, var(--blue) 70%, var(--blue-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-lede {
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--text-2);
  line-height: 1.5;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15.5px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(10, 12, 21, 0.35);
}
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(30, 144, 255, 0.5); }

.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--text); }

.btn-arrow::after { content: "→"; transition: transform 0.15s ease; }
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(4px); }

.hero-stats {
  margin-top: 90px;
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-2);
  font-size: 14px;
}

.hero-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-stats .stat-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.hero-stats .stat-num.gradient {
  background: linear-gradient(135deg, var(--text) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stats .stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* ============================================================
   SECTION
============================================================ */

section { padding: 120px 32px; position: relative; }

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 22px;
  max-width: 820px;
  color: var(--text);
}

.section-sub {
  font-size: 19px;
  color: var(--text-2);
  max-width: 640px;
  margin: 0 0 60px;
  line-height: 1.6;
}

/* ============================================================
   FEATURE — alternating big product showcases
============================================================ */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}

.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-art  { order: 1; }

.feature-text .step {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--blue);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  display: block;
  text-transform: uppercase;
  font-weight: 600;
}

.feature-text h3 {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 18px;
  color: var(--text);
}

.feature-text .arabic {
  display: block;
  font-size: 22px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 6px;
}

.feature-text .pitch {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 26px;
  max-width: 480px;
}

.feature-text .benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-text .benefit-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 15.5px;
}

.feature-text .benefit-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, var(--blue)), var(--accent-2, var(--blue-2)));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--accent-glow, rgba(30, 144, 255, 0.3));
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  transition: transform 0.15s ease, background 0.15s ease;
}
.feature-cta:hover { background: var(--accent, var(--blue)); border-color: var(--accent, var(--blue)); transform: translateY(-2px); }
.feature-cta::after { content: "→"; transition: transform 0.15s ease; }
.feature-cta:hover::after { transform: translateX(4px); }

/* feature-art — the big visual card (now holds a generated product image) */
.feature-art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
  background: var(--bg-soft);
}
.feature-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-art:hover { transform: translateY(-6px); }

/* per-product accent CSS variables — still used by benefit-list bullets and CTA hover */
.feature.qas       { --accent: #1e90ff; --accent-2: #6c5ce7; --accent-glow: rgba(108, 92, 231, 0.4); }
.feature.tarasl    { --accent: #ec4899; --accent-2: #3b82f6; --accent-glow: rgba(236, 72, 153, 0.4); }
.feature.dostor    { --accent: #f59e0b; --accent-2: #fbbf24; --accent-glow: rgba(245, 158, 11, 0.4); }
.feature.tathker   { --accent: #10b981; --accent-2: #34d399; --accent-glow: rgba(16, 185, 129, 0.4); }
.feature.geem      { --accent: #ef4444; --accent-2: #f59e0b; --accent-glow: rgba(239, 68, 68, 0.4); }

/* ============================================================
   SMALL PRODUCTS GRID
============================================================ */

.products-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.mini {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.mini::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 50% 0%, var(--mini-accent, var(--blue-faint)), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.mini:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.mini:hover::before { opacity: 1; }

.mini-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--mini-c1, var(--blue)), var(--mini-c2, var(--blue-2)));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 24px -8px var(--mini-c1, var(--blue));
}

.mini-name { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.mini-desc { color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 0; flex: 1; }

.mini-link {
  margin-top: auto;
  color: var(--mini-c1, var(--blue));
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mini-link::after { content: "→"; transition: transform 0.15s ease; }
.mini:hover .mini-link::after { transform: translateX(4px); }

/* ============================================================
   PHILOSOPHY
============================================================ */

.philosophy {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pillar h4 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.pillar p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}

.pillar .pillar-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 14px;
  display: block;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* ============================================================
   CTA
============================================================ */

.cta-section {
  background:
    radial-gradient(900px 600px at 50% 50%, rgba(30, 144, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--text);
}

.cta-section p {
  font-size: 20px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

/* ============================================================
   FOOTER
============================================================ */

footer {
  padding: 50px 32px 60px;
  color: var(--text-2);
  font-size: 14px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer .brand { font-size: 16px; opacity: 1; }

footer a { color: var(--text-2); margin-left: 22px; }
footer a:hover { color: var(--text); }

/* ============================================================
   PROJECT (subpage)
============================================================ */

.proj {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 32px 60px;
}

.proj-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.proj-back:hover { color: var(--text); }
.proj-back::before { content: "←"; }

.proj-head h1 {
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 12px;
  color: var(--text);
}

.proj-head .arabic {
  display: block;
  font-size: 26px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 8px;
}

.proj-tagline {
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--text-2);
  margin: 0 0 30px;
  line-height: 1.4;
  max-width: 700px;
}

.proj-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 50px;
  box-shadow: var(--shadow-card);
}
.proj-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.proj-status.live .dot { background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.6); }
.proj-status.beta .dot { background: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.6); }
.proj-status.dev  .dot { background: var(--blue); box-shadow: 0 0 10px var(--blue-soft); }

.proj-section { margin: 50px 0; }
.proj-section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--text);
}
.proj-section p, .proj-section li {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
}
.proj-section strong { color: var(--text); }
.proj-section ul { padding-left: 22px; }
.proj-section li::marker { color: var(--blue); }

.proj-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 30px;
}
.proj-fact {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}
.proj-fact .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; font-weight: 600; }
.proj-fact .value { color: var(--text); font-size: 17px; font-weight: 600; }

.subproducts { display: grid; grid-template-columns: 1fr; gap: 12px; }
.subproduct {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.subproduct .sp-name { font-weight: 700; font-size: 17px; min-width: 110px; color: var(--text); }
.subproduct .sp-ar { color: var(--muted); font-size: 14px; }
.subproduct .sp-desc { color: var(--text-2); font-size: 15.5px; flex: 1; min-width: 240px; }

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 50px; padding: 60px 0; }
  .feature.reverse .feature-text,
  .feature.reverse .feature-art { order: initial; }
  .pillars { grid-template-columns: 1fr; }
  .hero-stats { gap: 36px; margin-top: 70px; }
  .hero-stats .stat-num { font-size: 30px; }
}

@media (max-width: 760px) {
  .nav { padding: 14px 18px; }
  .nav-links { display: none; }
  .nav-cta { padding: 9px 14px; font-size: 13.5px; }
  .brand { font-size: 18px; }

  section { padding: 80px 20px; }
  .hero { padding: 100px 22px 60px; min-height: auto; }
  .hero-mark { width: 140px; height: 140px; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); margin-bottom: 20px; }
  .hero-lede { font-size: 17px; margin-bottom: 32px; }
  .hero-stats { margin-top: 56px; }
  .hero-stats .stat-num { font-size: 28px; }
  .hero-stats .stat-label { font-size: 11px; }

  .btn { padding: 14px 22px; font-size: 15px; }

  .feature-text h3 { font-size: 36px; }
  .feature-text .arabic { font-size: 18px; }

  .proj { padding: 100px 20px 40px; }
  .proj-head h1 { font-size: 48px; }
  .proj-head .arabic { font-size: 22px; }
  .proj-tagline { font-size: 18px; }

  footer { padding: 40px 20px; }
  footer .container { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 400px) {
  .nav-cta { display: none; }
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   LANGUAGE TOGGLE
============================================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: #fff;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  margin-left: 10px;
}
.lang-toggle:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ============================================================
   RTL / ARABIC
============================================================ */
html[dir="rtl"] body {
  font-family: "Tajawal", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* Arabic typography breathes — tighter letter-spacing of Latin doesn't suit it */
html[dir="rtl"] .hero h1,
html[dir="rtl"] .section-title,
html[dir="rtl"] .feature-text h3,
html[dir="rtl"] .cta-section h2,
html[dir="rtl"] .proj-head h1,
html[dir="rtl"] .brand,
html[dir="rtl"] .pillar h4,
html[dir="rtl"] .mini-name { letter-spacing: 0; }

/* Slight line-height bump — Arabic ascenders/diacritics need room */
html[dir="rtl"] .hero h1,
html[dir="rtl"] .section-title,
html[dir="rtl"] .feature-text h3,
html[dir="rtl"] .cta-section h2 { line-height: 1.15; }

/* Flip directional arrows */
html[dir="rtl"] .btn-arrow::after,
html[dir="rtl"] .feature-cta::after,
html[dir="rtl"] .mini-link::after { content: "←"; }
html[dir="rtl"] .proj-back::before { content: "→"; }

/* margin direction fix for nav toggle (margin-left would be on the wrong side) */
html[dir="rtl"] .lang-toggle { margin-left: 0; margin-right: 10px; }

/* Brand wordmark — in Arabic the brand stays Latin, but align left for breathing room */
html[dir="rtl"] .brand .wordmark { direction: ltr; }

/* Step numbers like "01 / Qas" should read in Latin order even in RTL */
html[dir="rtl"] .feature-text .step { direction: ltr; text-align: right; }

/* Stats numerals are Latin — keep them visually anchored */
html[dir="rtl"] .hero-stats .stat-num { direction: ltr; }

/* Eyebrow tag — keep the dot on the leading edge */
html[dir="rtl"] .eyebrow .dot { order: -1; }
