/* ------------------------------------------------------------------
   Mocid company website
   BoardUI visual language, applied by hand: white ground, neutral tiles
   and hairlines, violet accent. The dark theme sits on neutral black and
   follows the OS unless the visitor picks one from the header.

   Tokens are hand-copied from the apps: neutrals from BoardUI's
   styles/theme.css, violets from the Tailwind v4 ramp as literal oklch.
   ------------------------------------------------------------------ */

:root {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --tile: #f7f7f7;
  --tile-2: #ebebeb;
  --hover: #f7f7f7;
  --card: #ffffff;
  --ink: #0a0a0a;
  --text: #525252;
  --muted: #737373;
  --line: #ebebeb;
  --line-2: #ebebeb;
  --line-hover: #d4d4d4;
  --violet: oklch(54.1% 0.281 293.009);
  --violet-2: oklch(49.1% 0.27 292.581);
  --accent: oklch(54.1% 0.281 293.009);
  --accent-2: oklch(49.1% 0.27 292.581);
  --violet-soft: oklch(94.3% 0.029 294.588);
  --focus: oklch(60.6% 0.25 292.717);
  --brand-mark: #5127aa;
  --band: #121212;
  --band-2: #171717;
  --band-3: #262626;
  --band-line: #262626;
  --band-line-2: #404040;
  --on-band: #fafafa;
  --on-band-2: #a3a3a3;
  --on-band-accent: oklch(70.2% 0.183 293.541);
  --green: #15803d;
  --green-soft: #dcfce7;
  --danger: #dc2626;
  --field: #ebebeb;
  --field-hover: #d4d4d4;
  --field-focus: #a3a3a3;
  --shadow-card: 0 1px 1px 0 rgba(0, 0, 0, 0.05);
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --font-arabic: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 7vw, 104px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --bg-2: #171717;
    --tile: #171717;
    --tile-2: #262626;
    --hover: #333333;
    --card: #262626;
    --ink: #fafafa;
    --text: #a3a3a3;
    --muted: #737373;
    --line: #262626;
    --line-2: #404040;
    --line-hover: #737373;
    --accent: oklch(70.2% 0.183 293.541);
    --accent-2: oklch(81.1% 0.111 293.571);
    --violet-soft: color-mix(in srgb, oklch(43.2% 0.232 292.759) 45%, transparent);
    --brand-mark: oklch(70.2% 0.183 293.541);
    --green: #4ade80;
    --green-soft: color-mix(in srgb, #14532d 55%, transparent);
    --danger: #f87171;
    --field: #171717;
    --field-hover: #525252;
    --field-focus: #737373;
    --shadow-card: 0 1px 1px 0 rgba(0, 0, 0, 0.14);
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.18);
    --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23a3a3a3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  }
}

:root[data-theme="dark"] {
  --bg: #121212;
  --bg-2: #171717;
  --tile: #171717;
  --tile-2: #262626;
  --hover: #333333;
  --card: #262626;
  --ink: #fafafa;
  --text: #a3a3a3;
  --muted: #737373;
  --line: #262626;
  --line-2: #404040;
  --line-hover: #737373;
  --accent: oklch(70.2% 0.183 293.541);
  --accent-2: oklch(81.1% 0.111 293.571);
  --violet-soft: color-mix(in srgb, oklch(43.2% 0.232 292.759) 45%, transparent);
  --brand-mark: oklch(70.2% 0.183 293.541);
  --green: #4ade80;
  --green-soft: color-mix(in srgb, #14532d 55%, transparent);
  --danger: #f87171;
  --field: #171717;
  --field-hover: #525252;
  --field-focus: #737373;
  --shadow-card: 0 1px 1px 0 rgba(0, 0, 0, 0.14);
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.18);
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23a3a3a3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}

:root[data-mode="dark"] {
  color-scheme: dark;
}

:root[data-mode="light"] {
  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[lang="ar"] body {
  font-family: var(--font-arabic);
  line-height: 1.8;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

html[lang="ar"] :is(h1, h2, h3, h4) {
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

img,
svg {
  display: block;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

::selection {
  background: var(--violet-soft);
  color: var(--ink);
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

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

/* ---------- Icons, labels, buttons ---------- */

.i {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.i-arrow {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
}

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

.tile-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tile);
  color: var(--ink);
  flex-shrink: 0;
}

.tile-icon .i {
  width: 20px;
  height: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--accent);
}

.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  max-width: 60ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn-lg {
  height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

.btn-sm {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
}

.btn-primary {
  background: var(--violet);
  border-color: var(--violet);
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  background: var(--violet-2);
  border-color: var(--violet-2);
}

.btn-ghost {
  background: var(--card);
  border-color: var(--line-2);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.btn-ghost:hover {
  background: var(--hover);
  border-color: var(--line-hover);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--accent);
}

.link-arrow:hover {
  color: var(--accent-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--tile);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--text);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--tile);
  color: var(--text);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.checks {
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-inline-start: 28px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
}

.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--tile);
}

.checks li::after {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  top: 4px;
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 20px;
  height: 23px;
  fill: var(--brand-mark);
}

.brand-word {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transform: translateY(1px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.site-nav a {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--hover);
}

.site-nav a.is-active {
  color: var(--accent);
}

.nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-button,
.lang-button,
.menu-button {
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.icon-button:hover,
.lang-button:hover,
.menu-button:hover {
  color: var(--ink);
  background: var(--hover);
  border-color: var(--line-hover);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 32px;
}

.icon-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.i-sun {
  display: none;
}

:root[data-mode="dark"] .i-sun {
  display: block;
}

:root[data-mode="dark"] .i-moon {
  display: none;
}

.lang-button {
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
}

.lang-button[lang="ar"] {
  font-family: var(--font-arabic);
}

.lang-button[lang="en"] {
  font-family: var(--font);
}

.menu-button {
  display: none;
  width: 32px;
  place-items: center;
}

.menu-lines {
  position: relative;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: background-color 0.15s ease;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.18s ease;
}

.menu-lines::before {
  top: -5px;
}

.menu-lines::after {
  top: 5px;
}

.site-header[data-menu-open="true"] .menu-lines {
  background: transparent;
}

.site-header[data-menu-open="true"] .menu-lines::before {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-menu-open="true"] .menu-lines::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 3.2vw, 3.75rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
  max-width: 14ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

html[lang="ar"] .hero h1 {
  font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.4rem);
  letter-spacing: 0;
  line-height: 1.25;
  max-width: none;
}

.hero-sub {
  margin-top: 20px;
  font-size: clamp(16px, 12px + 0.6vw, 18px);
  line-height: 1.6;
  color: var(--text);
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

/* Product screenshots */

.hero-visual-wrap {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.shot {
  margin: 0;
  padding: 6px;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.product {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.product .shot {
  margin-top: 16px;
}

.ok {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  flex-shrink: 0;
}

.ok .i {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.evidence-text {
  display: grid;
  gap: 2px;
  line-height: 1.3;
}

.evidence-text strong {
  font-size: 14px;
  font-weight: 500;
}

.evidence-text code,
.evidence-text small {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Module list ---------- */

.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg);
}

.marquee-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: 20px 0;
}

.marquee li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 5px;
  padding-inline: 10px 12px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--line-2);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.marquee li .i {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section);
}

.section-alt {
  background: var(--bg-2);
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.5rem);
  letter-spacing: 0;
  line-height: 1.15;
}

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

/* Cards shared */

.tile,
.offer,
.module,
.bento-card,
.steps li,
.promise {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ---------- Problem ---------- */

.tiles {
  display: grid;
  gap: 16px;
}

.tiles-4 {
  grid-template-columns: repeat(4, 1fr);
}

.tile {
  padding: 24px;
}

.tile h3 {
  margin-top: 16px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
}

.tile p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
}

.result {
  margin-top: 28px;
  font-size: 16px;
  color: var(--text);
  max-width: 70ch;
}

.result strong {
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Offerings ---------- */

.offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 32px);
}

.offer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.offer h3 {
  font-size: 1.5rem;
  line-height: 1.3;
}

.offer-who {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.offer .checks {
  margin-top: 4px;
  margin-bottom: 8px;
}

.offer-dark {
  background: var(--band);
  color: var(--on-band);
  border-color: var(--band-line-2);
}

.offer-dark .tile-icon {
  background: var(--band-3);
  color: var(--on-band);
}

.offer-dark .chip {
  background: var(--band-3);
  color: var(--on-band-2);
}

.offer-dark .offer-who {
  color: var(--on-band);
}

.offer-dark .checks li {
  color: var(--on-band-2);
}

.offer-dark .checks li::before {
  background: var(--band-3);
}

.offer-dark .checks li::after {
  border-color: var(--on-band-accent);
}

.offer-dark .link-arrow {
  color: var(--on-band-accent);
}

.offer-dark .link-arrow:hover {
  color: var(--on-band);
}

/* ---------- Platform: tabs and modules ---------- */

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: -1px;
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--text);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tab small {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--tile-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.tab:hover {
  color: var(--ink);
}

.tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 500;
}

.panel {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-top: 32px;
}

.panel-intro {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
}

.panel-intro h3 {
  font-size: clamp(1.375rem, 1rem + 1.1vw, 1.75rem);
  line-height: 1.25;
}

.panel-intro p {
  font-size: 16px;
  color: var(--text);
  max-width: 36ch;
}

.modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.module {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  scroll-margin-top: 96px;
}

.module h4 {
  margin-top: 8px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
}

.module > p {
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
}

.module .checks {
  margin-top: 6px;
}

.module .checks li {
  font-size: 14px;
}

.module:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.module:last-child:nth-child(odd) .checks {
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}

.module.is-target {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Why Mocid: bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
}

.bento-card h3 {
  margin-top: 12px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
}

.bento-card p {
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
}

.span-2 {
  grid-column: span 2;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-copy h3 {
  margin-top: 12px;
}

.rights {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rights span {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--tile);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--ink);
}

.lang-art {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}

.lang-art span[lang="ar"] {
  font-family: var(--font-arabic);
}

.lang-art i {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.evidence-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.evidence-row .evidence-text {
  flex: 1;
  min-width: 0;
}

.evidence-row code {
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Dark bands ---------- */

.dark {
  position: relative;
  background: var(--band);
  color: var(--on-band);
  border-block: 1px solid var(--band-line);
}

.dark .eyebrow {
  color: var(--on-band-accent);
}

.dark .lead {
  color: var(--on-band-2);
}

.dark .tile-icon {
  background: var(--band-3);
  color: var(--on-band);
}

.dark .checks li {
  color: var(--on-band-2);
}

.dark .checks li::before {
  background: var(--band-3);
}

.dark .checks li::after {
  border-color: var(--on-band-accent);
}

/* ---------- Deployment ---------- */

.deploy-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.deploy-grid h2 {
  margin-top: 12px;
}

.deploy-grid .lead {
  margin-top: 12px;
}

.points {
  display: grid;
  margin-top: 28px;
}

.points li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--band-line-2);
}

.points li:last-child {
  border-bottom: 1px solid var(--band-line-2);
}

.points .tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.points strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 500;
}

.points span {
  font-size: 14px;
  line-height: 20px;
  color: var(--on-band-2);
}

.diagram {
  display: grid;
  gap: 12px;
}

.boundary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  grid-template-rows: auto 28px auto;
  align-items: center;
  padding: 32px 20px 20px;
  border: 1px dashed var(--band-line-2);
  border-radius: var(--radius);
  background: var(--band-2);
}

.boundary > :nth-child(2) { grid-area: 1 / 1; }
.boundary > :nth-child(3) { grid-area: 1 / 2; }
.boundary > :nth-child(4) { grid-area: 1 / 3; }
.boundary > :nth-child(5) { grid-area: 2 / 3; }
.boundary > :nth-child(6) { grid-area: 3 / 1; }
.boundary > :nth-child(7) { grid-area: 3 / 2; }
.boundary > :nth-child(8) { grid-area: 3 / 3; }

.boundary-label {
  position: absolute;
  top: -11px;
  inset-inline-start: 20px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--band-3);
  border: 1px solid var(--band-line-2);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--on-band);
}

.node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 14px;
  text-align: center;
  background: var(--band-3);
  border: 1px solid var(--band-line-2);
  border-radius: var(--radius-md);
}

.node .tile-icon {
  margin-bottom: 6px;
  background: var(--band-2);
}

.node strong {
  font-size: 14px;
  font-weight: 500;
}

.node span {
  font-size: 12px;
  line-height: 16px;
  color: var(--on-band-2);
}

.node-core {
  border-color: var(--on-band-accent);
}

.core-mark-sm {
  width: 20px;
  height: 23px;
  fill: var(--on-band-accent);
}

.conn {
  position: relative;
  height: 0;
  border-top: 1px solid var(--band-line-2);
}

.conn::after {
  content: "";
  position: absolute;
  top: -4px;
  inset-inline-end: -2px;
  border-block: 3.5px solid transparent;
  border-inline-start: 5px solid var(--on-band-2);
}

.vconn {
  position: relative;
  justify-self: center;
  width: 0;
  height: 100%;
  border-inline-start: 1px solid var(--band-line-2);
}

.vconn::after {
  content: "";
  position: absolute;
  bottom: -2px;
  inset-inline-start: -4px;
  border-inline: 3.5px solid transparent;
  border-top: 5px solid var(--on-band-2);
}

.outside {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--band-line-2);
  background: var(--band-2);
  font-size: 14px;
  line-height: 20px;
  color: var(--on-band-2);
}

.outside .i {
  color: var(--on-band-2);
}

/* ---------- Approach ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.steps li {
  position: relative;
  padding: 24px;
}

.step-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--tile);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.steps h3 {
  margin-top: 16px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
}

.steps p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
}

.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.promise {
  display: flex;
  gap: 14px;
  padding: 20px;
}

.promise h3 {
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
}

.promise p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.contact-copy {
  display: grid;
  gap: 12px;
}

.contact-copy .checks {
  margin-top: 8px;
}

.form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--field);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 2px transparent;
  font-size: 14px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field select {
  appearance: none;
  padding-inline-end: 36px;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

[dir="rtl"] .field select {
  background-position: left 12px center;
}

.field textarea {
  height: auto;
  min-height: 104px;
  padding: 10px 12px;
  resize: vertical;
}

.field input:hover:not(:focus),
.field select:hover:not(:focus),
.field textarea:hover:not(:focus) {
  box-shadow: inset 0 0 0 2px var(--field-hover);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--field-focus);
}

.field small {
  min-height: 1.2em;
  font-size: 12px;
  line-height: 16px;
  color: var(--danger);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.form-status {
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: var(--danger);
}

.form-privacy {
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-privacy:hover {
  color: var(--ink);
}

/* ---------- Privacy notice ---------- */

.legal .wrap {
  display: grid;
  gap: 12px;
  max-width: 720px;
  justify-items: start;
}

.legal h1 {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
}

.legal h2 {
  margin-top: 20px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
}

.legal p:not(.lead) {
  color: var(--text);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--band);
  color: var(--on-band-2);
  border-top: 1px solid var(--band-line);
  padding-block: 32px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand-mark {
  fill: var(--on-band-accent);
}

.footer-brand strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--on-band);
}

.footer-brand strong span {
  margin-inline-start: 6px;
  font-family: var(--font-arabic);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--on-band-2);
}

.footer-brand small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--on-band);
}

.footer-meta {
  font-size: 13px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy,
  .hero-visual-wrap {
    min-width: 0;
  }

  .hero-visual-wrap {
    margin-inline: 0;
  }

  .tiles-4 {
    grid-template-columns: 1fr 1fr;
  }

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

  .panel-intro {
    position: static;
  }

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

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

  .deploy-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .header-row {
    height: 60px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .site-header[data-menu-open="true"] .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    line-height: 24px;
  }

  .site-nav a:hover {
    background: transparent;
  }

  .site-nav .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    margin-top: 16px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--violet);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
  }

  .site-nav .nav-cta:hover {
    background: var(--violet-2);
  }

  .header-cta {
    display: none;
  }

  .menu-button {
    display: grid;
  }
}

@media (max-width: 640px) {
  .tiles-4,
  .offers,
  .modules,
  .bento,
  .steps,
  .promises,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

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

  .rights {
    justify-content: flex-start;
  }

  .module:last-child:nth-child(odd) .checks {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual-wrap {
    max-width: none;
  }

  .tab {
    flex: 1;
    justify-content: center;
    padding: 8px 4px;
  }

  .boundary {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .conn,
  .vconn {
    display: none;
  }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
