:root {
  --charcoal: #111315;
  --charcoal-2: #1a1d20;
  --gold: #D9A93C;
  --deep-gold: #B88624;
  --ivory: #F7F2EA;
  --sand: #E7D9BE;
  --white: #ffffff;
  --muted: #69645b;
  --line: rgba(17, 19, 21, .12);
  --shadow: 0 24px 70px rgba(17, 19, 21, .11);
  --radius: 26px;
  --radius-sm: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.section-pad { padding: 96px 0; }
.section-pad.compact { padding: 72px 0; }
.skip-link, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { width: auto; height: auto; clip: auto; top: 12px; left: 12px; z-index: 99; background: var(--charcoal); color: var(--ivory); padding: 10px 14px; border-radius: 10px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 242, 234, .84);
  border-bottom: 1px solid rgba(17,19,21,.08);
  backdrop-filter: blur(18px);
}
.nav-shell { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-link { display: inline-flex; align-items: center; min-width: 220px; }
.brand-logo { width: 246px; height: auto; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { padding: 10px 13px; border-radius: 999px; font-size: 14px; font-weight: 650; color: rgba(17,19,21,.76); }
.site-nav a:hover { background: rgba(217,169,60,.16); color: var(--charcoal); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white); border-radius: 14px; align-items: center; justify-content: center; gap: 4px; flex-direction: column; }
.nav-toggle span:not(.sr-only) { width: 18px; height: 2px; background: var(--charcoal); border-radius: 999px; }

.hero {
  position: relative;
  min-height: calc(100svh - 82px);
  display: flex; align-items: center;
  background:
    radial-gradient(circle at 82% 15%, rgba(217,169,60,.28), transparent 29%),
    radial-gradient(circle at 10% 86%, rgba(231,217,190,.75), transparent 31%),
    linear-gradient(180deg, var(--ivory), #fbf7ef 72%, var(--ivory));
}
.hero::before {
  content: ""; position: absolute; inset: 40px 4% auto auto; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(217,169,60,.28); filter: blur(4px); opacity: .75; z-index: 0;
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.eyebrow { color: var(--deep-gold); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 850; margin: 0 0 12px; }
.eyebrow.gold { color: var(--gold); }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.045em; }
h1 { font-size: clamp(44px, 7vw, 84px); max-width: 920px; }
h2 { font-size: clamp(32px, 4.2vw, 56px); }
h3 { font-size: 21px; }
p { margin: 0; }
.hero-text { color: var(--muted); font-size: clamp(17px, 2vw, 21px); max-width: 760px; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 14px 20px; border-radius: 999px; font-weight: 800; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--charcoal); color: var(--ivory); box-shadow: 0 18px 35px rgba(17,19,21,.20); }
.btn-primary:hover { box-shadow: 0 22px 48px rgba(17,19,21,.28); }
.btn-secondary { background: rgba(255,255,255,.74); border-color: var(--line); color: var(--charcoal); }
.btn-secondary.dark { background: rgba(255,255,255,.08); color: var(--ivory); border-color: rgba(247,242,234,.18); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.trust-strip span, .tags span { border: 1px solid rgba(184,134,36,.32); background: rgba(217,169,60,.10); color: #6e4f12; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.hero-card { background: var(--charcoal); color: var(--ivory); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: -90px -80px auto auto; width: 220px; height: 220px; border-radius: 50%; background: rgba(217,169,60,.30); }
.hero-card-top { display: flex; gap: 18px; align-items: center; position: relative; z-index: 1; }
.hero-icon { width: 86px; height: 78px; object-fit: contain; }
.hero-card-top strong { display: block; font-size: 19px; line-height: 1.18; }
.hero-card-top span { display: block; color: rgba(247,242,234,.68); margin-top: 5px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; position: relative; z-index: 1; }
.metric-grid div { border: 1px solid rgba(247,242,234,.12); background: rgba(255,255,255,.05); border-radius: 18px; padding: 18px; }
.metric-grid b { color: var(--gold); display: block; font-size: 25px; }
.metric-grid span { color: rgba(247,242,234,.72); font-size: 14px; }

.split-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.section-copy { font-size: 19px; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 30px; box-shadow: 0 14px 35px rgba(17,19,21,.06); }
.surface { background: #fffaf2; border-block: 1px solid rgba(17,19,21,.07); }
.section-heading { max-width: 860px; margin-bottom: 38px; }
.section-heading p:not(.eyebrow) { color: rgba(247,242,234,.72); max-width: 800px; margin-top: 16px; font-size: 18px; }
.cards-grid { display: grid; gap: 18px; }
.six-cards { grid-template-columns: repeat(3, 1fr); }
.service-card, .portfolio-card { position: relative; border: 1px solid var(--line); background: rgba(255,255,255,.88); border-radius: var(--radius-sm); padding: 26px; min-height: 214px; box-shadow: 0 16px 38px rgba(17,19,21,.06); transition: transform .22s ease, box-shadow .22s ease; overflow: hidden; }
.service-card::before, .portfolio-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--gold); }
.service-card:hover, .portfolio-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(17,19,21,.10); }
.service-card p, .portfolio-card p { color: var(--muted); margin-top: 12px; }
.card-mark { color: var(--gold); font-weight: 900; letter-spacing: .12em; font-size: 12px; display: inline-block; margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.dark-section { background: var(--charcoal); color: var(--ivory); position: relative; overflow: hidden; }
.dark-section::before { content: ""; position: absolute; width: 460px; height: 460px; background: radial-gradient(circle, rgba(217,169,60,.22), transparent 64%); top: -160px; right: -140px; }
.dark-section > .container { position: relative; z-index: 1; }
.systems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.system-card { border: 1px solid rgba(247,242,234,.13); background: rgba(255,255,255,.055); border-radius: var(--radius); padding: 28px; }
.system-card h3 { color: var(--gold); }
.system-card p { color: rgba(247,242,234,.75); margin-top: 14px; }
ul { margin: 22px 0 0; padding: 0; list-style: none; }
li { margin: 9px 0; padding-left: 20px; position: relative; color: rgba(247,242,234,.84); }
li::before { content: ""; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; position: absolute; left: 0; top: .65em; }

.dashboard-layout { display: grid; grid-template-columns: 1fr .8fr; gap: 46px; align-items: center; }
.dashboard-layout .section-heading p:not(.eyebrow) { color: var(--muted); }
.feature-stack { display: grid; gap: 14px; }
.feature-stack div, .why-grid div { border: 1px solid var(--line); background: var(--white); border-radius: 20px; padding: 22px; box-shadow: 0 14px 30px rgba(17,19,21,.06); }
.feature-stack strong, .why-grid strong { display: block; font-size: 20px; }
.feature-stack span, .why-grid span { display: block; color: var(--muted); margin-top: 5px; }
.reliability-grid { grid-template-columns: repeat(4, 1fr); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.portfolio-card { min-height: 170px; }
.methodology { display: grid; grid-template-columns: .72fr 1.28fr; gap: 48px; align-items: start; }
.timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 18px; margin: 0; border: 1px solid rgba(247,242,234,.12); border-radius: 20px; background: rgba(255,255,255,.045); }
.timeline li::before { display: none; }
.timeline span { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--charcoal); font-weight: 950; }
.timeline p { color: rgba(247,242,234,.72); margin-top: 6px; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact-section { padding-top: 0; }
.contact-card { background: var(--charcoal); color: var(--ivory); border-radius: 34px; padding: 42px; display: grid; grid-template-columns: 1fr .75fr; gap: 32px; align-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; width: 240px; height: 240px; right: -70px; top: -80px; border-radius: 50%; background: rgba(217,169,60,.28); }
.contact-card > * { position: relative; z-index: 1; }
.contact-card p:not(.eyebrow) { color: rgba(247,242,234,.72); margin-top: 14px; }
.contact-actions { display: grid; gap: 12px; }
.text-link { color: var(--gold); font-weight: 850; text-align: center; }
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); background: #fffaf2; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 14px; }
.footer-inner img { width: 205px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 82px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 16px; }
  .hero-grid, .split-section, .dashboard-layout, .methodology, .contact-card { grid-template-columns: 1fr; }
  .six-cards, .systems-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .reliability-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section-pad { padding: 66px 0; }
  .nav-shell { height: 74px; }
  .site-nav { top: 74px; }
  .brand-logo { width: 198px; }
  h1 { font-size: 43px; }
  h2 { font-size: 31px; }
  .hero-grid { gap: 32px; }
  .hero-actions, .contact-actions { align-items: stretch; }
  .btn { width: 100%; text-align: center; }
  .six-cards, .systems-grid, .portfolio-grid, .reliability-grid, .why-grid, .metric-grid { grid-template-columns: 1fr; }
  .service-card, .portfolio-card, .system-card, .contact-card, .hero-card, .section-copy { border-radius: 20px; padding: 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-inner img { width: 185px; }
}

/* Step 2 refinements: use cases, stronger mobile CTAs, and company trust layer */
.btn-ghost {
  background: rgba(217,169,60,.10);
  border-color: rgba(184,134,36,.30);
  color: #6e4f12;
}
.btn-ghost:hover {
  background: rgba(217,169,60,.16);
}
.light-copy,
.plain-copy {
  color: var(--muted) !important;
  max-width: 780px;
}
.portfolio-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(217,169,60,.14);
  color: #7a5815;
  font-weight: 950;
  font-size: 13px;
  margin-bottom: 16px;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.case-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 42px rgba(17,19,21,.07);
  position: relative;
  overflow: hidden;
}
.case-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), rgba(217,169,60,.20));
}
.case-head span {
  color: #7a5815;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.case-head strong {
  display: block;
  font-size: 22px;
  line-height: 1.18;
  margin-top: 10px;
}
.case-card p {
  color: var(--muted);
  margin-top: 14px;
}
.clean-list {
  margin-top: 18px;
}
.clean-list li {
  color: var(--charcoal);
  font-weight: 700;
  opacity: .82;
}
.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--ivory);
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(17,19,21,.28);
  border: 1px solid rgba(217,169,60,.36);
}
.floating-whatsapp::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 9px;
}
@media (max-width: 980px) {
  .case-grid { grid-template-columns: 1fr; }
  .floating-whatsapp { right: 14px; bottom: 14px; }
}
@media (max-width: 680px) {
  .case-card { border-radius: 20px; padding: 22px; }
  .case-head strong { font-size: 20px; }
  .floating-whatsapp {
    left: 14px;
    right: 14px;
    bottom: 12px;
  }
  .site-footer { padding-bottom: 76px; }
}


/* Step 3 refinements: stronger hero conversion, engagement section, and mobile-first polish */
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
  max-width: 850px;
}
.hero-proof div {
  border: 1px solid rgba(17, 19, 21, .10);
  background: rgba(255,255,255,.58);
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}
.hero-proof strong {
  display: block;
  font-size: 14px;
  letter-spacing: -.02em;
}
.hero-proof span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 3px;
}
.engagement-section {
  background:
    radial-gradient(circle at 90% 12%, rgba(217,169,60,.18), transparent 28%),
    var(--ivory);
}
.engagement-layout {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 22px;
  align-items: start;
}
.engagement-layout .section-heading {
  margin-bottom: 0;
}
.pricing-note {
  background: var(--charcoal);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(217,169,60,.24);
}
.pricing-note strong {
  display: block;
  color: var(--gold);
  font-size: 20px;
}
.pricing-note span {
  display: block;
  color: rgba(247,242,234,.74);
  margin-top: 8px;
}
.engagement-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.engagement-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: 0 16px 38px rgba(17,19,21,.06);
}
.engagement-card span {
  color: var(--gold);
  font-weight: 950;
  letter-spacing: .12em;
  font-size: 12px;
}
.engagement-card h3 {
  margin-top: 14px;
}
.engagement-card p {
  color: var(--muted);
  margin-top: 12px;
}
.contact-intake {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.contact-intake span {
  border: 1px solid rgba(247,242,234,.16);
  background: rgba(255,255,255,.06);
  color: rgba(247,242,234,.84);
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 82px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 16px; }
}
@media (max-width: 980px) {
  .hero-proof, .engagement-layout { grid-template-columns: 1fr; }
  .engagement-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .hero { padding-top: 46px; }
  .hero-text { font-size: 16px; }
  .trust-strip { gap: 8px; }
  .trust-strip span { font-size: 11px; padding: 7px 9px; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof div { padding: 13px 14px; }
  .engagement-grid { grid-template-columns: 1fr; }
  .pricing-note, .engagement-card { border-radius: 20px; padding: 22px; }
  .contact-intake { margin-top: 18px; }
}
@media (max-width: 420px) {
  .brand-logo { width: 176px; }
  h1 { font-size: 38px; }
  .hero-actions { gap: 10px; }
  .hero-card-top { align-items: flex-start; }
  .hero-icon { width: 68px; height: 62px; }
}


/* Step 4 final polish: accessibility, layout stability, and share-ready UI */
:focus-visible {
  outline: 3px solid rgba(217,169,60,.72);
  outline-offset: 3px;
}
.nav-toggle:focus-visible,
.btn:focus-visible,
.site-nav a:focus-visible,
.brand-link:focus-visible,
.text-link:focus-visible,
.floating-whatsapp:focus-visible {
  box-shadow: 0 0 0 4px rgba(217,169,60,.20);
}
.brand-logo,
.hero-icon,
.footer-inner img {
  content-visibility: auto;
}
@media (max-width: 680px) {
  .contact-card h2 { font-size: 29px; }
  .contact-actions .text-link { padding: 10px 0; }
}
@media print {
  .site-header,
  .floating-whatsapp,
  .nav-toggle,
  .hero-actions,
  .contact-actions,
  .site-footer {
    display: none !important;
  }
  body { background: #fff; color: #111315; }
  .section-pad { padding: 24px 0; }
  .dark-section,
  .contact-card,
  .hero-card { background: #fff; color: #111315; box-shadow: none; border: 1px solid #ddd; }
}


/* Step 5A: bilingual navigation, RTL support, and light/dark theme foundation */
.site-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline-start: 8px;
  margin-inline-start: 4px;
  border-inline-start: 1px solid rgba(17,19,21,.10);
}
.control-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(184,134,36,.32);
  background: rgba(255,255,255,.68);
  color: var(--charcoal);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.control-pill:hover { background: rgba(217,169,60,.15); }
.theme-toggle span[aria-hidden="true"] { line-height: 1; }
html[dir="rtl"] body {
  font-family: Tahoma, Arial, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .case-head span,
html[dir="rtl"] .card-mark,
html[dir="rtl"] .engagement-card span { letter-spacing: .05em; }
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 { letter-spacing: -.025em; }
html[dir="rtl"] .service-card::before,
html[dir="rtl"] .portfolio-card::before { inset: 0 0 0 auto; }
html[dir="rtl"] li { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] li::before { left: auto; right: 0; }
html[dir="rtl"] .floating-whatsapp::before { margin-right: 0; margin-left: 9px; }
html[dir="rtl"] .hero::before { inset: 40px auto auto 4%; }
html[dir="rtl"] .dark-section::before { right: auto; left: -140px; }
html[dir="rtl"] .contact-card::after { right: auto; left: -70px; }
html[dir="rtl"] .case-card::before { background: linear-gradient(270deg, var(--gold), rgba(217,169,60,.20)); }
html[dir="rtl"] .skip-link:focus { left: auto; right: 12px; }

html[data-theme="dark"] body {
  background: #0f1113;
  color: #F7F2EA;
}
html[data-theme="dark"] .site-header {
  background: rgba(17, 19, 21, .88);
  border-bottom-color: rgba(247,242,234,.10);
}
html[data-theme="dark"] .brand-link {
  background: rgba(247,242,234,.95);
  padding: 5px 8px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
html[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 82% 15%, rgba(217,169,60,.20), transparent 29%),
    radial-gradient(circle at 10% 86%, rgba(217,169,60,.08), transparent 31%),
    linear-gradient(180deg, #0f1113, #14171a 72%, #0f1113);
}
html[data-theme="dark"] .hero::before { opacity: .35; }
html[data-theme="dark"] .surface,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .engagement-section {
  background: #131619;
  border-color: rgba(247,242,234,.10);
}
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .portfolio-card,
html[data-theme="dark"] .case-card,
html[data-theme="dark"] .engagement-card,
html[data-theme="dark"] .section-copy,
html[data-theme="dark"] .feature-stack div,
html[data-theme="dark"] .why-grid div,
html[data-theme="dark"] .hero-proof div {
  background: rgba(255,255,255,.055);
  border-color: rgba(247,242,234,.13);
  color: #F7F2EA;
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
html[data-theme="dark"] .hero-text,
html[data-theme="dark"] .section-copy,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .portfolio-card p,
html[data-theme="dark"] .case-card p,
html[data-theme="dark"] .engagement-card p,
html[data-theme="dark"] .feature-stack span,
html[data-theme="dark"] .why-grid span,
html[data-theme="dark"] .hero-proof span,
html[data-theme="dark"] .light-copy,
html[data-theme="dark"] .plain-copy,
html[data-theme="dark"] .footer-inner {
  color: rgba(247,242,234,.72) !important;
}
html[data-theme="dark"] .clean-list li { color: rgba(247,242,234,.84); }
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .floating-whatsapp {
  background: var(--gold);
  color: #111315;
  border-color: rgba(217,169,60,.60);
}
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .control-pill,
html[data-theme="dark"] .nav-toggle {
  background: rgba(255,255,255,.06);
  border-color: rgba(247,242,234,.14);
  color: #F7F2EA;
}
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .trust-strip span,
html[data-theme="dark"] .tags span,
html[data-theme="dark"] .portfolio-card span {
  background: rgba(217,169,60,.12);
  color: #F3D28A;
  border-color: rgba(217,169,60,.28);
}
html[data-theme="dark"] .nav-toggle span:not(.sr-only) { background: #F7F2EA; }
html[data-theme="dark"] .site-nav a { color: rgba(247,242,234,.78); }
html[data-theme="dark"] .site-nav a:hover { background: rgba(217,169,60,.16); color: #F7F2EA; }
html[data-theme="dark"] .site-nav { background: rgba(17,19,21,.97); border-color: rgba(247,242,234,.12); }
html[data-theme="dark"] .site-controls { border-inline-start-color: rgba(247,242,234,.12); }
html[data-theme="dark"] .nav-toggle:focus-visible,
html[data-theme="dark"] .btn:focus-visible,
html[data-theme="dark"] .site-nav a:focus-visible,
html[data-theme="dark"] .brand-link:focus-visible,
html[data-theme="dark"] .control-pill:focus-visible,
html[data-theme="dark"] .text-link:focus-visible,
html[data-theme="dark"] .floating-whatsapp:focus-visible {
  box-shadow: 0 0 0 4px rgba(217,169,60,.22);
}
@media (max-width: 1120px) {
  .site-controls {
    width: 100%;
    margin: 8px 0 0;
    padding: 10px 6px 4px;
    border-inline-start: 0;
    border-top: 1px solid rgba(17,19,21,.10);
  }
  .control-pill { flex: 1; }
  html[data-theme="dark"] .site-controls { border-top-color: rgba(247,242,234,.12); }
}
@media (max-width: 680px) {
  html[data-theme="dark"] .brand-link { padding: 4px 6px; border-radius: 13px; }
}


/* Step 5B: Arabic copy review, safer mixed-direction terms, and RTL visual polish */
.latin-term {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
html[dir="rtl"] .hero-text,
html[dir="rtl"] .section-copy,
html[dir="rtl"] .plain-copy,
html[dir="rtl"] .light-copy,
html[dir="rtl"] .service-card p,
html[dir="rtl"] .system-card p,
html[dir="rtl"] .case-card p,
html[dir="rtl"] .engagement-card p {
  line-height: 1.85;
}
html[dir="rtl"] .site-nav a,
html[dir="rtl"] .control-pill,
html[dir="rtl"] .btn,
html[dir="rtl"] .trust-strip span,
html[dir="rtl"] .tags span,
html[dir="rtl"] .contact-intake span {
  letter-spacing: 0;
}
html[dir="rtl"] .floating-whatsapp {
  right: auto;
  left: 20px;
}
html[dir="rtl"] .hero-card-top,
html[dir="rtl"] .contact-actions,
html[dir="rtl"] .hero-actions {
  direction: rtl;
}
html[dir="rtl"] .timeline h3,
html[dir="rtl"] .timeline p {
  text-align: start;
}
html[dir="rtl"] .metric-grid div,
html[dir="rtl"] .feature-stack div,
html[dir="rtl"] .why-grid div {
  text-align: start;
}
html[data-theme="dark"] .latin-term { color: inherit; }
@media (max-width: 980px) {
  html[dir="rtl"] .floating-whatsapp { left: 14px; right: auto; }
}
@media (max-width: 680px) {
  html[dir="rtl"] .floating-whatsapp { left: 14px; right: 14px; }
  html[dir="rtl"] .hero-text,
  html[dir="rtl"] .section-copy,
  html[dir="rtl"] .plain-copy,
  html[dir="rtl"] .light-copy {
    line-height: 1.78;
  }
}

/* Step 5D: performance, stable navigation, and final QA hardening */
html { scroll-padding-top: 98px; }
[id] { scroll-margin-top: 98px; }
.hero { content-visibility: visible; }
.section-pad:not(.hero),
.surface,
.dark-section,
.contact-section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 760px;
}
.service-card,
.portfolio-card,
.case-card,
.engagement-card,
.system-card,
.feature-stack div,
.why-grid div,
.metric-grid div {
  will-change: transform;
}
@media (hover: none) {
  .service-card:hover,
  .portfolio-card:hover,
  .case-card:hover,
  .engagement-card:hover,
  .btn:hover {
    transform: none;
  }
}
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 82px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 10px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 16px; }
  .nav-shell { gap: 14px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 86px; }
  [id] { scroll-margin-top: 86px; }
  .section-pad:not(.hero),
  .surface,
  .dark-section,
  .contact-section,
  .site-footer {
    contain-intrinsic-size: 1px 980px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .portfolio-card,
  .case-card,
  .engagement-card,
  .system-card,
  .feature-stack div,
  .why-grid div,
  .metric-grid div {
    will-change: auto;
  }
}
