:root {
  --ink: #071b2f;
  --ink-soft: #294157;
  --muted: #657587;
  --line: #dce5eb;
  --paper: #f7fafb;
  --white: #ffffff;
  --accent: #00ad93;
  --accent-bright: #00d6b4;
  --blue: #0a78de;
  --night: #03101d;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(7, 27, 47, 0.1);
  --shell: min(1180px, calc(100vw - 48px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.7;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.shell,
.page-shell {
  margin-inline: auto;
  width: var(--shell);
}

.skip-link {
  background: var(--accent-bright);
  color: var(--night);
  inset-inline-start: 16px;
  padding: 10px 16px;
  position: fixed;
  top: -80px;
  z-index: 100;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  background: rgba(247, 250, 251, 0.94);
  border-bottom: 1px solid rgba(220, 229, 235, 0.9);
  position: relative;
  z-index: 10;
}

.utility-bar {
  background: var(--night);
  color: #cbd6df;
  font-size: 0.74rem;
}

.utility-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 34px;
}

.utility-inner > span {
  max-width: 760px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-switch {
  color: var(--accent-bright);
  font-weight: 750;
  letter-spacing: 0.04em;
}

.nav-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 86px;
}

.brand-mark {
  flex: 0 0 auto;
}

.brand-mark img {
  height: 45px;
  width: auto;
}

.main-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.8vw, 28px);
  justify-content: flex-end;
}

.main-nav a {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 680;
  position: relative;
}

.main-nav a:not(.nav-search)::after {
  background: var(--accent);
  bottom: -7px;
  content: "";
  height: 2px;
  inset-inline: 50%;
  position: absolute;
  transition: inset 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  inset-inline: 0;
}

.nav-search {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 17px;
}

.nav-search:hover {
  background: var(--white);
  border-color: var(--accent);
}

.page-shell {
  padding-block: 0 88px;
}

.hero,
.detail-hero {
  align-items: center;
  display: grid;
  gap: clamp(32px, 6vw, 88px);
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  min-height: 670px;
  padding-block: 72px;
  position: relative;
}

.hero::before {
  background: radial-gradient(circle, rgba(0, 214, 180, 0.14), transparent 68%);
  border-radius: 50%;
  content: "";
  height: 460px;
  inset-inline-end: 0;
  position: absolute;
  top: 30px;
  width: min(460px, 100%);
  z-index: -1;
}

.eyebrow,
.card-kicker {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

html[lang="ar"] .eyebrow,
html[lang="ar"] .card-kicker {
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.16;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -0.045em;
  margin-bottom: 24px;
  max-width: 15ch;
}

html[lang="ar"] h1 {
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 3.15rem);
  letter-spacing: -0.03em;
}

html[lang="ar"] h2 {
  letter-spacing: 0;
  line-height: 1.35;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.45vw, 1.25rem);
  max-width: 66ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-weight: 760;
  justify-content: center;
  min-height: 50px;
  padding: 11px 24px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--white);
}

.trust-row {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 56px;
  padding-top: 20px;
}

.trust-row span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.hero-visual,
.detail-visual {
  min-height: 480px;
}

.system-graphic {
  align-items: center;
  background:
    linear-gradient(rgba(7, 27, 47, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 27, 47, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, #fff, #edf5f6 72%);
  background-size: 36px 36px, 36px 36px, auto;
  border: 1px solid var(--line);
  border-radius: 36px;
  box-shadow: var(--shadow);
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 480px;
  overflow: hidden;
  position: relative;
}

.system-graphic::after {
  background: linear-gradient(90deg, var(--accent-bright), var(--blue));
  bottom: 0;
  content: "";
  height: 5px;
  inset-inline: 0;
  position: absolute;
}

.system-orbit {
  border: 1px solid rgba(7, 27, 47, 0.14);
  border-radius: 50%;
  position: absolute;
}

.orbit-one {
  height: 250px;
  width: 250px;
}

.orbit-two {
  border-style: dashed;
  height: 380px;
  width: 380px;
}

.system-node {
  background: var(--accent-bright);
  border: 5px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(7, 27, 47, 0.18);
  height: 26px;
  position: absolute;
  width: 26px;
}

.node-core {
  align-items: center;
  background: var(--ink);
  border-width: 8px;
  color: var(--accent-bright);
  display: flex;
  font-size: 3.2rem;
  font-weight: 900;
  height: 122px;
  justify-content: center;
  position: relative;
  width: 122px;
  z-index: 2;
}

.node-a {
  inset-inline-start: 14%;
  top: 30%;
}

.node-b {
  inset-inline-end: 15%;
  top: 24%;
}

.node-c {
  bottom: 18%;
  inset-inline-end: 23%;
}

.system-label {
  bottom: 34px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  position: absolute;
}

.section {
  padding-block: 84px;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  margin-bottom: 42px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading > p {
  color: var(--muted);
}

.expertise-grid,
.card-grid,
.catalog-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.expertise-card,
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 285px;
  padding: 30px;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.expertise-card:hover,
.card:hover {
  border-color: rgba(0, 173, 147, 0.55);
  box-shadow: 0 18px 50px rgba(7, 27, 47, 0.08);
  transform: translateY(-4px);
}

.expertise-index {
  color: #c8d2da;
  display: block;
  font-size: 1.75rem;
  font-weight: 850;
  margin-bottom: 54px;
}

.expertise-card h3,
.card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.expertise-card > p:last-child,
.card > p {
  color: var(--muted);
  font-size: 0.93rem;
}

.card-arrow {
  align-items: center;
  background: var(--paper);
  border-radius: 50%;
  bottom: 24px;
  color: var(--ink);
  display: flex;
  font-size: 1.2rem;
  height: 40px;
  inset-inline-end: 24px;
  justify-content: center;
  position: absolute;
  width: 40px;
}

html[dir="rtl"] .card-arrow {
  transform: scaleX(-1);
}

.breadcrumb {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 9px;
  padding-block: 25px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.detail-hero {
  min-height: 590px;
  padding-block: 48px 80px;
}

.detail-copy h1,
.editorial-hero h1,
.listing-hero h1,
.search-panel h1 {
  font-size: clamp(2.35rem, 4.2vw, 4.3rem);
}

.meta-list {
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 34px 0 0;
  padding-block: 18px;
}

.meta-list > div {
  padding: 9px 0;
}

.meta-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.meta-list dd {
  font-weight: 760;
  margin: 2px 0 0;
}

.meta-list a {
  color: var(--blue);
}

.content-layout {
  align-items: start;
  display: grid;
  gap: clamp(30px, 6vw, 90px);
  grid-template-columns: minmax(0, 1fr) 330px;
}

.prose {
  color: var(--ink-soft);
  font-size: 1.03rem;
  max-width: 76ch;
}

.prose h2,
.prose h3 {
  color: var(--ink);
  margin-top: 44px;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 1.3em;
}

.standalone-prose {
  font-size: 1.15rem;
}

.sidebar-card {
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--white);
  padding: 30px;
  position: sticky;
  top: 26px;
}

.sidebar-card h2 {
  font-size: 1.55rem;
}

.sidebar-card p {
  color: #c4d2de;
}

.sidebar-card .button {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--night);
  margin-top: 10px;
}

.spec-group {
  margin-top: 42px;
}

.spec-table {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.spec-table table {
  border-collapse: collapse;
  width: 100%;
}

.spec-table th,
.spec-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: start;
  vertical-align: top;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  background: #edf3f5;
  color: var(--ink);
  font-size: 0.82rem;
  width: 38%;
}

.editorial-hero,
.listing-hero,
.search-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  padding: clamp(38px, 7vw, 86px);
  position: relative;
}

.editorial-hero::after,
.listing-hero::after,
.search-panel::after {
  background: linear-gradient(180deg, var(--accent-bright), var(--blue));
  content: "";
  inset-block: 0;
  inset-inline-end: 0;
  position: absolute;
  width: 7px;
}

.editorial-hero .lead,
.listing-hero .lead {
  margin-bottom: 0;
}

.search-form {
  margin-top: 34px;
  max-width: 760px;
}

.search-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 760;
  margin-bottom: 8px;
}

.search-form > div {
  display: flex;
  gap: 10px;
}

.search-form input {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  min-height: 50px;
  min-width: 0;
  outline: none;
  padding: 10px 20px;
  width: 100%;
}

.search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 173, 147, 0.12);
}

.empty-state {
  background: var(--white);
  border: 1px dashed #b6c4ce;
  border-radius: var(--radius);
  color: var(--muted);
  padding: 42px;
  text-align: center;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a:hover,
.text-link:hover {
  color: var(--accent-bright);
}

.site-footer {
  background: var(--night);
  color: var(--white);
  padding-top: 74px;
}

.footer-grid {
  display: grid;
  gap: 58px;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  padding-bottom: 64px;
}

.footer-logo {
  filter: brightness(0) invert(1);
  height: 42px;
  margin-bottom: 22px;
  width: auto;
}

.footer-grid h2 {
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-grid p,
.footer-grid a {
  color: #b6c4cf;
  font-size: 0.88rem;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #7f91a0;
  font-size: 0.76rem;
  padding: 20px max(24px, calc((100vw - 1180px) / 2));
  text-align: center;
}

.system-page {
  align-items: center;
  background:
    radial-gradient(circle at 25% 25%, rgba(0, 214, 180, 0.12), transparent 34%),
    var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 30px;
}

.system-page .brand img {
  height: 48px;
  margin-bottom: 30px;
}

.system-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  max-width: 650px;
  padding: clamp(34px, 7vw, 70px);
  text-align: center;
}

.system-card h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-inline: auto;
}

.system-card p:not(.eyebrow) {
  color: var(--muted);
}

.system-card .button {
  margin-top: 18px;
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 34px, 820px);
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 18px;
  }

  .main-nav {
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .hero,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-visual,
  .detail-visual {
    min-height: 420px;
  }

  .system-graphic {
    min-height: 420px;
  }

  .expertise-grid,
  .card-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .utility-inner > span {
    display: none;
  }

  .utility-inner {
    justify-content: flex-end;
  }

  .brand-mark img {
    height: 40px;
  }

  .main-nav {
    column-gap: 16px;
    row-gap: 12px;
  }

  .main-nav a {
    font-size: 0.8rem;
  }

  .hero,
  .detail-hero {
    min-height: 0;
    padding-block: 46px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .hero-visual,
  .detail-visual,
  .system-graphic {
    min-height: 330px;
  }

  .orbit-one {
    height: 190px;
    width: 190px;
  }

  .orbit-two {
    height: 275px;
    width: 275px;
  }

  .node-core {
    height: 98px;
    width: 98px;
  }

  .section {
    padding-block: 58px;
  }

  .section-heading {
    align-items: start;
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .expertise-grid,
  .card-grid,
  .catalog-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }

  .search-form > div {
    align-items: stretch;
    flex-direction: column;
  }

  .search-form .button {
    width: 100%;
  }
}

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