:root {
  color-scheme: light;
  --ink: #11161c;
  --paper: #fcfaf6;
  --panel: #f4f0e8;
  --gold: #c8a15a;
  --gold-text: #876021;
  --muted: #53595e;
  --line: #ded7c9;
  --shell: min(1216px, calc(100% - 72px));
  --space: clamp(74px, 8.5vw, 128px);
}

* { box-sizing: border-box; }
html { scroll-padding-block-start: 108px; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, sans-serif;
  line-height: 1.65;
}
[dir="rtl"] body { font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif; line-height: 1.85; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 5px; }
a { color: inherit; text-decoration: none; }
button, select, textarea, input { font: inherit; }
img { max-width: 100%; display: block; }
p, h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.section-shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 20;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 16px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 10;
  inset-block-start: 0;
  border-block-end: 1px solid var(--line);
  background: var(--paper);
}
.header-shell, .footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 77px;
}
.site-brand { display: block; flex: 0 0 auto; }
.site-brand img { width: clamp(114px, 12vw, 151px); height: auto; }
.main-nav, .header-tools, .footer-links { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 34px); }
.main-nav a, .language-button, .workspace-link, .footer-links { font-size: .875rem; font-weight: 650; }
.main-nav a, .language-button { display: inline-flex; min-height: 44px; align-items: center; }
.main-nav a:hover, .language-button:hover, .footer-links a:hover { color: var(--gold-text); text-decoration: underline; text-underline-offset: .27em; }
.header-tools { gap: clamp(9px, 1.5vw, 19px); }
.workspace-link {
  display: inline-flex;
  min-height: 44px;
  padding: 5px 14px;
  align-items: center;
  border: 1px solid #cbb58a;
  border-radius: 4px;
  text-align: center;
}
.workspace-link:hover { background: #f1e8d8; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .98fr);
  gap: clamp(32px, 6vw, 88px);
  min-height: min(680px, calc(100vh - 77px));
  align-items: center;
  padding-block: clamp(50px, 7vw, 100px);
}
.hero h1, .section-intro h2, .development h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.05em;
}
.hero h1 { font-size: clamp(3.3rem, 5.8vw, 6.1rem); text-wrap: balance; }
.hero h1 em { display: block; }
.section-intro h2, .development h2 { font-size: clamp(2.55rem, 4.2vw, 4.65rem); }
[dir="rtl"] :is(.hero h1, .section-intro h2, .development h2) {
  font-family: inherit;
  font-weight: 750;
  line-height: 1.27;
  letter-spacing: 0;
}
[dir="rtl"] .hero h1 { max-width: 100%; font-size: clamp(2.7rem, 4.5vw, 4.8rem); }
:is(.hero, .section-intro, .development) em { color: var(--gold-text); font-weight: inherit; }
[dir="rtl"] :is(.hero, .section-intro, .development) em { font-style: normal; }
.eyebrow {
  margin-block-end: 17px;
  color: var(--gold-text);
  font-size: .875rem;
  font-weight: 760;
  letter-spacing: .045em;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; }
.hero-lead { max-width: 42ch; margin-block-start: 24px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-block-start: 32px; }
.button {
  display: inline-flex;
  min-height: 51px;
  padding: 10px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: center;
  font-size: .93rem;
  font-weight: 720;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.button-dark { color: white; background: var(--ink); }
.button-dark:hover:not(:disabled) { background: #303840; }
.button-outline { color: var(--ink); border-color: #cbb58a; background: transparent; }
.button-outline:hover { background: #f1e8d8; }
.button-gold { color: var(--ink); background: #e8c786; }
.button-gold:hover { background: #f5dcae; }
.button:disabled { opacity: .58; cursor: default; }
.hero-visual {
  aspect-ratio: 1.16;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #272822;
  border-radius: 6px;
  background: #14191c;
  box-shadow: 0 24px 58px #201a1624;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.section-intro { margin-block-end: clamp(27px, 4vw, 50px); }
.section-intro > p:last-child { max-width: 63ch; margin-block-start: 17px; color: var(--muted); }
.catalog { padding-block: var(--space); color: var(--paper); background: #13181e; }
.catalog :is(.eyebrow, .section-intro em) { color: #edd1a1; }
.catalog .section-intro { margin-block-end: 18px; }
.catalog :is(.section-intro > p:last-child, .roster-note) { color: #d5d8da; }
.catalog :focus-visible { outline-color: #edca8a; }
.roster-note { max-width: 78ch; margin-block-end: 22px; font-size: .91rem; }
.roster-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: clamp(32px, 6vw, 65px); }
.roster-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 15px;
  border: 1px solid #55514b;
  border-radius: 4px;
  color: #f1dab4;
  font-size: .875rem;
  font-weight: 660;
}
.roster-nav a:hover { border-color: #d0ad71; background: #252422; }
.roster-group + .roster-group { margin-block-start: clamp(39px, 6vw, 78px); }
.roster-group > h3 {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-block-end: 17px;
  font-size: clamp(1.22rem, 2vw, 1.63rem);
  font-weight: 680;
}
.roster-group > h3::after { height: 1px; flex: 1; background: #544839; content: ""; }
.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}
#agents-operations .role-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.role-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid #3e4246;
  border-radius: 6px;
  background: #1c2228;
}
.role-card:focus-within { border-color: #c8a15a; }
.role-portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-start-start-radius: 5px;
  border-start-end-radius: 5px;
  background: #25231f;
}
.role-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: clamp(14px, 1.7vw, 22px); }
.role-copy h4 { margin: 0; color: #f1d4a0; font: 400 clamp(1.63rem, 2.6vw, 2.32rem)/1.06 Georgia, "Times New Roman", serif; }
[dir="rtl"] .role-copy h4 { font-family: inherit; font-weight: 760; line-height: 1.25; }
.role-title { margin-block-start: 6px; font-weight: 720; }
.role-description { margin-block: 8px 17px; color: #d1d5d9; font-size: .94rem; }
.role-pricing { margin-block-start: auto; }
.role-price-option {
  display: block;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid #554b3b;
  border-radius: 4px;
  color: #e4e2dd;
  font-size: .84rem;
  line-height: 1.4;
}
.role-price-option:hover { color: white; border-color: #d0ad71; background: #2d2924; }
.role-price-option + .role-price-option { margin-block-start: 6px; }
.role-price-amount { display: block; color: white; font-size: 1.04rem; font-weight: 750; }
.role-price-discount { color: #f1ce94; font-size: .8rem; font-weight: 740; }
.role-price-quota { display: block; margin-block: 6px 0; color: #c5cacd; font-size: .81rem; }
.workflow-examples h3, .process-list h3 { font-size: 1.16rem; font-weight: 730; }
.role-link {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  color: #f1d4a0;
  font-size: .875rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: .3em;
  text-decoration-color: var(--gold);
}
.role-link:hover { text-decoration-thickness: 2px; }

.workspace-showcase, .process { padding-block: var(--space); }
.workflow-examples, .process-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 4vw, 54px); }
.workflow-examples article, .process-list li { padding-block-start: 20px; border-block-start: 2px solid var(--gold); }
.workflow-examples p, .process-list p { margin-block-start: 6px; color: var(--muted); }
.process-list { list-style: none; }

.development { padding-block: var(--space); color: var(--paper); background: var(--ink); }
.development :is(.eyebrow, em) { color: #e8c786; }
.development-intro > p:last-child, .development-copy p { color: #d7d9d8; }
.development-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.development-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #3d403d;
  border-radius: 6px;
  background: #1a2025;
}
.development-card-feature { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.development-image { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; background: #14191c; }
.development-card-feature .development-image { height: 100%; aspect-ratio: 1.5; }
.development-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(22px, 3.8vw, 48px); }
.development-card-feature .development-copy { justify-content: center; }
.development-copy h3 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); line-height: 1.35; font-weight: 720; }
.development-card-feature h3 { font-size: clamp(1.65rem, 3.1vw, 2.65rem); text-wrap: balance; }
.development-copy p { margin-block: 10px 20px; }
.development-copy .button { margin-block-start: auto; }
.development-card-feature .button { margin-block-start: 0; }
.button-light-outline { color: var(--paper); border-color: #ad915e; background: transparent; }
.button-light-outline:hover { color: var(--ink); background: #edd4a2; }
.development :focus-visible { outline-color: #e8c786; }

.request-area { padding-block: var(--space); border-block: 1px solid var(--line); background: var(--panel); }
.request-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.request-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(20px, 3.1vw, 42px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}
.request-card:target { border-color: #a47625; }
.request-card > h3 { margin-block-end: 20px; font-size: clamp(1.4rem, 2vw, 1.8rem); }
.request-form { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.request-form label { display: grid; min-width: 0; align-content: start; gap: 4px; font-size: .92rem; font-weight: 680; }
.request-form label small { color: var(--muted); font-size: .82rem; font-weight: 500; }
.request-form :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 9px 10px;
  border: 1px solid #c9c2b5;
  border-radius: 4px;
  color: var(--ink);
  background-color: white;
  font-size: 1rem;
  font-weight: 450;
}
.request-form select {
  appearance: none;
  padding-inline-end: 31px;
  background: linear-gradient(45deg, transparent 50%, #584b34 50%) right 15px center / 6px 6px,
              linear-gradient(135deg, #584b34 50%, transparent 50%) right 9px center / 6px 6px;
  background-repeat: no-repeat;
  background-color: white;
}
[dir="rtl"] .request-form select { background-position: left 9px center, left 15px center; }
.request-form textarea { resize: vertical; }
.honeypot { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: grid; align-content: start; justify-items: start; gap: 8px; margin-block-start: auto; padding-block-start: 3px; }
.form-note, .script-notice { margin-block-start: 16px; color: var(--muted); font-size: .89rem; }
.script-notice { margin-block: 0 12px; }
.form-status { min-height: 1.5em; color: var(--muted); font-size: .92rem; }
.form-status[data-tone="error"] { color: #8b2d21; }
.form-status[data-tone="success"] { color: #23533e; }
.form-status bdi { display: inline-block; font-weight: 720; }

.footer-shell { min-height: 109px; }
.footer-links { flex-wrap: wrap; }

.support-launch {
  position: fixed;
  z-index: 9;
  inset-inline-end: max(13px, env(safe-area-inset-right));
  inset-block-end: max(13px, env(safe-area-inset-bottom));
  min-height: 48px;
  padding: 7px 18px;
  border: 1px solid #e7c789;
  border-radius: 999px;
  color: #17191c;
  background: #efd3a2;
  box-shadow: 0 4px 18px #11161c36;
  font-size: .91rem;
  font-weight: 750;
  cursor: pointer;
}
.support-launch:hover { background: #f9e4be; }
.support-dialog {
  position: fixed;
  inset-block: auto max(13px, env(safe-area-inset-bottom));
  inset-inline: auto 13px;
  width: min(425px, calc(100% - 26px));
  max-height: min(720px, calc(100dvh - 26px));
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #c1ab84;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 64px #11161c4f;
}
.support-dialog::backdrop { background: #11161c56; }
.support-header {
  position: sticky;
  z-index: 1;
  inset-block-start: 0;
  display: flex;
  min-height: 61px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 15px;
  border-block-end: 1px solid #5e4d35;
  color: #f0d5aa;
  background: var(--ink);
}
.support-header h2 { font-size: 1.18rem; }
.support-close {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--paper);
  background: transparent;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}
.support-close:hover, .support-close:focus-visible { border-color: #e7c789; outline-color: #e7c789; }
.support-body { display: grid; gap: 12px; padding: 16px; }
.support-body > p:first-child { color: var(--muted); font-size: .93rem; }
.support-form { display: grid; gap: 10px; align-items: start; justify-items: start; }
.support-form label { display: grid; width: 100%; gap: 3px; font-size: .9rem; font-weight: 690; }
.support-form .honeypot { width: 1px; }
.support-form :is(input, textarea) {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #bdb7ad;
  border-radius: 4px;
  color: var(--ink);
  background: white;
  font-size: 1rem;
  font-weight: 450;
}
.support-form textarea { resize: vertical; }
.support-form .button { min-height: 44px; padding: 7px 14px; }
.support-status { font-size: .92rem; overflow-wrap: anywhere; }
.support-status:not(:empty) { width: 100%; padding: 9px 11px; border-inline-start: 2px solid #b18949; background: #f2ebdf; }
.support-status[data-tone="error"] { color: #8b2d21; }
.support-status[data-tone="success"] { color: #254a39; }
.support-status bdi { font-weight: 720; }
.support-escalate {
  min-height: 44px;
  justify-self: start;
  padding: 4px 0;
  border: 0;
  color: #754e1c;
  background: transparent;
  font-size: .91rem;
  font-weight: 750;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: .22em;
  cursor: pointer;
}
.support-escalate[data-suggested="true"] { padding-inline: 10px; border-radius: 4px; background: #f2e4cd; }
.support-ticket { padding-block-start: 10px; border-block-start: 1px solid var(--line); }

@media (max-width: 890px) {
  :root { --shell: calc(100% - 44px); }
  html { scroll-padding-block-start: 140px; }
  .header-shell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 15px; padding-block-start: 5px; }
  .main-nav {
    grid-area: 2 / 1 / 3 / -1;
    gap: 10px 22px;
    padding-block-end: 4px;
    flex-wrap: wrap;
  }
  .header-tools { justify-self: end; }
  .hero { min-height: 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .role-grid, #agents-operations .role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  :root { --shell: calc(100% - 36px); --space: 60px; }
  .hero, .development-grid, .development-card-feature, .request-grid { grid-template-columns: 1fr; }
  .role-grid, #agents-operations .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .development-card-feature .development-image { height: auto; }
  .hero { gap: 25px; }
  .hero h1 { font-size: clamp(2.85rem, 10vw, 4.2rem); }
  [dir="rtl"] .hero h1 { max-width: 100%; font-size: clamp(2.35rem, 8vw, 3.6rem); }
  .hero-actions { flex-direction: row; align-items: center; margin-block-start: 24px; }
  .hero-visual { aspect-ratio: 1.35; }
  .workflow-examples, .process-list { grid-template-columns: 1fr; gap: 15px; }
  .workflow-examples article, .process-list li { padding-block-start: 13px; }
  .footer-shell { align-items: flex-start; flex-direction: column; gap: 10px; padding-block: 18px; }
}

@media (max-width: 425px) {
  :root { --shell: calc(100% - 28px); }
  .main-nav { gap: 0 14px; }
  .main-nav a { min-height: 40px; font-size: .82rem; }
  .site-brand img { width: 105px; }
  .workspace-link { padding-inline: 8px; }
  .button { padding-inline: 13px; }
  .field-grid { grid-template-columns: 1fr; }
}

@media (max-width: 350px) {
  .role-grid, #agents-operations .role-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
