:root{
  --bg: #f5f5f7;
  --card: rgba(255,255,255,.7);
  --stroke: rgba(0,0,0,.08);
  --text: #0b0b0f;
  --muted: rgba(0,0,0,.6);
  --shadow: 0 20px 60px rgba(0,0,0,.08);
  --radius: 18px;
  --max: 1100px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Tajawal", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial;
  background: radial-gradient(1200px 600px at 10% 0%, #ffffff 0%, var(--bg) 55%) , var(--bg);
  color: var(--text);
}


a{ color:inherit; text-decoration:none; }
.container{ width:min(var(--max), calc(100% - 32px)); margin:0 auto; }

.topbar{
  position: sticky; top:0; z-index:10;
  backdrop-filter: blur(14px);
  background: rgba(245,245,247,.7);
  border-bottom: 1px solid var(--stroke);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
}
.brand{
  font-weight: 800;
  letter-spacing: .6px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .6px;
}

.brand-logo{
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px; /* اختياري: يعطي نعومة للشعار */
}

.brand-text{
  display:inline-block;
  line-height: 1;
}

.nav{
  display:flex; gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.nav a:hover{ color: var(--text); }

.btn-ghost{
  display:inline-flex; align-items:center; gap:10px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.6);
  padding: 10px 12px;
  border-radius: 999px;
  cursor:pointer;
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: #111;
  opacity:.2;
}

.hero{
  padding: 44px 0 10px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}
.pill{
  display:inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.6);
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}
.title{
  margin:0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.5px;
}
.subtitle{
  margin:0 0 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15.5px;
}
.cta{ display:flex; gap: 12px; flex-wrap:wrap; }
.btn-primary, .btn-secondary{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-weight: 700;
  font-size: 14px;
}
/* زيادة المسافة تحت أزرار CTA */
.cta{
  margin-bottom: 18px;
}

/* وعند الجوال/الشاشات الصغيرة نزيدها أكثر */
@media (max-width: 900px){
  .hero-card{
    margin-top: 22px; /* يفصل كرت المحادثة عن الجزء العلوي */
  }
}

.btn-primary{
  background: #111;
  color: #fff;
}
.btn-secondary{
  background: rgba(255,255,255,.7);
}
.trust{
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

/* App icons row (layered icon style) */
.app-icons{
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin: 16px 0 6px;
}

.app-icon{
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 92px;
  user-select:none;
}

.app-icon .layer{
  width: 62px;           /* ↑ أكبر */
  height: 62px;          /* ↑ أكبر */
  border-radius: 18px;
  position: relative;
  display:grid;
  place-items:center;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 48px rgba(0,0,0,.10);
  backdrop-filter: blur(18px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* the 4 spans = decorative borders */
.app-icon .layer > span:not(.iconSVG){
  position:absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.06);
  opacity: .55;
  transform: translate(0,0);
}
.app-icon .layer > span:nth-child(1){ transform: translate(-2.5px,-2.5px); opacity:.34; }
.app-icon .layer > span:nth-child(2){ transform: translate(2.5px,-2.5px);  opacity:.27; }
.app-icon .layer > span:nth-child(3){ transform: translate(-2.5px,2.5px);  opacity:.24; }
.app-icon .layer > span:nth-child(4){ transform: translate(2.5px,2.5px);   opacity:.20; }

.app-icon .iconSVG{
  position: relative;
  display:grid;
  place-items:center;
  width: 100%;
  height: 100%;
}

.svgIcon{
  width: 30px;   /* ↑ أكبر */
  height: 30px;  /* ↑ أكبر */
  fill: rgba(0,0,0,.78);
}

.app-icon .text{
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .1px;
}

/* تفاعل أقوى */
.app-icon:hover .layer{
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 22px 65px rgba(0,0,0,.14);
  border-color: rgba(0,0,0,.12);
}
.app-icon:active .layer{
  transform: translateY(-1px) scale(0.99);
}

/* ===== Official Brand Colors (SVG fill) ===== */
.app-icon.wa  .svgIcon{ fill:#25D366; }  /* WhatsApp green */
.app-icon.wab .svgIcon{ fill:#128C7E; }  /* WA Business darker green */
.app-icon.tg  .svgIcon{ fill:#229ED9; }  /* Telegram blue */
.app-icon.ig  .svgIcon{ fill:#E1306C; }  /* Instagram pink (representative) */

/* WhatsApp Business badge */

.bizBadge{
  position:absolute;
  top: 8px;
  right: 9px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: #128C7E;          /* لون WA Business */
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  border: 2px solid rgba(255,255,255,.9);  /* إطار أبيض قوي للوضوح */
}

.bizBadgeInner{
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  transform: translateY(-0.2px); /* ضبط بسيط بصرياً */
}

/* RTL tweak */
html[dir="rtl"] .bizBadge{
  right: auto;
  left: 9px;
}




.hero-card .card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
/* =========================
   WhatsApp-like chat mock (Light)
   ========================= */
.wa-mock{
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #efeae2;
  box-shadow: 0 18px 55px rgba(0,0,0,.10);
}

/* Top bar */
.wa-top{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.75);
  border-bottom: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(14px);
}
.wa-app{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 25%, rgba(37,211,102,.25), rgba(37,211,102,.08));
  border: 1px solid rgba(37,211,102,.25);
  position: relative;
}
.wa-app::after{
  content:"";
  width: 16px; height: 16px;
  border-radius: 999px;
  background: #25D366;
  position:absolute;
  inset: 0;
  margin:auto;
  opacity:.9;
}
.wa-top-text{ display:flex; flex-direction:column; line-height:1.1; }
.wa-top-title{ font-weight: 800; font-size: 13.5px; }
.wa-top-sub{ font-size: 12px; color: var(--muted); margin-top: 3px; }
.wa-pill{
  margin-inline-start:auto;
  font-size: 12px;
  color: rgba(0,0,0,.6);
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.7);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Thread background pattern (subtle) */
.wa-thread{
  padding: 14px 14px 12px;
  background:
    radial-gradient(circle at 10% 15%, rgba(255,255,255,.35) 0 2px, transparent 3px) 0 0/28px 28px,
    radial-gradient(circle at 70% 65%, rgba(0,0,0,.035) 0 2px, transparent 3px) 0 0/32px 32px,
    #efeae2;
}

/* Bubbles */
.wa-bubble{
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.92);
  margin: 10px 0;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.wa-bubble .wa-text{ font-size: 14px; line-height: 1.55; }
.wa-meta{
  display:flex;
  gap: 8px;
  justify-content:flex-end;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(0,0,0,.45);
}
.wa-ticks{ font-weight: 900; letter-spacing:-1px; }

/* Incoming / Outgoing */
.wa-bubble.in{
  margin-inline-end:auto;
}
.wa-bubble.out{
  margin-inline-start:auto;
  background: #dcf8c6;              /* WhatsApp outgoing */
  border-color: rgba(0,0,0,.05);
}
.wa-bubble.out::after{
  content:"";
  position:absolute;
  width: 12px; height: 12px;
  background: #dcf8c6;
  border: 1px solid rgba(0,0,0,.03);
  transform: rotate(45deg);
  top: 12px;
  inset-inline-end: -6px;
  border-left: none;
  border-bottom: none;
}
.wa-bubble.in::after{
  content:"";
  position:absolute;
  width: 12px; height: 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.03);
  transform: rotate(45deg);
  top: 12px;
  inset-inline-start: -6px;
  border-right: none;
  border-bottom: none;
}

/* Highlight (sales-y bubble) */
.wa-bubble.highlight{
  background: #d1f7ff;               /* light premium hint */
}
.wa-bubble.highlight::after{
  background: #d1f7ff;
}

/* Typing indicator */
.wa-typing{
  width: fit-content;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.06);
  display:flex;
  gap: 6px;
  align-items:center;
  margin-top: 10px;
}
.wa-typing span{
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  animation: waDot 1.1s infinite ease-in-out;
}
.wa-typing span:nth-child(2){ animation-delay: .15s; }
.wa-typing span:nth-child(3){ animation-delay: .3s; }
@keyframes waDot{
  0%, 100%{ transform: translateY(0); opacity:.35; }
  50%{ transform: translateY(-3px); opacity:.85; }
}

/* Footer line */
.wa-foot{
  padding: 12px 14px;
  background: rgba(255,255,255,.72);
  border-top: 1px solid rgba(0,0,0,.06);
  color: rgba(0,0,0,.55);
  font-size: 13px;
  text-align: center;
}

.card-row{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 12px;
}
.badge{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.6);
  padding: 6px 10px;
  border-radius: 999px;
}
.mini{ font-size: 12px; color: var(--muted); }

.chat{
  display:flex; flex-direction:column; gap:10px;
  margin: 10px 0 12px;
}
.bubble{
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.65);
  font-size: 14px;
  line-height: 1.45;
}
.bubble.right{
  margin-inline-start:auto;
  background: rgba(17,17,17,.06);
}
.card-foot{
  color: var(--muted);
  font-size: 13px;
}

.section{ padding: 28px 0 50px; }
.h2{
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature{
  background: rgba(255,255,255,.7);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
}
.feature p{ margin: 8px 0 0; color: var(--muted); line-height:1.7; }

.footer{
  padding: 18px 0 28px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
}
.footer-inner{
  display:flex; justify-content:space-between; align-items:center;
}
.footer-link:hover{ color: var(--text); }

/* Responsive */
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; padding-top: 26px; }
  .nav{ display:none; }
  .grid{ grid-template-columns: 1fr; }
}
/* =========================
   Contact Page (QOMAX / Apple light)
   ========================= */

.contact-hero{
  padding: 34px 0 18px;
  display: grid;
  gap: 16px;
}

.contact-header .title{ margin-bottom: 8px; }
.contact-card{
  background: rgba(255,255,255,.75);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.10);
  backdrop-filter: blur(18px);
}

.contact-card-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-badge{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.7);
  padding: 6px 10px;
  border-radius: 999px;
}
.contact-mini{
  font-size: 12px;
  color: var(--muted);
}

.contact-form{
  display:grid;
  gap: 12px;
}

.field{ display:grid; gap: 8px; }
.label{
  font-size: 13px;
  color: rgba(0,0,0,.70);
  font-weight: 700;
}

.input, .textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.9);
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.textarea{ resize: vertical; min-height: 120px; }

.input:focus, .textarea:focus{
  border-color: rgba(92,45,145,.35);
  box-shadow: 0 0 0 4px rgba(92,45,145,.10);
}

.contact-btn{
  width: 100%;
  border-radius: 14px;
  padding: 14px 16px;
}

.btn-primary.disabled{
  opacity: .75;
  cursor: not-allowed;
}

.form-status{
  min-height: 20px;
  font-size: 13px;
  margin-top: 2px;
  color: rgba(0,0,0,.55);
}
.form-status.ok{
  color: rgba(0,0,0,.78);
}
.form-status.error{
  color: rgba(180,0,0,.85);
}

.contact-note{
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* WhatsApp section */
.wa-contact{
  background: rgba(255,255,255,.72);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 14px;
}
.wa-row{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}
.social-actions{
  margin-inline-start: auto;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn{
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
}

/* تمييز بسيط بالألوان الرسمية */
.social-btn.wa{
  border-color: rgba(37,211,102,.25);
}
.social-btn.ig{
  border-color: rgba(225,48,108,.25);
}
.social-btn.tg{
  border-color: rgba(34,158,217,.25);
}

@media (max-width: 900px){
  .social-actions{ width: 100%; }
  .social-actions .social-btn{ width: 100%; }
}

.wa-icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(37,211,102,.25);
  background: radial-gradient(circle at 30% 25%, rgba(37,211,102,.22), rgba(37,211,102,.06));
}
.wa-icon svg{
  width: 22px;
  height: 22px;
  fill: #25D366;
}
.wa-title{ font-weight: 900; }
.wa-sub{ color: var(--muted); font-size: 13px; margin-top: 3px; }
.wa-btn{ margin-inline-start: auto; }

/* Info boxes */
.contact-info{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.info-item{
  background: rgba(255,255,255,.72);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 14px;
}
.info-k{
  color: var(--muted);
  font-size: 12.5px;
}
.info-v{
  margin-top: 6px;
  font-weight: 800;
}
.info-link:hover{ color: rgba(0,0,0,.85); }

@media (max-width: 900px){
  .contact-info{ grid-template-columns: 1fr; }
  .wa-btn{ width: 100%; }
}

/* =========================
   Privacy / Terms Page
   ========================= */

.policy-hero{
  padding: 34px 0 8px;
  display: grid;
  gap: 14px;
}

.policy-brand{
  text-align: center;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 18px 14px;
  box-shadow: 0 18px 55px rgba(0,0,0,.10);
  backdrop-filter: blur(18px);
}

.policy-logo{
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.policy-brand-title{
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .6px;
}

.policy-brand-sub{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.policy-links{
  display:flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chip-link{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.72);
  color: rgba(0,0,0,.72);
  font-weight: 800;
  font-size: 13px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.chip-link:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0,0,0,.10);
}

.policy-wrap{
  padding: 12px 0 28px;
  display: grid;
  gap: 14px;
}

.policy-card{
  background: rgba(255,255,255,.72);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.08);
  backdrop-filter: blur(18px);
}

.policy-h{
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
}

.policy-sh{
  margin: 16px 0 8px;
  font-size: 15px;
  font-weight: 900;
}

.policy-p{
  margin: 0;
  color: rgba(0,0,0,.72);
  line-height: 1.8;
}

.policy-ul{
  margin: 8px 0 0;
  padding-inline-start: 18px;
  color: rgba(0,0,0,.72);
  line-height: 1.8;
}

.policy-link{
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-note{
  margin-top: 16px;
  color: var(--muted);
  font-size: 12.5px;
}

.policy-sep{
  margin: 0 8px;
  color: rgba(0,0,0,.25);
}

