/* ============================================================
   product.css — Shared styles for all Pulsar product pages
   ============================================================ */

/* ── Back to Home floating button ─────────────────────────── */
.back-home {
  position: fixed;
  bottom: 100px;
  left: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid rgba(124,92,252,0.25);
  background: linear-gradient(135deg, rgba(9,20,37,0.92), rgba(14,29,58,0.92));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #F0F4FC;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-en);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(124,92,252,0.08);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.back-home.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-home i {
  font-size: 0.9rem;
  color: #7C5CFC;
  transition: transform 0.3s ease;
}
html[lang="ar"] .back-home i {
  transform: scaleX(-1);
}
.back-home:hover {
  border-color: #7C5CFC;
  box-shadow: 0 12px 40px rgba(124,92,252,0.25), 0 0 0 1px rgba(124,92,252,0.2);
  background: linear-gradient(135deg, rgba(124,92,252,0.15), rgba(14,29,58,0.95));
}
.back-home:hover i {
  transform: translateX(-3px);
}
html[lang="ar"] .back-home:hover i {
  transform: scaleX(-1) translateX(-3px);
}
html[lang="ar"] .back-home {
  left: auto;
  right: 28px;
  font-family: 'Cairo', sans-serif;
}

/* Light mode */
html[data-theme="light"] .back-home {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(243,241,255,0.95));
  border-color: rgba(124,92,252,0.15);
  color: #1A1F36;
  box-shadow: 0 8px 32px rgba(124,92,252,0.08), 0 0 0 1px rgba(124,92,252,0.06);
}
html[data-theme="light"] .back-home:hover {
  border-color: #7C5CFC;
  box-shadow: 0 12px 40px rgba(124,92,252,0.15), 0 0 0 1px rgba(124,92,252,0.12);
  background: linear-gradient(135deg, rgba(124,92,252,0.06), rgba(255,255,255,0.98));
}

@media (max-width: 768px) {
  .back-home {
    bottom: 90px;
    left: 16px;
    padding: 8px 14px;
    font-size: 0.75rem;
  }
  .back-home__label { display: none; }
  .back-home { padding: 10px 12px; border-radius: 50%; }
  html[lang="ar"] .back-home { left: auto; right: 16px; }
}

/* ── Product Hero ─────────────────────────────────────────── */
.prod-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.prod-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.prod-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.prod-hero__orb--1 {
  width: 600px;
  height: 600px;
  top: -100px;
  left: -150px;
  background: radial-gradient(circle, rgba(0,212,255,0.25) 0%, transparent 70%);
}

.prod-hero__orb--2 {
  width: 500px;
  height: 500px;
  bottom: -80px;
  right: -100px;
  background: radial-gradient(circle, rgba(108,62,255,0.2) 0%, transparent 70%);
}

.prod-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.prod-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid rgba(0,212,255,0.35);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0,212,255,0.06);
}

.prod-hero__icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}

.prod-hero__icon::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(0,212,255,0.4), rgba(108,62,255,0.4));
}

.prod-hero__icon i {
  position: relative;
  z-index: 1;
}

/* Icon color variants */
.prod-icon--erp  { background: rgba(0,212,255,0.12);  color: #00D4FF; }
.prod-icon--hr   { background: rgba(168,130,255,0.15); color: #A882FF; }
.prod-icon--pos  { background: rgba(15,255,179,0.12); color: #0FFFB3; }
.prod-icon--tours{ background: rgba(255,180,0,0.12);  color: #FFB400; }
.prod-icon--med  { background: rgba(255,80,120,0.12); color: #FF5078; }
.prod-icon--lms  { background: rgba(60,180,255,0.12); color: #3CB4FF; }

.prod-hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.prod-hero__sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0;
}

.prod-hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ── Features Section ──────────────────────────────────────── */
.prod-features {
  padding: 100px 0;
  background: var(--bg-1);
}

.prod-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.prod-feat-card {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 36px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.prod-feat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.25);
  box-shadow: 0 20px 50px rgba(0,212,255,0.08);
}

.prod-feat-card__icon {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1;
}

.prod-feat-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.prod-feat-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── Why Section ───────────────────────────────────────────── */
.prod-why {
  padding: 100px 0;
  background: var(--bg-0);
}

.prod-why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.prod-why__text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 12px 0 28px;
  line-height: 1.2;
}

.prod-why__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prod-why__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.prod-why__list li .fa-check {
  color: var(--cyan);
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.prod-why__stat-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.prod-stat {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  transition: border-color 0.3s ease;
}

.prod-stat:hover {
  border-color: rgba(0,212,255,0.3);
}

.prod-stat__num {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.prod-stat__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── CTA Banner ────────────────────────────────────────────── */
.prod-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.06) 0%, rgba(108,62,255,0.08) 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.prod-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.prod-cta__inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.prod-cta__inner p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 520px;
}

/* ── RTL overrides ─────────────────────────────────────────── */
html[lang="ar"] .prod-hero__inner,
html[lang="ar"] .prod-cta__inner {
  direction: rtl;
}

html[lang="ar"] .prod-why__inner {
  direction: rtl;
}

html[lang="ar"] .prod-why__list li {
  flex-direction: row-reverse;
}

html[lang="ar"] .prod-feat-card {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .prod-hero__title,
html[lang="ar"] .prod-hero__sub,
html[lang="ar"] .prod-hero__badge {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .prod-why__text h2,
html[lang="ar"] .prod-why__list li,
html[lang="ar"] .prod-feat-card h3,
html[lang="ar"] .prod-feat-card p,
html[lang="ar"] .prod-cta__inner h2,
html[lang="ar"] .prod-cta__inner p {
  font-family: 'Cairo', sans-serif;
}

/* ── Responsive ────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════
   LIGHT MODE — Product Pages
═══════════════════════════════════════════════════════════ */
html[data-theme="light"] .prod-hero {
  background: linear-gradient(180deg, #FAFBFF 0%, #F3F1FF 100%);
}
html[data-theme="light"] .prod-hero__orb--1 {
  background: radial-gradient(circle, rgba(124,92,252,0.08) 0%, transparent 70%);
}
html[data-theme="light"] .prod-hero__orb--2 {
  background: radial-gradient(circle, rgba(14,165,233,0.06) 0%, transparent 70%);
}
html[data-theme="light"] .prod-hero__badge {
  border-color: rgba(124,92,252,0.25);
  color: #7C5CFC;
  background: rgba(124,92,252,0.06);
}
html[data-theme="light"] .prod-hero__icon::before {
  background: linear-gradient(135deg, rgba(124,92,252,0.3), rgba(14,165,233,0.3));
}
html[data-theme="light"] .prod-hero__title {
  background: linear-gradient(135deg, #1A1F36 30%, #7C5CFC 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .prod-features {
  background: linear-gradient(180deg, #F3F1FF 0%, #FAFBFF 100%);
}
html[data-theme="light"] .prod-feat-card {
  background: rgba(255,255,255,0.9);
  border-color: rgba(124,92,252,0.06);
  box-shadow: 0 2px 16px rgba(124,92,252,0.04);
  backdrop-filter: blur(8px);
}
html[data-theme="light"] .prod-feat-card:hover {
  border-color: rgba(124,92,252,0.25);
  box-shadow: 0 20px 50px rgba(124,92,252,0.08);
}
html[data-theme="light"] .prod-feat-card h3 { color: #1A1F36; }
html[data-theme="light"] .prod-feat-card p { color: #475069; }
html[data-theme="light"] .prod-why {
  background: linear-gradient(180deg, #FAFBFF 0%, #F5F3FF 100%);
}
html[data-theme="light"] .prod-why__text h2 { color: #1A1F36; }
html[data-theme="light"] .prod-why__list li { color: #475069; }
html[data-theme="light"] .prod-why__list li .fa-check { color: #7C5CFC; }
html[data-theme="light"] .prod-stat {
  background: rgba(255,255,255,0.9);
  border-color: rgba(124,92,252,0.06);
  box-shadow: 0 2px 16px rgba(124,92,252,0.04);
}
html[data-theme="light"] .prod-stat:hover {
  border-color: rgba(124,92,252,0.25);
}
html[data-theme="light"] .prod-stat__num {
  background: linear-gradient(135deg, #0EA5E9, #7C5CFC);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .prod-cta {
  background: linear-gradient(135deg, rgba(124,92,252,0.04) 0%, rgba(14,165,233,0.06) 100%);
  border-top-color: rgba(124,92,252,0.06);
  border-bottom-color: rgba(124,92,252,0.06);
}
html[data-theme="light"] .prod-cta__inner h2 { color: #1A1F36; }
html[data-theme="light"] .prod-cta__inner p { color: #475069; }

/* ── Product hero text elements ────────────────────────── */
html[data-theme="light"] .prod-hero__sub { color: #475069; }
html[data-theme="light"] .prod-hero__badge {
  border-color: rgba(124,92,252,0.25);
  color: #7C5CFC;
  background: rgba(124,92,252,0.06);
}
html[data-theme="light"] .prod-stat__label { color: #7482A6; }

/* ── Product icon variants — softer for light bg ──────── */
html[data-theme="light"] .prod-icon--erp  { background: rgba(14,165,233,0.10);  color: #0EA5E9; }
html[data-theme="light"] .prod-icon--hr   { background: rgba(109,74,232,0.10);  color: #6D4AE8; }
html[data-theme="light"] .prod-icon--pos  { background: rgba(5,150,105,0.10);   color: #059669; }
html[data-theme="light"] .prod-icon--tours{ background: rgba(217,119,6,0.10);   color: #D97706; }
html[data-theme="light"] .prod-icon--med  { background: rgba(225,29,72,0.10);   color: #E11D48; }
html[data-theme="light"] .prod-icon--lms  { background: rgba(14,165,233,0.10);  color: #0EA5E9; }

/* ── Feature card icon colors — override inline neon ──── */
html[data-theme="light"] .prod-feat-card__icon { color: #6D4AE8 !important; }
html[data-theme="light"] .prod-feat-card:nth-child(2n) .prod-feat-card__icon { color: #0EA5E9 !important; }
html[data-theme="light"] .prod-feat-card:nth-child(3n) .prod-feat-card__icon { color: #059669 !important; }

@media (max-width: 1024px) {
  .prod-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prod-why__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .prod-hero {
    padding: 100px 0 60px;
  }

  .prod-features__grid {
    grid-template-columns: 1fr;
  }

  .prod-why__stat-block {
    grid-template-columns: 1fr 1fr;
  }

  .prod-hero__ctas {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .prod-hero__ctas .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .prod-why__stat-block {
    grid-template-columns: 1fr;
  }

  .prod-stat__num {
    font-size: 1.6rem;
  }
}
