:root {
  --charcoal: #211c16;
  --ink: #2d2822;
  --gold: #b58a3b;
  --gold-dark: #76541f;
  --gold-light: #f3e7cb;
  --paper: #fcfcfb;
  --warm: #f4f2ee;
  --white: #ffffff;
  --muted: #6f675c;
  --subtle: #9a9286;
  --line: #e6e0d5;
  --green: #198754;
  --blue: #48758a;
  --shadow: 0 16px 40px rgba(33, 28, 22, 0.1);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-sans);
  line-height: 1.6;
}
[dir="rtl"] body { font-family: "Tajawal", var(--font-sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--white);
  color: var(--charcoal);
  border: 2px solid var(--gold);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 17, 14, 0.72);
  color: var(--white);
  transition: background 180ms ease, border-color 180ms ease;
}
.site-header.is-scrolled {
  background: rgba(33, 28, 22, 0.97);
  border-color: rgba(255, 255, 255, 0.08);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-serif); font-size: 1.32rem; font-weight: 700; }
.brand img { width: 36px; height: 36px; object-fit: contain; border-radius: 4px; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 0.92rem; font-weight: 600; }
.site-nav > a:not(.button) { color: rgba(255, 255, 255, 0.82); }
.site-nav > a:hover, .site-nav > a:focus-visible { color: var(--white); }
.site-nav > a.is-active { color: var(--white); }
.text-action { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.24); }
.language-toggle {
  padding: 7px 2px;
  border: 0;
  background: transparent;
  color: #f0cf8a;
  font-weight: 700;
  cursor: pointer;
}
.language-toggle:hover, .language-toggle:focus-visible { color: var(--white); }
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: transparent;
  color: var(--white);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .site-nav a:focus-visible, .inline-link:focus-visible { outline: 3px solid rgba(201, 164, 93, 0.55); outline-offset: 3px; }
.button-small { min-height: 40px; padding: 9px 15px; font-size: 0.86rem; }
.button-gold { background: var(--gold); color: var(--white); }
.button-gold:hover { background: var(--gold-dark); }
.button-ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.button-ghost:hover { background: var(--white); color: var(--charcoal); }
.button-light { background: var(--white); color: var(--charcoal); }

.hero { position: relative; min-height: 610px; height: calc(100vh - 56px); max-height: 720px; display: flex; align-items: center; overflow: hidden; color: var(--white); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(21, 17, 13, 0.68); }
.hero-inner { position: relative; z-index: 1; padding-top: 72px; }
.hero-copy { max-width: 720px; padding: 26px 0 30px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hero .eyebrow { color: #f0cf8a; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2 { margin: 0; font-family: var(--font-serif); line-height: 1.08; letter-spacing: 0; }
h1 { max-width: 700px; font-size: clamp(3rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; letter-spacing: 0; }
.hero-lead { max-width: 650px; margin: 20px 0 0; color: rgba(255, 255, 255, 0.86); font-size: clamp(1rem, 2vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-path { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 28px; color: rgba(255, 255, 255, 0.68); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.hero-path i { color: var(--gold); font-size: 0.6rem; }

.proof-band { border-bottom: 1px solid var(--line); background: var(--white); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-grid > div { display: grid; gap: 2px; padding: 24px 30px; border-right: 1px solid var(--line); }
.proof-grid > div:first-child { padding-left: 0; }
.proof-grid > div:last-child { border-right: 0; }
.proof-grid strong { font-size: 0.94rem; }
.proof-grid span { color: var(--muted); font-size: 0.8rem; }

.section { padding: 104px 0; }
.split-layout, .dashboard-layout, .integration-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr); align-items: center; gap: 72px; }
.section-copy { max-width: 560px; }
.section-lead { margin: 22px 0 0; color: var(--muted); font-size: 1.04rem; }
.section-heading { max-width: 760px; margin: 0 0 46px; }
.section-heading.narrow { max-width: 720px; }
.showcase-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.showcase-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.showcase-topline { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 0.76rem; font-weight: 700; }
.showcase-topline > span { display: inline-flex; align-items: center; gap: 7px; }
.status { color: var(--green); }
.status i { font-size: 0.46rem; }
.check-list { display: grid; gap: 16px; margin: 28px 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 11px; color: var(--muted); }
.check-list i { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--gold-light); color: var(--gold-dark); font-size: 0.68rem; }
.inline-link { display: inline-flex; align-items: center; gap: 9px; color: var(--gold-dark); font-weight: 700; }

.process-section { border-block: 1px solid var(--line); background: var(--warm); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.process-step { position: relative; min-height: 250px; padding: 28px; border-right: 1px solid var(--line); }
.process-step:first-child { border-left: 1px solid var(--line); }
.process-step > i { margin: 28px 0 22px; color: var(--gold); font-size: 1.55rem; }
.process-step p { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }
.step-number { color: var(--subtle); font-size: 0.72rem; font-weight: 700; }

.operations-section { background: var(--white); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.feature-card > i { display: grid; width: 44px; height: 44px; margin-bottom: 42px; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--gold-dark); }
.feature-card p { margin: 12px 0 22px; color: var(--muted); font-size: 0.9rem; }
.feature-card span { color: var(--blue); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }

.dashboard-section { background: var(--warm); }
.dashboard-layout { grid-template-columns: minmax(330px, 0.75fr) minmax(0, 1.25fr); }
.dashboard-frame img { aspect-ratio: 16 / 9; }
.metric-list { display: grid; gap: 15px; margin-top: 30px; }
.metric-list > div { display: grid; gap: 2px; padding-left: 16px; border-left: 3px solid var(--gold); }
.metric-list span { color: var(--muted); font-size: 0.84rem; }

.role-band { padding: 82px 0; background: var(--charcoal); color: var(--white); }
.role-band .eyebrow { color: #f0cf8a; }
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid rgba(255, 255, 255, 0.16); }
.role-item { display: grid; min-height: 190px; align-content: center; gap: 9px; padding: 26px; border-right: 1px solid rgba(255, 255, 255, 0.16); }
.role-item:last-child { border-right: 0; }
.role-item i { margin-bottom: 22px; color: #f0cf8a; font-size: 1.35rem; }
.role-item span { color: rgba(255, 255, 255, 0.62); font-size: 0.84rem; }

.integrations-section { background: var(--white); }
.integration-layout { grid-template-columns: minmax(310px, 0.7fr) minmax(0, 1.3fr); }
.integration-list { border-top: 1px solid var(--line); }
.integration-item { display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.integration-item > i { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--gold-dark); }
.integration-item div { display: grid; gap: 2px; }
.integration-item span { color: var(--muted); font-size: 0.86rem; }

.contact-section { padding: 86px 0; background: var(--gold); color: var(--white); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 60px; }
.contact-section .eyebrow { color: var(--charcoal); }
.contact-section h2 { max-width: 700px; }
.contact-section p:not(.eyebrow) { max-width: 660px; color: rgba(255, 255, 255, 0.82); }
.contact-actions { display: grid; min-width: 230px; gap: 10px; }
.contact-actions .button-gold { border-color: var(--white); background: transparent; }

.site-footer { padding: 50px 0 24px; background: var(--charcoal); color: var(--white); }
.footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.footer-brand p { margin: 12px 0 0; color: rgba(255, 255, 255, 0.58); font-size: 0.86rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; color: rgba(255, 255, 255, 0.72); font-size: 0.86rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.48); font-size: 0.75rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.solid-header { background: rgba(33, 28, 22, 0.98); }
.page-hero { padding: 180px 0 92px; border-bottom: 1px solid var(--line); background: var(--warm); }
.page-hero-inner { display: grid; max-width: 910px; gap: 22px; }
.page-hero h1 { max-width: 900px; color: var(--charcoal); font-size: clamp(3rem, 6vw, 5rem); }
.page-hero p:last-child { max-width: 750px; margin: 0; color: var(--muted); font-size: 1.14rem; }
.story-section { background: var(--white); }
.story-layout { display: grid; grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr); gap: 88px; }
.story-copy { display: grid; align-content: start; gap: 18px; color: var(--muted); font-size: 1.06rem; }
.story-copy p { margin: 0; }
.founder-section { border-block: 1px solid var(--line); background: var(--warm); }
.founder-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr); align-items: center; gap: 72px; }
.founder-image { overflow: hidden; margin: 0; border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.founder-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.founder-role { margin: 14px 0 0; color: var(--gold-dark); font-weight: 700; }
.founder-section .section-copy > p:last-child { color: var(--muted); }
.values-section { background: var(--white); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.value-item { min-height: 235px; padding: 30px 26px; border-right: 1px solid var(--line); }
.value-item:last-child { border-right: 0; }
.value-item i { margin-bottom: 48px; color: var(--gold-dark); font-size: 1.45rem; }
.value-item p { margin: 10px 0 0; color: var(--muted); font-size: 0.88rem; }

[dir="rtl"] .text-action { padding-right: 20px; padding-left: 0; border-right: 1px solid rgba(255, 255, 255, 0.24); border-left: 0; }
[dir="rtl"] .hero-path i, [dir="rtl"] .inline-link i, [dir="rtl"] .contact-actions .fa-arrow-right { transform: rotate(180deg); }
[dir="rtl"] .proof-grid > div { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .proof-grid > div:last-child { border-left: 0; }
[dir="rtl"] .proof-grid > div:first-child { padding-right: 0; padding-left: 30px; }
[dir="rtl"] .process-step { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .process-step:first-child { border-right: 1px solid var(--line); }
[dir="rtl"] .metric-list > div { padding-right: 16px; padding-left: 0; border-right: 3px solid var(--gold); border-left: 0; }
[dir="rtl"] .role-item, [dir="rtl"] .value-item { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .role-item:last-child, [dir="rtl"] .value-item:last-child { border-left: 0; }

@media (max-width: 980px) {
  .menu-button { display: grid; place-items: center; }
  .site-nav {
    position: absolute;
    inset: 72px 20px auto;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: var(--charcoal);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: grid; }
  .site-nav > a { padding: 12px; }
  .text-action { border-left: 0; }
  [dir="rtl"] .text-action { border-right: 0; }
  .site-nav .button { margin-top: 6px; }
  .split-layout, .dashboard-layout, .integration-layout { grid-template-columns: 1fr; gap: 44px; }
  .section-copy { max-width: 720px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: 1px solid var(--line); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .role-item:nth-child(2) { border-right: 0; }
  .role-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-layout, .founder-layout { grid-template-columns: 1fr; gap: 44px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value-item:nth-child(2) { border-right: 0; }
  .value-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  [dir="rtl"] .value-item:nth-child(2) { border-left: 0; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 64px; }
  .site-nav { inset: 64px 14px auto; }
  .hero { min-height: 760px; height: auto; max-height: none; align-items: flex-end; }
  .hero-media { object-position: 61% center; }
  .hero-inner { padding-top: 64px; }
  .hero-copy { padding: 100px 0 52px; }
  h1 { font-size: clamp(2.85rem, 15vw, 4.3rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-path { gap: 9px; }
  .proof-grid { grid-template-columns: 1fr; padding: 8px 0; }
  .proof-grid > div, .proof-grid > div:first-child { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-grid > div:last-child { border-bottom: 0; }
  .section { padding: 72px 0; }
  .showcase-topline { align-items: flex-start; flex-direction: column; padding-block: 11px; }
  .showcase-frame img { aspect-ratio: 4 / 3; }
  .process-grid, .feature-grid, .role-grid { grid-template-columns: 1fr; }
  .process-step, .process-step:first-child { min-height: auto; border: 0; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: 0; }
  .feature-card { min-height: 235px; }
  .role-item, .role-item:nth-child(2) { min-height: 150px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
  .role-item:last-child { border-bottom: 0; }
  .contact-actions { grid-template-columns: 1fr; }
  .footer-main, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-links { display: grid; grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 138px 0 68px; }
  .values-grid { grid-template-columns: 1fr; }
  .value-item, .value-item:nth-child(2), [dir="rtl"] .value-item, [dir="rtl"] .value-item:nth-child(2) {
    min-height: 190px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .value-item:last-child { border-bottom: 0; }
  [dir="rtl"] .proof-grid > div, [dir="rtl"] .proof-grid > div:first-child { padding-inline: 0; border-left: 0; }
  [dir="rtl"] .process-step, [dir="rtl"] .process-step:first-child { border-right: 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
