/* ==========================================================================
   hwe.sa — HWE, Halqat Wasl Establishment For Information Technology
   Layout: a corporate column of sections on cool paper. The black HWE
   wordmark leads; cobalt is the one corporate accent; each solution keeps
   its own mark; Aloke's purple is spent in its own band. A thin "link"
   line, taken from the rule under the logo, joins the solutions in the
   hero and the steps of how we work.
   ========================================================================== */
:root {
  --paper: #f4f5f7;
  --surface: #ffffff;
  --raise: #f7f8fa;
  --ink: #0d1014;
  --muted: #555e6b;
  --line: #dcdfe5;
  --accent: #2443d6;          /* HWE cobalt */
  --accent-ink: #ffffff;
  --accent-weak: #e8ecfd;
  --band: #3a1c60;            /* Aloke's own purple */
  --band-raise: rgba(255, 255, 255, .07);
  --band-ink: #f7f2fe;
  --band-muted: #cfc1e6;
  --band-line: rgba(255, 255, 255, .16);
  --wa: #128c4a;
  --ok: #1d7a46;
  --bad: #b3261e;
  --focus: #2443d6;
  --logo-filter: none;
  --shadow: 0 1px 2px rgba(13, 16, 20, .04), 0 12px 32px -20px rgba(13, 16, 20, .28);

  --display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 16px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0d10; --surface: #13161b; --raise: #181c22; --ink: #eef1f5; --muted: #9aa3b0; --line: #242a33;
    --accent: #8ea2ff; --accent-ink: #0b0f24; --accent-weak: #1a2140;
    --band: #24113d; --band-raise: rgba(255, 255, 255, .06); --band-ink: #f3edfc; --band-muted: #c1b2d9; --band-line: rgba(255, 255, 255, .12);
    --wa: #1c9a52; --ok: #5cc98a; --bad: #f08a80; --focus: #8ea2ff; --logo-filter: invert(1);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b0d10; --surface: #13161b; --raise: #181c22; --ink: #eef1f5; --muted: #9aa3b0; --line: #242a33;
  --accent: #8ea2ff; --accent-ink: #0b0f24; --accent-weak: #1a2140;
  --band: #24113d; --band-raise: rgba(255, 255, 255, .06); --band-ink: #f3edfc; --band-muted: #c1b2d9; --band-line: rgba(255, 255, 255, .12);
  --wa: #1c9a52; --ok: #5cc98a; --bad: #f08a80; --focus: #8ea2ff; --logo-filter: invert(1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a, button, select, summary { touch-action: manipulation; -webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 18%, transparent); }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -.015em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; unicode-bidi: isolate; }
.muted { color: var(--muted); font-size: .9em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 420px) { .wrap { padding-inline: 16px; } }
.brand-logo { display: block; height: auto; filter: var(--logo-filter); }
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }

.eyebrow { font: 600 13px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.section { padding-block: clamp(72px, 10vw, 120px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 700; line-height: 1.18; max-width: 24ch; }
html[lang="ar"] .section h2 { line-height: 1.35; }
.section-sub { margin-top: 16px; color: var(--muted); max-width: 64ch; font-size: 18px; }

/* ---------- buttons: crisp, and they press back ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, filter 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-wa { background: var(--wa); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover, .btn-wa:hover { filter: brightness(1.08); }
  .btn-ghost:hover { border-color: var(--ink); }
}
.wa-ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
.text-link { font-weight: 600; font-size: 14px; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { flex: none; }
.brand .brand-logo { width: 80px; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: background-color 160ms ease, color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--accent-weak); color: var(--accent); } }
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: 999px; }
.lang:hover { background: var(--accent-weak); }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink);
  transition: transform 160ms var(--ease-out);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-btn .i-moon { fill: currentColor; stroke: none; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}
.menu-btn { display: none; }
/* 8 nav links fit from 1100px up; below that the menu button takes over */
@media (max-width: 1100px) {
  .menu-btn { display: inline-grid; }
  .header-wa span { display: none; }
  .header-wa { padding: 0; width: 40px; }
  .nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px;
    background: var(--paper); border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 8px; font-size: 16px; }
  .header-tools { margin-inline-start: auto; }
}
@media (max-width: 420px) {
  .header-row { gap: 10px; }
  .header-tools { gap: 6px; }
  .header-wa { display: none; }
  .lang { padding: 8px 6px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 104px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
html[lang="ar"] .hero h1 { line-height: 1.28; letter-spacing: 0; }
.lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* The rail: every solution, joined by the link line. */
.rail { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 18px 12px; box-shadow: var(--shadow); }
.rail-title { font: 600 12px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding-inline: 8px; }
html[lang="ar"] .rail-title { letter-spacing: 0; font-size: 13px; }
.rail-list { position: relative; display: grid; }
.rail-list::before {
  content: ""; position: absolute; inset-inline-start: 27px; top: 30px; bottom: 30px;
  border-inline-start: 2px solid var(--ink);
}
.rail-item {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 8px;
  border-radius: 12px; color: var(--ink); text-decoration: none;
  transition: background-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .rail-item:hover { background: var(--raise); } }
.rail-item .mark { position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--surface); }
.rail-item .mark-wide { width: var(--s); }
.rail-text { display: grid; gap: 1px; min-width: 0; }
.rail-text b { font: 600 16px/1.3 var(--display); }
.rail-text span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.rail-list li { animation: rail-in 320ms var(--ease-out) both; }
.rail-list li:nth-child(2) { animation-delay: 50ms; }
.rail-list li:nth-child(3) { animation-delay: 100ms; }
.rail-list li:nth-child(4) { animation-delay: 150ms; }
.rail-list li:nth-child(5) { animation-delay: 200ms; }
.rail-list li:nth-child(6) { animation-delay: 250ms; }
@keyframes rail-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Solution marks: each product keeps its own logo. */
.mark {
  --s: 40px; width: var(--s); height: var(--s); flex: none;
  display: inline-grid; place-items: center; overflow: hidden;
  border-radius: calc(var(--s) * .26);
}
.mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mark-plate { background: #ffffff; border: 1px solid var(--line); }
.mark-plate img { padding: 16%; }
.mark-wide { width: calc(var(--s) * 1.6); }
.mark-wide img { padding: 12% 10%; }
.mark-it { background: var(--accent-weak); color: var(--accent); }
.mark-it svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sectors */
.sectors { margin-top: clamp(48px, 7vw, 88px); padding-block: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.sectors-title { font-size: 13px; font-weight: 600; color: var(--muted); }
.sectors-list { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.sectors-list li { font: 500 15px/1.4 var(--display); color: var(--ink); position: relative; }
.sectors-list li + li::before { content: "·"; position: absolute; inset-inline-start: -16px; color: var(--muted); }

/* ---------- solutions ---------- */
.solutions { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.solution {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; align-content: start;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .solution:hover { transform: translateY(-2px); box-shadow: var(--shadow); } }
.solution-head { display: flex; align-items: center; gap: 16px; }
.solution h3 { font-size: 26px; font-weight: 700; line-height: 1.2; }
.solution-sector { margin-top: 2px; color: var(--muted); font-size: 15px; }
.solution-desc { font-size: 16px; max-width: 52ch; }
.solution-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
/* the custom card spans the row: a different offer, not a fifth product */
.sol-custom { grid-column: 1 / -1; background: var(--accent-weak); border-color: transparent; }
.sol-custom .solution-desc { max-width: 64ch; }
.sol-custom .mark-it { background: var(--surface); }
@media (min-width: 821px) { .sol-custom .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
@media (max-width: 820px) { .solutions { grid-template-columns: minmax(0, 1fr); } }

.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-inline-start: 22px; color: var(--muted); font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .66em;
  width: 9px; height: 5px; border-inline-start: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-50%) rotate(-45deg);
}
[dir="rtl"] .ticks li::before { transform: translateY(-50%) rotate(45deg); }

/* ---------- Aloke band ---------- */
.band { background: var(--band); color: var(--band-ink); padding-block: clamp(72px, 10vw, 120px); }
.band a { color: var(--band-ink); }
.band-head { display: flex; gap: 18px; align-items: center; }
.band-logo { border-radius: 18px; flex: none; box-shadow: 0 0 0 1px var(--band-line); }
.eyebrow-on { color: var(--band-muted); margin-bottom: 8px; }
.band h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 700; line-height: 1.2; max-width: 24ch; }
html[lang="ar"] .band h2 { line-height: 1.35; }
.band-sub { margin-top: 18px; color: var(--band-muted); max-width: 66ch; font-size: 18px; }
.band h3 { font-size: 22px; font-weight: 700; }
.band-one { margin-top: 44px; display: grid; gap: 18px; }
.band-one-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.band-one-head p { color: var(--band-muted); }
.systems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.system { background: var(--band-raise); border: 1px solid var(--band-line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.system h4 { font-size: 17px; font-weight: 600; }
.system p { color: var(--band-muted); font-size: 15px; }
@media (max-width: 1000px) { .systems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .systems { grid-template-columns: minmax(0, 1fr); } }
.band-more { margin-top: 36px; display: grid; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.chips-on li { background: transparent; border-color: var(--band-line); color: var(--band-ink); }
.apps-head { margin-top: 48px; display: grid; gap: 6px; }
.apps-head p { color: var(--band-muted); }
.apps { margin-top: 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.app { background: var(--band-raise); border: 1px solid var(--band-line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; align-content: start; }
.app img { border-radius: 14px; box-shadow: 0 0 0 1px var(--band-line); }
.app-text { display: grid; gap: 4px; min-width: 0; }
.app-for { font-size: 12px; font-weight: 600; color: var(--band-muted); }
.app h4 { font-size: 17px; font-weight: 600; }
.app p { color: var(--band-muted); font-size: 14px; }
@media (max-width: 1100px) { .apps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .apps { grid-template-columns: minmax(0, 1fr); } .app { grid-template-columns: 56px minmax(0, 1fr); } }
.band-langs { margin-top: 16px; color: var(--band-muted); font-size: 15px; }
.band-links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.band .btn-on { background: var(--band-ink); color: var(--band); }
.btn-on-ghost { background: transparent; border-color: var(--band-line); }
@media (hover: hover) and (pointer: fine) {
  .band .btn-on:hover { filter: brightness(.94); }
  .btn-on-ghost:hover { border-color: var(--band-ink); }
}
.link-on { font-weight: 500; font-size: 15px; text-decoration-color: var(--band-line); }
.link-on:hover { text-decoration-color: var(--band-ink); }
/* Outoms band: its logo's slate and teal, the same in both themes */
.band-outoms {
  --band: #1d1c35; --band-raise: rgba(255, 255, 255, .06); --band-ink: #eef0fb; --band-muted: #b9bcd6; --band-line: rgba(255, 255, 255, .13);
  background: radial-gradient(700px 360px at 100% 0%, rgba(73, 207, 211, .14), transparent 70%), var(--band);
}
html[dir="rtl"] .band-outoms { background: radial-gradient(700px 360px at 0% 0%, rgba(73, 207, 211, .14), transparent 70%), var(--band); }
.band-outoms .eyebrow-on { color: #49cfd3; }
.band-outoms .btn-on { background: linear-gradient(135deg, #4180a6, #49cfd3); color: #03161b; }
.app-mark { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(73, 207, 211, .14); color: #49cfd3; box-shadow: 0 0 0 1px var(--band-line); }
.app-mark svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Madar band: the deep green of its mark, the same in both themes */
.band-madar {
  --band: #0d2b25; --band-raise: rgba(255, 255, 255, .06); --band-ink: #eef7f3; --band-muted: #b5cfc6; --band-line: rgba(255, 255, 255, .13);
  background: radial-gradient(700px 360px at 100% 0%, rgba(92, 201, 160, .14), transparent 70%), var(--band);
}
html[dir="rtl"] .band-madar { background: radial-gradient(700px 360px at 0% 0%, rgba(92, 201, 160, .14), transparent 70%), var(--band); }
.band-madar .eyebrow-on { color: #7fd8b5; }
.band-madar .btn-on { background: #eef7f3; color: #0d2b25; }
.band-madar .app-mark { background: rgba(92, 201, 160, .14); color: #7fd8b5; }
.band-logo-plate { width: 72px; height: 72px; display: grid; place-items: center; background: #ffffff; }
.apps.apps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* HWE AIO band: its logo's navy wordmark and blue gradient */
.band-aio {
  --band: #0f1a5c; --band-raise: rgba(255, 255, 255, .07); --band-ink: #eef3ff; --band-muted: #bccaf2; --band-line: rgba(255, 255, 255, .14);
  background: radial-gradient(700px 360px at 100% 0%, rgba(44, 184, 255, .22), transparent 70%), var(--band);
}
html[dir="rtl"] .band-aio { background: radial-gradient(700px 360px at 0% 0%, rgba(44, 184, 255, .22), transparent 70%), var(--band); }
.band-aio .eyebrow-on { color: #6cc8ff; }
.band-aio .btn-on { background: linear-gradient(135deg, #1f4fe0, #2cb0ff); color: #ffffff; }
.band-aio .app-mark { background: rgba(44, 184, 255, .14); color: #6cc8ff; }
.apps.apps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .apps.apps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .apps.apps-4 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .apps.apps-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .apps.apps-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- services ---------- */
.engage { margin-top: 40px; display: grid; gap: 14px; }
.engage-title { font-size: 16px; font-weight: 600; color: var(--muted); }
.engage-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.engage-item { background: var(--accent-weak); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 8px; align-content: start; }
.engage-item h4 { font-size: 20px; font-weight: 700; }
.engage-item p { color: var(--ink); max-width: 52ch; }
@media (max-width: 720px) { .engage-list { grid-template-columns: minmax(0, 1fr); } }
.services { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; align-content: start; }
.service h3 { font-size: 18px; font-weight: 600; }
@media (max-width: 1080px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: minmax(0, 1fr); } }
.plans-head { margin-top: 72px; display: grid; gap: 6px; }
.plans-head h3 { font-size: 26px; font-weight: 700; }
.plans-head p { color: var(--muted); max-width: 62ch; }
.plans { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; grid-template-rows: auto 1fr auto; }
.plan h4 { font-size: 20px; font-weight: 700; }
.plan-featured { border: 2px solid var(--accent); }
.plan-badge { position: absolute; top: -12px; inset-inline-start: 22px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.tech { margin-top: 52px; display: grid; gap: 14px; }
.tech h3 { font-size: 16px; font-weight: 600; color: var(--muted); }

/* ---------- about: teams and how we work ---------- */
.teams { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.team { padding-block: 22px; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.team h3 { font-size: 18px; font-weight: 600; }
.team p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .teams { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .teams { grid-template-columns: minmax(0, 1fr); } }

.process-title { margin-top: 64px; font-size: 24px; font-weight: 700; }
.process { margin-top: 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.process::before {
  content: ""; position: absolute; top: 19px; inset-inline: 20px;
  border-top: 2px solid var(--ink);
}
.step { position: relative; display: grid; gap: 8px; align-content: start; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--ink); font-size: 15px; font-weight: 600;
  position: relative; z-index: 1;
}
.step h4 { margin-top: 6px; font-size: 18px; font-weight: 600; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) {
  .process { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .process::before { top: 20px; bottom: 20px; inset-inline: 19px auto; border-top: 0; border-inline-start: 2px solid var(--ink); }
  .step { grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
  .step-num { grid-row: span 2; }
  .step h4 { margin-top: 8px; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.ways { margin-top: 28px; display: grid; gap: 10px; }
.way {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color 160ms ease, transform 160ms var(--ease-out);
}
.way:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .way:hover { border-color: var(--accent); } }
.way svg { width: 26px; height: 26px; flex: none; fill: currentColor; color: var(--accent); }
.way > span { display: grid; gap: 2px; min-width: 0; }
.way b { font-weight: 600; }
.way > span > span { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.way-wa svg { color: var(--wa); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 30px); display: grid; gap: 16px; box-shadow: var(--shadow); }
.form h3 { font-size: 20px; font-weight: 700; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; font: 16px/1.4 var(--body); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.field.has-error input, .field.has-error textarea { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: 13px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form .btn { justify-self: start; }
.form-status { font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.bad { color: var(--bad); }
.form-note { font-size: 13px; color: var(--muted); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 52px 32px; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand .brand-logo { width: 96px; }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 32ch; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h2 { font: 600 13px/1.2 var(--body); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
html[lang="ar"] .footer-col h2 { letter-spacing: 0; font-size: 14px; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--accent); }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- simple pages (legal, sitemap, errors) ---------- */
.page { padding-block: clamp(48px, 7vw, 88px); }
.page h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; line-height: 1.2; }
.page .updated { margin-top: 10px; color: var(--muted); font-size: 14px; }
.prose { margin-top: 32px; max-width: 70ch; display: grid; gap: 26px; }
.prose h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.sitemap-cols { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.sitemap-cols h2 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.sitemap-cols ul { display: grid; gap: 6px; }
.error-page { max-width: 56ch; }
.error-code { font: 700 clamp(64px, 12vw, 120px)/1 var(--display); color: var(--accent); }
.error-page p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.error-page .cta-row { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rail-list li { animation: none; }
  .btn, .icon-btn, .way, .solution { transition: background-color 160ms ease, border-color 160ms ease; }
  .btn:active, .icon-btn:active, .way:active { transform: none; }
}
