/* ============================================================
   قمة المهندس — صفحة الهبوط الرسمية | Qimat Al Mohandis landing
   الهوية: فيروزي + سمائي + أبيض، وضع نهاري.
   ============================================================ */

:root {
  --turquoise: #14b8a6;
  --turquoise-deep: #0d9488;
  --sky: #38bdf8;
  --sky-deep: #0ea5e9;
  --bg: #f4fafb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #dceeec;
  --success: #22c55e;
  --brand-grad: linear-gradient(135deg, var(--turquoise), var(--sky-deep));
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow: 0 14px 40px rgba(20, 184, 166, 0.12);
  --shadow-lg: 0 24px 60px rgba(14, 165, 233, 0.16);
  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1160px;
  --head: "Alexandria", "Cairo", system-ui, sans-serif;
  --body: "Cairo", "Alexandria", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name { font-family: var(--head); line-height: 1.25; font-weight: 800; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { position: relative; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border-radius: 14px; border: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--turquoise-deep); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--turquoise); transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand-name { font-size: 1.15rem; }
.nav-links { display: flex; gap: 24px; margin-inline-start: auto; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .15s; }
.nav-links a:hover { color: var(--turquoise-deep); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--turquoise-deep); font-weight: 800; cursor: pointer;
  font-family: var(--head); transition: border-color .15s, transform .15s;
}
.lang-toggle:hover { border-color: var(--turquoise); transform: translateY(-1px); }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(20, 184, 166, 0.1); color: var(--turquoise-deep);
  font-weight: 700; font-size: .85rem; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--turquoise); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.5px; }
.hero p.lead { color: var(--muted); font-size: 1.12rem; margin: 18px 0 28px; max-width: 32em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 6% 6% 10%;
  background: var(--brand-grad); filter: blur(60px); opacity: .18; border-radius: 50%;
}
.hero-visual img { position: relative; filter: drop-shadow(0 30px 50px rgba(14,165,233,.18)); }

/* ---------- trust bar ---------- */
.trust {
  display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center;
  padding: 22px; margin-top: 26px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.trust-item svg { width: 22px; height: 22px; color: var(--turquoise); flex-shrink: 0; }

/* ---------- section heads ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 680px) { .features { grid-template-columns: 1fr 1fr; } }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 10px 10px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card .thumb {
  border-radius: 20px; background: linear-gradient(160deg, #f0fdfa, #eff6ff);
  overflow: hidden; aspect-ratio: 16/11; display: grid; place-items: center;
}
.feature-card .thumb img { width: 84%; }
.feature-card .body { padding: 6px 20px 0; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .98rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.step .num {
  width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 14px;
  background: var(--brand-grad); color: #fff; display: grid; place-items: center;
  font-family: var(--head); font-weight: 800; font-size: 1.15rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- merchants band ---------- */
.merchants { background: var(--surface); border-block: 1px solid var(--border); }
.merchants-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
@media (min-width: 900px) { .merchants-grid { grid-template-columns: 1fr 1fr; } }
.merch-list { list-style: none; display: grid; gap: 14px; margin-top: 22px; }
.merch-list li { display: flex; align-items: flex-start; gap: 12px; }
.merch-list .ic {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: rgba(56, 189, 248, 0.12); color: var(--sky-deep); display: grid; place-items: center;
}
.merch-list .ic svg { width: 19px; height: 19px; }
.merch-list b { display: block; font-weight: 700; }
.merch-list span { color: var(--muted); font-size: .94rem; }
.merch-visual {
  background: var(--brand-grad); border-radius: var(--radius-lg); padding: 30px;
  color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.merch-visual::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.14); top: -70px; inset-inline-end: -60px;
}
.merch-visual h3 { font-size: 1.5rem; margin-bottom: 10px; position: relative; }
.merch-visual p { opacity: .92; position: relative; }
.merch-stats { display: flex; gap: 26px; margin-top: 22px; position: relative; flex-wrap: wrap; }
.merch-stats .s b { font-family: var(--head); font-size: 1.7rem; display: block; }
.merch-stats .s span { opacity: .9; font-size: .88rem; }

/* ---------- categories ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cat-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 18px; font-weight: 600; box-shadow: var(--shadow-sm);
  transition: transform .15s, border-color .15s;
}
.cat-chip:hover { transform: translateY(-3px); border-color: var(--turquoise); }
.cat-chip svg { width: 22px; height: 22px; color: var(--turquoise); }

/* ---------- download / cta ---------- */
.cta-band { text-align: center; }
.cta-card {
  background: var(--brand-grad); border-radius: var(--radius-lg); padding: 50px 30px;
  color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-card h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta-card p { opacity: .94; margin: 12px auto 26px; max-width: 34em; }
.store-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 700;
  transition: background .15s;
}
.store-badge:hover { background: rgba(255,255,255,.26); }
.store-badge svg { width: 24px; height: 24px; }
.store-badge small { display: block; font-weight: 500; font-size: .72rem; opacity: .85; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .ic { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center; }
.contact-card .ic svg { width: 26px; height: 26px; color: #fff; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-card .val { direction: ltr; font-weight: 700; color: var(--turquoise-deep); unicode-bidi: isolate; }

/* ---------- footer ---------- */
footer { background: #0b1220; color: #cbd5e1; padding: 46px 0 26px; margin-top: 20px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 40px; height: 40px; border-radius: 10px; }
.foot-brand .brand-name { color: #fff; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: #94a3b8; font-weight: 600; font-size: .92rem; }
.foot-links a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; color: #64748b; font-size: .85rem; }
.foot-bottom .val { direction: ltr; unicode-bidi: isolate; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- legal pages (privacy / terms) ---------- */
.legal-hero { padding: 54px 0 8px; text-align: center; }
.legal-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal-hero p { color: var(--muted); margin-top: 10px; }
.legal-hero .updated { font-size: .85rem; margin-top: 6px; }
.legal { max-width: 820px; margin: 26px auto 60px; padding-inline: 22px; }
.legal-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px clamp(20px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.legal h2 { font-size: 1.3rem; margin: 30px 0 10px; color: var(--turquoise-deep); }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text); margin-bottom: 12px; }
.legal ul { margin: 0 0 14px; padding-inline-start: 22px; }
.legal li { margin-bottom: 8px; color: var(--text); }
.legal a { color: var(--sky-deep); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal .val { direction: ltr; unicode-bidi: isolate; font-weight: 700; }
.back-home {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px;
  color: var(--muted); font-weight: 600; font-size: .92rem;
}
.back-home:hover { color: var(--turquoise-deep); }
.back-home svg { width: 18px; height: 18px; }
[dir="ltr"] .back-home svg { transform: scaleX(-1); }
