:root {
  --bg: #f3f7fb;
  --ink: #1b2836;
  --ink-2: #243447;
  --panel: #e7f3f8;
  --line: rgba(27, 40, 54, 0.12);
  --paper: #f3f7fb;
  --paper-2: #ffffff;
  --ink-text: #1b2836;
  --muted: #4e6476;
  --muted-ink: #4e6476;
  --cyan: #12b4cf;
  --cyan-deep: #0b7f98;
  --blue: #1a6fd4;
  --sand: #0b7f98;
  --care: #12b4cf;
  --danger: #b42318;
  --header-bg: rgba(255, 255, 255, 0.94);
  --card: #ffffff;
  --soft: #e5f4f8;
  --on-accent: #042833;
  --shadow: 0 16px 40px rgba(20, 70, 100, 0.08);
  --header: 5.2rem;
  --serif: "Outfit", "Segoe UI", sans-serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --arabic: "IBM Plex Sans Arabic", "Noto Naskh Arabic", sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0e151c;
  --ink: #e7f0f5;
  --ink-2: #d5e4ee;
  --panel: #1a2834;
  --line: rgba(231, 240, 245, 0.14);
  --paper: #0e151c;
  --paper-2: #15202a;
  --ink-text: #e7f0f5;
  --muted: #a9c0ce;
  --muted-ink: #a9c0ce;
  --cyan: #3ad4ea;
  --cyan-deep: #7ee7f4;
  --blue: #4c8dff;
  --sand: #7ee7f4;
  --danger: #ffb4a8;
  --header-bg: rgba(14, 21, 28, 0.94);
  --card: #15202a;
  --soft: #152833;
  --on-accent: #042833;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:not(.i18n-ready) body {
  visibility: hidden;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
}

main section,
#top {
  scroll-margin-top: 5.6rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

p,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cyan);
  color: #062027;
  padding: 0.6rem 0.9rem;
  z-index: 20;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  color: var(--sand);
  font-size: 0.86rem;
}

.topbar a,
.topbar button {
  color: var(--ink);
  text-decoration: none;
}

.topbar a:hover {
  color: var(--cyan);
}

.topbar__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand {
  min-width: 0;
}

.brand img {
  height: 4.2rem;
  width: auto;
  max-width: min(12rem, 46vw);
  object-fit: contain;
  background: transparent;
}

:root[data-theme="dark"] .brand img {
  background: #ffffff;
  border-radius: 0.55rem;
  padding: 0.15rem 0.3rem;
}

.nav__toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  min-height: 2.75rem;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.05rem;
}

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.98rem;
}

.nav__links a:hover,
.nav__links a[aria-current="true"] {
  color: var(--cyan);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.button--cyan {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: #ffffff;
}

.button--cyan:hover {
  filter: brightness(1.08);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.button--ink {
  background: var(--ink-text);
  color: #f7f4ee;
}

.button--ink:hover {
  background: #243646;
}

.hero {
  background:
    radial-gradient(820px 420px at 100% -10%, rgba(26, 111, 212, 0.16), transparent 60%),
    radial-gradient(680px 380px at -10% 20%, rgba(18, 180, 207, 0.18), transparent 55%),
    var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
  padding: 1.75rem 0 3rem;
}

.kicker {
  margin: 0;
  color: var(--sand);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.arabic {
  font-family: var(--arabic);
  direction: rtl;
  text-align: right;
  color: var(--sand);
  font-size: 1.2rem;
  line-height: 1.9;
  margin: 0.85rem 0 0;
}

.hero h1,
.section h2,
.panel h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.hero h1 {
  margin: 0.45rem 0 0.85rem;
  font-size: clamp(1.85rem, 2.4vw, 2.45rem);
}

.lead {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.board {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.1rem 1.15rem 0.4rem;
  box-shadow: var(--shadow);
}

.board ol {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.board li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.board li span {
  font-family: var(--serif);
  color: var(--cyan);
  font-size: 1.05rem;
}

.board strong,
.card strong,
.flow strong {
  display: block;
  font-weight: 600;
}

.board p,
.card p,
.flow p,
.step p,
.service p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.section {
  padding: 5rem 0;
}

.section--ink,
.section--paper,
.kingdom {
  background: var(--bg);
  color: var(--ink);
}

.section--ink {
  background: var(--soft);
}

.section--paper .lead,
.section--paper .card p,
.section--paper .service p,
.section--paper .step p {
  color: var(--muted-ink);
}

.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-bottom: 2.2rem;
  align-items: end;
}

.section h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.day {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.7rem;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}

.day li {
  border-top: 2px solid var(--cyan);
  padding-top: 0.7rem;
}

.day time {
  display: block;
  color: var(--sand);
  font-size: 0.86rem;
}

.day strong {
  display: block;
  margin-top: 0.25rem;
}

.day span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.blueprint {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 1.4rem;
}

.blueprint article {
  background: var(--card);
  padding: 1.15rem 1.15rem 1.25rem;
}

.blueprint span {
  color: var(--cyan);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.blueprint h3,
.card h3,
.service h3,
.step h3,
.panel h3 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 600;
}

.blueprint p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.panel {
  margin-top: 1.4rem;
  background: var(--paper-2);
  color: var(--ink-text);
  border-radius: 1.4rem;
  padding: 1.5rem;
}

.panel .kicker {
  color: var(--cyan-deep);
}

.panel h2 {
  font-size: clamp(1.45rem, 1.8vw, 1.85rem);
}

.panel .lead {
  color: var(--muted-ink);
}

.flow {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.flow ol {
  margin: 0;
  padding-left: 1.1rem;
}

.flow li + li {
  margin-top: 0.7rem;
}

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  background: var(--soft);
  border-radius: 0.9rem;
  padding: 0.85rem 0.9rem;
}

.note {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(20, 32, 43, 0.12);
  color: var(--muted-ink);
}

.group-label {
  margin: 0.4rem 0 0.9rem;
  color: var(--cyan-deep);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cards + .group-label {
  margin-top: 1.8rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.card,
.service,
.step {
  background: var(--paper-2);
  border: 1px solid rgba(20, 32, 43, 0.08);
  border-radius: 1.1rem;
  padding: 1.15rem 1.15rem 1.2rem;
}

.section--ink .card,
.section--ink .service {
  background: var(--panel);
  border-color: var(--line);
}

.index {
  display: block;
  color: var(--cyan-deep);
  font-family: var(--serif);
  margin-bottom: 0.35rem;
}

.card ul,
.service ul {
  margin: 0.7rem 0 0;
  padding-left: 1.05rem;
}

.card li + li,
.service li + li {
  margin-top: 0.28rem;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.ai-grid article {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.15rem 1.2rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(18, 180, 207, 0.14), transparent 42%),
    var(--card);
}

.ai-grid span {
  color: var(--sand);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-grid h3 {
  margin: 0.4rem 0;
  font-size: 1.35rem;
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
}

.ai-grid p {
  margin: 0;
  color: var(--muted);
}

#ai .kicker {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

#ai h2 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  max-width: 22rem;
}

.ai-offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.ai-offers li {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.05rem 1.15rem 1.15rem;
  background: var(--card);
}

.ai-offers h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.2rem;
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
}

.ai-offers p {
  margin: 0;
  color: var(--muted);
}

.ai-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.ai-band article {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.1rem 1.15rem 1.2rem;
  background: var(--card);
}

.ai-band h3 {
  margin: 0;
  font-size: 1.25rem;
  font-family: var(--serif);
  font-weight: 560;
}

.ai-band ul:not(.chips) {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.ai-band ul:not(.chips) li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.ai-band .chips {
  margin-top: 0.85rem;
}

#ai .actions {
  margin-top: 1.2rem;
}

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
  padding: 0;
  list-style: none;
}

.chips li {
  border: 1px solid rgba(20, 32, 43, 0.14);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.92rem;
}

.kingdom {
  background: var(--soft);
}

.kingdom__grid,
.steps {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
}

.facts {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.facts div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}

.facts dt {
  color: var(--sand);
  font-size: 0.86rem;
}

.facts dd {
  margin: 0.2rem 0 0;
}

.steps {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.step span {
  font-family: var(--serif);
  color: var(--cyan-deep);
  font-size: 1.4rem;
}

.faq {
  border-top: 1px solid rgba(20, 32, 43, 0.12);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--cyan-deep);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1;
}

.faq[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0 0 1rem;
  color: var(--muted-ink);
  max-width: 48rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem 3rem;
  align-items: start;
}

.contact a {
  color: var(--cyan);
}

.direct {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.direct a,
.direct button {
  display: block;
  width: 100%;
  text-align: start;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.direct a:hover {
  border-color: var(--cyan);
}

.direct small {
  display: block;
  color: var(--sand);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--wide,
.form .button,
.status {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--paper-2);
  color: var(--ink);
  padding: 0.8rem 0.85rem;
  min-height: 3rem;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.button:focus-visible,
.nav__links a:focus-visible,
.faq summary:focus-visible,
.direct a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--sand);
}

.status.is-error {
  color: var(--danger);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a,
.footer button {
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.float-wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9;
  background: #1f8f4e;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.float-wa:hover {
  background: #176b3b;
}

@media (min-width: 981px) {
  .nav__links {
    display: flex !important;
  }
}

@media (max-width: 980px) {
  :root {
    --header: 4.8rem;
  }

  .nav__book {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav__links {
    display: none;
    position: fixed;
    z-index: 30;
    left: 0.75rem;
    right: 0.75rem;
    top: 4.8rem;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - 8rem);
    overflow: auto;
    padding: 0.4rem;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.35rem 0.8rem;
  }

  .hero__grid,
  .section__head,
  .flow,
  .kingdom__grid,
  .contact__grid,
  .services,
  .ai-grid,
  .ai-band {
    grid-template-columns: 1fr;
  }

  .ai-offers {
    grid-template-columns: 1fr 1fr;
  }

  .day,
  .steps,
  .cards,
  .blueprint,
  .checks {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .actions .button {
    flex: 1 1 14rem;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .brand img {
    height: 3.5rem;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .topbar__contacts {
    flex-wrap: wrap;
  }

  .hero__grid {
    padding-top: 2.2rem;
    gap: 1.6rem;
  }

  .arabic {
    font-size: 1.02rem;
    line-height: 1.8;
  }

  .day,
  .steps,
  .cards,
  .blueprint,
  .checks,
  .form,
  .services {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.2rem 0;
  }

  .panel,
  .board {
    padding: 1rem;
    border-radius: 1rem;
  }

  .footer .wrap {
    padding-bottom: 4.5rem;
  }

  .float-wa {
    left: auto;
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    max-width: calc(100% - 1.5rem);
  }
}

.switches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
}

.switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 2rem;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
}

.switch button[aria-pressed="true"] {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: #ffffff;
}

.phone {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: start;
}

.topbar .phone:hover,
.footer .phone:hover {
  color: var(--cyan-deep);
}

.reach {
  width: min(24rem, calc(100% - 2rem));
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.15rem;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.reach::backdrop {
  background: rgba(14, 21, 28, 0.55);
}

.reach h2 {
  margin: 0.2rem 0 0;
  font-size: 1.45rem;
}

.reach__actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.reach__close {
  margin-top: 0.7rem;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.product-feature + .product-feature {
  margin-top: 1.4rem;
}

html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
  font-family: var(--arabic);
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .section h2,
html[dir="rtl"] .panel h2,
html[dir="rtl"] h3,
html[dir="rtl"] .reach h2 {
  font-family: var(--arabic);
  letter-spacing: 0;
  line-height: 1.45;
}

html[dir="rtl"] .hero h1 {
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
}

html[dir="rtl"] .kicker,
html[dir="rtl"] .group-label,
html[dir="rtl"] .ai-grid span,
html[dir="rtl"] .ai-offers h3,
html[dir="rtl"] .ai-band h3 {
  letter-spacing: 0;
}

html[dir="rtl"] .flow ol,
html[dir="rtl"] .card ul,
html[dir="rtl"] .service ul {
  padding-left: 0;
  padding-right: 1.1rem;
}

html[dir="rtl"] .faq summary::after {
  float: left;
}

html[dir="rtl"] .float-wa {
  right: auto;
  left: max(0.75rem, env(safe-area-inset-left));
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
