/* ====== وكيل.AI — الأنماط المخصصة ====== */

html { scroll-behavior: smooth; }

.font-900 { font-weight: 900; }
.font-800 { font-weight: 800; }

/* ---- Hero glow ---- */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 80% 10%, rgba(16,185,129,.18), transparent 70%),
    radial-gradient(500px 300px at 10% 90%, rgba(212,175,55,.10), transparent 70%);
  pointer-events: none;
}

/* ---- Hero stats ---- */
.stat-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1rem;
  padding: .9rem .6rem;
  text-align: center;
}
.stat-num { font-family: 'Tajawal', sans-serif; font-weight: 900; font-size: 1.6rem; color: #fff; }
.stat-label { font-size: .72rem; color: #94a3b8; margin-top: .15rem; }

/* ---- Phone / chat demo ---- */
.phone-frame {
  background: #0b141a;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,.6), 0 0 0 6px rgba(255,255,255,.06);
}
.chat-header {
  background: #0d9668;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
}
.chat-body {
  height: 330px;
  padding: 1rem .85rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  overflow-y: auto;
  background:
    linear-gradient(rgba(11,20,26,.93), rgba(11,20,26,.93)),
    repeating-linear-gradient(45deg, #1f2c33 0 2px, transparent 2px 14px);
}
.chat-input {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #1f2c33;
  padding: .65rem .9rem;
}
.bubble {
  max-width: 82%;
  padding: .55rem .8rem;
  border-radius: .9rem;
  font-size: .8rem;
  line-height: 1.6;
  color: #e9edef;
  animation: bubbleIn .35s ease both;
}
.bubble-in  { background: #1f2c33; align-self: flex-start; border-top-right-radius: .2rem; }
.bubble-out { background: #005c4b; align-self: flex-end; border-top-left-radius: .2rem; }
.bubble time { display: block; font-size: .6rem; color: #8696a0; text-align: left; margin-top: .2rem; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.typing-dots { display: inline-flex; gap: 4px; padding: .3rem 0; }
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #8696a0; animation: blink 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .25 } 40% { opacity: 1 } }

.floating-badge {
  position: absolute;
  background: #fff;
  color: #0f172a;
  font-size: .75rem;
  font-weight: 700;
  padding: .5rem .9rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.35);
  display: flex; align-items: center; gap: .4rem;
  animation: floatY 3s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }

/* ---- Section helpers ---- */
.section-badge {
  display: inline-block;
  background: #d6f5e3;
  color: #0a7a56;
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Tajawal', sans-serif;
  font-weight: 900;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.3;
  color: #0f172a;
  margin-bottom: 1rem;
}
#features-section .section-title { color: #fff; }

/* ---- Agent cards ---- */
.agent-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.agent-card:hover {
  transform: translateY(-6px);
  border-color: #10b981;
  box-shadow: 0 20px 40px -15px rgba(16,185,129,.25);
}
.agent-icon {
  width: 3.4rem; height: 3.4rem;
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}
.agent-title { font-family: 'Tajawal', sans-serif; font-weight: 800; font-size: 1.25rem; margin-bottom: .5rem; }
.agent-desc { color: #64748b; font-size: .88rem; line-height: 1.7; margin-bottom: 1rem; }
.agent-list { margin-bottom: 1.3rem; flex: 1; }
.agent-list li {
  font-size: .82rem; color: #334155; padding: .28rem 0;
  display: flex; align-items: center; gap: .5rem;
}
.agent-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #10b981;
  font-size: .7rem;
}
.agent-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: #eefbf4; color: #0a7a56;
  font-weight: 700; font-size: .88rem;
  padding: .7rem 1rem; border-radius: .8rem;
  transition: background .2s, color .2s;
}
.agent-card:hover .agent-cta { background: #10b981; color: #fff; }

/* ---- Steps ---- */
.step-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.4rem 1.8rem 1.8rem;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 25px -10px rgba(15,23,42,.08);
}
.step-num {
  position: absolute; top: -1.1rem; right: 50%;
  transform: translateX(50%);
  width: 2.4rem; height: 2.4rem;
  background: #10b981; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Tajawal', sans-serif; font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 6px 15px -4px rgba(16,185,129,.5);
}
.step-icon {
  width: 4rem; height: 4rem;
  margin: 0 auto 1.1rem;
  background: #eefbf4; color: #0d9668;
  border-radius: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.step-line {
  position: absolute; top: 50%; left: 12%; right: 12%;
  border-top: 2px dashed #cbd5e1;
  z-index: -1;
}

/* ---- Features ---- */
.feature-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1.3rem;
  padding: 1.7rem 1.5rem;
  transition: background .25s, transform .25s;
}
.feature-card:hover { background: rgba(16,185,129,.1); transform: translateY(-4px); }
.feature-icon { font-size: 1.7rem; color: #10b981; margin-bottom: .9rem; display: block; }
.feature-card h3 { font-family: 'Tajawal', sans-serif; font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: .5rem; }
.feature-card p { color: #94a3b8; font-size: .87rem; line-height: 1.75; }

/* ---- Pricing ---- */
.price-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 1.6rem;
  padding: 2.2rem 1.8rem;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card-popular {
  background: linear-gradient(160deg, #0d9668, #064e38);
  border-color: transparent;
  transform: scale(1.04);
  box-shadow: 0 25px 50px -15px rgba(13,150,104,.45);
}
.popular-tag {
  position: absolute; top: -0.9rem; right: 50%; transform: translateX(50%);
  background: #d4af37; color: #0b1120;
  font-size: .72rem; font-weight: 900;
  padding: .3rem 1.1rem; border-radius: 999px;
  white-space: nowrap;
}
.price-name { font-family: 'Tajawal', sans-serif; font-weight: 900; font-size: 1.4rem; margin-bottom: .2rem; }
.price-amount { font-family: 'Tajawal', sans-serif; font-weight: 900; font-size: 2.6rem; color: #0f172a; margin-bottom: 1.4rem; }
.price-amount span { font-size: 1rem; font-weight: 500; color: #64748b; }
.price-list { flex: 1; margin-bottom: 1.6rem; }
.price-list li {
  display: flex; align-items: center; gap: .6rem;
  font-size: .88rem; color: #334155;
  padding: .42rem 0;
}
.price-list li i.fa-check { color: #10b981; font-size: .78rem; }
.price-list li i.fa-xmark { color: #94a3b8; font-size: .78rem; }
.price-list-light li { color: #d6f5e3; }
.price-list-light li i.fa-check { color: #d4af37; }
.price-cta {
  display: block; text-align: center;
  font-weight: 700; font-size: .95rem;
  padding: .9rem 1rem; border-radius: .9rem;
  transition: all .2s;
}
.price-cta-outline { border: 2px solid #10b981; color: #0d9668; }
.price-cta-outline:hover { background: #10b981; color: #fff; }
.price-cta-solid { background: #fff; color: #0a7a56; }
.price-cta-solid:hover { background: #d4af37; color: #0b1120; }

/* ---- Testimonials ---- */
.testimonial-card {
  background: #fff;
  border-radius: 1.4rem;
  padding: 1.8rem;
  box-shadow: 0 6px 25px -10px rgba(15,23,42,.08);
}
.testimonial-card .stars { color: #d4af37; font-size: .85rem; margin-bottom: .9rem; display: flex; gap: .2rem; }
.testimonial-card blockquote { color: #334155; font-size: .92rem; line-height: 1.9; margin-bottom: 1.2rem; }
.testimonial-card figcaption strong { display: block; font-weight: 700; color: #0f172a; }
.testimonial-card figcaption span { font-size: .78rem; color: #64748b; }

/* ---- FAQ ---- */
.faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  color: #0f172a;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '\2b';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #10b981;
  transition: transform .25s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.3rem 1.2rem; color: #64748b; line-height: 1.85; font-size: .92rem; }
.faq-item[open] { border-color: #10b981; background: #eefbf4; }

/* ---- Contact form ---- */
.contact-bullet {
  width: 2.4rem; height: 2.4rem;
  background: #d6f5e3; color: #0a7a56;
  border-radius: .8rem;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.form-label { display: block; font-size: .85rem; font-weight: 700; color: #334155; margin-bottom: .4rem; }
.form-input {
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: .8rem;
  padding: .75rem 1rem;
  font-size: .92rem;
  font-family: inherit;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}
.form-input.input-error { border-color: #ef4444; }

/* ---- Footer ---- */
.social-link {
  width: 2.4rem; height: 2.4rem;
  border-radius: .7rem;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: #cbd5e1;
  transition: background .2s, color .2s;
}
.social-link:hover { background: #10b981; color: #fff; }

/* ---- Header scrolled ---- */
#site-header.scrolled { box-shadow: 0 4px 25px -8px rgba(0,0,0,.45); }

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

/* ---- زر واتساب عائم ---- */
#whatsapp-float {
  position: fixed;
  bottom: 1.4rem;
  left: 1.4rem;
  z-index: 60;
  width: 3.6rem;
  height: 3.6rem;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 10px 30px -6px rgba(37,211,102,.6);
  transition: transform .2s, box-shadow .2s;
  animation: waPulse 2.5s infinite;
}
#whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 14px 35px -6px rgba(37,211,102,.75); }
@keyframes waPulse {
  0%   { box-shadow: 0 10px 30px -6px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.45); }
  70%  { box-shadow: 0 10px 30px -6px rgba(37,211,102,.6), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 30px -6px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,0); }
}

@media (max-width: 640px) {
  .floating-badge { display: none; }
  .price-card-popular { transform: none; }
  #whatsapp-float { width: 3.2rem; height: 3.2rem; font-size: 1.7rem; bottom: 1rem; left: 1rem; }
}
