/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.maya-body {
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #16281f 0, #0e1b14 55%, #050a07 100%);
  color: var(--fg);
  direction: rtl;
  text-rendering: optimizeLegibility;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Header / Nav */
.maya-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(6, 12, 9, 0.96), rgba(6, 12, 9, 0.85));
  border-bottom: 1px solid rgba(38, 66, 51, 0.9);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #ffffff22, #2e7d6a 35%, #16281f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #f7f7f5;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
}

.brand-mark.small {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.nav-links a:hover {
  color: var(--fg);
  background: rgba(46, 125, 106, 0.12);
  transform: translateY(-1px);
}

/* Nav Buttons */
.nav-btn {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.nav-login {
  border-color: rgba(46, 125, 106, 0.6);
  color: var(--brand-light);
  background: transparent;
}

.nav-login:hover {
  background: rgba(46, 125, 106, 0.12);
}

.nav-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #050a07;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.nav-cta:hover {
  filter: brightness(1.05);
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 999px;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  padding-block: 5rem 4rem;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(to bottom, rgba(6, 12, 9, 0.25), rgba(6, 12, 9, 0.85)),
    url("../assets/maya.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 40%;
  color: #f9fafb;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 100%, rgba(255, 192, 203, 0.18), transparent 55%),
    radial-gradient(circle at 80% 0, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-content {
  max-width: 720px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 0.8rem;
  color: #f9fafb;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.5);
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  color: rgba(249, 250, 251, 0.9);
  line-height: 1.9;
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.7);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.btn-primary {
  background: var(--accent-grad);
  color: #111827;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-ghost {
  border-color: rgba(249, 250, 251, 0.6);
  color: #f9fafb;
  background: rgba(15, 23, 42, 0.25);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  justify-content: center;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.stat-number {
  display: block;
  font-weight: 700;
  font-size: 1.2rem;
  color: #f9fafb;
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.8);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(249, 250, 251, 0.82);
}

.hero-note {
  font-size: 0.8rem;
  color: rgba(249, 250, 251, 0.82);
}

/* ============= Sections ============= */
.section { padding-block: var(--section-padding); }

.section-alt {
  background: radial-gradient(circle at top, #16281f 0, #0b1510 75%);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

/* Steps grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: rgba(22, 40, 31, 0.9);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.step-number {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: 0.75rem;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.step-card h3 {
  margin-block: 2.1rem 0.5rem;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Segments */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.segment-card {
  background: rgba(9, 15, 11, 0.95);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  border: 1px solid rgba(46, 125, 106, 0.4);
}

.segment-card h3 { margin-top: 0; margin-bottom: 0.6rem; font-size: 1.05rem; }

.segment-card ul { list-style: none; padding: 0; margin: 0; }

.segment-card li {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  position: relative;
  padding-inline-start: 0.9rem;
}

.segment-card li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  color: var(--brand-light);
}

/* Natural image card */
.natural-image-card { padding: 0; overflow: hidden; }
.natural-img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ===== Affiliate Program ===== */
.affiliate-steps { margin-top: 1.25rem; }

.affiliate-card {
  border-color: var(--aff-card-border);
  background: linear-gradient(180deg, rgba(22, 40, 31, 0.92), rgba(9, 15, 11, 0.96));
}

.affiliate-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 0% 0%, rgba(236, 72, 153, 0.22), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.18), transparent 55%);
  pointer-events: none;
  opacity: 0.85;
}

.affiliate-card h3,
.affiliate-card p { position: relative; z-index: 1; }

.affiliate-badge {
  width: auto;
  min-width: 64px;
  height: 30px;
  padding-inline: 0.6rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--aff-badge-bg);
  border: 1px solid var(--aff-badge-border);
  color: rgba(249, 250, 251, 0.96);
}

.affiliate-cta {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--aff-cta-border);
  background: var(--aff-cta-bg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.affiliate-cta h3 { margin: 0 0 0.35rem; }
.affiliate-cta p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.affiliate-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Reasons */
.reasons-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }

.reason-card {
  background: rgba(12, 20, 15, 0.95);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid rgba(75, 85, 99, 0.8);
}

.reason-card h3 { margin-block: 0 0.5rem; font-size: 1.02rem; }
.reason-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.legal-note {
  margin-top: 1.8rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Trust section */
.trust-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.trust-grid p { color: var(--muted); }
.trust-badges { display: flex; flex-direction: column; gap: 0.7rem; }

.badge {
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(46, 125, 106, 0.6);
  font-size: 0.85rem;
  color: var(--brand-light);
  background: rgba(6, 95, 70, 0.15);
}

/* Final CTA */
.final-cta { background: radial-gradient(circle at top, #1c3226 0, #0e1b14 75%); }
.final-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.final-cta-inner p { color: var(--muted); }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Social Proof */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }

.testimonial-card {
  background: rgba(9, 15, 11, 0.96);
  border-radius: var(--radius);
  padding: 1.1rem;
  border: 1px solid rgba(75, 85, 99, 0.8);
}

.testimonial-text { margin: 0 0 0.7rem; font-size: 0.9rem; color: var(--fg); }
.testimonial-meta { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* Social stats strip */
.social-stats-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }

.stat-pill {
  border-radius: var(--radius-pill);
  padding: 0.75rem 1rem;
  border: 1px solid rgba(46, 125, 106, 0.7);
  background: rgba(6, 95, 70, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-pill .stat-number { font-size: 1.1rem; color: var(--brand-light); }
.stat-pill .stat-label { font-size: 0.8rem; color: var(--muted); }

.stats-note { margin: 0.5rem 0 0; font-size: 0.78rem; color: var(--muted); text-align: center; }

/* Footer */
.maya-footer {
  border-top: 1px solid rgba(38, 66, 51, 0.9);
  padding-block: 1.8rem;
  background: #050a07;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.9rem;
}

.footer-brand { display: flex; align-items: flex-start; gap: 0.75rem; }
.footer-title { margin: 0 0 0.15rem; font-weight: 600; }
.footer-sub { margin: 0; color: var(--muted); font-size: 0.8rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--fg); }

.footer-copy { width: 100%; margin: 0.6rem 0 0; font-size: 0.78rem; color: var(--muted); }

a { color: var(--brand-light); }

/* Responsive */
@media (max-width: 960px) {
  .hero { padding-block: 4rem 3rem; min-height: 70vh; background-position: center 35%; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segments-grid, .reasons-grid, .testimonials-grid, .social-stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .affiliate-cta { flex-direction: column; align-items: stretch; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset-inline: 0;
    inset-block-start: 64px;
    background: rgba(5, 10, 7, 0.98);
    border-top: 1px solid rgba(38, 66, 51, 0.9);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }

  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  .hero { text-align: center; }
  .steps-grid, .segments-grid, .reasons-grid, .testimonials-grid, .social-stats-strip { grid-template-columns: minmax(0, 1fr); }
  .section-header { margin-bottom: 2rem; }
}


/* ===== MAYA HERO POSITION TUNING ===== */
.hero-grid {
  align-items: flex-end;
  min-height: 78vh;
}

.hero-content {
  padding-bottom: 3.2rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-actions {
  margin-bottom: 0;
}
