/* ═══════════════════════════════════════════════
   جواهر آل آل بندر — صفحة الهبوط
   داكنة محايدة · بلا سكرول · جوال أولاً · RTL
   الخط: IBM Plex Sans Arabic · الأيقونات: Lucide
   ═══════════════════════════════════════════════ */

:root {
  --bg:      #0E1013;
  --panel:   #16181C;
  --panel-2: #1C1F24;
  --line:    #272B31;
  --ink:     #F2F3F5;
  --muted:   #9AA1A9;
  --wa:      #1EBE5D;
  --wa-dark: #149947;
  --radius:  20px;
}

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

html, body { height: 100%; }

body {
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  background:
    radial-gradient(1000px 500px at 80% -20%, rgba(255,255,255,.05) 0%, transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(255,255,255,.035) 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* أيقونات Lucide المضمّنة */
.ic {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: -.22em;
}

/* ── الإطار العام: بلا سكرول ─────────────────── */
.hero {
  height: 100dvh;
  max-width: 1080px;
  margin-inline: auto;
  padding: 18px clamp(16px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── الشريط العلوي ───────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: clamp(.92rem, 2vw, 1.05rem);
  letter-spacing: .2px;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 12px rgba(255,255,255,.55);
}

.topbar-chip {
  font-size: .74rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 4px 13px;
}

/* ── الشبكة ──────────────────────────────────── */
.hero-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(14px, 3vh, 34px);
}

/* ── النصوص ──────────────────────────────────── */
.headline {
  font-weight: 700;
  font-size: clamp(1.7rem, 7.5vw, 3.3rem);
  line-height: 1.35;
  margin-bottom: clamp(8px, 1.6vh, 14px);
}

.headline-thin {
  font-weight: 300;
  color: var(--muted);
}

.sub {
  color: var(--muted);
  font-size: clamp(.9rem, 2.2vw, 1.06rem);
  font-weight: 400;
  max-width: 46ch;
  margin-bottom: clamp(12px, 2.4vh, 22px);
}

.sub b { color: var(--ink); font-weight: 600; }

/* ── زر الواتساب الرئيسي ─────────────────────── */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  color: #fff;
  text-decoration: none;
  font-size: clamp(.98rem, 2.4vw, 1.1rem);
  font-weight: 600;
  border-radius: 14px;
  padding: clamp(12px, 1.8vh, 16px) clamp(24px, 4.5vw, 40px);
  box-shadow: 0 14px 34px -12px rgba(30, 190, 93, .5);
  transition: transform .16s ease, box-shadow .16s ease;
}

.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(30, 190, 93, .6); }
.btn-wa:active { transform: translateY(0); }
.btn-wa:focus-visible,
.chat-cta:focus-visible,
.wa-fab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wa-icon { width: 22px; height: 22px; flex: none; }

.cta-note {
  margin-top: 9px;
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── عناصر الثقة ─────────────────────────────── */
.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: clamp(12px, 2.2vh, 20px);
}

.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
}

.trust .ic { color: var(--ink); width: 1.05em; height: 1.05em; }

/* ── بطاقة المحادثة ──────────────────────────── */
.chat {
  width: min(400px, 100%);
  margin-inline: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.chat-avatar .ic { width: 19px; height: 19px; }

.chat-id { display: flex; flex-direction: column; line-height: 1.4; }
.chat-id b { font-size: .92rem; font-weight: 600; }
.chat-id span { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }

.dot-online {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--wa);
  display: inline-block;
}

.chat-body {
  padding: clamp(12px, 2vh, 18px) 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.msg {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(.84rem, 2vw, .93rem);
  border-radius: 14px 14px 14px 4px;
  padding: 9px 14px;
  width: fit-content;
  max-width: 92%;
}

.msg-key { border-color: rgba(30, 190, 93, .35); }
.msg-key b { color: var(--wa); font-weight: 600; }

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 10px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  width: fit-content;
}

.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1.3s infinite both;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }

@keyframes blink {
  0%, 80%, 100% { opacity: .25; transform: scale(.9); }
  40%           { opacity: 1;   transform: scale(1); }
}

.chat-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  margin: 0 16px 16px;
  padding: 12px;
  border-radius: 12px;
  transition: filter .16s ease;
}

.chat-cta:hover { filter: brightness(1.08); }

/* ── التذييل ─────────────────────────────────── */
.foot {
  text-align: center;
  color: var(--muted);
  font-size: .7rem;
  padding-top: 12px;
}

/* ── زر الواتساب الثابت ──────────────────────── */
.wa-fab {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 12px 30px -8px rgba(30, 190, 93, .55);
  animation: fab-pulse 2.6s ease-in-out infinite;
}

.wa-fab .wa-icon { width: 26px; height: 26px; }

@keyframes fab-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* ── الشاشات الكبيرة ─────────────────────────── */
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .chat { margin-inline-end: 0; }
}

/* ── الجوال: الزر الثابت يظهر والرسالة مختصرة ── */
@media (max-width: 879.98px) {
  .wa-fab { display: inline-flex; }
  .chat-cta { display: none; }
  .msg { font-size: .82rem; padding: 8px 12px; }
  .chat-body { gap: 7px; }
  .sub { font-size: .88rem; }
}

/* شاشات قصيرة جداً: نسمح بالسكرول بدل القص */
@media (max-height: 560px) {
  .hero { height: auto; min-height: 100dvh; overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab, .typing i { animation: none; }
  * { transition: none !important; }
}
