:root {
  --teal: #0ea5a4;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --mint: #2dd4bf;
  --ink: #0b1f2a;
  --ink-2: #13313f;
  --muted: #5b7884;
  --bg: #f4fbfb;
  --white: #ffffff;
  --card: rgba(255, 255, 255, 0.7);
  --shadow: 0 20px 50px -20px rgba(13, 148, 136, 0.35);
  --radius: 22px;
  --maxw: 1180px;
  --grad: linear-gradient(120deg, #0ea5a4, #22c55e 60%, #2dd4bf);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Tajawal", "Cairo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

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

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

/* ===== الخلفية المتحركة ===== */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: float-orb 18s ease-in-out infinite; }
.orb-1 { width: 420px; height: 420px; background: #5eead4; top: -120px; right: -80px; }
.orb-2 { width: 360px; height: 360px; background: #86efac; bottom: -100px; left: -60px; animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; background: #a7f3d0; top: 40%; left: 50%; animation-delay: -11s; }
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.12); }
}

/* ===== الأزرار ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 14px; font-weight: 700; font-size: 1rem;
  font-family: inherit; cursor: pointer; border: none; transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 26px 55px -18px rgba(13,148,136,.55); }
.btn-ghost { background: rgba(14,165,164,.1); color: var(--teal-700); }
.btn-ghost:hover { background: rgba(14,165,164,.18); transform: translateY(-3px); }

.badge-pill {
  display: inline-block; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  background: rgba(14,165,164,.12); color: var(--teal-700); margin-bottom: 18px;
}
.badge-pill.light { background: rgba(255,255,255,.2); color: #fff; }

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

/* ===== شريط التنقل ===== */
.navbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s; padding: 16px 0;
}
.navbar.scrolled { background: rgba(255,255,255,.85); backdrop-filter: blur(14px); box-shadow: 0 8px 30px -16px rgba(13,148,136,.3); padding: 10px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.3rem; }
.brand-logo { width: 38px; height: 38px; }
.brand-name { font-family: "Cairo", sans-serif; }
.nav-links { display: flex; gap: 28px; font-weight: 600; }
.nav-links a { position: relative; color: var(--ink-2); transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; bottom: -6px; right: 0; width: 0; height: 2px; background: var(--grad); transition: width .25s; }
.nav-links a:hover { color: var(--teal-700); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ===== القسم الرئيسي ===== */
.hero { position: relative; padding: 150px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.hero-title { font-family: "Cairo", sans-serif; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.25; margin-bottom: 18px; }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 2rem; font-weight: 900; color: var(--teal-700); font-family: "Cairo", sans-serif; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ===== مشهد الهاتف ثلاثي الأبعاد ===== */
.hero-visual { display: flex; justify-content: center; perspective: 1400px; }
.phone-scene { position: relative; transform-style: preserve-3d; }
.phone {
  position: relative; width: 290px;  transform-style: preserve-3d;
  /* transform: rotateY(-22deg) rotateX(6deg); animation: phone-float 6s ease-in-out infinite;
  transition: transform .2s ease-out; */
}
@keyframes phone-float {
  0%, 100% { transform: rotateY(-22deg) rotateX(6deg) translateY(0); }
  50% { transform: rotateY(-16deg) rotateX(4deg) translateY(-18px); }
}
.phone-glow { position: absolute; inset: -30px; background: var(--grad); filter: blur(60px); opacity: .45; border-radius: 50%; z-index: -1; }
.phone-frame {
  position: absolute; inset: 0; background: linear-gradient(160deg, #1f2937, #0b1220);
  border-radius: 46px; padding: 14px; box-shadow: 0 40px 80px -30px rgba(2,20,30,.7), inset 0 0 0 2px rgba(255,255,255,.08);
}
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #0b1220; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen { position: relative; width: 100%; height: 100%; background: linear-gradient(180deg, #ecfeff, #f0fdfa); border-radius: 34px; overflow: hidden; }

/* واجهة التطبيق الوهمية */
.app-ui { padding: 40px 16px 0; height: 100%; display: flex; flex-direction: column; gap: 12px; text-align: right; }
.app-statusbar { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; color: #475569; font-weight: 700; }
.app-dots { width: 42px; height: 8px; background: linear-gradient(90deg,#475569 60%, transparent 60%); border-radius: 4px; opacity: .5; }
.app-header { display: flex; justify-content: space-between; align-items: center; }
.app-hello { font-size: .72rem; color: var(--muted); }
.app-title { font-size: 1.05rem; font-weight: 800; color: var(--ink); font-family: "Cairo"; }
.app-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); }
.app-search { background: #fff; border-radius: 14px; padding: 11px 14px; font-size: .78rem; color: #94a3b8; box-shadow: 0 6px 16px -10px rgba(0,0,0,.2); }
.app-banner { background: var(--grad); color: #fff; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; }
.app-banner span { font-size: .72rem; opacity: .9; }
.app-banner strong { font-size: 1.2rem; font-family: "Cairo"; }
.app-section-title { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 800; }
.app-link { color: var(--teal); font-size: .72rem; }
.app-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-card { background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 8px 18px -12px rgba(0,0,0,.2); font-size: .72rem; }
.app-card span { display: block; font-weight: 700; margin-top: 6px; color: var(--ink-2); }
.app-card b { color: var(--teal-700); font-size: .72rem; }
.app-card-img { height: 46px; border-radius: 10px; }
.app-card-img.i1 { background: linear-gradient(135deg,#fca5a5,#f87171); }
.app-card-img.i2 { background: linear-gradient(135deg,#93c5fd,#3b82f6); }
.app-card-img.i3 { background: linear-gradient(135deg,#fcd34d,#f59e0b); }
.app-card-img.i4 { background: linear-gradient(135deg,#86efac,#22c55e); }
.app-tabbar { margin-top: auto; background: #fff; border-radius: 18px 18px 0 0; padding: 14px; display: flex; justify-content: space-around; box-shadow: 0 -8px 20px -12px rgba(0,0,0,.15); }
.app-tabbar span { width: 26px; height: 6px; border-radius: 4px; background: #cbd5e1; }
.app-tabbar span.active { background: var(--grad); width: 30px; }

/* البطاقات العائمة */
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow);
  font-size: .82rem; animation: card-bob 5s ease-in-out infinite;
}
.float-card b { display: block; font-size: .85rem; }
.float-card small { color: var(--muted); }
.fc-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; }
.fc-icon.ok { background: #dcfce7; color: #16a34a; }
.fc-icon.truck { background: #e0f2fe; }
.float-order { top: 70px; left: -40px; animation-delay: -1s; }
.float-deliver { bottom: 90px; right: -30px; animation-delay: -3s; }
@keyframes card-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-wave { position: absolute; bottom: 0; inset-inline: 0; height: 90px; background: var(--white); clip-path: ellipse(75% 100% at 50% 100%); opacity: .0; }

/* ===== الأقسام ===== */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-title { font-family: "Cairo"; font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* المميزات */
.features { background: linear-gradient(180deg, transparent, rgba(45,212,191,.06)); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 30px;
  box-shadow: 0 18px 40px -28px rgba(13,148,136,.4); border: 1px solid rgba(13,148,136,.08);
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(13,148,136,.5); }
.feature-icon { width: 60px; height: 60px; border-radius: 18px; background: rgba(14,165,164,.12); display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 18px; }
.feature-card h3 { font-family: "Cairo"; font-size: 1.25rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .98rem; }

/* الكاروسيل */
.screens-carousel { overflow: hidden; padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.screens-track { display: flex; gap: 26px; transition: transform .6s cubic-bezier(.4,.2,.2,1); will-change: transform; }
.screen-item {
  flex: 0 0 auto; width: 250px; border-radius: 30px; overflow: hidden; background: #0b1220;
  box-shadow: 0 30px 60px -30px rgba(2,20,30,.6); transition: transform .4s, box-shadow .4s; position: relative;
  border: 8px solid #0b1220;
}
.screen-item img { width: 100%; object-fit: cover; border-radius: 22px; }
.screen-item figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: 18px 14px 12px; color: #fff; font-weight: 700; text-align: center; background: linear-gradient(transparent, rgba(2,20,30,.85)); font-size: .9rem; }
.screen-item:hover { transform: translateY(-10px) scale(1.02); }
/* بديل عند غياب الصور الحقيقية */
.screen-item.placeholder img { display: none; }
.screen-item.placeholder { width: 250px; height: 536px; background: linear-gradient(160deg, #0ea5a4, #2dd4bf); display: grid; place-items: center; }
.screen-item.placeholder::before { content: "📱"; font-size: 3rem; }
.screen-item.placeholder figcaption { background: rgba(2,20,30,.25); }

.carousel-controls { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.carousel-btn { width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--white); color: var(--teal-700); font-size: 1.6rem; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s, background .2s; }
.carousel-btn:hover { background: var(--teal); color: #fff; transform: scale(1.08); }

/* التحميل */
.download-card {
  display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 40px;
  background: linear-gradient(130deg, var(--teal-700), var(--teal) 55%, var(--mint)); color: #fff;
  border-radius: 32px; padding: 50px; box-shadow: 0 40px 80px -40px rgba(13,148,136,.7); position: relative; overflow: hidden;
}
.download-card .section-title, .download-card .section-sub { color: #fff; }
.download-card .section-sub { opacity: .9; }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 14px; }
.store-badge { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 12px 20px; border-radius: 14px; transition: transform .25s, background .25s; backdrop-filter: blur(6px); }
.store-badge:hover { transform: translateY(-4px); background: rgba(255,255,255,.24); }
.store-badge.apk { background: #fff; color: var(--teal-700); }
.store-badge.apk:hover { background: #fff; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge small { font-size: .72rem; opacity: .85; }
.store-badge strong { font-size: 1rem; font-family: "Cairo"; }
.download-note { font-size: .85rem; opacity: .85; }
.download-visual { display: flex; justify-content: center; }
.qr-card { background: #fff; border-radius: 22px; padding: 22px; text-align: center; color: var(--ink); box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); }
.qr-box { width: 160px; height: 160px; margin: 0 auto 12px; border-radius: 12px; background-size: contain; }
.qr-card p { font-size: .85rem; color: var(--muted); }

/* التواصل */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.social-card {
  background: var(--white); border-radius: var(--radius); padding: 26px; text-align: center;
  box-shadow: 0 18px 40px -30px rgba(13,148,136,.4); transition: transform .3s, box-shadow .3s; border: 1px solid rgba(13,148,136,.08);
}
.social-card:hover { transform: translateY(-6px); box-shadow: 0 28px 55px -30px rgba(13,148,136,.5); }
.social-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.5rem; font-weight: 800; color: #fff; }
.social-card b { display: block; font-family: "Cairo"; font-size: 1.1rem; }
.social-card small { color: var(--muted); }
.whatsapp .social-ic { background: #25d366; }
.email .social-ic { background: #ea4335; }
.facebook .social-ic { background: #1877f2; }
.instagram .social-ic { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
.telegram .social-ic { background: #0088cc; }
.phone .social-ic { background: var(--teal); }

/* التذييل */
.footer { background: var(--ink); color: #cde3e6; padding: 60px 0 0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #93b4bb; max-width: 320px; }
.footer-col h4 { font-family: "Cairo"; margin-bottom: 16px; color: #fff; }
.footer-col a { display: block; color: #9fc0c6; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .88rem; color: #7fa3aa; text-align: center; }

/* ===== ظهور عند التمرير ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== صفحات قانونية ===== */
.legal { padding: 130px 0 70px; }
.legal-card { background: var(--white); border-radius: var(--radius); padding: 46px; box-shadow: var(--shadow); max-width: 900px; margin: 0 auto; }
.legal h1 { font-family: "Cairo"; font-size: 2rem; margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 28px; font-size: .9rem; }
.legal h2 { font-family: "Cairo"; font-size: 1.3rem; margin: 28px 0 10px; color: var(--teal-700); }
.legal p, .legal li { color: #36505a; margin-bottom: 10px; }
.legal ul { padding-right: 22px; }
.back-home { display: inline-flex; align-items: center; gap: 6px; margin-top: 30px; color: var(--teal-700); font-weight: 700; }

/* ===== صفحة حذف الحساب ===== */
.delete-account-card { max-width: 720px; }
.delete-info { background: rgba(14,165,164,.08); border-radius: 16px; padding: 20px 22px; margin-bottom: 28px; }
.delete-info h2 { font-family: "Cairo"; font-size: 1.05rem; margin: 0 0 10px; color: var(--teal-700); }
.delete-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 700; color: var(--ink-2); }
.required { color: #dc2626; }
.form-input, .form-textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid rgba(14,165,164,.25);
  border-radius: 14px; font-family: inherit; font-size: 1rem; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,165,164,.15);
}
.form-hint { color: var(--muted); font-size: .88rem; }
.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; color: #36505a; line-height: 1.6; }
.form-check input { margin-top: 5px; flex-shrink: 0; accent-color: var(--teal); }
.form-alert { padding: 14px 16px; border-radius: 14px; font-weight: 600; line-height: 1.6; }
.form-alert--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.delete-support { margin-top: 24px; color: var(--muted); font-size: .95rem; }
.delete-support a { color: var(--teal-700); font-weight: 700; }
.delete-form .btn-primary { align-self: flex-start; }
.delete-form .btn-primary:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ===== استجابة الجوال ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-visual { order: 1; margin-bottom: 20px; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .features-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .download-card { grid-template-columns: 1fr; text-align: center; }
  .store-badges { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { position: fixed; inset: 0 0 auto; top: 64px; flex-direction: column; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); padding: 24px; gap: 18px; transform: translateY(-130%); transition: transform .35s; box-shadow: 0 20px 40px -20px rgba(0,0,0,.2); }
  .nav-links.open { transform: translateY(0); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .features-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .phone { width: 240px; height: 490px; }
  .download-card { padding: 34px 22px; }
  .section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .phone, .orb, .float-card { animation: none; }
  .reveal { transition: none; }
}
