/* خط الهوية الموحد: IBM Plex Sans Arabic عبر asas_ui (قرار المالك 3/9/2026 ينسخ قرار Almarai 2/9 — المعيار كاملا الا الالوان)
   الاستضافة الذاتية شرط: سياسة المحتوى default-src 'self' تمنع اي مصدر خارجي للخطوط.
   لا وزن 600 في Almarai فيُخدم بـ700 (المتصفح يقربه). */
@font-face { font-family: "AlmaraiAR"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/almarai-400.woff2") format("woff2"); }
@font-face { font-family: "AlmaraiAR"; font-weight: 600 700; font-style: normal; font-display: swap; src: url("/static/fonts/almarai-700.woff2") format("woff2"); }
@font-face { font-family: "AlmaraiAR"; font-weight: 800 900; font-style: normal; font-display: swap; src: url("/static/fonts/almarai-800.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --brand-950: #081c24;
  --brand-900: #0d2933;
  --brand-800: #123743;
  --brand-600: #0e6f70;
  --brand-500: #148889;
  --accent-500: #c6913d;
  --accent-100: #f4e8d3;
  --sand-50: #f7f5ef;
  --sand-100: #efebe1;
  --surface: #fff;
  --ink-700: #33444a;
  --ink-500: #607178;
  --line: #dbe2df;
  --success: #18794e;
  --warning: #a15c00;
  --danger: #b42318;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 18px 60px rgb(8 28 36 / 9%);
  --content: min(1180px, calc(100% - 40px));
  --font: "AlmaraiAR", "Almarai", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--sand-50);
  color: var(--brand-950);
  font-family: var(--font);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent-500); outline-offset: 3px; }
.skip-link { position: fixed; inset-inline-start: 16px; top: -100px; z-index: 100; background: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: rgb(8 28 36 / 96%);
  color: #fff;
  backdrop-filter: blur(16px);
}
.topbar__inner { width: var(--content); min-height: 64px; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand small { color: #9db2b7; font-size: 10px; margin-top: -2px; }
.brand__mark { width: 34px; height: 34px; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 3px; }
.brand__mark i { display: block; background: var(--accent-500); border-radius: 2px 2px 0 0; }
.brand__mark i:nth-child(1) { height: 45%; }
.brand__mark i:nth-child(2) { height: 100%; background: #fff; }
.brand__mark i:nth-child(3) { height: 70%; background: var(--brand-500); }
.topnav { display: flex; gap: 24px; margin-inline-start: auto; }
.topnav a { color: #bed0d3; font-size: 14px; padding: 9px 0; border-bottom: 2px solid transparent; }
.topnav a:hover, .topnav a[aria-current="page"] { color: #fff; border-color: var(--accent-500); }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.locale-switch { border: 1px solid #31505a; border-radius: 999px; min-width: 44px; padding: 6px 10px; text-align: center; font-size: 12px; }
.user-chip { display: flex; align-items: center; gap: 9px; max-width: 190px; }
.user-menu { position: relative; }
.user-menu summary { cursor: pointer; list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu__panel { position: absolute; z-index: 60; inset-inline-end: 0; top: calc(100% + 12px); min-width: 170px; padding: 8px; border: 1px solid #31505a; border-radius: var(--radius-sm); background: var(--brand-900); box-shadow: var(--shadow); }
.user-menu__panel a, .user-menu__panel button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: #fff; text-align: start; cursor: pointer; font-size: 12px; }
.user-menu__panel a:hover, .user-menu__panel button:hover { background: var(--brand-800); }
.user-chip strong, .user-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip strong { font-size: 12px; }
.user-chip small { color: #9db2b7; font-size: 10px; direction: ltr; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; background: var(--brand-600); border-radius: 50%; }

.button {
  border: 1px solid var(--brand-600);
  border-radius: var(--radius-sm);
  background: var(--brand-600);
  color: #fff;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { background: var(--brand-500); transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button--small { min-height: 36px; padding: 7px 13px; font-size: 12px; }
.button--quiet { border-color: #31505a; background: transparent; }
.button--light { background: #fff; border-color: #fff; color: var(--brand-950); }
.button--wide { width: 100%; }
.text-link { color: var(--brand-600); font-weight: 800; display: inline-flex; gap: 8px; align-items: center; }
.eyebrow { color: var(--brand-600); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }

.hero {
  overflow: hidden;
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--brand-950);
}
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgb(198 145 61 / 26%); border-radius: 50%; inset-inline-end: -260px; top: -170px; box-shadow: 0 0 0 90px rgb(198 145 61 / 4%), 0 0 0 180px rgb(198 145 61 / 3%); }
.hero__grid { width: var(--content); margin: auto; min-height: 620px; padding: 100px 0; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 60px; position: relative; z-index: 1; }
.hero .eyebrow { color: #e6bd79; }
.hero h1 { margin: 16px 0 22px; max-width: 760px; font-size: clamp(44px, 6vw, 78px); line-height: 1.12; letter-spacing: -.055em; }
.hero h1 em { color: #b4d5d3; font-style: normal; display: block; }
.hero__copy > p { color: #b8c9cc; max-width: 650px; font-size: 18px; }
.hero__actions { margin-top: 34px; display: flex; align-items: center; gap: 24px; }
.hero .text-link { color: #fff; }
.architecture-card { background: rgb(18 55 67 / 76%); border: 1px solid #31505a; border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 30px 80px rgb(0 0 0 / 25%); }
.architecture-card__head { display: flex; justify-content: space-between; color: #b8c9cc; font-size: 12px; padding-bottom: 20px; border-bottom: 1px solid #31505a; }
.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; background: #7bd4b1; border-radius: 50%; box-shadow: 0 0 0 4px rgb(123 212 177 / 12%); }
.architecture-flow { list-style: none; margin: 0; padding: 10px 0 0; }
.architecture-flow li { position: relative; display: flex; gap: 18px; padding: 20px 0; }
.architecture-flow li:not(:last-child)::after { content: ""; position: absolute; top: 54px; bottom: -4px; inset-inline-start: 19px; border-inline-start: 1px dashed #52707a; }
.architecture-flow > li > span { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 1px solid #52707a; border-radius: 50%; color: #e6bd79; font-size: 10px; background: var(--brand-900); }
.architecture-flow strong, .architecture-flow small { display: block; }
.architecture-flow strong { margin-bottom: 4px; }
.architecture-flow small { color: #9db2b7; }

.section { width: var(--content); margin: auto; padding: 100px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 44px; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; letter-spacing: -.045em; }
.section-heading > p { max-width: 450px; color: var(--ink-700); }
.section--products { border-bottom: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.product-card { min-height: 270px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); border-color: var(--brand-600); box-shadow: var(--shadow); }
.product-card__top, .product-card__foot { display: flex; align-items: center; justify-content: space-between; }
.product-index { color: var(--accent-500); font-size: 12px; font-weight: 900; direction: ltr; }
.status-pill { display: inline-flex; padding: 4px 9px; border: 1px solid #d8c49f; border-radius: 999px; background: #fbf6ed; color: #75521e; font-size: 10px; font-weight: 800; }
.product-card h3 { margin: 44px 0 9px; font-size: 26px; }
.product-card p { color: var(--ink-700); max-width: 520px; min-height: 55px; }
.product-card__foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--brand-600); font-size: 12px; font-weight: 800; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.principle-grid article { background: var(--surface); padding: 32px; }
.principle-grid article > span { color: var(--accent-500); font-size: 11px; font-weight: 900; }
.principle-grid h3 { margin: 26px 0 8px; font-size: 21px; }
.principle-grid p { margin: 0; color: var(--ink-700); }
.cta-band { padding: 80px max(24px, calc((100vw - 1180px) / 2)); background: var(--brand-800); color: #fff; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; }
.cta-band .eyebrow { grid-column: 1 / -1; color: #e6bd79; }
.cta-band h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); }

.page-hero, .product-hero { width: var(--content); margin: auto; padding: 105px 0 75px; }
.page-hero { max-width: 900px; margin-inline-start: max(20px, calc((100vw - 1180px) / 2)); }
.page-hero h1, .product-hero h1 { margin: 12px 0 20px; font-size: clamp(42px, 6vw, 70px); letter-spacing: -.055em; line-height: 1.15; }
.page-hero > p, .product-hero > div > p { color: var(--ink-700); font-size: 18px; max-width: 760px; }
.product-list { border-top: 1px solid var(--line); }
.product-row { display: grid; grid-template-columns: 70px 1fr 180px; gap: 24px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.product-row h2 { margin: 0 0 5px; }
.product-row p { margin: 0; color: var(--ink-700); }
.product-row__meta { display: grid; justify-items: end; gap: 18px; }
.product-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.product-spec { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 10px 24px; }
.product-spec div { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.product-spec div:last-child { border: 0; }
.product-spec span { color: var(--ink-500); font-size: 12px; }
.product-spec strong { font-size: 13px; }
.content-sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 20px; }
.content-sections article { border-top: 3px solid var(--brand-600); padding-top: 18px; }
.page-hero--split { max-width: none; margin: auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 900; }
.field label small { color: var(--ink-500); font-weight: 400; }
.field input, .field select, .field textarea, .search-field input { width: 100%; border: 1px solid #bcc9c6; border-radius: var(--radius-sm); background: #fff; padding: 10px 12px; min-height: 44px; color: var(--brand-950); }
.field textarea { resize: vertical; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.form-status { margin: 0; color: var(--brand-600); font-size: 12px; }

.auth-shell { min-height: calc(100vh - 150px); padding: 70px 20px; display: grid; place-items: center; background: linear-gradient(150deg, var(--sand-50) 60%, var(--sand-100)); }
.auth-card { width: min(500px, 100%); padding: 38px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.auth-card--wide { width: min(670px, 100%); }
.auth-card h1 { margin: 8px 0 10px; font-size: 38px; }
.auth-card > p { color: var(--ink-700); }
.dev-notice { margin: 22px 0; border: 1px solid #eed3a8; border-radius: var(--radius-sm); background: #fff8e8; color: #774f14; padding: 10px 13px; font-size: 12px; }
.stack-form { display: grid; gap: 17px; }
.auth-note { font-size: 11px; margin: 22px 0 0; text-align: center; }
.auth-note a { font-weight: 900; text-decoration: underline; }
.auth-error { margin: 22px 0; border: 1px solid #e6b4b4; border-radius: var(--radius-sm); background: #fdf2f2; color: #8c2f2f; padding: 10px 13px; font-size: 12px; }
.auth-done { margin: 22px 0; border: 1px solid #b9d9c9; border-radius: var(--radius-sm); background: #eef8f2; color: #1f5a3c; padding: 10px 13px; font-size: 12px; }
.captcha__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha__image { border: 1px solid #bcc9c6; border-radius: var(--radius-sm); background: #fff; width: 220px; height: 64px; image-rendering: pixelated; }
.captcha__refresh { border: 1px solid #bcc9c6; border-radius: var(--radius-sm); background: #fff; padding: 8px 12px; min-height: 40px; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.captcha input[name="captcha_answer"] { letter-spacing: 0.3em; font-weight: 900; text-transform: uppercase; }
.field-hint { color: var(--ink-500); font-size: 11px; }
.site-signup { color: #c7d5d8; padding: 8px 4px; font-size: 12px; font-weight: 900; }
.context-list { display: grid; gap: 10px; margin-top: 24px; }
.context-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--brand-950); cursor: pointer; text-align: start; }
.context-list button:hover { border-color: var(--brand-600); background: #f6fbfa; }
.context-list strong, .context-list small { display: block; }
.context-list small { color: var(--ink-500); direction: ltr; }

.app-body { background: #eef2f1; }
.app-body .footer { margin-inline-start: 0; }
.app-shell { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: stretch; }
.sidebar { position: static; min-height: 100%; overflow: visible; padding: 20px 14px; background: var(--brand-900); color: #fff; }
.context-badge { padding: 14px; margin-bottom: 14px; background: rgb(255 255 255 / 5%); border: 1px solid #31505a; border-radius: var(--radius-sm); }
.context-badge span, .context-badge strong, .context-badge small { display: block; }
.context-badge span { color: #9db2b7; font-size: 10px; }
.context-badge strong { margin: 3px 0; font-size: 13px; }
.context-badge small { color: #e6bd79; font-size: 10px; direction: ltr; }
.sidebar nav { display: grid; gap: 3px; }
.nav-group { display: block; padding: 15px 10px 5px; color: #78939a; font-size: 9px; font-weight: 900; }
.sidebar nav a { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 10px; border-radius: 7px; color: #b8c9cc; font-size: 12px; }
.sidebar nav a > span { width: 22px; text-align: center; color: #78939a; }
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { color: #fff; background: var(--brand-800); }
.sidebar__logout { width: 100%; margin-top: 20px; padding: 9px; border: 1px solid #31505a; border-radius: 7px; background: transparent; color: #b8c9cc; cursor: pointer; }
.app-main { min-width: 0; padding: 40px; }
.app-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -16px 0 30px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.breadcrumbs, .app-toolbar__actions { display: flex; align-items: center; gap: 10px; }
.breadcrumbs { color: var(--ink-500); font-size: 11px; }
.breadcrumbs a { color: var(--brand-600); font-weight: 800; }
.app-search input { width: min(260px, 30vw); min-height: 38px; padding: 7px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--brand-950); }
.toolbar-button { min-width: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--brand-950); cursor: pointer; }
.toolbar-button span { color: var(--ink-500); font-size: 9px; }
.state-banner { margin-bottom: 18px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 12px; }
.state-banner--success { border: 1px solid #b9dacb; background: #edfaf4; color: var(--success); }
.app-heading { display: flex; justify-content: space-between; align-items: start; gap: 30px; margin-bottom: 26px; }
.app-heading h1 { margin: 5px 0; font-size: 34px; line-height: 1.2; }
.app-heading p { margin: 0; color: var(--ink-700); }
.health-chip, .risk-badge { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 7px 11px; border: 1px solid #b9dacb; border-radius: 999px; background: #edfaf4; color: var(--success); font-size: 10px; font-weight: 900; }
.health-chip i { width: 7px; height: 7px; background: var(--success); border-radius: 50%; }
.risk-badge--critical { color: var(--danger); border-color: #f0bbb7; background: #fff2f1; }
.risk-badge--standard { color: var(--warning); border-color: #ead0aa; background: #fff8ed; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 22px; }
.metric-grid--three { grid-template-columns: repeat(3, 1fr); }
.metric-grid article { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.metric-grid span, .metric-grid strong, .metric-grid small { display: block; }
.metric-grid span { color: var(--ink-500); font-size: 11px; font-weight: 800; }
.metric-grid strong { margin: 8px 0 2px; font-size: 30px; line-height: 1.1; }
.metric-grid small { color: var(--ink-500); font-size: 10px; }
.panel { margin-top: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.panel__head h2, .panel__head p { margin: 0; }
.panel__head h2 { font-size: 17px; }
.product-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-detail-grid article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.product-detail-grid h2 { margin: 12px 0 0; font-size: 20px; line-height: 1.7; }
.product-detail-grid ul { margin: 12px 0 0; padding-inline-start: 22px; line-height: 2; }
@media (max-width: 720px) { .product-detail-grid { grid-template-columns: 1fr; } }
.panel__head p { color: var(--ink-500); font-size: 11px; }
.panel__actions { display: flex; gap: 9px; }
.search-field input { min-width: 240px; min-height: 36px; padding-block: 6px; font-size: 12px; }
.action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 16px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.action-grid a { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; padding: 16px; background: #fff; }
.action-grid a:hover { background: #f6fbfa; }
.action-grid a > span { color: var(--accent-500); font-size: 10px; direction: ltr; }
.action-grid strong, .action-grid small { display: block; }
.action-grid strong { font-size: 12px; }
.action-grid small { color: var(--ink-500); font-size: 9px; }
.action-grid b { color: var(--brand-600); }
.empty-state { padding: 55px 20px; text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 50px; height: 50px; margin: auto; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-500); font-size: 24px; }
.empty-state h3, .empty-state h2 { margin: 14px 0 4px; }
.empty-state p { max-width: 520px; margin: auto; color: var(--ink-500); font-size: 12px; }
.empty-state--unavailable { background: #fffaf2; }
.record-count { color: var(--ink-500); font-size: 11px; font-weight: 800; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: start; }
.data-table th, .data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--ink-500); font-size: 10px; font-weight: 900; white-space: nowrap; }
.data-table td { font-size: 12px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.audit-list { display: grid; }
.audit-list article { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.audit-list article:last-child { border: 0; }
.audit-list strong, .audit-list small { display: block; }
.audit-list strong { font-size: 12px; }
.audit-list small { color: var(--ink-500); font-size: 10px; }
.audit-list code { direction: ltr; color: var(--ink-500); font-size: 10px; }
.audit-dot { width: 8px; height: 8px; border: 2px solid var(--brand-600); border-radius: 50%; }

html[data-theme="dark"] {
  color-scheme: dark;
  --sand-50: #09171c;
  --sand-100: #10242b;
  --surface: #10242b;
  --brand-950: #f1f7f7;
  --ink-700: #c1d0d2;
  --ink-500: #91a8ad;
  --line: #294148;
  --shadow: 0 18px 60px rgb(0 0 0 / 28%);
}

.footer { min-height: 74px; padding: 20px max(20px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); background: #fff; color: var(--ink-700); font-size: 11px; }
.footer > div, .footer nav { display: flex; align-items: center; gap: 18px; }
.footer .version { color: var(--ink-500); direction: ltr; }
.footer nav a:hover { color: var(--brand-600); }

/* Public experience — Albinyah systems constellation */
.site-body {
  --site-night: #061a27;
  --site-night-2: #0a2b3b;
  --site-cyan: #14b8c4;
  --site-cyan-soft: #a9e3e0;
  --site-copper: #d5a14e;
  --site-cream: #f4f2eb;
  background: var(--site-cream);
}
.site-body main { overflow: clip; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: rgb(6 26 39 / 92%);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  backdrop-filter: blur(18px);
}
.site-header__inner {
  width: var(--content);
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.site-brand__mark {
  width: 40px;
  height: 40px;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 10px;
  transform: rotate(45deg);
}
.site-brand__mark i { display: block; border-radius: 2px; background: var(--site-cyan); }
.site-brand__mark i:nth-child(2), .site-brand__mark i:nth-child(3) { background: var(--site-copper); }
.site-brand__name strong, .site-brand__name small { display: block; line-height: 1.08; }
.site-brand__name strong { font-size: 18px; letter-spacing: -.02em; }
.site-brand__name small { margin-top: 4px; color: #90aeb8; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-inline-start: auto; }
.site-nav a { position: relative; padding: 28px 0; color: #b9cbd0; font-size: 13px; font-weight: 700; }
.site-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--site-cyan); transform: scaleX(0); transition: transform .2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.locale-switch--site { border-color: rgb(255 255 255 / 24%); color: #dce7e9; }
.site-login { color: #c7d5d8; padding: 8px 4px; font-size: 12px; font-weight: 700; }
.site-contact { border-color: var(--site-cyan); background: var(--site-cyan); color: var(--site-night); }
.site-contact:hover { background: #35c9d2; }
.mobile-menu { display: none; position: relative; }
.mobile-menu > summary { width: 42px; height: 42px; display: grid; place-content: center; gap: 7px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 9px; cursor: pointer; list-style: none; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu > summary span { width: 18px; height: 1px; display: block; background: #fff; }
.mobile-menu[open] > summary span:first-child { transform: translateY(4px) rotate(45deg); }
.mobile-menu[open] > summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu nav { position: fixed; inset-inline: 14px; top: 70px; display: grid; padding: 12px; background: #0b2a39; border: 1px solid #294956; border-radius: 16px; box-shadow: 0 30px 80px rgb(0 0 0 / 35%); }
.mobile-menu nav a { padding: 13px 14px; border-bottom: 1px solid rgb(255 255 255 / 9%); color: #e9f0f1; font-size: 14px; }
.mobile-menu nav a:last-child { border-bottom: 0; color: var(--site-cyan-soft); }

.site-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgb(34 188 197 / 17%), transparent 29%),
    radial-gradient(circle at 82% 70%, rgb(213 161 78 / 12%), transparent 25%),
    linear-gradient(135deg, #061a27 0%, #082b3b 58%, #061c29 100%);
}
.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  background-image: linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.site-hero__grid { width: var(--content); min-height: 600px; margin: auto; padding: 54px 0 48px; display: grid; grid-template-columns: minmax(0, .94fr) minmax(470px, 1.06fr); align-items: center; gap: 68px; position: relative; z-index: 2; }
.site-hero .eyebrow { color: #86d9d9; }
.site-hero__copy h1 { margin: 18px 0 22px; font-size: clamp(48px, 5.7vw, 80px); line-height: 1.07; letter-spacing: -.058em; }
.site-hero__copy h1 em { display: block; color: #fff; font-style: normal; }
.site-hero__copy > p { max-width: 650px; margin: 0; color: #aac0c5; font-size: 18px; line-height: 1.9; }
.site-hero .hero__actions { margin-top: 34px; }
.button--hero { min-height: 50px; padding: 13px 22px; border-color: var(--site-cyan); background: var(--site-cyan); color: var(--site-night); }
.button--hero:hover { background: #38ccd5; }
.site-hero .text-link { color: #fff; }
.hero-assurance { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 20px; color: #9ab3b9; font-size: 11px; font-weight: 700; }
.hero-assurance span { display: inline-flex; align-items: center; gap: 7px; }
.hero-assurance i { width: 6px; height: 6px; border-radius: 50%; background: var(--site-cyan); box-shadow: 0 0 0 4px rgb(20 184 196 / 10%); }

.systems-map { position: relative; min-height: 540px; border: 1px solid rgb(255 255 255 / 13%); border-radius: 30px; overflow: hidden; background: rgb(4 20 30 / 45%); box-shadow: 0 45px 100px rgb(0 0 0 / 24%); }
.systems-map::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgb(255 255 255 / 7%); border-radius: 22px; }
.systems-map__grid { position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px); background-size: 44px 44px; }
.systems-map__orbit { position: absolute; top: 50%; left: 50%; border: 1px dashed rgb(85 207 213 / 24%); border-radius: 50%; transform: translate(-50%, -50%); }
.systems-map__orbit--one { width: 280px; height: 280px; animation: orbit-spin 24s linear infinite; }
.systems-map__orbit--two { width: 410px; height: 410px; border-color: rgb(213 161 78 / 18%); animation: orbit-spin-reverse 32s linear infinite; }
.systems-map__core { position: absolute; top: 50%; left: 50%; width: 142px; height: 142px; display: grid; place-content: center; text-align: center; border: 1px solid rgb(20 184 196 / 55%); border-radius: 50%; background: radial-gradient(circle, #123f4c, #081f2c 70%); transform: translate(-50%, -50%); box-shadow: 0 0 0 14px rgb(20 184 196 / 4%), 0 0 55px rgb(20 184 196 / 15%); }
.systems-map__core > span { color: #78cfd1; font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.systems-map__core strong { margin: 2px 0 7px; font-size: 22px; }
.systems-map__core small { color: #91adb4; font-size: 8px; }
.systems-map__node { position: absolute; z-index: 3; width: 150px; min-height: 70px; padding: 13px 15px; display: grid; align-content: center; border: 1px solid #2a4b58; border-radius: 13px; background: rgb(9 38 51 / 92%); box-shadow: 0 12px 30px rgb(0 0 0 / 24%); transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.systems-map__node::before { content: ""; position: absolute; top: 50%; width: 64px; border-top: 1px solid rgb(20 184 196 / 30%); }
.systems-map__node span { color: var(--site-copper); font-size: 8px; font-weight: 900; direction: ltr; }
.systems-map__node strong { margin-top: 3px; font-size: 12px; line-height: 1.35; }
.systems-map__node:hover { border-color: var(--site-cyan); background: #0d3949; transform: translateY(-3px); }
.systems-map__node--1 { top: 12%; inset-inline-start: 6%; }
.systems-map__node--2 { top: 15%; inset-inline-end: 5%; }
.systems-map__node--3 { bottom: 18%; inset-inline-start: 7%; }
.systems-map__node--4 { bottom: 14%; inset-inline-end: 6%; }
.systems-map__node--1::before, .systems-map__node--3::before { inset-inline-end: -65px; }
.systems-map__node--2::before, .systems-map__node--4::before { inset-inline-start: -65px; }
.systems-map__caption { position: absolute; inset-inline: 25px; bottom: 20px; display: flex; justify-content: space-between; color: #6e9099; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hero-signal { position: relative; z-index: 2; width: var(--content); margin: auto; display: grid; grid-template-columns: repeat(3, .8fr) 1.6fr; border-top: 1px solid rgb(255 255 255 / 12%); }
.hero-signal > div { min-height: 78px; padding: 16px 24px; display: flex; align-items: center; gap: 12px; border-inline-end: 1px solid rgb(255 255 255 / 12%); }
.hero-signal > div:last-child { border-inline-end: 0; }
.hero-signal strong { color: #fff; font-size: 29px; line-height: 1; }
.hero-signal span { color: #87a4ab; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hero-signal__statement { justify-content: flex-end; text-align: end; }
.hero-signal__statement strong { color: var(--site-cyan-soft); font-size: 17px; }
@keyframes orbit-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes orbit-spin-reverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }

.site-body .section { padding-block: 76px; }
.site-body .section-heading { align-items: start; margin-bottom: 34px; }
.site-body .section-heading h2 { max-width: 700px; font-size: clamp(34px, 4vw, 53px); }
.site-body .section-heading > p { margin: 10px 0 0; line-height: 1.9; }
.portfolio-showcase { position: relative; }
.portfolio-showcase::before { content: "PRODUCT SYSTEMS"; position: absolute; inset-inline-end: 0; top: 45px; color: rgb(6 26 39 / 4%); font-size: clamp(58px, 9vw, 128px); font-weight: 900; letter-spacing: -.06em; white-space: nowrap; pointer-events: none; }
.site-body .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; background: transparent; }
.site-body .product-card { grid-column: auto; min-height: 300px; padding: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; border-color: #d7ddd9; border-radius: 20px; }
.site-body .product-card::before { content: ""; position: absolute; width: 160px; height: 160px; inset-inline-end: -65px; top: -65px; border: 1px solid rgb(20 184 196 / 18%); border-radius: 50%; box-shadow: 0 0 0 26px rgb(20 184 196 / 3%), 0 0 0 52px rgb(20 184 196 / 2%); }
.site-body .product-card--1, .site-body .product-card--4 { grid-column: auto; }
.site-body .product-card--2, .site-body .product-card--3 { grid-column: auto; }
.site-body .product-card--4 { background: var(--site-night); color: #fff; border-color: var(--site-night); }
.site-body .product-card--4 p { color: #a9bdc2; }
.site-body .product-card--4 .product-card__foot { border-color: #27434e; color: #80d6d7; }
.site-body .product-index { display: inline-flex; align-items: center; gap: 8px; }
.site-body .product-index i { width: 20px; height: 2px; display: inline-block; background: var(--site-cyan); }
.site-body .product-card h3 { margin: 36px 0 10px; font-size: clamp(22px, 2vw, 30px); }
.site-body .product-card p { max-width: 590px; min-height: auto; margin: 0; line-height: 1.75; }
.site-body .product-card__foot { position: static; margin-top: auto; padding-top: 16px; }
.portfolio-all { margin-top: 20px; }

.operating-method { position: relative; overflow: hidden; color: #fff; background: var(--site-night); }
.operating-method::before { content: ""; position: absolute; inset-inline-end: -150px; top: -260px; width: 620px; height: 620px; border: 1px solid rgb(213 161 78 / 20%); border-radius: 50%; box-shadow: 0 0 0 80px rgb(213 161 78 / 3%), 0 0 0 160px rgb(213 161 78 / 2%); }
.operating-method__inner { width: var(--content); margin: auto; padding: 78px 0; display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; position: relative; z-index: 1; }
.operating-method .eyebrow { color: #72ced2; }
.operating-method__intro h2 { margin: 14px 0 22px; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.15; letter-spacing: -.05em; }
.operating-method__intro p { margin: 0 0 30px; color: #9fb5bb; line-height: 1.9; }
.text-link--light { color: #fff; }
.method-track { list-style: none; margin: 0; padding: 0; border-top: 1px solid #2c4853; }
.method-track li { position: relative; padding: 24px 0; display: grid; grid-template-columns: 58px 1fr; gap: 22px; border-bottom: 1px solid #2c4853; }
.method-track > li > span { color: var(--site-copper); font-size: 11px; font-weight: 900; direction: ltr; }
.method-track strong, .method-track small { display: block; }
.method-track strong { margin-bottom: 5px; font-size: 20px; }
.method-track small { color: #89a5ad; font-size: 12px; }
.site-body .principle-grid { gap: 16px; border: 0; background: transparent; overflow: visible; }
.site-body .principle-grid article { min-height: 230px; padding: 26px; transform: none; border: 1px solid #d7ddd9; border-radius: 18px; }
.site-body .principle-grid article:nth-child(2) { transform: none; }
.site-body .principle-grid article > span { color: #b27c2b; }
.site-body .principle-grid h3 { margin-top: 38px; font-size: 24px; }
.site-body .cta-band { width: var(--content); margin: 24px auto 64px; padding: 42px 48px; grid-template-columns: 1fr auto; border-radius: 26px; background: linear-gradient(120deg, #0c3646, #0d5560); box-shadow: 0 30px 70px rgb(6 26 39 / 15%); }
.site-body .cta-band > div { max-width: 780px; }
.site-body .cta-band h2 { margin-top: 10px; }

.site-body .page-hero, .site-body .product-hero {
  width: var(--content);
  max-width: none;
  margin: 54px auto 0;
  padding: 74px;
  color: #fff;
  border-radius: 30px;
  background: radial-gradient(circle at 85% 25%, rgb(20 184 196 / 18%), transparent 28%), var(--site-night);
  box-shadow: 0 35px 90px rgb(6 26 39 / 15%);
}
.site-body .page-hero h1, .site-body .product-hero h1 { font-size: clamp(46px, 6vw, 76px); }
.site-body .page-hero > p, .site-body .product-hero > div > p { color: #a9bec3; }
.page-hero--catalog { display: grid; grid-template-columns: 1fr .65fr; align-items: end; gap: 70px; }
.page-hero--catalog > p { margin-bottom: 10px; }
.site-body .product-row { min-height: 180px; grid-template-columns: 80px 1fr 190px; align-items: center; padding: 34px 24px; transition: background .2s ease, padding .2s ease; }
.site-body .product-row:hover { padding-inline: 34px; background: #fff; }
.site-body .product-row h2 { font-size: 27px; }
.site-body .product-hero { grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.site-body .product-hero__copy .eyebrow { display: inline-flex; padding: 6px 11px; border: 1px solid rgb(134 217 217 / 28%); border-radius: 999px; color: #86d9d9; }
.site-body .product-spec { padding: 10px 26px; border-color: #294955; background: rgb(255 255 255 / 5%); }
.site-body .product-spec div { border-color: #294955; }
.site-body .product-spec span { color: #82a0a8; }
.site-body .product-spec strong { color: #f4f7f7; text-align: end; }
.site-body .product-spec__head { display: block; }
.site-body .product-spec__head strong { display: block; margin-top: 3px; color: var(--site-cyan-soft); direction: ltr; text-align: start; font-size: 10px; }
.product-next { width: var(--content); margin: 0 auto 100px; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-next > span { color: var(--ink-500); font-size: 12px; }
.product-next a { font-size: clamp(20px, 3vw, 34px); font-weight: 800; }
.product-next b { margin-inline-start: 16px; color: var(--site-cyan); }
.site-body .content-sections { gap: 18px; }
.site-body .content-sections article { min-height: 270px; padding: 28px; border: 1px solid #d7ddd9; border-top: 3px solid var(--site-cyan); border-radius: 14px; background: #fff; }
.site-body .content-sections article > span { color: var(--site-copper); font-size: 10px; font-weight: 900; }
.site-body .content-sections h2 { margin-top: 45px; font-size: 23px; }

.contact-layout { width: var(--content); margin: 54px auto 100px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.contact-intro { position: sticky; top: 130px; padding: 64px 0; }
.contact-intro h1 { margin: 12px 0 20px; font-size: clamp(44px, 5vw, 68px); line-height: 1.15; letter-spacing: -.055em; }
.contact-intro > p { color: var(--ink-700); font-size: 17px; }
.contact-note { margin: 36px 0 10px; padding-top: 24px; display: flex; gap: 14px; border-top: 1px solid var(--line); }
.contact-note > span { color: var(--site-cyan); font-size: 22px; }
.contact-note p, .contact-note strong, .contact-note small { display: block; margin: 0; }
.contact-note small { margin-top: 5px; color: var(--ink-500); }
.site-body .contact-form { padding: 42px; gap: 22px; border-radius: 22px; box-shadow: 0 26px 70px rgb(6 26 39 / 10%); }
.contact-form__head { padding-bottom: 22px; display: flex; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.contact-form__head span { color: var(--site-copper); font-size: 10px; }
.contact-form__head strong { font-size: 19px; }
.site-body .field input, .site-body .field select, .site-body .field textarea { border-color: #c8d1ce; background: #fbfcfa; }

.site-footer { color: #fff; background: #061a27; }
.site-footer__main { width: var(--content); margin: auto; padding: 48px 0 36px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 42px; }
.site-brand--footer { margin-bottom: 16px }
.site-footer__brand p { max-width: 360px; color: #8fa9b0; font-size: 13px; }
.site-footer__main > div > strong { display: block; margin: 5px 0 20px; color: #78949b; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer__main nav { display: grid; gap: 10px; }
.site-footer__main nav a { color: #c2d0d3; font-size: 12px; }
.site-footer__main nav a:hover { color: var(--site-cyan-soft); }
.site-footer__cta { padding-inline-start: 26px; border-inline-start: 1px solid #29434d; }
.site-footer__bottom { width: var(--content); margin: auto; min-height: 60px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; border-top: 1px solid #263f49; color: #718f97; font-size: 10px; }
.site-footer__legal { display: flex; gap: 18px; }
.site-footer .version { direction: ltr; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .site-nav, .site-login, .site-signup { display: none; }
  .mobile-menu { display: block; }
  .site-hero__grid, .operating-method__inner, .contact-layout { grid-template-columns: 1fr; }
  .site-hero__grid { padding-top: 64px; }
  .systems-map { min-height: 520px; }
  .operating-method__inner { gap: 55px; }
  .site-body .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-body .product-card, .site-body .product-card--1, .site-body .product-card--2, .site-body .product-card--3, .site-body .product-card--4 { grid-column: auto; }
  .page-hero--catalog { grid-template-columns: 1fr; gap: 24px; }
  .contact-intro { position: static; padding-bottom: 0; }
  .site-footer__main { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer__cta { grid-column: 1 / -1; padding: 26px 0 0; border-inline-start: 0; border-top: 1px solid #29434d; }
  .topnav { display: none; }
  .hero__grid, .product-hero, .page-hero--split { grid-template-columns: 1fr; gap: 45px; }
  .hero__grid { padding: 70px 0; }
  .product-grid, .principle-grid, .content-sections { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; align-items: start; }
  .app-shell { grid-template-columns: 78px minmax(0, 1fr); }
  .sidebar { padding-inline: 9px; }
  .context-badge strong, .context-badge span, .context-badge small, .sidebar nav a:not([aria-current="page"]) { font-size: 0; }
  .sidebar nav a { justify-content: center; }
  .sidebar nav a > span { font-size: 18px; }
  .app-body .footer { margin-inline-start: 0; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --content: min(100% - 28px, 1180px); }
  .topbar__inner { min-height: 68px; gap: 10px; }
  .site-header__inner { min-height: 70px; gap: 10px; }
  .site-brand__mark { width: 34px; height: 34px; padding: 6px; }
  .site-brand__name strong { font-size: 15px; }
  .site-brand__name small { font-size: 7px; }
  .site-contact { display: none; }
  .locale-switch--site { margin-inline-start: auto; }
  .site-hero__grid { min-height: auto; padding: 42px 0 30px; gap: 30px; }
  .site-hero__copy h1 { font-size: clamp(40px, 13vw, 54px); }
  .site-hero__copy > p { font-size: 15px; }
  .site-hero .hero__actions { align-items: stretch; }
  .hero-assurance { gap: 9px 16px; }
  .systems-map { min-height: 340px; border-radius: 22px; }
  .systems-map__orbit--one { width: 190px; height: 190px; }
  .systems-map__orbit--two { width: 300px; height: 300px; }
  .systems-map__core { width: 98px; height: 98px; }
  .systems-map__core strong { font-size: 16px; }
  .systems-map__node { width: 96px; min-height: 59px; padding: 9px; }
  .systems-map__node strong { font-size: 9px; }
  .systems-map__node::before { width: 28px; }
  .systems-map__node--1 { top: 9%; inset-inline-start: 4%; }
  .systems-map__node--2 { top: 11%; inset-inline-end: 4%; }
  .systems-map__node--3 { bottom: 19%; inset-inline-start: 4%; }
  .systems-map__node--4 { bottom: 17%; inset-inline-end: 4%; }
  .systems-map__node--1::before, .systems-map__node--3::before { inset-inline-end: -29px; }
  .systems-map__node--2::before, .systems-map__node--4::before { inset-inline-start: -29px; }
  .hero-signal { grid-template-columns: repeat(2, 1fr); }
  .hero-signal > div { min-height: 70px; padding: 13px 12px; }
  .hero-signal__statement { grid-column: 1 / -1; justify-content: space-between; text-align: start; border-top: 1px solid rgb(255 255 255 / 12%); }
  .site-body .section { padding-block: 56px; }
  .site-body .section-heading { margin-bottom: 34px; }
  .site-body .product-grid { grid-template-columns: 1fr; }
  .site-body .product-card, .site-body .product-card--1, .site-body .product-card--2, .site-body .product-card--3, .site-body .product-card--4 { grid-column: auto; min-height: 260px; padding: 24px; }
  .site-body .product-card__foot { inset-inline: 24px; }
  .operating-method__inner { padding: 58px 0; }
  .site-body .principle-grid article:nth-child(2) { transform: none; }
  .site-body .cta-band { margin-block: 16px 48px; padding: 30px 24px; grid-template-columns: 1fr; }
  .site-body .page-hero, .site-body .product-hero { margin-top: 20px; padding: 42px 25px; border-radius: 20px; }
  .site-body .page-hero h1, .site-body .product-hero h1 { font-size: 41px; }
  .site-body .product-row { grid-template-columns: 42px 1fr; padding-inline: 0; }
  .site-body .product-row:hover { padding-inline: 10px; }
  .site-body .product-hero { gap: 34px; }
  .product-next { margin-bottom: 70px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .contact-layout { margin-top: 20px; gap: 38px; }
  .contact-intro { padding-top: 45px; }
  .site-body .contact-form { padding: 26px 20px; }
  .site-footer__main { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
  .site-footer__brand, .site-footer__cta { grid-column: 1 / -1; }
  .site-footer__bottom { padding: 16px 0; grid-template-columns: 1fr; gap: 8px; }
  .brand small, .user-chip, .topbar .button { display: none; }
  .hero h1 { font-size: 42px; }
  .hero__grid { min-height: auto; padding: 55px 0; }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .architecture-card { padding: 18px; }
  .section { padding: 65px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .product-grid, .principle-grid, .content-sections, .contact-form { grid-template-columns: 1fr; }
  .field--full, .form-foot { grid-column: auto; }
  .form-foot { align-items: stretch; flex-direction: column; }
  .product-row { grid-template-columns: 42px 1fr; }
  .product-row__meta { grid-column: 2; justify-items: start; }
  .page-hero, .product-hero { padding: 65px 0 45px; }
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 8px 14px; overflow-x: auto; }
  .context-badge, .sidebar form { display: none; }
  .sidebar nav { display: flex; min-width: max-content; }
  .sidebar nav a { font-size: 11px !important; padding-inline: 12px; }
  .sidebar nav a > span { display: none; }
  .app-main { padding: 22px 14px; }
  .app-toolbar { align-items: stretch; flex-direction: column; }
  .app-toolbar__actions, .app-search { width: 100%; }
  .app-search input { width: 100%; }
  .app-heading { display: block; }
  .app-heading .risk-badge, .app-heading .health-chip { margin-top: 14px; }
  .metric-grid, .metric-grid--three, .action-grid { grid-template-columns: 1fr; }
  .panel__head { align-items: stretch; flex-direction: column; }
  .panel__actions { flex-direction: column; }
  .search-field input { min-width: 0; }
  .app-body .footer { margin-inline-start: 0; }
  .footer, .footer > div { align-items: flex-start; flex-direction: column; }
}

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

/* ══════════ تصحيح الطباعة العربية ══════════
   العربية خط متصل لا حروف منفصلة، ولها همزات وشدات فوق السطر ونزول تحته.
   فما يصلح للاتينية يكسرها:
   1) التتبع السالب (letter-spacing سالب) يضغط وصلات الحروف فتتداخل.
   2) التتبع الموجب يفك الوصل فتظهر الكلمة مقطعة الحروف.
   3) السطر الضيق (line-height اقل من 1.3) يجعل همزة السطر السفلي
      تصطدم بنزول السطر الذي فوقه.
   لذلك تُحيَّد كل هذه القيم على الصفحات العربية وحدها (dir=rtl)،
   وتبقى القواعد اللاتينية كما صممت على صفحات dir=ltr. */

[dir="rtl"] .brand strong,
[dir="rtl"] .eyebrow,
[dir="rtl"] .hero h1,
[dir="rtl"] .section-heading h2,
[dir="rtl"] .page-hero h1,
[dir="rtl"] .product-hero h1,
[dir="rtl"] .site-brand__name strong,
[dir="rtl"] .site-brand__name small,
[dir="rtl"] .site-hero__copy h1,
[dir="rtl"] .systems-map__core > span,
[dir="rtl"] .systems-map__caption,
[dir="rtl"] .hero-signal span,
[dir="rtl"] .operating-method__intro h2,
[dir="rtl"] .contact-intro h1,
[dir="rtl"] .site-footer__main > div > strong,
[dir="rtl"] .nav-group,
[dir="rtl"] .app-heading h1,
[dir="rtl"] .metric-grid strong,
[dir="rtl"] .product-card h3,
[dir="rtl"] .principle-grid h3 { letter-spacing: normal; }

[dir="rtl"] .site-hero__copy h1 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.38; }
[dir="rtl"] .hero h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.38; }
[dir="rtl"] .page-hero h1,
[dir="rtl"] .product-hero h1,
[dir="rtl"] .contact-intro h1 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.4; }
[dir="rtl"] .section-heading h2,
[dir="rtl"] .site-body .section-heading h2 { line-height: 1.38; }
[dir="rtl"] .operating-method__intro h2 { line-height: 1.38; }
[dir="rtl"] .cta-band h2 { line-height: 1.38; }
[dir="rtl"] .site-brand__name strong,
[dir="rtl"] .site-brand__name small { line-height: 1.25; }
[dir="rtl"] .app-heading h1 { line-height: 1.4; }
[dir="rtl"] .product-card h3,
[dir="rtl"] .principle-grid h3,
[dir="rtl"] .method-track strong { line-height: 1.45; }

@media (max-width: 960px) {
  [dir="rtl"] .site-hero__copy h1 { font-size: clamp(32px, 5.4vw, 48px); }
}
@media (max-width: 640px) {
  [dir="rtl"] .site-hero__copy h1 { font-size: clamp(27px, 8.2vw, 36px); }
  [dir="rtl"] .hero h1 { font-size: clamp(27px, 8.2vw, 36px); }
  [dir="rtl"] .site-body .page-hero h1,
  [dir="rtl"] .site-body .product-hero h1,
  [dir="rtl"] .contact-intro h1 { font-size: clamp(26px, 7.6vw, 34px); }
  [dir="rtl"] .site-body .section-heading h2 { font-size: clamp(24px, 6.8vw, 32px); }
  [dir="rtl"] .operating-method__intro h2 { font-size: clamp(24px, 6.8vw, 32px); }
  [dir="rtl"] .site-body .cta-band h2 { font-size: clamp(23px, 6.4vw, 30px); }
}

/* نماذج الكتابة في لوحة التحكم (عمق الشاشات) */
.form-panel { border-color: var(--accent-100); }
.record-form { margin-top: 16px; }
.record-form__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.record-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-700); }
.record-field > span { font-weight: 600; }
.record-field em { color: var(--ink-500); font-weight: 400; font-style: normal; }
.record-field input, .record-field select, .record-field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink-700); font: inherit; font-size: 13px;
}
.record-field input:focus, .record-field select:focus, .record-field textarea:focus { border-color: var(--accent-500); outline: none; }
.record-checkboxes { display: flex; gap: 16px; flex-wrap: wrap; }
.record-checkbox { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.record-checkbox input { width: auto; }
.record-form__actions { margin-top: 16px; }
.record-form__submit {
  padding: 10px 20px; border: 0; border-radius: 999px; background: var(--accent-500); color: #fff;
  font: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
}
.record-form__submit:hover { filter: brightness(0.95); }
@media (max-width: 720px) { .record-form__grid { grid-template-columns: 1fr; } }

[dir="rtl"] .site-body .product-index { direction: rtl; text-align: right; }

.site-footer__bottom { grid-template-columns: 1fr auto auto; }
.saudi-tech-mark { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.saudi-tech-mark img { width: 70px; height: auto; padding: 5px 7px; border-radius: 7px; background: #f5f3ec; }
.saudi-tech-mark span { color: #9db3b8; font-size: 9px; }
@media (max-width: 720px) { .site-footer__bottom { grid-template-columns: 1fr; } .saudi-tech-mark img { width: 64px; } }

/* Compact, consistent public inner-page layout. */
@media (min-width: 961px) {
  .site-body .page-hero, .site-body .product-hero { margin-top: 36px; padding: 52px 58px; border-radius: 24px; }
  .site-body .page-hero h1, .site-body .product-hero h1 { margin-block: 12px 16px; font-size: clamp(42px, 4.8vw, 64px); }
  .site-body .page-hero--content { max-width: 1180px; min-height: 300px; display: grid; grid-template-columns: 1fr .78fr; grid-template-rows: auto 1fr; column-gap: 72px; align-items: end; }
  .site-body .page-hero--content .eyebrow { align-self: end; }
  .site-body .page-hero--content h1 { align-self: start; }
  .site-body .page-hero--content > p { grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: center; font-size: 18px; line-height: 1.9; }
  .site-body .page-hero--catalog { gap: 48px; }
  .site-body .product-row { min-height: 138px; padding: 24px 20px; }
  .site-body .content-sections article { min-height: 190px; padding: 24px; }
  .site-body .content-sections h2 { margin-top: 26px; }
  .site-body .product-hero { gap: 48px; }
  .site-body .product-detail-grid article { min-height: 180px; }
  .product-next { margin-bottom: 64px; }
  .contact-layout { margin: 36px auto 70px; gap: 52px; }
  .contact-intro { padding: 38px 0; }
  .site-body .contact-form { padding: 32px; gap: 18px; }
}
@media (max-width: 960px) {
  .site-body .page-hero, .site-body .product-hero { padding: 32px 24px; }
  .site-body .content-sections article { min-height: auto; }
}
