/* ============================================================
   BioHubs — الصفحة الرئيسية
   قماش أخضر حبري للهيرو، ينقلب لفاتح للمحتوى.
   العنصر البنائي: خطوط العقد المستوحاة من اللوجو.
   ============================================================ */

.lp {
  --ink:        #06211A;   /* قماش الهيرو */
  --ink-2:      #0C2E24;   /* أسطح مرفوعة فوق القماش */
  --brand:      #1D9E75;
  --brand-deep: #12805F;
  --live:       #4FD9A4;   /* حالة "متاح" فقط */
  --bone:       #E6F1EC;
  --muted:      #80A596;
  --paper:      #FBFDFC;   /* قماش المحتوى */
  --rule:       #DCE9E3;
  --text:       #10241D;
  --text-soft:  #4E6B61;

  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp a { text-decoration: none; color: inherit; }
.lp :focus-visible { outline: 2px solid var(--live); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 44px); margin-inline: auto; }

/* ---------- الشريط العلوي ---------- */
.lp-nav {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.lp-nav img { height: 52px; filter: brightness(0) invert(1); opacity: .95; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-ghost {
  padding: 9px 16px; font-size: 14.5px; color: var(--bone); opacity: .8;
  border-radius: 8px; transition: opacity .18s, background .18s;
}
.nav-ghost:hover { opacity: 1; background: rgba(255,255,255,.07); }
.nav-solid {
  padding: 9px 18px; font-size: 14.5px; font-weight: 600;
  background: var(--brand); color: #fff; border-radius: 8px;
  transition: background .18s;
}
.nav-solid:hover { background: #24b887; }

/* ---------- الهيرو ---------- */
.hero {
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
  padding-bottom: 96px;
}

/* شبكة العقد — نفس منطق اللوجو، خافتة جداً */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(79,217,164,.14) 1.4px, transparent 1.4px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 85% 70% at 70% 15%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 70% 15%, #000 30%, transparent 75%);
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: center;
  padding-top: 40px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.hero-sub {
  margin: 0 0 36px;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.85;
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- حقل الرابط الحي — بطل الصفحة ---------- */
.claim { max-width: 520px; }
.claim-field {
  display: flex; align-items: stretch;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .22s, box-shadow .22s;
}
.claim-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29,158,117,.16); }
.claim-field[data-state="available"] { border-color: var(--live); box-shadow: 0 0 0 4px rgba(79,217,164,.14); }
.claim-field[data-state="taken"],
.claim-field[data-state="invalid"],
.claim-field[data-state="reserved"] { border-color: #C9604F; box-shadow: 0 0 0 4px rgba(201,96,79,.12); }

.claim-prefix {
  display: flex; align-items: center; padding: 0 4px 0 16px;
  font-size: clamp(15px, 1.7vw, 19px); color: var(--muted);
  direction: ltr; white-space: nowrap; user-select: none;
}
.claim-input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  padding: 19px 2px 19px 16px;
  font-family: inherit; font-size: clamp(15px, 1.7vw, 19px); font-weight: 600;
  color: var(--bone); direction: ltr; text-align: left;
}
.claim-input::placeholder { color: #43675A; font-weight: 400; }

.claim-go {
  flex-shrink: 0; margin: 7px; padding: 0 22px;
  background: var(--brand); color: #fff; border: 0; border-radius: 9px;
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .18s, opacity .18s;
}
.claim-go:hover { background: #24b887; }
.claim-go:disabled { opacity: .35; cursor: default; }

.claim-status {
  display: flex; align-items: center; gap: 8px;
  min-height: 26px; margin-top: 13px; padding-inline-start: 4px;
  font-size: 14px; color: var(--muted);
}
.claim-status[data-state="available"] { color: var(--live); font-weight: 600; }
.claim-status[data-state="taken"],
.claim-status[data-state="invalid"],
.claim-status[data-state="reserved"],
.claim-status[data-state="short"] { color: #E39182; }
.claim-dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  flex-shrink: 0; opacity: 0; transform: scale(.4);
  transition: opacity .2s, transform .2s;
}
.claim-status[data-state]:not([data-state=""]):not([data-state="empty"]) .claim-dot { opacity: 1; transform: scale(1); }
.claim-status[data-state="checking"] .claim-dot { animation: pulseDot 1s ease-in-out infinite; }
@keyframes pulseDot { 50% { opacity: .3; transform: scale(.7); } }

/* ---------- الموبايل الحي ---------- */
.phone {
  position: relative;
  border-radius: 34px;
  padding: 11px;
  background: linear-gradient(170deg, #174334, #0A2A20);
  box-shadow: 0 30px 60px -18px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.07);
}
.phone-screen {
  background: #fff; border-radius: 25px; overflow: hidden;
  aspect-ratio: 9 / 15; padding: 26px 18px;
  display: flex; flex-direction: column; align-items: center;
}
.ph-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), #7FE0BC);
  display: grid; place-items: center;
  color: #fff; font-size: 21px; font-weight: 700; direction: ltr;
}
.ph-handle {
  margin-top: 11px; font-size: 14px; font-weight: 700; color: #10241D;
  direction: ltr; word-break: break-all; text-align: center; line-height: 1.4;
}
.ph-bio { margin-top: 5px; font-size: 10.5px; color: #8A9B94; }
.ph-links { width: 100%; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.ph-link {
  height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
  background: #F1F5F3; color: #2B4139;
  box-shadow: inset 0 0 0 1px #E3EBE7;
  transition: background .3s, color .3s, box-shadow .3s;
}

/* ---------- شريط الأرقام ---------- */
.proof {
  position: relative; z-index: 2;
  display: flex; gap: 52px; flex-wrap: wrap;
  margin-top: 60px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.proof-item { display: flex; flex-direction: column; gap: 3px; }
.proof-n { font-size: 27px; font-weight: 700; color: var(--bone); letter-spacing: -.01em; }
.proof-l { font-size: 13px; color: var(--muted); }

/* ---------- المحتوى الفاتح ---------- */
.band { padding: 92px 0; }
.band-head { max-width: 50ch; margin-bottom: 46px; }
.band-head h2 {
  margin: 0 0 12px; font-size: clamp(25px, 3vw, 35px);
  font-weight: 700; letter-spacing: -.012em; line-height: 1.3;
}
.band-head p { margin: 0; font-size: 16px; line-height: 1.85; color: var(--text-soft); }

/* المميزات — صف متصل بخط، مش كروت متطابقة */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; }
.feat {
  padding: 28px 26px 28px 0;
  border-inline-start: 1px solid var(--rule);
  padding-inline-start: 26px;
}
.feat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.feat-mark { width: 26px; height: 26px; color: var(--brand-deep); margin-bottom: 16px; }
.feat h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; }
.feat p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--text-soft); }

/* ---------- معرض الثيمات التفاعلي ---------- */
.themes-band { background: #F2F8F5; border-block: 1px solid var(--rule); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.swatch {
  padding: 10px 17px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule); background: #fff;
  font-family: inherit; font-size: 14px; color: var(--text-soft);
  transition: border-color .18s, color .18s, background .18s;
}
.swatch:hover { border-color: var(--brand); color: var(--brand-deep); }
.swatch[aria-pressed="true"] {
  background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; font-weight: 600;
}
.theme-stage { display: flex; justify-content: center; }
.theme-stage .phone { width: 268px; }

/* ---------- الأسئلة ---------- */
.qa { border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  padding: 22px 0; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  font-size: 16.5px; font-weight: 600;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ''; width: 11px; height: 11px; flex-shrink: 0;
  border-right: 2px solid var(--brand-deep); border-bottom: 2px solid var(--brand-deep);
  transform: rotate(45deg) translateY(-2px); transition: transform .22s;
}
.qa details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.qa .ans { padding: 0 0 24px; font-size: 15px; line-height: 1.9; color: var(--text-soft); max-width: 70ch; }

/* ---------- الدعوة الختامية ---------- */
.closer { background: var(--ink); color: var(--bone); padding: 84px 0; text-align: center; }
.closer h2 { margin: 0 0 14px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.012em; }
.closer p { margin: 0 0 32px; color: var(--muted); font-size: 16px; }
.closer-btn {
  display: inline-block; padding: 16px 40px; border-radius: 11px;
  background: var(--brand); color: #fff; font-size: 16px; font-weight: 700;
  transition: background .18s, transform .18s;
}
.closer-btn:hover { background: #24b887; transform: translateY(-2px); }

/* ---------- التذييل ---------- */
.lp-foot {
  background: var(--ink); color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 30px 0; font-size: 13.5px;
}
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { transition: color .18s; }
.foot-links a:hover { color: var(--bone); }

/* ---------- أقسام الأدمن الديناميكية ---------- */
.adm-banner { position: relative; }
.adm-banner img { width: 100%; display: block; max-height: 420px; object-fit: cover; }
.adm-banner-in {
  position: absolute; inset: 0; background: rgba(6,33,26,.5); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 10px;
}
.adm-banner-in h2 { margin: 0; font-size: clamp(22px, 3vw, 32px); font-weight: 700; }
.adm-section { padding: 76px 0; text-align: center; border-top: 1px solid var(--rule); }
.adm-section img { max-width: 100%; border-radius: 14px; margin-bottom: 22px; }
.adm-section h2 { margin: 0 0 12px; font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; }
.adm-section p { margin: 0 auto; max-width: 56ch; font-size: 15.5px; line-height: 1.85; color: var(--text-soft); }
.adm-btn {
  display: inline-block; margin-top: 22px; padding: 13px 30px; border-radius: 10px;
  background: var(--brand-deep); color: #fff; font-weight: 700; font-size: 15px;
}

/* ---------- الاستجابة ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 18px; }
  .hero h1 { font-size: clamp(28px, 7.4vw, 40px); }
  .hero-visual { display: flex; justify-content: center; }
  .phone { width: 250px; }
  .proof { gap: 34px; margin-top: 44px; }
  .feat {
    border-inline-start: 0; padding-inline-start: 0;
    border-top: 1px solid var(--rule); padding-block: 24px;
  }
  .feat:first-child { border-top: 0; padding-top: 0; }
  .band { padding: 68px 0; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .proof-n { font-size: 23px; }
  .claim-field { flex-wrap: wrap; }
  .claim-go { width: 100%; margin: 0 7px 7px; padding: 14px; }
  .nav-ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after {
    animation-duration: .001s !important; transition-duration: .001s !important;
  }
}
