:root {
  --ink: #0b1628;
  --ink-2: #13243d;
  --muted: #64748b;
  --paper: #f5f8fc;
  --surface: #ffffff;
  --line: #d8e2ef;
  --cyan: #39c5f1;
  --blue: #1d4ed8;
  --steel: #334155;
  --success: #18a06b;
  --shadow: 0 22px 70px rgba(11, 22, 40, .14);
  --font-arabic: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

@font-face {
  font-family: "Cairo";
  src: url("fonts/cairo-v31-arabic_latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cairo";
  src: url("fonts/cairo-v31-arabic_latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(18px, 4vw, 64px);
  background: #02070d;
  border-bottom: 1px solid rgba(57, 197, 241, .18);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 156px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 9px 10px;
  color: #d7e5f5;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--cyan);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.button.secondary {
  background: #fff;
  color: var(--blue);
}

.button.ghost {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.hero {
  min-height: 56vh;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(380px, .75fr);
  gap: 46px;
  align-items: center;
  padding: 48px clamp(20px, 6vw, 92px);
  background:
    radial-gradient(circle at 82% 20%, rgba(57, 197, 241, .20), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #0c1c33 46%, #122c4d 100%);
  color: #fff;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #8fe8ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(28px, 3.4vw, 44px);
}

h2 {
  font-size: clamp(22px, 2.45vw, 34px);
}

h3 {
  font-size: 20px;
}

.hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: #d5e4f4;
  font-size: 16px;
}

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

.hero-visual {
  min-height: 280px;
  display: grid;
  place-items: center;
}

.ops-console {
  width: min(100%, 500px);
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}

.ops-console div {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(4, 12, 24, .45);
}

.ops-console span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
}

.ops-console b {
  color: #8fe8ff;
}

.section {
  padding: 52px clamp(20px, 6vw, 92px);
}

.page-hero {
  padding: 38px clamp(20px, 6vw, 92px) 32px;
  background:
    radial-gradient(circle at 86% 20%, rgba(57, 197, 241, .16), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #0e213a 52%, #17375e 100%);
  color: #fff;
}

.page-hero.compact {
  padding-bottom: 28px;
}

.page-hero h1,
.page-hero p {
  max-width: 960px;
}

.page-hero p:not(.eyebrow) {
  margin: 14px 0 0;
  color: #d5e4f4;
  font-size: 16px;
}

.section.alt {
  background: #fff;
}

.section-head {
  max-width: 880px;
  margin-bottom: 34px;
}

.section-head.wide {
  max-width: 1100px;
}

.section-head p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.screenshot-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 26px;
  align-items: stretch;
}

.screenshot-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: top left;
}

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

.screenshot-placeholder {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 18px;
  border: 1px dashed #a9bdd5;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #eef6ff);
}

.screenshot-placeholder strong {
  color: var(--ink);
}

.screenshot-placeholder span {
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.feature,
.role,
.contact-card,
.workflow-step,
.comparison-grid article,
.module-map article,
.continuity-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 10px 32px rgba(11, 22, 40, .06);
}

.feature strong,
.role strong,
.workflow-step strong {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
}

.feature p,
.role p,
.workflow-step p,
.comparison-grid li,
.module-map li {
  margin: 0;
  color: var(--muted);
}

.comparison-grid,
.module-map,
.continuity-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.module-map .highlight {
  background: var(--ink);
  color: #fff;
}

.module-map .highlight li {
  color: #d7e5f5;
}

.comparison-grid .highlight,
.continuity-card.primary {
  background: var(--ink);
  color: #fff;
}

.comparison-grid .highlight li,
.continuity-card.primary p {
  color: #d7e5f5;
}

.standards-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(17, 32, 51, .08);
}

.standards-panel h2,
.standards-panel h3 {
  margin-top: 0;
}

.standards-panel p {
  color: var(--muted);
}

.disclaimer {
  font-size: 14px;
  font-weight: 800;
}

.standards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.standards-list.standalone {
  max-width: 920px;
}

.standards-list li {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(20, 108, 148, .22);
  border-radius: 999px;
  background: #eef8fb;
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
}

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

.testimonial-card {
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(17, 32, 51, .08);
}

.testimonial-card p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 800;
}

.testimonial-card footer {
  display: grid;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.testimonial-card strong {
  color: var(--ink);
}

.testimonial-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

ul {
  display: grid;
  gap: 10px;
  padding-inline-start: 20px;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metric {
  padding: 26px;
  background: #fff;
}

.metric span {
  display: block;
  color: var(--blue);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.metric small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

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

.workflow-step::before {
  content: attr(data-step);
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: #062035;
  font-weight: 900;
}

.pricing-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 14px 40px rgba(11, 22, 40, .08);
}

.pricing-card.featured {
  border-color: rgba(29, 78, 216, .4);
  box-shadow: 0 24px 64px rgba(29, 78, 216, .16);
}

.pricing-card span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pricing-card h2 {
  font-size: 30px;
}

.pricing-card p {
  margin: 0;
  color: var(--muted);
}

.pricing-card .button {
  align-self: end;
  width: fit-content;
}

.legal-copy {
  max-width: 1050px;
}

.legal-copy h2 {
  margin-top: 34px;
  font-size: 28px;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  color: var(--muted);
  font-size: 17px;
}

.security-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  list-style: none;
}

.security-list li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}

.cta p {
  margin: 10px 0 0;
  color: #d7e5f5;
}

.contact-hero {
  padding: 38px clamp(20px, 6vw, 92px) 30px;
  background: var(--ink);
  color: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 28px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-help {
  margin-top: 24px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--steel);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-alert {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 800;
}

.site-alert.success {
  border: 1px solid rgba(24, 160, 107, .35);
  background: rgba(24, 160, 107, .12);
  color: #075f49;
}

.site-alert.error {
  border: 1px solid rgba(224, 49, 49, .35);
  background: rgba(224, 49, 49, .1);
  color: #8d1515;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 6vw, 92px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
}

[dir="rtl"] body {
  font-family: var(--font-arabic);
}

[dir="rtl"] .brand,
[dir="rtl"] .nav,
[dir="rtl"] .hero-actions,
[dir="rtl"] .site-header,
[dir="rtl"] .footer {
  flex-direction: row-reverse;
}

@media (max-width: 1080px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero,
  .grid.three,
  .screenshot-showcase,
  .metric-band,
  .workflow,
  .comparison-grid,
  .module-map,
  .standards-panel,
  .testimonial-grid,
  .continuity-layout,
  .security-list,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

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

@media (max-width: 620px) {
  .brand img {
    width: 146px;
  }

  .nav a {
    width: calc(50% - 4px);
    padding: 8px 0;
  }

  .nav .button {
    width: 100%;
  }

  .hero,
  .section,
  .contact-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .page-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .screenshot-frame img {
    min-height: 240px;
  }

  .footer {
    flex-direction: column;
  }
}
