/* ═══════════════════════════════════════════════════════════════
   ARKENSTONE — آرکنستون
   Sub-brand of Maakan CRM · Gold & Jewelry vertical
   Crystal white · Indigo/Purple · Gold accent
   Uses "Peyda" font (Maakan standard)
   ═══════════════════════════════════════════════════════════════ */

.arkenstone-page {
  background: #060414;
  color: #e0e7ff;
  font-family: "Peyda", Tahoma, Arial, sans-serif;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.arkenstone-page *, .arkenstone-page *::before, .arkenstone-page *::after {
  box-sizing: border-box;
}

/* ── Starfield hero ── */
.ark-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #1e0a3c 0%, #0d0720 55%, #060414 100%);
  overflow: hidden;
}
.ark-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 12%, rgba(200,180,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 44% 7%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 91% 54%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 68%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 64% 88%, rgba(167,139,250,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 28% 80%, rgba(255,255,255,.28) 0%, transparent 100%),
    radial-gradient(2px 2px at 86% 76%, rgba(196,181,253,.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 56% 43%, rgba(255,255,255,.22) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 34% 58%, rgba(255,255,255,.28) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 30%, rgba(253,230,138,.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 45%, rgba(255,255,255,.2) 0%, transparent 100%);
  animation: ark-stars 80s linear infinite alternate;
}
@keyframes ark-stars {
  from { transform: translate(0,0); }
  to   { transform: translate(-15px,-10px); }
}

/* ── Gem ── */
.ark-gem-wrap {
  position: relative;
  width: 240px;
  height: 264px;
  margin: 0 auto 3rem;
  filter: drop-shadow(0 0 48px rgba(124,58,237,.65)) drop-shadow(0 0 90px rgba(109,40,217,.28));
  animation: ark-float 5.5s ease-in-out infinite;
}
@keyframes ark-float {
  0%,100%{ transform: translateY(0); }
  50%    { transform: translateY(-16px); }
}
.ark-gem-halo {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 28px;
  background: radial-gradient(ellipse, rgba(124,58,237,.5) 0%, transparent 70%);
  border-radius: 50%;
  animation: ark-halo 5.5s ease-in-out infinite;
}
@keyframes ark-halo {
  0%,100%{ opacity:1; width:170px; }
  50%    { opacity:.4; width:120px; }
}

/* ── Hero text ── */
.ark-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.28);
  border-radius: 999px;
  padding: .35rem 1rem;
  margin-bottom: 1.5rem;
}
.ark-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  animation: ark-dot 2s ease-in-out infinite;
}
@keyframes ark-dot {
  0%,100%{ opacity:1; transform:scale(1); }
  50%    { opacity:.3; transform:scale(.65); }
}

.ark-title {
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 0 0 1.25rem;
  background: linear-gradient(140deg, #ffffff 0%, #e0e7ff 28%, #a78bfa 58%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ark-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: rgba(196,181,253,.85);
  max-width: 580px;
  margin: 0 auto 3rem;
  line-height: 1.9;
}

.ark-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Buttons ── */
.ark-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 2.2rem;
  border-radius: 12px;
  font-family: "Peyda", Tahoma, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s;
  border: none;
}
.ark-btn:hover { transform: translateY(-2px); }

.ark-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  box-shadow: 0 4px 22px rgba(124,58,237,.45);
}
.ark-btn-primary:hover { box-shadow: 0 8px 32px rgba(124,58,237,.65); }

.ark-btn-ghost {
  background: rgba(255,255,255,.055);
  color: #e0e7ff;
  border: 1px solid rgba(196,181,253,.25);
}
.ark-btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(196,181,253,.45);
}

/* ── Dividers ── */
.ark-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,.35), transparent);
}

/* ── Sections ── */
.ark-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5.5rem 2rem;
}

.ark-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a78bfa;
  display: block;
  margin-bottom: .7rem;
}

.ark-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #f0f4ff;
  margin: 0 0 1rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.ark-desc {
  font-size: 1.02rem;
  color: rgba(167,139,250,.8);
  max-width: 560px;
  line-height: 1.9;
}

/* ── Stats ── */
.ark-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}
.ark-stat {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color .25s, background .25s;
}
.ark-stat:hover {
  border-color: rgba(167,139,250,.42);
  background: rgba(124,58,237,.07);
}
.ark-stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fde68a, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.1;
  margin-bottom: .4rem;
}
.ark-stat-label { font-size: .83rem; color: rgba(196,181,253,.75); line-height: 1.55; }

/* ── Feature cards ── */
.ark-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}
.ark-feat {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(124,58,237,.18);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.ark-feat::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,.7), transparent);
  opacity: 0;
  transition: opacity .22s;
}
.ark-feat:hover { transform: translateY(-4px); border-color: rgba(167,139,250,.38); box-shadow: 0 14px 42px rgba(124,58,237,.12); }
.ark-feat:hover::after { opacity: 1; }

.ark-feat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(124,58,237,.14);
  border: 1px solid rgba(124,58,237,.32);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
}
.ark-feat-title { font-size: 1.08rem; font-weight: 700; color: #e0e7ff; margin: 0 0 .55rem; }
.ark-feat-desc  { font-size: .88rem; color: rgba(139,126,200,.9); line-height: 1.8; margin: 0; }

/* ── Modules section bg ── */
.ark-modules-bg {
  background: rgba(255,255,255,.018);
  border-top: 1px solid rgba(124,58,237,.15);
  border-bottom: 1px solid rgba(124,58,237,.15);
}

.ark-pabagan-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .75rem;
  font-weight: 700;
  color: #fde68a;
  background: rgba(253,230,138,.08);
  border: 1px solid rgba(253,230,138,.22);
  border-radius: 999px;
  padding: .3rem .9rem;
  margin-bottom: 1rem;
}

.ark-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 2.5rem;
}
.ark-module {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(196,181,253,.13);
  border-radius: 14px;
  transition: border-color .2s, background .2s;
}
.ark-module:hover {
  border-color: rgba(196,181,253,.32);
  background: rgba(124,58,237,.07);
}
.ark-module-num {
  min-width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800;
  color: #fde68a;
  flex-shrink: 0;
}
.ark-module-name { font-size: .95rem; font-weight: 700; color: #e0e7ff; display: block; margin-bottom: .2rem; }
.ark-module-desc { font-size: .79rem; color: rgba(124,109,184,.9); line-height: 1.6; }

/* ── Testimonials ── */
.ark-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.75rem;
}
.ark-testi {
  background: rgba(255,255,255,.028);
  border: 1px solid rgba(124,58,237,.16);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ark-testi-quote {
  font-size: .9rem;
  color: rgba(196,181,253,.85);
  line-height: 1.85;
  font-style: italic;
  flex: 1;
}
.ark-testi-footer { display: flex; align-items: center; gap: .85rem; }
.ark-testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  border: 2px solid rgba(196,181,253,.2);
  flex-shrink: 0;
}
.ark-testi-name  { font-size: .88rem; font-weight: 700; color: #e0e7ff; }
.ark-testi-role  { font-size: .75rem; color: rgba(124,58,237,.8); margin-top: .1rem; }

/* ── Compare table ── */
.ark-compare {
  margin-top: 3rem;
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 20px;
  overflow: hidden;
}
.ark-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ark-compare-row:last-child { border-bottom: none; }
.ark-compare-row.ark-compare-head {
  background: rgba(124,58,237,.12);
  font-weight: 700;
  font-size: .85rem;
  color: #a78bfa;
}
.ark-compare-cell {
  padding: 1rem 1.5rem;
  font-size: .88rem;
  color: rgba(224,231,255,.8);
  border-left: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.ark-compare-cell:last-child { border-left: none; }
.ark-compare-cell.ark-yes { color: #a78bfa; }
.ark-compare-cell.ark-no  { color: rgba(255,255,255,.3); }
.ark-compare-cell.ark-star {
  color: #fde68a;
  font-weight: 700;
}

/* ── CTA ── */
.ark-cta-section {
  text-align: center;
  padding: 7rem 2rem;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, #1a0a40 0%, #060414 68%);
  position: relative;
  overflow: hidden;
}
.ark-cta-gem {
  display: inline-block;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 28px rgba(124,58,237,.75));
  animation: ark-float 5.5s ease-in-out infinite;
}
.ark-cta-title    { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 800; color: #f0f4ff; margin: 0 0 1rem; letter-spacing: -.02em; }
.ark-cta-subtitle { font-size: 1.05rem; color: rgba(167,139,250,.82); max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.85; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .ark-stats    { grid-template-columns: repeat(2, 1fr); }
  .ark-features { grid-template-columns: repeat(2, 1fr); }
  .ark-modules  { grid-template-columns: repeat(2, 1fr); }
  .ark-testimonials { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ark-hero    { padding: 6rem 1.25rem 4rem; }
  .ark-gem-wrap { width: 180px; height: 198px; }
  .ark-section { padding: 3.5rem 1.25rem; }
  .ark-stats   { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .ark-features { grid-template-columns: 1fr; }
  .ark-modules  { grid-template-columns: 1fr; }
  .ark-hero-ctas { flex-direction: column; align-items: center; }
  .ark-compare-row { grid-template-columns: 1fr 1fr 1fr; }
  .ark-compare-cell { padding: .8rem 1rem; font-size: .78rem; }
}
