@font-face {
  font-family: "Cairo";
  src: url("cairo.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #020c27;
  --bg-deep: #010a22;
  --surface: #061436;
  --surface-2: #0a1c48;
  --line: rgba(130, 163, 248, 0.22);
  --line-strong: rgba(130, 163, 248, 0.45);
  --text: #ffffff;
  --muted: #c2d3fd;
  --soft: #9fa6b2;
  --accent: #82a3f8;
  --brand: #1346c5;
  --brand-2: #0937aa;
  --green: #31c48d;
  --radius: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── language switching ── */
html[data-lang="ar"] .en { display: none !important; }
html[data-lang="en"] .ar { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ── header ── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(2, 12, 39, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--text); text-decoration: none; }
.lang-btn {
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  color: var(--text); background: rgba(19, 70, 197, 0.25);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 16px;
}
.lang-btn:hover { background: rgba(19, 70, 197, 0.45); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px; font-weight: 700; font-size: 16px;
  border: 1px solid var(--line-strong); color: var(--text); transition: transform .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; box-shadow: 0 10px 30px rgba(19, 70, 197, 0.45); }
.btn-ghost { background: rgba(10, 28, 72, 0.6); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ── hero ── */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(19, 70, 197, 0.55), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.pill {
  display: inline-block; padding: 6px 18px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: #a1bafb; border: 1px solid var(--line-strong); background: rgba(19, 70, 197, 0.18); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.2; font-weight: 900; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 20px 0 32px; max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { filter: drop-shadow(0 30px 60px rgba(19, 70, 197, 0.5)); }

/* ── sections ── */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.3; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
}
.step .num {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(19, 70, 197, 0.35); color: var(--accent); font-weight: 900; font-size: 20px; margin-bottom: 18px;
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.feature .ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(19, 70, 197, 0.55), rgba(9, 55, 170, 0.25)); border: 1px solid var(--line-strong);
}
.feature .ico svg { width: 26px; height: 26px; stroke: #c2d3fd; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15.5px; }

.shots-band { background: linear-gradient(180deg, var(--bg), #031240 50%, var(--bg)); }
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 10px 4px 26px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shot { flex: 0 0 230px; scroll-snap-align: center; text-align: center; }
.shot img {
  width: 100%; aspect-ratio: 9 / 20; object-fit: cover; object-position: top;
  border-radius: 28px; border: 6px solid #13204a; box-shadow: 0 20px 50px rgba(19, 70, 197, 0.35);
}
.shot span { display: block; margin-top: 14px; color: var(--muted); font-weight: 600; font-size: 15px; }

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aud { border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); background: var(--surface); }
.aud h3 { font-size: 20px; margin-bottom: 12px; color: var(--accent); }
.aud ul { list-style: none; display: grid; gap: 8px; }
.aud li { color: var(--muted); padding-inline-start: 22px; position: relative; }
.aud li::before { content: ""; position: absolute; inset-inline-start: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.cta {
  text-align: center; border-radius: 28px; padding: 56px 28px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(19, 70, 197, 0.6), transparent 70%), var(--surface);
  border: 1px solid var(--line-strong);
}
.cta h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.cta p { color: var(--muted); margin: 12px auto 28px; max-width: 560px; font-size: 18px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── legal pages ── */
.legal-hero { padding: 64px 0 28px; border-bottom: 1px solid var(--line); background: radial-gradient(700px 260px at 50% 0%, rgba(19, 70, 197, 0.4), transparent 70%); }
.legal-hero h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 900; }
.legal-hero p { color: var(--soft); margin-top: 6px; }
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 44px 0 80px; align-items: start; }
.toc { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.toc h4 { font-size: 14px; color: var(--soft); margin-bottom: 10px; font-weight: 700; }
.toc ol { list-style: none; display: grid; gap: 4px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: block; color: var(--muted); font-size: 14.5px; padding: 4px 0; }
.toc a::before { content: counter(t) ". "; color: var(--accent); font-weight: 700; }
.doc { max-width: 780px; min-width: 0; }
.doc .intro { font-size: 18px; color: var(--muted); margin-bottom: 28px; }
.doc h2 { font-size: 23px; font-weight: 800; margin: 38px 0 12px; scroll-margin-top: 96px; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 18px; margin: 20px 0 8px; color: var(--accent); }
.doc p, .doc li { color: #dbe4ff; font-size: 16.5px; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-inline-start: 22px; display: grid; gap: 6px; margin: 8px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
.doc th { background: var(--surface-2); color: var(--text); }
.doc td { color: #dbe4ff; }
.table-scroll { overflow-x: auto; }
.note { background: rgba(19, 70, 197, 0.18); border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
.note p { color: var(--text); }

/* ── footer ── */
footer { border-top: 1px solid var(--line); padding: 36px 0; background: var(--bg-deep); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer .links { display: flex; flex-wrap: wrap; gap: 20px; }
footer .links a { color: var(--muted); font-size: 15px; }
footer small { color: var(--soft); font-size: 14px; }

/* ── responsive ── */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .hero-art { max-width: 380px; margin: 0 auto; }
  .steps, .features, .audience { grid-template-columns: 1fr; }
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
@media (max-width: 620px) {
  .nav a.hide-sm { display: none; }
  .nav { gap: 14px; }
  section { padding: 60px 0; }
  .hero { padding: 56px 0 40px; }
  .wrap { padding: 0 16px; }
}

/* ── platform sections ── */
.nav-cta { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff !important; padding: 7px 16px; border-radius: 999px; }
.kicker { display: inline-block; color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: .02em; margin-bottom: 8px; }
.band { background: linear-gradient(180deg, var(--bg), #031240 50%, var(--bg)); }
.narrow { max-width: 820px; }
.trust { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.trust div { display: grid; }
.trust b { font-size: 24px; font-weight: 900; color: #fff; }
.trust span { color: var(--soft); font-size: 14px; }

.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app-card { position: relative; border-radius: 28px; padding: 36px 32px; border: 1px solid var(--line-strong); overflow: hidden; display: flex; flex-direction: column; }
.app-card.parent { background: radial-gradient(420px 260px at 100% 0%, rgba(49, 196, 141, 0.22), transparent 70%), var(--surface); }
.app-card.canteen { background: radial-gradient(420px 260px at 100% 0%, rgba(19, 70, 197, 0.55), transparent 70%), var(--surface); }
html[dir="ltr"] .app-card.parent, html[dir="ltr"] .app-card.canteen { background-position: 0 0; }
.app-tag { align-self: flex-start; font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); margin-bottom: 16px; }
.app-card h3 { font-size: 26px; font-weight: 800; }
.app-card > p { color: var(--muted); margin: 8px 0 18px; }
.app-card ul { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.app-card li { padding-inline-start: 28px; position: relative; color: #dbe4ff; }
.app-card li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--green); font-weight: 900; }
.app-card .btn { margin-top: auto; align-self: flex-start; }

.steps.four { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.3; }
.split .sub { color: var(--muted); font-size: 18px; margin: 10px 0 28px; }
.feature-list { display: grid; gap: 18px; margin-bottom: 30px; }
.fl { display: flex; gap: 14px; }
.fl .dot { flex: none; width: 12px; height: 12px; margin-top: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(130, 163, 248, .18); }
.fl h4 { font-size: 17.5px; font-weight: 800; }
.fl p { color: var(--muted); font-size: 15.5px; }

.visual { display: flex; justify-content: center; }
.phones { position: relative; width: 100%; max-width: 420px; height: 560px; }
.phones img { position: absolute; width: 58%; border-radius: 30px; border: 6px solid #13204a; box-shadow: 0 30px 70px rgba(19, 70, 197, .45); }
.phones img:first-child { inset-inline-start: 0; top: 40px; }
.phones img:last-child { inset-inline-end: 0; top: 0; }

.mock-card { width: 100%; max-width: 380px; border-radius: 30px; padding: 26px; background: linear-gradient(180deg, #0b1d4d, #061436); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(19, 70, 197, .4); display: grid; gap: 18px; }
.mc-row { display: flex; gap: 14px; align-items: center; }
.avatar { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: linear-gradient(#dce6ff, #a1bafb); }
.mc-row b, .mc-order b { display: block; font-size: 17px; }
.mc-row small, .mc-order small { color: var(--soft); }
.mc-balance { border-radius: 20px; padding: 18px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.mc-balance small { display: block; color: #c2d3fd; }
.mc-balance strong { font-size: 38px; font-weight: 900; }
.mc-limit { color: var(--muted); font-size: 15px; }
.bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.1); margin-top: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.mc-order { display: flex; gap: 14px; align-items: center; border-radius: 18px; padding: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.mc-order > span { font-size: 30px; }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; position: relative; padding-inline-end: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: -2px; font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin-top: 10px; }

/* ── join form ── */
.join { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; padding: 56px 0 90px; align-items: start; }
.join-side h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 900; line-height: 1.2; }
.join-side h1 span { color: var(--accent); }
.join-side .sub { color: var(--muted); font-size: 18px; margin: 14px 0 28px; }
.req { display: grid; gap: 14px; }
.req div { display: flex; gap: 12px; align-items: flex-start; color: #dbe4ff; }
.req i { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 14px; background: rgba(19,70,197,.35); color: var(--accent); }
.form-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 28px; padding: 32px; box-shadow: 0 30px 80px rgba(19, 70, 197, .25); }
.form-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.form-card .hint { color: var(--soft); font-size: 14.5px; margin-bottom: 22px; }
.fieldset-title { font-size: 14px; font-weight: 800; color: var(--accent); margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.fieldset-title:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14.5px; font-weight: 700; color: #dbe4ff; }
.field label em { color: #ff6b6b; font-style: normal; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15.5px; color: #fff; width: 100%;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 14px; outline: none;
}
.field textarea { min-height: 100px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(-45deg, transparent 50%, var(--accent) 50%); background-position: calc(18px) 52%, calc(12px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
html[dir="ltr"] .field select { background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(130,163,248,.18); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #ff6b6b; }
.field .err { color: #ff8a8a; font-size: 13px; min-height: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.chk { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer; font-size: 15px; }
.chk input { accent-color: var(--brand); width: 17px; height: 17px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); margin: 8px 0 20px; }
.agree input { accent-color: var(--brand); width: 18px; height: 18px; margin-top: 4px; flex: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.submit { width: 100%; justify-content: center; font-size: 17px; padding: 16px; cursor: pointer; font-family: inherit; }
.submit[disabled] { opacity: .6; cursor: wait; }
.form-msg { display: none; margin-top: 16px; border-radius: 14px; padding: 14px 16px; font-weight: 600; }
.form-msg.ok { display: block; background: rgba(49,196,141,.15); border: 1px solid rgba(49,196,141,.5); color: #9ff0cd; }
.form-msg.bad { display: block; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.5); color: #ffb4b4; }
.success { text-align: center; padding: 30px 10px; }
.success .big { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; background: rgba(49,196,141,.18); color: var(--green); border: 1px solid rgba(49,196,141,.5); }
.success h2 { font-size: 26px; }
.success p { color: var(--muted); margin-top: 8px; }

@media (max-width: 900px) {
  .apps, .split, .join { grid-template-columns: minmax(0, 1fr); }
  .split.reverse > :first-child { order: 0; }
  .steps.four { grid-template-columns: 1fr 1fr; }
  .phones { height: 480px; max-width: 360px; }
  .trust { justify-content: center; }
}
@media (max-width: 620px) {
  .steps.four, .grid2 { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .app-card { padding: 28px 22px; }
  .nav .nav-cta { padding: 6px 12px; font-size: 13px; }
}

.hero .wrap > *, .split > *, .join > *, .legal > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }

/* ── delete account ── */
.btn-danger { background: linear-gradient(135deg, #d93636, #a51f1f); border-color: transparent; box-shadow: 0 10px 30px rgba(217, 54, 54, .35); }
.del-list { list-style: none; display: grid; gap: 10px; }
.del-list li { position: relative; padding-inline-start: 26px; color: #dbe4ff; font-size: 15.5px; }
.del-list li::before { content: "✕"; position: absolute; inset-inline-start: 0; top: 0; color: #ff8a8a; font-weight: 900; }
.del-list.keep li::before { content: "•"; color: var(--accent); font-size: 22px; line-height: 1.2; }
.join-side .fieldset-title { margin-top: 28px; }
.join-side .hint { color: var(--soft); font-size: 14.5px; }
