/* صايع بحر — الصفحة الرئيسية الخفيفة (mobile-first · hero full-bleed) */
:root {
  --hl-bg: #030712;
  --hl-surface: #0f172a;
  --hl-border: rgba(255, 255, 255, 0.08);
  --hl-text: #f8fafc;
  --hl-muted: rgba(248, 250, 252, 0.65);
  --hl-gold: #fde047;
  --hl-cyan: #22d3ee;
  --hl-header: 56px;
  --hl-font: 'Tajawal', system-ui, sans-serif;
  --hl-radius: 14px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.home-lite {
  font-family: var(--hl-font);
  background: var(--hl-bg);
  color: var(--hl-text);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--hl-header);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -20%, rgba(14, 116, 144, 0.28), transparent 55%),
    linear-gradient(180deg, #020617 0%, var(--hl-bg) 100%);
}

a { color: var(--hl-cyan); text-decoration: none; }
a:hover { color: var(--hl-gold); }

img { max-width: 100%; height: auto; display: block; }

.hl-wrap {
  width: min(1080px, 100% - 2rem);
  margin-inline: auto;
}

/* ── Header ── */
.hl-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--hl-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem;
  background: rgba(3, 7, 18, 0.72);
  border-bottom: 1px solid var(--hl-border);
  backdrop-filter: blur(10px);
}

.hl-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--hl-text);
  font-weight: 800;
  font-size: 1.05rem;
  min-width: 0;
}

.hl-logo img,
.hl-logo .hl-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.hl-logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hl-logo small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--hl-muted);
  letter-spacing: 0.06em;
}

.hl-nav {
  display: none;
  position: fixed;
  inset: var(--hl-header) 0 0;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: rgba(3, 7, 18, 0.98);
  overflow-y: auto;
}

.hl-nav.open { display: flex; }

.hl-nav a {
  padding: 0.85rem 1rem;
  border-radius: var(--hl-radius);
  color: var(--hl-text);
  font-weight: 600;
}

.hl-nav a:hover { background: var(--hl-surface); color: var(--hl-gold); }

.hl-nav-play {
  margin-top: 0.5rem;
  text-align: center;
  background: linear-gradient(135deg, #0891b2, #0284c7) !important;
  color: #fff !important;
}

.hl-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--hl-border);
  border-radius: 10px;
  background: var(--hl-surface);
  cursor: pointer;
  flex-shrink: 0;
}

.hl-menu span {
  display: block;
  height: 2px;
  background: var(--hl-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hl-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hl-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hl-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.hl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--hl-radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.25s ease;
}

.hl-btn:active { transform: scale(0.98); }

.hl-btn-primary {
  background: linear-gradient(135deg, #0891b2, #0369a1);
  color: #fff;
  box-shadow: 0 4px 20px rgba(8, 145, 178, 0.35);
}

.hl-btn-ghost {
  background: rgba(3, 7, 18, 0.45);
  color: var(--hl-text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.hl-btn-block { width: 100%; }

/* ── Hero full-bleed ── */
.hl-hero-bleed {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--hl-header));
  min-height: calc(100vh - var(--hl-header));
  display: flex;
  align-items: flex-end;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hl-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.hl-hero-media picture,
.hl-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hl-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.35) 0%, rgba(3, 7, 18, 0.15) 32%, rgba(3, 7, 18, 0.55) 62%, rgba(3, 7, 18, 0.92) 100%),
    radial-gradient(ellipse 90% 55% at 70% 20%, rgba(8, 145, 178, 0.18), transparent 60%);
}

.hl-hero-content {
  position: relative;
  z-index: 2;
  width: min(1080px, 100% - 2rem);
  margin-inline: auto;
  padding: 2.5rem 0 2.75rem;
  max-width: 36rem;
}

[dir="ltr"] .hl-hero-content {
  margin-inline-start: max(1rem, calc((100% - min(1080px, 100% - 2rem)) / 2));
  margin-inline-end: auto;
}

.hl-brand {
  font-size: clamp(2.35rem, 9vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  background: linear-gradient(135deg, #fff 10%, var(--hl-gold) 45%, #fef08a 70%, var(--hl-cyan) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hl-brand-shimmer 7s ease-in-out infinite;
  filter: drop-shadow(0 2px 18px rgba(253, 224, 71, 0.25));
}

.hl-title {
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.55rem;
  color: var(--hl-text);
}

.hl-title em {
  font-style: normal;
  color: var(--hl-gold);
}

.hl-lead {
  color: rgba(248, 250, 252, 0.78);
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
  max-width: 34ch;
}

.hl-lead strong { color: #fff; }

.hl-cta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hl-hero-content .hl-cta,
.hl-hero-content .hl-brand,
.hl-hero-content .hl-title,
.hl-hero-content .hl-lead {
  animation: hl-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hl-hero-content .hl-brand { animation-delay: 0.05s; }
.hl-hero-content .hl-title { animation-delay: 0.14s; }
.hl-hero-content .hl-lead { animation-delay: 0.22s; }
.hl-hero-content .hl-cta { animation-delay: 0.32s; }

.hl-cta .hl-btn-primary {
  animation: hl-cta-glow 2.8s ease-in-out infinite;
}

@keyframes hl-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hl-brand-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes hl-cta-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(8, 145, 178, 0.35); }
  50% { box-shadow: 0 6px 28px rgba(34, 211, 238, 0.55); }
}

/* legacy badge/trust kept for older pages */
.hl-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--hl-cyan);
  font-size: 0.85rem;
  font-weight: 600;
}

.hl-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--hl-muted);
  margin-bottom: 1.25rem;
}

.hl-hero-img {
  margin-top: 1rem;
  border-radius: var(--hl-radius);
  overflow: hidden;
  border: 1px solid var(--hl-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hl-hero-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
}

/* ── Below-fold body ── */
.hl-below {
  position: relative;
  z-index: 2;
  background: var(--hl-bg);
  padding-top: 0.5rem;
}

/* ── Stats ── */
.hl-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.hl-stat {
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 140px;
  padding: 0.85rem;
  border-radius: var(--hl-radius);
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--hl-muted);
}

.hl-stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--hl-gold);
  margin-bottom: 0.15rem;
}

/* ── Sections ── */
.hl-section { padding: 2rem 0; }

.hl-section-head { margin-bottom: 1.25rem; }

.hl-kicker {
  font-size: 0.8rem;
  color: var(--hl-cyan);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hl-section-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.hl-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.hl-card {
  padding: 1rem;
  border-radius: var(--hl-radius);
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
}

.hl-card-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.45rem;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.22);
  display: grid;
  place-items: center;
  color: var(--hl-cyan);
  font-size: 0.85rem;
  font-weight: 800;
}

.hl-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.hl-card p { font-size: 0.9rem; color: var(--hl-muted); }

/* ── Steps ── */
.hl-steps { list-style: none; display: grid; gap: 0.75rem; }

.hl-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--hl-radius);
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
}

.hl-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.15);
  color: var(--hl-cyan);
  font-weight: 800;
}

.hl-step h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.hl-step p { font-size: 0.88rem; color: var(--hl-muted); }

/* ── Store preview ── */
.hl-store-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 1rem;
}

.hl-store-item {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: var(--hl-radius);
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
}

.hl-store-item img { width: 48px; height: 48px; margin: 0 auto 0.5rem; }
.hl-store-item strong { display: block; font-size: 0.95rem; }
.hl-price { color: var(--hl-gold); font-weight: 700; margin: 0.25rem 0 0.5rem; }

/* ── FAQ ── */
.hl-faq { display: grid; gap: 0.5rem; }

.hl-faq details {
  border-radius: var(--hl-radius);
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  overflow: hidden;
}

.hl-faq summary {
  padding: 0.9rem 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.hl-faq summary::-webkit-details-marker { display: none; }

.hl-faq p {
  padding: 0 1rem 1rem;
  font-size: 0.92rem;
  color: var(--hl-muted);
}

/* ── CTA band ── */
.hl-cta-band {
  margin: 2rem 0;
  padding: 1.5rem 1rem;
  border-radius: calc(var(--hl-radius) + 4px);
  text-align: center;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.2), rgba(234, 179, 8, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.hl-cta-band h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.hl-cta-band p { color: var(--hl-muted); margin-bottom: 1rem; font-size: 0.95rem; }

/* ── Footer ── */
.hl-footer {
  padding: 2rem 0 5rem;
  border-top: 1px solid var(--hl-border);
  font-size: 0.88rem;
  color: var(--hl-muted);
}

.hl-footer-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.25rem;
}

.hl-footer h4 {
  color: var(--hl-text);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.hl-footer a {
  display: block;
  padding: 0.2rem 0;
  color: var(--hl-muted);
}

.hl-footer a:hover { color: var(--hl-gold); }

/* ── FAB ── */
.hl-fab {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0891b2, #0369a1);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 6px 24px rgba(8, 145, 178, 0.45);
}

[dir="ltr"] .hl-fab { left: auto; right: 1.25rem; }

/* ── Desktop ── */
@media (min-width: 768px) {
  .hl-menu { display: none; }

  .hl-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    overflow: visible;
    gap: 0.15rem;
  }

  .hl-nav a {
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
  }

  .hl-nav-play {
    margin-top: 0;
    margin-inline-start: 0.35rem;
    padding: 0.5rem 1rem !important;
  }

  .hl-hero-bleed {
    align-items: center;
  }

  .hl-hero-content {
    max-width: 28rem;
    padding: 4rem 0;
    margin-inline-start: max(1rem, calc((100% - min(1080px, 100% - 2rem)) / 2));
    margin-inline-end: auto;
  }

  [dir="ltr"] .hl-hero-content {
    margin-inline-start: max(1rem, calc((100% - min(1080px, 100% - 2rem)) / 2));
  }

  .hl-hero-media img {
    object-position: 62% center;
  }

  .hl-hero-veil {
    background:
      linear-gradient(90deg, rgba(3, 7, 18, 0.88) 0%, rgba(3, 7, 18, 0.55) 42%, rgba(3, 7, 18, 0.2) 70%, transparent 100%),
      linear-gradient(180deg, rgba(3, 7, 18, 0.25) 0%, transparent 35%, rgba(3, 7, 18, 0.55) 100%);
  }

  [dir="ltr"] .hl-hero-veil {
    background:
      linear-gradient(270deg, rgba(3, 7, 18, 0.88) 0%, rgba(3, 7, 18, 0.55) 42%, rgba(3, 7, 18, 0.2) 70%, transparent 100%),
      linear-gradient(180deg, rgba(3, 7, 18, 0.25) 0%, transparent 35%, rgba(3, 7, 18, 0.55) 100%);
  }

  .hl-cta {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hl-btn-block { width: auto; min-width: 11rem; }

  .hl-grid { grid-template-columns: repeat(2, 1fr); }
  .hl-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hl-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hl-btn,
  .hl-brand,
  .hl-hero-content .hl-cta,
  .hl-hero-content .hl-brand,
  .hl-hero-content .hl-title,
  .hl-hero-content .hl-lead,
  .hl-cta .hl-btn-primary {
    animation: none !important;
    transition: none;
  }
}

html.perf-lite .hl-brand,
html.perf-lite .hl-hero-content .hl-cta,
html.perf-lite .hl-hero-content .hl-brand,
html.perf-lite .hl-hero-content .hl-title,
html.perf-lite .hl-hero-content .hl-lead,
html.perf-lite .hl-cta .hl-btn-primary {
  animation: none !important;
}

html.perf-lite .hl-hero-media {
  transform: none !important;
  will-change: auto;
}

html.perf-lite .hl-header {
  backdrop-filter: none !important;
  background: rgba(3, 7, 18, 0.98) !important;
}
