/* ===================================================================
   الصفحة الرئيسية
   =================================================================== */

/* ---------- البطل ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 104px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 88% 18%, rgba(201, 162, 75, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 5% 90%, rgba(62, 86, 65, 0.10), transparent 70%),
    linear-gradient(180deg, var(--parchment), var(--parchment-2));
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 26px;
}
.hero-title em {
  font-style: normal;
  color: var(--clay);
  position: relative;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-lead strong { color: var(--clay); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-note { font-size: 0.92rem; color: var(--clay); font-weight: 500; }

/* موك-أب واجهة النظام */
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
/* توهّج خلفي */
.hero-art-glow {
  position: absolute;
  width: clamp(300px, 34vw, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(201, 162, 75, 0.22), transparent 65%);
  filter: blur(10px);
  z-index: 0;
}

/* نافذة التطبيق (موك-أب) */
.app-window {
  position: relative;
  z-index: 1;
  width: clamp(300px, 30vw, 380px);
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.aw-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  background: var(--ink);
}
.aw-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(239, 229, 208, 0.28); }
.aw-dot:first-child { background: var(--clay); }
.aw-bar-title { margin-inline-start: 12px; color: var(--sand); font-size: 0.82rem; font-weight: 500; }

.aw-body { padding: 18px; }

/* ترويسة الحصان */
.aw-horse {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.aw-avatar {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--ink);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.aw-avatar svg { width: 30px; height: 30px; }
.aw-horse-info { flex: 1; }
.aw-horse-info strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); display: block; line-height: 1.3; }
.aw-horse-info span { font-size: 0.78rem; color: var(--ink-soft); }
.aw-status {
  font-size: 0.74rem; font-weight: 600;
  color: var(--oasis);
  background: rgba(62, 86, 65, 0.12);
  padding: 5px 12px; border-radius: 100px;
}

/* تبويبات */
.aw-tabs {
  display: flex;
  gap: 6px;
  margin: 16px 0;
  overflow: hidden;
}
.aw-tab {
  font-size: 0.78rem;
  padding: 7px 13px;
  border-radius: 100px;
  color: var(--ink-soft);
  background: var(--parchment-2);
  white-space: nowrap;
}
.aw-tab.active { background: var(--clay); color: #fff; font-weight: 500; }

/* بطاقات بيانات */
.aw-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.aw-stat {
  display: flex; align-items: center; gap: 10px;
  background: var(--parchment-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
}
.aw-stat-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.aw-stat-ic svg { width: 17px; height: 17px; }
.aw-stat-ic.health { background: rgba(168, 98, 60, 0.12); color: var(--clay); }
.aw-stat-ic.feed { background: rgba(62, 86, 65, 0.12); color: var(--oasis); }
.aw-stat b { display: block; font-size: 0.7rem; color: var(--ink-soft); font-weight: 500; }
.aw-stat i { font-style: normal; font-size: 0.86rem; color: var(--ink); font-weight: 600; }

/* موعد قادم */
.aw-next {
  background: var(--parchment-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 12px;
}
.aw-next-label { font-size: 0.7rem; color: var(--ink-soft); display: block; margin-bottom: 8px; }
.aw-next-row { display: flex; align-items: center; gap: 9px; }
.aw-next-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px rgba(168, 98, 60, 0.15); flex-shrink: 0; }
.aw-next-text { font-size: 0.86rem; color: var(--ink); font-weight: 500; }
.aw-next-day { margin-inline-start: auto; font-size: 0.72rem; color: #fff; background: var(--oasis); padding: 3px 11px; border-radius: 100px; }

/* اكتمال الملف */
.aw-progress-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.aw-progress-top span { font-size: 0.74rem; color: var(--ink-soft); }
.aw-progress-top b { font-size: 0.82rem; color: var(--clay); }
.aw-progress-bar { height: 7px; background: var(--line); border-radius: 100px; overflow: hidden; }
.aw-progress-bar i { display: block; height: 100%; width: 92%; background: linear-gradient(90deg, var(--clay), var(--gold)); border-radius: 100px; }

.hero-badge {
  position: absolute;
  bottom: -6%;
  inset-inline-start: 0;
  z-index: 2;
  background: var(--ink);
  color: var(--parchment);
  padding: 16px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
}
.hero-badge-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.hero-badge-label { font-size: 0.82rem; line-height: 1.4; color: rgba(239, 229, 208, 0.85); }

/* ---------- الإحصائيات ---------- */
.stats { padding-block: clamp(40px, 6vw, 64px); background: var(--parchment); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 8px 12px;
  border-inline-start: 1px solid var(--line);
}
.stat:first-child { border-inline-start: none; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--clay);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-soft { font-size: 0.5em; color: var(--ink-soft); margin-inline-start: 2px; }
.stat-label { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- المشاكل ---------- */
.problems { padding-block: var(--section-y); background: var(--parchment-2); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.problem-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform .25s, box-shadow .25s;
}
.problem-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.problem-x {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(168, 98, 60, 0.12);
  color: var(--clay);
  display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700;
}
.problem-card p { font-size: 1rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- المزايا ---------- */
.features-home { padding-block: var(--section-y); }
.fh-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fh-card {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.fh-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(168, 98, 60, 0.3); }
.fh-feature {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #24372A 0%, var(--oasis-deep) 55%, var(--oasis) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 44px rgba(44, 62, 47, 0.28);
}
.fh-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 88% 12%, rgba(201, 162, 75, 0.20), transparent 60%);
  pointer-events: none;
}
.fh-feature > * { position: relative; z-index: 1; }
.fh-feature h3 { color: #fff; }
.fh-feature .fh-icon { background: rgba(201, 162, 75, 0.22); color: var(--gold-soft); border: 1px solid rgba(201, 162, 75, 0.35); }
.fh-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: rgba(168, 98, 60, 0.10);
  color: var(--clay);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.fh-icon svg { width: 26px; height: 26px; }
.fh-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.fh-card p { font-size: 0.96rem; color: var(--ink-soft); line-height: 1.7; }
/* نص البطاقة المميزة — يأتي بعد القاعدة العامة ليفوز في التتالي */
.fh-feature h3 { color: #fff; }
.fh-feature p { color: rgba(245, 240, 230, 0.95); }
.fh-cta { text-align: center; margin-top: 44px; }

/* ---------- الجمهور ---------- */
.audience { padding-block: var(--section-y); background: var(--ink); color: var(--parchment); }
.audience-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.audience .section-title { color: var(--parchment); }
.audience .eyebrow { color: var(--gold-soft); }
.audience .eyebrow::before { background: var(--gold-soft); }
.audience .section-lead { color: rgba(239, 229, 208, 0.75); }
.audience .section-lead strong { color: var(--gold-soft); }
.audience-list { margin: 28px 0 32px; }
.audience-list li {
  position: relative;
  padding: 9px 30px 9px 0;
  color: rgba(239, 229, 208, 0.88);
  font-size: 1rem;
  border-bottom: 1px solid rgba(239, 229, 208, 0.10);
}
.audience-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0; top: 17px;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A24B' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.audience .btn-ghost { color: var(--parchment); border-color: rgba(239, 229, 208, 0.25); }
.audience .btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

.audience-roles { display: flex; flex-wrap: wrap; gap: 12px; }
.role-chip {
  padding: 11px 20px;
  border-radius: 100px;
  border: 1px solid rgba(239, 229, 208, 0.18);
  background: rgba(239, 229, 208, 0.04);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sand);
  transition: all .25s;
}
.role-chip:nth-child(odd) { background: rgba(201, 162, 75, 0.10); border-color: rgba(201, 162, 75, 0.3); color: var(--gold-soft); }

/* ---------- دعوة ختامية ---------- */
.cta-band {
  padding-block: clamp(56px, 8vw, 96px);
  background:
    radial-gradient(ellipse at 30% 0%, rgba(201, 162, 75, 0.18), transparent 60%),
    linear-gradient(135deg, var(--clay-deep), var(--clay));
  color: #fff;
  text-align: center;
}
.cta-inner { max-width: 680px; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: #fff; margin-bottom: 16px; }
.cta-band p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 32px; line-height: 1.8; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ===================================================================
   استجابة
   =================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: auto; padding-bottom: 56px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .fh-grid { grid-template-columns: repeat(2, 1fr); }
  .fh-feature { grid-column: span 2; }
  .audience-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .stat:nth-child(3) { border-inline-start: none; }
  .problem-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .fh-grid { grid-template-columns: 1fr; }
  .fh-feature { grid-column: span 1; }
  .hero-badge { inset-inline-start: 50%; transform: translateX(50%); bottom: -10px; }
}
