@font-face {
  font-family: Inter;
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../assets/fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+202A-202E, U+2066-2069;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../assets/fonts/ibm-plex-sans-arabic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+202A-202E, U+2066-2069;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../assets/fonts/ibm-plex-sans-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+202A-202E, U+2066-2069;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../assets/fonts/ibm-plex-sans-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+202A-202E, U+2066-2069;
}

:root {
  --bg: #07090f;
  --bg-soft: #0b0f17;
  --surface: #10151f;
  --surface-2: #151b28;
  --surface-3: #1b2231;
  --text: #f4f7fb;
  --text-soft: #c5cddb;
  --muted: #9aa3b5;
  --dim: #6d7688;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #3ee0c6;
  --accent-2: #8ab4ff;
  --accent-deep: #149e8b;
  --accent-soft: rgba(62, 224, 198, 0.12);
  --accent-2-soft: rgba(138, 180, 255, 0.12);
  --glow: rgba(62, 224, 198, 0.28);
  --danger: #f87171;
  --ok: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --header: 4.25rem;
  --container: 70rem;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", Inter, ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--bg);
}

html[dir="rtl"] {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

html.shot,
html.shot * {
  scroll-behavior: auto !important;
  animation: none !important;
  transition: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[dir="rtl"] body {
  font-family: var(--font-ar);
  font-size: 1.125rem;
  line-height: 1.7;
  letter-spacing: 0;
}

html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

body.is-locked {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #7ff0de;
}

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: #06201b;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-xs);
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(48rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

p {
  margin: 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: var(--accent);
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.4rem);
  margin-bottom: 0.85rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(7, 9, 15, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 9, 15, 0.82);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

html[dir="rtl"] .brand {
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand img,
.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem;
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--surface-3);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  color: inherit;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, #5ae8d2, var(--accent));
  color: #06201b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 10px 30px var(--glow);
}

.btn-primary:hover {
  color: #06201b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 12px 36px var(--glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

.menu-btn {
  display: none;
  appearance: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 6rem;
  min-height: min(52rem, calc(100svh - var(--header)));
  display: flex;
  align-items: center;
}

html.shot .hero {
  min-height: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 80% 10%, rgba(138, 180, 255, 0.14), transparent 60%),
    radial-gradient(700px 420px at 10% 80%, rgba(62, 224, 198, 0.1), transparent 60%),
    linear-gradient(180deg, #0a0e18 0%, var(--bg) 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 72%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.15rem);
  letter-spacing: -0.045em;
  margin-bottom: 1.25rem;
}

html[dir="rtl"] .hero h1 {
  letter-spacing: 0;
  font-weight: 700;
}

html[dir="rtl"] .hero-lead {
  font-size: 1.1875rem;
  line-height: 1.7;
  letter-spacing: 0;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.25rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 0.875rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-points li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

/* Cards / services */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}

.card:hover {
  border-color: rgba(62, 224, 198, 0.28);
  background: var(--surface);
  transform: translateY(-3px);
}

.icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(62, 224, 198, 0.16);
}

.icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Why */
.why {
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(138, 180, 255, 0.07), transparent 60%),
    var(--bg-soft);
  border-block: 1px solid var(--line);
}

.why-card {
  padding: 1.6rem;
}

.why-card .num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 0.85rem;
}

/* Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.7rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: rgba(62, 224, 198, 0.4);
  background:
    linear-gradient(180deg, rgba(62, 224, 198, 0.08), rgba(16, 21, 31, 0.9) 40%),
    var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(62, 224, 198, 0.08);
  transform: scale(1.03);
}

.plan-badge {
  position: absolute;
  top: 1.1rem;
  inset-inline-end: 1.1rem;
  background: var(--accent);
  color: #06201b;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

html[dir="rtl"] .plan-badge {
  letter-spacing: 0;
}

.plan h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.plan .plan-desc {
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 3.2em;
}

.plan-price {
  margin: 1.25rem 0 1.4rem;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

html[dir="rtl"] .plan-price {
  letter-spacing: 0;
  font-weight: 700;
}

.plan-price .period {
  display: inline;
  margin-inline-start: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.plan ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  flex: 1;
}

.plan li {
  position: relative;
  padding-inline-start: 1.4rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.plan li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.28rem;
  border-inline-start: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

html[dir="rtl"] .plan li::before {
  transform: rotate(45deg);
  border-inline-start: 0;
  border-inline-end: 2px solid var(--accent);
}

.plan .btn {
  width: 100%;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step {
  position: relative;
  padding: 1.6rem 1.4rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.step-index {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: transparent;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 1rem;
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

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

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  align-items: start;
}

.security-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.security-list li strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.security-list li span {
  color: var(--muted);
  font-size: 0.92rem;
}

.dot-check {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(62, 224, 198, 0.25);
  position: relative;
  top: 0.15rem;
  flex: none;
}

.dot-check::after {
  content: "";
  position: absolute;
  inset-inline-start: 0.38rem;
  top: 0.38rem;
  width: 0.4rem;
  height: 0.22rem;
  border-inline-start: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

html[dir="rtl"] .dot-check::after {
  transform: rotate(45deg);
  border-inline-start: 0;
  border-inline-end: 2px solid var(--accent);
}

.note {
  margin-top: 1.25rem;
  color: var(--dim);
  font-size: 0.875rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 50rem;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.faq-item button {
  appearance: none;
  width: 100%;
  text-align: start;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 1.05rem 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item button .chev {
  width: 0.55rem;
  height: 0.55rem;
  border-inline-end: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  flex: none;
}

.faq-item button[aria-expanded="true"] .chev {
  transform: rotate(225deg);
}

.faq-panel {
  display: none;
  padding: 0 1.2rem 1.15rem;
  color: var(--muted);
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* Contact */
.contact-box {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(500px 200px at 0% 0%, rgba(62, 224, 198, 0.08), transparent 50%),
    var(--surface);
}

.contact-info {
  padding: 2.2rem 2rem;
}

.contact-info h2 {
  font-size: 2rem;
  margin: 0 0 0.8rem;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.email-link:hover {
  color: var(--text);
  border-color: rgba(62, 224, 198, 0.35);
}

.email-ico {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.form {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

label span,
.lbl {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: 0.8rem;
  padding: 0.75rem 0.85rem;
  color: var(--text);
  caret-color: var(--accent);
}

input:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

input:focus-visible,
textarea:focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  color: var(--dim);
  font-size: 0.8rem;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.875rem;
  color: var(--ok);
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2.2rem;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-meta {
  color: var(--dim);
  font-size: 0.85rem;
  margin-top: 0.7rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

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

/* Legal */
.legal {
  padding: 4.5rem 0 6rem;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.6rem;
}

.legal .updated {
  color: var(--dim);
  margin-bottom: 2.4rem;
  font-size: 0.9rem;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.7rem;
}

.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.legal ul {
  padding-inline-start: 1.2rem;
}

/* 404 */
.not-found {
  min-height: calc(100svh - var(--header) - 8rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 5rem 1.25rem;
}

.not-found h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-bottom: 0.8rem;
}

/* Chat */
.chat-root {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  font-family: inherit;
}

.chat-toggle {
  appearance: none;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  border: 1px solid rgba(62, 224, 198, 0.28);
  background: linear-gradient(180deg, #5ae8d2, var(--accent));
  color: #06201b;
  cursor: pointer;
  box-shadow: 0 16px 40px var(--glow), 0 8px 24px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease);
}

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

.chat-toggle svg {
  width: 1.45rem;
  height: 1.45rem;
}

.chat-toggle .icon-close,
.chat-root.is-open .chat-toggle .icon-chat {
  display: none;
}

.chat-root.is-open .chat-toggle .icon-close {
  display: block;
}

.chat-panel {
  position: absolute;
  inset-inline-end: 0;
  bottom: 4.5rem;
  width: min(24.5rem, calc(100vw - 2rem));
  height: min(36.5rem, calc(100svh - 7.5rem));
  background: #0c1119;
  border: 1px solid var(--line-strong);
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-root.is-open .chat-panel {
  display: flex;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(62, 224, 198, 0.08), transparent);
}

.chat-head img {
  width: 2rem;
  height: 2rem;
}

.chat-head h2 {
  font-size: 0.92rem;
  letter-spacing: 0;
  line-height: 1.2;
}

.chat-status {
  display: block;
  color: var(--ok);
  font-size: 0.72rem;
  font-weight: 600;
}

.chat-head-close {
  margin-inline-start: auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.chat-head-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.chat-log {
  flex: 1;
  overflow: auto;
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.bubble {
  max-width: 88%;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.bubble.bot {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-soft);
  border-end-start-radius: 0.35rem;
}

.bubble.user {
  align-self: flex-end;
  background: rgba(62, 224, 198, 0.16);
  border: 1px solid rgba(62, 224, 198, 0.22);
  color: var(--text);
  border-end-end-radius: 0.35rem;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.9rem 0.6rem;
}

.chip {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.chip:hover {
  border-color: rgba(62, 224, 198, 0.4);
  color: var(--text);
}

.chat-compose {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem 0.8rem 0.9rem;
  border-top: 1px solid var(--line);
  background: #0a0e16;
}

.chat-compose input {
  flex: 1;
}

.chat-send {
  appearance: none;
  border: 0;
  border-radius: 0.8rem;
  width: 2.7rem;
  background: var(--accent);
  color: #06201b;
  cursor: pointer;
  font-weight: 700;
}

.chat-lead {
  display: none;
  padding: 0.6rem 0.9rem 0.9rem;
  border-top: 1px solid var(--line);
  background: #0a0e16;
  gap: 0.5rem;
}

.chat-lead.is-visible {
  display: grid;
}

.chat-lead input,
.chat-lead textarea {
  font-size: 0.875rem;
}

.chat-lead textarea {
  min-height: 4.5rem;
}

.typing {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
}

.typing i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--muted);
  animation: bounce 1s var(--ease) infinite;
}

.typing i:nth-child(2) { animation-delay: 0.12s; }
.typing i:nth-child(3) { animation-delay: 0.24s; }

@keyframes bounce {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* Reveal */
.reveal {
  animation: fadeup 0.8s var(--ease) both;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

@keyframes fadeup {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hidden {
  display: none !important;
}

/* Mobile nav */
@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex;
  }

  .header .btn-cta {
    display: none;
  }

  .nav {
    position: fixed;
    inset: var(--header) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1.25rem 1.2rem;
    background: rgba(7, 9, 15, 0.96);
    border-bottom: 1px solid var(--line);
    gap: 0.2rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.8rem 0.7rem;
  }

  .hero,
  .hero-grid,
  .grid-3,
  .grid-4,
  .plans-grid,
  .steps,
  .security-grid,
  .contact-box,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 3.2rem 0 6.5rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    padding-inline-end: 5rem;
  }
  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    order: -1;
    max-width: 16.5rem;
    margin-inline: auto;
  }

  .plan.featured {
    transform: none;
  }

  .section {
    padding: 4.25rem 0;
  }

  .contact-info,
  .form {
    padding: 1.4rem 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; animation: none !important; }
}

html.shot .reveal {
  opacity: 1;
  transform: none;
  animation: none !important;
}

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

@media (min-width: 861px) {
  #services-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  #services-grid .card {
    grid-column: span 4;
  }
  #services-grid .card:nth-child(7) {
    grid-column: 5 / 9;
  }
}

@media (max-width: 1100px) and (min-width: 861px) {
  .grid-4,
  .plans-grid,
  .steps,
  .security-grid {
    grid-template-columns: 1fr 1fr;
  }
  #services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #services-grid .card,
  #services-grid .card:nth-child(7) {
    grid-column: auto;
  }
}

section[id], .header { }
section[id] { scroll-margin-top: calc(var(--header) + 0.8rem); }

html[dir="rtl"] .card p,
html[dir="rtl"] .plan-desc,
html[dir="rtl"] .plan li,
html[dir="rtl"] .step p,
html[dir="rtl"] .faq-panel,
html[dir="rtl"] .faq-item button,
html[dir="rtl"] .security-list li span,
html[dir="rtl"] .security-list li strong,
html[dir="rtl"] .legal p,
html[dir="rtl"] .legal li,
html[dir="rtl"] .note,
html[dir="rtl"] .footer-meta,
html[dir="rtl"] .footer-links a,
html[dir="rtl"] .nav a,
html[dir="rtl"] .btn,
html[dir="rtl"] .chip,
html[dir="rtl"] .bubble,
html[dir="rtl"] .form-note,
html[dir="rtl"] .lbl,
html[dir="rtl"] .email-link,
html[dir="rtl"] .chat-status,
html[dir="rtl"] .chat-head h2,
html[dir="rtl"] .section-head p {
  letter-spacing: 0;
}

html[dir="rtl"] .card p,
html[dir="rtl"] .plan-desc,
html[dir="rtl"] .plan li,
html[dir="rtl"] .step p,
html[dir="rtl"] .faq-panel,
html[dir="rtl"] .security-list li span,
html[dir="rtl"] .legal p,
html[dir="rtl"] .legal li,
html[dir="rtl"] .section-head p,
html[dir="rtl"] .note,
html[dir="rtl"] .form-note,
html[dir="rtl"] .bubble {
  line-height: 1.7;
}

html[dir="rtl"] .card h3,
html[dir="rtl"] .why-card h3,
html[dir="rtl"] .plan h3,
html[dir="rtl"] .step h3,
html[dir="rtl"] .faq-item button,
html[dir="rtl"] .security-list li strong,
html[dir="rtl"] .legal h2,
html[dir="rtl"] .chat-head h2 {
  font-weight: 700;
  letter-spacing: 0;
}

html[dir="rtl"] .why-card .num,
html[dir="rtl"] .plan-badge,
html[dir="rtl"] .lang-toggle button,
html[dir="rtl"] .step-index {
  letter-spacing: 0;
}

/* The Arabic label in the language toggle, on either locale */
.lang-toggle button[data-lang="ar"] {
  font-family: var(--font-ar);
  letter-spacing: 0;
  font-weight: 600;
}
