:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --paper: #fffaf1;
  --ink: #18211f;
  --muted: #62706b;
  --line: #ded7ca;
  --brand: #0f766e;
  --brand-strong: #0b5f59;
  --accent: #b7791f;
  --rose: #9f3850;
  --sky: #286f9f;
  --shadow: 0 22px 70px rgba(33, 29, 22, 0.14);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1110;
  --paper: #161b19;
  --ink: #f6efe4;
  --muted: #aeb9b3;
  --line: #2c3632;
  --brand: #3eb7a9;
  --brand-strong: #79d3c8;
  --accent: #d8a34a;
  --rose: #d46a82;
  --sky: #75b9df;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(183, 121, 31, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 20;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip:focus {
  top: 16px;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

button,
.button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 15px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.button.ghost {
  background: transparent;
}

.hero {
  padding: 82px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 46px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-strong);
  font-weight: 800;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 6.1rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.6rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 720px;
}

.hero .lead {
  margin: 22px 0 28px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.metric,
.card,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 16px;
}

.metric strong {
  display: block;
  font-size: 1.45rem;
}

.metric span,
.card p,
.policy-card p {
  color: var(--muted);
}

.product-shot {
  padding: 16px;
}

.browser-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #101513;
  color: #edf7f3;
}

.browser-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot:nth-child(1) { background: #ef6461; }
.dot:nth-child(2) { background: #f2bd4b; }
.dot:nth-child(3) { background: #60c878; }

.url {
  margin-inline-start: 8px;
  flex: 1;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #b7c9c3;
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
}

.screen {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.screen-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.screen-card {
  min-height: 104px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}

.screen-card.accent {
  background: color-mix(in srgb, var(--brand) 40%, #101513);
}

.screen-card.gold {
  background: color-mix(in srgb, var(--accent) 36%, #101513);
}

.bar {
  height: 9px;
  border-radius: 99px;
  background: rgba(255,255,255,0.18);
  margin-top: 10px;
}

.bar.short {
  width: 60%;
}

section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.section-head .lead {
  max-width: 560px;
  margin: 0;
}

.grid-3,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card,
.policy-card {
  padding: 24px;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand-strong);
  font-weight: 900;
  margin-bottom: 18px;
}

.band {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 62%, transparent);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 900;
}

.policy-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
}

.policy-card:hover {
  border-color: var(--brand);
}

.login-wrap,
.policy-wrap {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.login-card {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.field {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

label {
  font-weight: 800;
}

input {
  min-height: 48px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-top: 14px;
}

.notice.error {
  border-color: color-mix(in srgb, var(--rose) 62%, var(--line));
  color: var(--rose);
}

.notice.success {
  border-color: color-mix(in srgb, var(--brand) 62%, var(--line));
  color: var(--brand-strong);
}

.hidden {
  display: none !important;
}

.policy-page {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 44px);
}

.policy-page h1 {
  max-width: 100%;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.policy-page h2 {
  font-size: 1.45rem;
  margin-top: 30px;
}

.policy-page p,
.policy-page li {
  color: var(--muted);
}

.policy-page ul {
  padding-inline-start: 24px;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, 0.8fr);
  gap: 20px;
}

.footer-grid a {
  display: block;
  text-decoration: none;
  margin: 7px 0;
}

[data-lang="en"] {
  display: none;
}

html[lang="en"] [data-lang="ar"] {
  display: none;
}

html[lang="en"] [data-lang="en"] {
  display: inline;
}

html[lang="en"] p[data-lang="en"],
html[lang="en"] div[data-lang="en"],
html[lang="en"] span[data-lang="en"] {
  display: revert;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .policy-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .section-head {
    display: block;
  }

  .metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 48px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .screen-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.65rem;
  }
}
