:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-elevated: #0d1b2f;
  --bg-soft: #10233d;
  --surface: rgba(13, 27, 47, 0.82);
  --surface-strong: rgba(17, 35, 61, 0.94);
  --surface-glass: rgba(11, 24, 43, 0.72);
  --text: #f6f8ff;
  --muted: #a9b6ce;
  --muted-strong: #d7deed;
  --line: rgba(157, 176, 211, 0.18);
  --accent: #4f6ba8;
  --accent-bright: #7ea2ff;
  --accent-soft: rgba(79, 107, 168, 0.22);
  --teal: #18a999;
  --amber: #f59e0b;
  --danger: #ef6767;
  --shadow: 0 24px 76px rgba(0, 0, 0, 0.24);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --max: 1180px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f6f8fd;
    --bg-elevated: #ffffff;
    --bg-soft: #eef3fb;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: rgba(255, 255, 255, 0.98);
    --surface-glass: rgba(255, 255, 255, 0.78);
    --text: #111827;
    --muted: #586476;
    --muted-strong: #293243;
    --line: rgba(36, 50, 75, 0.12);
    --accent: #4f6ba8;
    --accent-bright: #355fb5;
    --accent-soft: rgba(79, 107, 168, 0.14);
    --shadow: 0 24px 64px rgba(38, 53, 84, 0.10);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fd;
  --bg-elevated: #ffffff;
  --bg-soft: #eef3fb;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-glass: rgba(255, 255, 255, 0.78);
  --text: #111827;
  --muted: #586476;
  --muted-strong: #293243;
  --line: rgba(36, 50, 75, 0.12);
  --accent: #4f6ba8;
  --accent-bright: #355fb5;
  --accent-soft: rgba(79, 107, 168, 0.14);
  --shadow: 0 24px 64px rgba(38, 53, 84, 0.10);
}

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

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(79, 107, 168, 0.26), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(24, 169, 153, 0.16), transparent 30rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 62%, var(--bg-soft) 100%);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(126, 162, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 162, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 22rem),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.08));
}

img,
svg {
  max-width: 100%;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-bright) 78%, white);
  outline-offset: 3px;
}

button {
  font: inherit;
  letter-spacing: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.lang-block-ar,
.lang-inline-ar {
  display: none;
}

html[data-lang="ar"] .lang-block-en,
html[data-lang="ar"] .lang-inline-en {
  display: none;
}

html[data-lang="ar"] .lang-block-ar {
  display: block;
}

html[data-lang="ar"] .lang-inline-ar {
  display: inline;
}

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

.container {
  width: calc(100% - 32px);
  max-width: var(--max);
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 42px 0;
}

.section-head {
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-glass);
  color: var(--accent-bright);
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 4.2vw, 3.35rem);
  font-weight: 720;
  line-height: 1.08;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 2.7vw, 2.3rem);
  font-weight: 720;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  font-weight: 680;
}

.lead {
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.62;
}

.muted {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 82%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  border-radius: 14px;
  padding: 8px 4px;
}

.brand-icon {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 148px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, white 78%, var(--surface));
  padding: 6px 10px;
}

.brand-wordmark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  color: var(--muted-strong);
  padding: 8px 12px;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

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

.icon-button,
.pill-button,
.menu-button {
  border: 1px solid var(--line);
  background: var(--surface-glass);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-button:hover,
.pill-button:hover,
.menu-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent-bright) 48%, var(--line));
  background: var(--surface-strong);
}

.pill-button {
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 720;
}

.icon-button,
.menu-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
}

.theme-mark {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.theme-mark::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: inherit;
  background: var(--surface-glass);
  box-shadow: -2px 2px 0 var(--surface-glass);
}

:root[data-theme="light"] .theme-mark::after {
  display: none;
}

.menu-button {
  display: none;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}

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

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

.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  inset-inline: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  padding: 10px;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu .nav-link {
  justify-content: flex-start;
  width: 100%;
  min-height: 48px;
  padding-inline: 14px;
}

html[data-lang="ar"] .mobile-menu .nav-link {
  justify-content: flex-end;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(660px, 78vh, 700px);
  overflow: hidden;
  padding: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #e7f8f4 100%);
  z-index: -3;
}

:root[data-theme="dark"] .hero::before {
  background:
    linear-gradient(135deg, #10141b 0%, #132033 52%, #0d2f2b 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hero::before {
    background:
      linear-gradient(135deg, #10141b 0%, #132033 52%, #0d2f2b 100%);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-split {
  min-height: clamp(600px, 74vh, 660px);
  padding: 64px 0;
}

.hero-grid {
  max-width: 700px;
}

.hero-copy {
  width: min(100%, 720px);
  min-width: 0;
}

.hero-title {
  max-width: 600px;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--bg) 98%, transparent) 0%,
    color-mix(in srgb, var(--bg) 86%, transparent) 46%,
    color-mix(in srgb, var(--bg) 32%, transparent) 100%
  );
}

html[dir="rtl"] .hero-scrim {
  background: linear-gradient(
    270deg,
    color-mix(in srgb, var(--bg) 98%, transparent) 0%,
    color-mix(in srgb, var(--bg) 86%, transparent) 46%,
    color-mix(in srgb, var(--bg) 32%, transparent) 100%
  );
}

.field-network {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.soft-circle {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.18;
}

.soft-circle-a {
  width: 38vw;
  height: 38vw;
  inset-inline-start: -5vw;
  top: 2vh;
  background: #0b57d0;
}

.soft-circle-b {
  width: 28vw;
  height: 28vw;
  inset-inline-end: -4vw;
  top: 12vh;
  background: #18a999;
}

.soft-circle-c {
  width: 24vw;
  height: 24vw;
  inset-inline-start: 46vw;
  bottom: -8vw;
  background: #f59e0b;
  opacity: 0.1;
}

.network-node,
.local-db {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 118px;
  height: 58px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
  color: color-mix(in srgb, var(--text) 70%, transparent);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.58;
  animation: floatNode 8s ease-in-out infinite;
}

.node-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
}

.node-client {
  inset-inline-start: 26%;
  top: 35%;
}

.node-location {
  inset-inline-start: 48%;
  top: 27%;
  animation-delay: 900ms;
}

.node-lan {
  inset-inline-start: 63%;
  top: 48%;
  animation-delay: 1800ms;
}

.node-item {
  inset-inline-start: 42%;
  top: 62%;
  animation-delay: 2600ms;
}

.node-tasks {
  inset-inline-start: 73%;
  top: 70%;
  animation-delay: 3400ms;
}

.node-vault {
  inset-inline-start: 24%;
  top: 76%;
  animation-delay: 4200ms;
}

.network-line {
  position: absolute;
  height: 1px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  transform-origin: left center;
  opacity: 0.7;
}

.line-client-location {
  width: 25vw;
  inset-inline-start: 31%;
  top: 38%;
  transform: rotate(-13deg);
}

.line-location-lan {
  width: 20vw;
  inset-inline-start: 53%;
  top: 33%;
  transform: rotate(32deg);
}

.line-lan-item {
  width: 23vw;
  inset-inline-start: 45%;
  top: 60%;
  transform: rotate(-18deg);
}

.line-item-tasks {
  width: 34vw;
  inset-inline-start: 46%;
  top: 65%;
  transform: rotate(7deg);
}

.line-lan-vault {
  width: 42vw;
  inset-inline-start: 28%;
  top: 72%;
  transform: rotate(-8deg);
}

.sync-pulse {
  position: absolute;
  inset-inline-start: 79%;
  top: 23%;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow:
    0 0 0 24px color-mix(in srgb, var(--accent) 9%, transparent),
    0 0 0 48px color-mix(in srgb, var(--accent) 5%, transparent);
  animation: syncPulse 3.6s ease-in-out infinite;
}

.sync-pulse::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 3px solid var(--accent);
  border-inline-start-color: transparent;
  border-radius: 999px;
}

.sync-pulse::after {
  content: "";
  position: absolute;
  top: 12px;
  inset-inline-end: 13px;
  width: 8px;
  height: 8px;
  border-top: 3px solid var(--accent);
  border-inline-end: 3px solid var(--accent);
  transform: rotate(45deg);
}

.local-db {
  inset-inline-start: 12%;
  top: 56%;
  width: 130px;
  height: 88px;
  justify-content: center;
  text-align: center;
  display: grid;
  background: color-mix(in srgb, #e8fff8 80%, var(--bg-elevated));
  border-color: color-mix(in srgb, #18a999 35%, transparent);
}

:root[data-theme="dark"] .local-db {
  background: color-mix(in srgb, #12221f 90%, var(--bg-elevated));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .local-db {
    background: color-mix(in srgb, #12221f 90%, var(--bg-elevated));
  }
}

.local-db small {
  color: var(--muted);
  font-weight: 700;
}

@keyframes floatNode {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes syncPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.support-line {
  margin: 20px 0 0;
  color: var(--accent-bright);
  font-weight: 720;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 730;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #6f8bd5);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(79, 107, 168, 0.32);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface-glass);
  color: var(--text);
}

.button-tertiary {
  border-color: color-mix(in srgb, var(--teal) 46%, var(--line));
  background: color-mix(in srgb, var(--teal) 12%, var(--surface-glass));
  color: var(--text);
}

.visual-card {
  position: relative;
  min-width: 0;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 20%, rgba(126, 162, 255, 0.22), transparent 18rem),
    radial-gradient(circle at 74% 30%, rgba(24, 169, 153, 0.16), transparent 15rem),
    linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--bg-elevated) 80%, transparent));
  box-shadow: var(--shadow);
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(126, 162, 255, 0.14);
  border-radius: 24px;
  background-image:
    linear-gradient(rgba(126, 162, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 162, 255, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}

.device-stack,
.vault-stack,
.sync-orbit,
.node,
.line {
  position: absolute;
}

.device-stack {
  inset-inline-start: 42px;
  top: 48px;
  width: 45%;
  min-width: 170px;
}

.device-shell {
  position: relative;
  height: 220px;
  border: 1px solid rgba(126, 162, 255, 0.28);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(79, 107, 168, 0.24), rgba(13, 27, 47, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 22px 40px rgba(0, 0, 0, 0.22);
}

.device-shell::before,
.device-shell::after {
  content: "";
  position: absolute;
  inset-inline: 22px;
  border-radius: 999px;
  background: rgba(246, 248, 255, 0.18);
}

.device-shell::before {
  top: 30px;
  height: 12px;
}

.device-shell::after {
  top: 60px;
  height: 12px;
  width: 54%;
}

.device-row {
  position: absolute;
  inset-inline: 22px;
  bottom: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-tile {
  aspect-ratio: 1;
  border-radius: 14px;
  background: rgba(126, 162, 255, 0.16);
  border: 1px solid rgba(126, 162, 255, 0.22);
}

.vault-stack {
  inset-inline-end: 44px;
  top: 90px;
  width: 142px;
  height: 166px;
  border: 1px solid rgba(24, 169, 153, 0.38);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(24, 169, 153, 0.22), rgba(13, 27, 47, 0.82));
}

.vault-stack::before {
  content: "";
  position: absolute;
  top: 28px;
  inset-inline: 34px;
  height: 52px;
  border: 9px solid rgba(246, 248, 255, 0.28);
  border-bottom: 0;
  border-radius: 36px 36px 0 0;
}

.vault-stack::after {
  content: "";
  position: absolute;
  inset-inline: 30px;
  bottom: 34px;
  height: 58px;
  border-radius: 18px;
  background: rgba(246, 248, 255, 0.2);
}

.sync-orbit {
  inset-inline-end: 52px;
  bottom: 48px;
  width: 190px;
  height: 120px;
}

.sync-orbit::before,
.sync-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(126, 162, 255, 0.28);
  border-radius: 999px;
  transform: rotate(-12deg);
  animation: pulseRing 3.6s ease-in-out infinite;
}

.sync-orbit::after {
  inset: 22px 34px;
  border-color: rgba(24, 169, 153, 0.34);
  animation-delay: 700ms;
}

.node {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 28px rgba(126, 162, 255, 0.5);
}

.node-a {
  inset-inline-start: 17%;
  bottom: 18%;
}

.node-b {
  inset-inline-start: 51%;
  top: 18%;
}

.node-c {
  inset-inline-end: 13%;
  bottom: 28%;
  background: var(--teal);
}

.line {
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(126, 162, 255, 0.5), transparent);
}

.line-one {
  width: 45%;
  inset-inline-start: 22%;
  bottom: 25%;
  transform: rotate(-15deg);
}

.line-two {
  width: 33%;
  inset-inline-start: 48%;
  top: 35%;
  transform: rotate(32deg);
}

@keyframes pulseRing {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.98) rotate(-12deg);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.04) rotate(-12deg);
  }
}

.card-grid,
.feature-grid,
.pricing-grid,
.addon-grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.card,
.pricing-card,
.policy-card,
.note-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.card,
.policy-card,
.note-card {
  padding: 24px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-weight: 760;
}

.card p,
.pricing-card p,
.policy-card p,
.note-card p {
  color: var(--muted);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.workflow-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(155deg, var(--surface), rgba(79, 107, 168, 0.12));
  padding: 22px;
}

.workflow-step:not(:last-child)::after {
  content: "->";
  position: absolute;
  top: 50%;
  inset-inline-end: -18px;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--accent-bright);
  font-weight: 760;
}

html[data-lang="ar"] .workflow-step:not(:last-child)::after {
  content: "<-";
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.glass-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 18%, rgba(79, 107, 168, 0.22), transparent 15rem),
    var(--surface);
  padding: 30px;
  box-shadow: var(--shadow);
}

.trust-list {
  display: grid;
  gap: 14px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(79, 107, 168, 0.08);
  padding: 16px;
}

.trust-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(24, 169, 153, 0.12);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.pricing-card.featured {
  background:
    linear-gradient(155deg, rgba(79, 107, 168, 0.24), rgba(24, 169, 153, 0.12)),
    var(--surface);
  border-color: color-mix(in srgb, var(--accent-bright) 38%, var(--line));
}

.price {
  margin: 10px 0 12px;
  color: var(--accent-bright);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 720;
  line-height: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--accent-bright) 30%, var(--line));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 720;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-inline-start: 24px;
  color: var(--muted-strong);
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--teal);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.compare-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  padding: 15px 14px;
  text-align: start;
  vertical-align: middle;
}

.compare-table th {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 900;
}

.compare-table td {
  color: var(--muted-strong);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table th:last-child,
.compare-table td:last-child {
  border-inline-end: 0;
}

.page-hero {
  padding: 58px 0 28px;
}

.page-hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 14% 18%, rgba(79, 107, 168, 0.22), transparent 24rem),
    radial-gradient(circle at 90% 8%, rgba(24, 169, 153, 0.14), transparent 20rem),
    var(--surface);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow);
}

.page-hero-card p {
  max-width: 820px;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.policy-card ul,
.note-card ul {
  margin: 12px 0 0;
  padding-inline-start: 22px;
  color: var(--muted);
}

.policy-card li,
.note-card li {
  margin-bottom: 8px;
}

.email-link {
  color: var(--accent-bright);
  font-weight: 760;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.no-wrap {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 86%, transparent);
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 28px;
}

.footer-brand img {
  height: 44px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
}

html[data-lang="ar"] .footer-links {
  justify-content: flex-start;
}

.footer-links a {
  color: var(--muted-strong);
  font-weight: 750;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 680ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 80ms;
}

.reveal:nth-child(3) {
  animation-delay: 160ms;
}

.reveal:nth-child(4) {
  animation-delay: 240ms;
}

.reveal:nth-child(5) {
  animation-delay: 320ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .pricing-grid,
  .addon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-icon {
    height: 38px;
    width: 38px;
  }

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

  .hero {
    padding-top: 42px;
    align-items: flex-start;
    min-height: auto;
    padding-bottom: 52px;
  }

  .hero-inner {
    padding-top: 40px;
  }

  .hero-grid {
    max-width: 100%;
  }

  .hero-scrim {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
  }

  html[dir="rtl"] .hero-scrim {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
  }

  .visual-card {
    min-height: 320px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 24px);
  }

  .section {
    padding: 52px 0;
  }

  .hero-title {
    font-size: clamp(2rem, 7.2vw, 2.2rem);
  }

  .hero .lead {
    font-size: clamp(0.98rem, 3.8vw, 1.05rem);
  }

  .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .field-network {
    opacity: 0.5;
  }

  .network-node,
  .network-line,
  .sync-pulse,
  .local-db {
    display: none;
  }

  .soft-circle-a {
    width: 72vw;
    height: 72vw;
    inset-inline-start: -18vw;
    top: 8vh;
  }

  .soft-circle-b {
    width: 64vw;
    height: 64vw;
    inset-inline-end: -24vw;
    top: 28vh;
  }

  .card-grid,
  .feature-grid,
  .pricing-grid,
  .addon-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .workflow-step:not(:last-child)::after {
    top: auto;
    bottom: -21px;
    inset-inline-end: 24px;
    transform: rotate(90deg);
  }

  html[data-lang="ar"] .workflow-step:not(:last-child)::after {
    transform: rotate(-90deg);
  }

  .visual-card {
    min-height: 260px;
    border-radius: 24px;
  }

  .visual-card::before {
    inset: 18px;
    background-size: 26px 26px;
  }

  .device-stack {
    inset-inline-start: 24px;
    top: 34px;
    width: 48%;
    min-width: 142px;
  }

  .device-shell {
    height: 162px;
    border-radius: 20px;
  }

  .vault-stack {
    inset-inline-end: 24px;
    top: 58px;
    width: 112px;
    height: 128px;
  }

  .vault-stack::before {
    top: 22px;
    inset-inline: 28px;
    height: 38px;
    border-width: 7px;
  }

  .vault-stack::after {
    inset-inline: 24px;
    bottom: 24px;
    height: 44px;
  }

  .sync-orbit,
  .line-two,
  .node-b {
    display: none;
  }

  .line-one {
    width: 42%;
    bottom: 22%;
  }

  .page-hero {
    padding-top: 36px;
  }
}

@media (max-width: 430px) {
  .header-actions {
    gap: 6px;
  }

  .pill-button {
    min-height: 38px;
    padding-inline: 10px;
  }

  .icon-button,
  .menu-button {
    width: 38px;
    height: 38px;
  }

  .brand-icon {
    height: 38px;
    width: 38px;
  }

  .brand-wordmark {
    display: none;
  }

  .card,
  .pricing-card,
  .policy-card,
  .note-card,
  .glass-panel {
    padding: 20px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
