/* الصفحة الرئيسية للمنصة */
:root {
  --ink: #1c1410;
  --ink-2: #4a3f38;
  --muted: #7a6e66;
  --bg: #fffaf5;
  --bg-2: #f6efe7;
  --card: #ffffff;
  --line: #eadfd3;
  --brand: #b4532a;
  --brand-2: #d9763f;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(60, 30, 10, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  font-size: 17px; line-height: 1.7; overflow-x: hidden;
}
a { color: inherit; }
svg { width: 1em; height: 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* ---------- الأزرار ---------- */
.btn-wa {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 12px 22px; border-radius: 14px; text-decoration: none; font-weight: 700;
  background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 168, 85, .7);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-wa svg { width: 22px; height: 22px; fill: currentColor; }
.btn-wa:hover { transform: translateY(-2px); background: var(--wa-dark); }
.btn-sm { padding: 8px 14px; font-size: 15px; border-radius: 12px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-lg { padding: 16px 30px; font-size: 19px; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--wa-dark); border: 2px solid var(--wa); box-shadow: none; }
.btn-outline:hover { background: var(--wa); color: #fff; }
.btn-light { background: #fff; color: var(--wa-dark); }
.btn-light:hover { background: #f0fff6; }
.btn-ghost { display: inline-flex; align-items: center; padding: 15px 24px; border-radius: 14px; text-decoration: none; font-weight: 700; border: 2px solid var(--line); color: var(--ink-2); transition: border-color .2s; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- الشريط العلوي ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 245, .85); backdrop-filter: blur(10px); transition: box-shadow .2s; }
.nav.scrolled { box-shadow: 0 6px 20px -12px rgba(0,0,0,.25); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; text-decoration: none; }
.brand-logo { height: 42px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand img { height: 30px; width: auto; max-width: 130px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px 6px; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 13px; letter-spacing: 1px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 16px; }
.nav-links a:hover { color: var(--brand); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- الواجهة ---------- */
.hero { position: relative; padding: 50px 0 90px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; z-index: 0; animation: drift 14s ease-in-out infinite alternate; }
.b1 { width: 420px; height: 420px; background: #f6c9a8; top: -120px; left: -80px; }
.b2 { width: 360px; height: 360px; background: #bfe8d0; bottom: -140px; right: 20%; animation-delay: -6s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }

.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
@media (max-width: 960px) { .hero-in { grid-template-columns: 1fr; } }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--brand); font-weight: 700; font-size: 15px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.25; margin: 18px 0 16px; letter-spacing: -.5px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); margin: 0 0 28px; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { color: var(--muted); font-size: 15px; margin-top: 16px; }

.hero-visual { position: relative; min-height: 560px; display: flex; justify-content: center; align-items: center; }
.hero-img { width: 100%; max-width: 520px; border-radius: 26px; box-shadow: var(--shadow); }

/* الجوال */
.phone {
  position: relative; width: 290px; height: 580px; border-radius: 44px; background: #15100d; padding: 12px;
  box-shadow: var(--shadow), inset 0 0 0 2px #3a2e27; transform: rotate(-4deg); animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: rotate(-4deg) translateY(-12px); } }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; border-radius: 0 0 16px 16px; background: #15100d; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #f7f8fa; }
.scroller { padding: 38px 12px 80px; animation: scrollMenu 16s ease-in-out infinite; }
@keyframes scrollMenu { 0%, 12% { transform: translateY(0); } 45%, 60% { transform: translateY(-230px); } 92%, 100% { transform: translateY(0); } }
.m-head { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px; margin-bottom: 10px; }
.m-head b { display: block; font-size: 14px; }
.m-head small { color: #6b7280; font-size: 11px; }
.m-logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.m-cats { display: flex; gap: 6px; margin-bottom: 10px; }
.m-cats span { font-size: 11px; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid #e3e6ea; }
.m-cats .on { background: #10b5c9; color: #fff; border-color: #10b5c9; }
.m-item { display: flex; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid #e3e6ea; border-radius: 12px; padding: 9px; margin-bottom: 8px; }
.m-item b { display: block; font-size: 13px; color: #0f7c8c; }
.m-price { display: block; color: #d0312d; font-weight: 800; font-size: 12px; margin: 2px 0 6px; }
.m-add { display: inline-block; font-size: 10px; background: #10b5c9; color: #fff; border-radius: 6px; padding: 3px 8px; }
.m-img { width: 64px; height: 64px; border-radius: 10px; flex: none; }
.c1 { background: radial-gradient(circle at 35% 35%, #f7d58c, #d9763f 60%, #9c3d16); }
.c2 { background: radial-gradient(circle at 40% 40%, #f3e2c3, #c8935a 65%, #7b4a22); }
.c3 { background: radial-gradient(circle at 40% 35%, #f0b38a, #a8452a 60%, #5a1f10); }
.c4 { background: radial-gradient(circle at 40% 40%, #ffe29a, #ffa53a 65%, #e46a12); }
.c5 { background: radial-gradient(circle at 40% 40%, #ffd9a0, #e39a3c 65%, #a0581a); }
.m-fab { position: absolute; left: 14px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; background: #166b52; display: grid; place-items: center; font-size: 20px; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.m-fab em { position: absolute; top: -4px; right: -4px; font-style: normal; font-size: 11px; font-weight: 800; background: #d0312d; color: #fff; border-radius: 10px; padding: 0 6px; }

/* البطاقات العائمة حول الجوال */
.float { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; font-size: 14px; z-index: 2; }
.f-kitchen { top: 70px; right: -10px; border-top: 5px solid #10b5c9; display: flex; flex-direction: column; animation: pop 8s ease-in-out infinite; }
.f-kitchen b { font-size: 15px; }
.f-kitchen span { color: var(--ink-2); }
.f-wa { bottom: 110px; left: -10px; display: flex; align-items: center; gap: 8px; color: var(--wa-dark); font-weight: 700; animation: pop 8s ease-in-out infinite; animation-delay: 2.2s; }
.f-wa svg { width: 26px; height: 26px; fill: var(--wa); }
.f-qr { bottom: 20px; right: 10px; text-align: center; animation: floaty 5s ease-in-out infinite; }
.f-qr span { font-size: 12px; color: var(--muted); font-weight: 700; }
.qr-art {
  width: 70px; height: 70px; margin-bottom: 4px; border-radius: 6px;
  background:
    linear-gradient(90deg, var(--ink) 50%, transparent 0) 0 0 / 14px 14px,
    linear-gradient(var(--ink) 50%, transparent 0) 0 0 / 14px 14px;
  mask: radial-gradient(circle, #000 60%, transparent 61%) 0 0 / 7px 7px;
  -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%) 0 0 / 7px 7px;
  outline: 6px solid #fff; box-shadow: inset 0 0 0 8px var(--ink);
}
@keyframes pop { 0%, 8% { opacity: 0; transform: translateY(14px) scale(.95); } 14%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-8px) scale(.97); } }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@media (max-width: 520px) {
  .hero-visual { min-height: 520px; }
  .phone { width: 250px; height: 510px; }
  .f-kitchen { right: 0; top: 30px; }
  .f-wa { left: 0; }
}

/* ---------- الأقسام ---------- */
.section { padding: 90px 0; scroll-margin-top: 70px; }
#contact { scroll-margin-top: 70px; }
.section.alt { background: var(--bg-2); }
.title { text-align: center; font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 14px; }
.subtitle { text-align: center; color: var(--muted); margin: 0 0 40px; }
.title + .steps, .title + .features, .title + .faq { margin-top: 40px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ''; position: absolute; top: 34px; right: 12%; left: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; text-align: center; padding: 0 8px; }
.step-n { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); color: var(--brand); font-size: 26px; font-weight: 800; box-shadow: 0 10px 24px -14px var(--brand); }
.step h3 { margin: 14px 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.f-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.f-ic svg { width: 26px; height: 26px; }
.feature h3 { margin: 14px 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 16px; }

.stats-band { background: var(--ink); color: #fff; padding: 56px 0; }
.stats { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; text-align: center; }
.stat b { display: block; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; color: #f2b48f; }
.stat span { color: #d8cfc8; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s; }
.plan:hover { transform: translateY(-6px); }
.plan.is-hot { border: 2px solid var(--brand); box-shadow: var(--shadow); }
@media (min-width: 900px) { .plan.is-hot { transform: scale(1.04); } .plan.is-hot:hover { transform: scale(1.04) translateY(-6px); } }
.hot { position: absolute; top: -14px; right: 24px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { margin: 0 0 8px; font-size: 22px; }
.price { margin-bottom: 18px; }
.price b { font-size: 40px; color: var(--brand); }
.price small { color: var(--muted); margin-inline-start: 6px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan li { padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.plan li::before { content: '✓'; color: var(--wa); font-weight: 800; margin-inline-end: 8px; }

.faq { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }

.cta-band { background: linear-gradient(135deg, #1c1410, #4a2412 60%, var(--brand)); color: #fff; text-align: center; padding: 80px 0; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; }
.cta-band p { color: #f3e3d6; margin: 0 0 28px; font-size: 19px; }

.foot { background: #15100d; color: #a99c92; padding: 22px 0; font-size: 15px; }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot a { color: #f2b48f; text-decoration: none; }

.wa-float { position: fixed; bottom: 20px; left: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 26px -6px rgba(31,168,85,.7); animation: ring 3s ease-in-out infinite; }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(31,168,85,.45), 0 10px 26px -6px rgba(31,168,85,.7); } 50% { box-shadow: 0 0 0 14px rgba(31,168,85,0), 0 10px 26px -6px rgba(31,168,85,.7); } }

/* ---------- الظهور التدريجي أثناء النزول ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }
.no-js .reveal { opacity: 1; transform: none; }

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