/* ==========================================================================
   CROPLOD — 3D Galaxy & Scroll-Driven Narrative Experience
   Monochromatic Deep Void, Liquid Glass Cards & Abar Typography
   ========================================================================== */

:root {
  --cr-void: #020204;
  --cr-void-surface: #07070a;
  --cr-white: #ffffff;
  --cr-white-95: rgba(255, 255, 255, 0.95);
  --cr-white-85: rgba(255, 255, 255, 0.85);
  --cr-white-65: rgba(255, 255, 255, 0.65);
  --cr-white-40: rgba(255, 255, 255, 0.40);
  --cr-white-20: rgba(255, 255, 255, 0.20);
  --cr-white-10: rgba(255, 255, 255, 0.10);
  --cr-white-05: rgba(255, 255, 255, 0.05);
  --cr-card-bg: rgba(9, 9, 13, 0.68);
  --cr-card-border: rgba(255, 255, 255, 0.13);
  --cr-card-border-glow: rgba(255, 255, 255, 0.28);
  --cr-font-fa: 'Abar', system-ui, -apple-system, sans-serif;
  --cr-font-en: 'Product Sans', system-ui, -apple-system, sans-serif;
  --cr-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html.cr-planet-root,
body.cr-planet-body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background-color: var(--cr-void);
  color: var(--cr-white);
  font-family: var(--cr-font-fa);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Accessibility skip link */
.cr-planet-skip {
  position: fixed;
  top: -100px;
  right: 24px;
  background: var(--cr-white);
  color: var(--cr-void);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 99999;
  transition: top 0.2s ease;
}
.cr-planet-skip:focus {
  top: 20px;
}

/* ==========================================================================
   Fixed 3D Canvas & Frosted Backdrop
   ========================================================================== */
.cr-planet-canvas-fixed {
  position: fixed;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.cr-frosted-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  background-color: rgba(2, 2, 4, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease, background-color 0.4s ease;
}

/* Fallback if WebGL unavailable */
.cr-planet-fallback {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.cr-3d-fallback-core {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, #000000 65%, #18181b 95%, rgba(255, 255, 255, 0.4) 100%);
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.16), inset 0 0 28px rgba(255, 255, 255, 0.12);
}

.cr-3d-fallback-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(68deg);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.2);
  animation: crFallbackSpin 24s linear infinite;
}

@keyframes crFallbackSpin {
  from { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(360deg); }
}

/* ==========================================================================
   Narrative Scroll Sections
   ========================================================================== */
.cr-journey-track {
  position: relative;
  width: 100%;
  z-index: 5;
}

.cr-narrative-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  box-sizing: border-box;
}

/* Unboxed Narrative Container (Free-floating on 3D Space) */
.cr-stage-unboxed,
.cr-stage-glass-card,
.cr-stage-card {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: clamp(20px, 4vw, 44px) 16px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  opacity: 0.65;
  transform: translateY(16px);
  transition: opacity 0.5s var(--cr-ease-out), transform 0.5s var(--cr-ease-out);
}

/* Active State when in center view */
.cr-narrative-section.is-active .cr-stage-unboxed,
.cr-narrative-section.is-active .cr-stage-glass-card,
.cr-narrative-section.is-active .cr-stage-card,
.cr-journey-stage.is-active .cr-stage-unboxed,
.cr-journey-stage.is-active .cr-stage-glass-card,
.cr-journey-stage.is-active .cr-stage-card {
  opacity: 1;
  transform: translateY(0);
}

.cr-narrative-section.is-past .cr-stage-unboxed,
.cr-narrative-section.is-past .cr-stage-glass-card,
.cr-narrative-section.is-past .cr-stage-card,
.cr-journey-stage.is-past .cr-stage-unboxed,
.cr-journey-stage.is-past .cr-stage-glass-card,
.cr-journey-stage.is-past .cr-stage-card {
  opacity: 0.45;
  transform: translateY(-16px);
}

/* Stage Eyebrow / Tag — completely removed */
.cr-stage-tag,
.cr-stage-eyebrow {
  display: none !important;
}

/* Founder Profile Showcase (Real Profile on Landing) */
.cr-founder-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.cr-founder-avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 14px;
}

.cr-founder-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.22), 0 10px 28px rgba(0, 0, 0, 0.85);
  transition: transform 0.35s var(--cr-ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
}

.cr-founder-avatar-wrap:hover .cr-founder-avatar {
  transform: scale(1.06);
  border-color: #ffffff;
  box-shadow: 0 0 46px rgba(255, 255, 255, 0.4), 0 14px 34px rgba(0, 0, 0, 0.95);
}

.cr-founder-badge-verified {
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  background: #2563eb;
  border: 2px solid #020204;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.cr-founder-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cr-white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.cr-founder-role {
  font-size: 0.94rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.cr-founder-link-pill {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.cr-founder-link-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Free-Floating Product Showcase Cards */
.cr-stage-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  width: 100%;
}

.cr-prod-card-unboxed {
  text-align: right;
  padding: 22px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s var(--cr-ease-out);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.cr-prod-card-unboxed:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.cr-prod-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cr-prod-badge {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

.cr-prod-card-unboxed[data-service="nazhva"] .cr-prod-badge {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}

.cr-prod-card-unboxed[data-service="plus"] .cr-prod-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.cr-prod-card-unboxed[data-service="nexus"] .cr-prod-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.cr-prod-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.cr-prod-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .cr-stage-products-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Stage 1 Headline */
.cr-stage-headline,
.cr-stage-title {
  margin: 0 0 28px 0;
  font-family: var(--cr-font-fa);
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--cr-white);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 255, 255, 0.14);
}

/* Narrative Body Statements */
.cr-stage-text,
.cr-stage-statement {
  margin: 0;
  font-family: var(--cr-font-fa);
  font-size: clamp(1.24rem, 2.35vw, 1.74rem);
  font-weight: 350;
  line-height: 2.18;
  color: var(--cr-white-95);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.85);
}

.cr-stage-text--lead {
  font-weight: 600;
  font-size: clamp(1.36rem, 2.65vw, 1.95rem);
  line-height: 1.95;
}

/* Primary Action Buttons */
.cr-stage-btn-wrap,
.cr-stage-action-wrap {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cr-stage-primary-btn,
.cr-stage-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 38px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--cr-white);
  font-family: var(--cr-font-fa);
  font-size: 1.04rem;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s var(--cr-ease-out);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.cr-stage-primary-btn:hover,
.cr-stage-cta:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #050508;
  transform: translateY(-2px);
  box-shadow:
    0 12px 36px rgba(255, 255, 255, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.6);
}

.cr-stage-primary-btn:focus-visible,
.cr-stage-cta:focus-visible {
  outline: 2px solid var(--cr-white);
  outline-offset: 3px;
}

.cr-stage-primary-btn svg,
.cr-stage-cta svg {
  transition: transform 0.25s var(--cr-ease-out);
}

.cr-stage-primary-btn:hover svg,
.cr-stage-cta:hover svg {
  transform: translateX(-4px);
}

/* Spacer separating galaxy and narrative from structured footer */
.cr-galaxy-footer-spacer {
  position: relative;
  width: 100%;
  height: clamp(90px, 16vh, 200px);
  pointer-events: none;
  z-index: 5;
}

/* ==========================================================================
   Structured Navigation Footer
   ========================================================================== */
.cr-minimal-footer {
  position: relative;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 2, 4, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 50px 44px 30px 44px;
  z-index: 10;
}

.cr-minimal-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cr-minimal-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 36px 24px;
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .cr-minimal-nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px;
  }
}

@media (max-width: 640px) {
  .cr-minimal-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 16px;
  }
}

.cr-minimal-col-title {
  margin: 0 0 12px 0;
  font-family: var(--cr-font-fa);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cr-white-95);
}

.cr-minimal-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cr-minimal-link {
  display: inline-block;
  color: var(--cr-white-40);
  font-family: var(--cr-font-fa);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.cr-minimal-link:hover {
  color: var(--cr-white);
}

.cr-minimal-link:focus-visible {
  outline: 1px solid var(--cr-white-65);
  outline-offset: 2px;
  border-radius: 2px;
}

.cr-minimal-link[target="_blank"]::after {
  content: " ↗";
  font-size: 0.72rem;
  opacity: 0.6;
}

.cr-minimal-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
  font-size: 0.76rem;
  color: var(--cr-white-40);
}

@media (max-width: 640px) {
  .cr-minimal-bottom-bar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

.cr-minimal-copy-text {
  font-family: var(--cr-font-fa);
  letter-spacing: 0.02em;
}

.cr-minimal-motto {
  font-family: var(--cr-font-en);
  letter-spacing: 0.06em;
  color: var(--cr-white-40);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .cr-narrative-section {
    min-height: 85vh;
    min-height: 85dvh;
    padding: 40px 16px;
  }
  .cr-stage-glass-card {
    padding: 32px 20px;
    opacity: 0.45;
  }
  .cr-narrative-section.is-active .cr-stage-glass-card {
    opacity: 1;
  }
  .cr-stage-text {
    font-size: 1.15rem;
    line-height: 1.95;
  }
  .cr-minimal-footer {
    padding: 32px 20px 24px 20px;
  }
  .cr-minimal-col-links {
    gap: 10px;
  }
  .cr-minimal-link {
    font-size: 0.86rem;
    padding: 2px 0;
  }
}

/* ==========================================================================
   Eli Planet Micro-Badge & Bulletproof Dark Footer
   ========================================================================== */
.cr-planet-eli-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.18);
  animation: eliOrbPulse 4s infinite ease-in-out;
}

.cr-planet-eli-orb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #38bdf8, #1e3a8a 70%, #000);
  box-shadow: 0 0 8px #38bdf8;
  display: inline-block;
  animation: eliOrbRotate 6s linear infinite;
}

@keyframes eliOrbRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes eliOrbPulse {
  0%, 100% { border-color: rgba(56, 189, 248, 0.35); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.18); }
  50% { border-color: rgba(56, 189, 248, 0.7); box-shadow: 0 4px 22px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.4); }
}

/* ==========================================================================
   Floating 3D Planet Eli HUD Marker (Tracks Planet in 3D Space)
   ========================================================================== */
.cr-planet-eli-floating {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.42);
  border: 1px solid rgba(56, 189, 248, 0.20);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 10px rgba(56, 189, 248, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--cr-font-fa);
  font-size: 0.70rem; /* کوچکتر */
  font-weight: 500;
  color: rgba(203, 213, 225, 0.65); /* کمرنگ‌تر و شفاف */
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translate3d(-9999px, -9999px, 0);
  transition: opacity 0.4s ease;
  will-change: transform, opacity;
  user-select: none;
}

.cr-planet-eli-floating.is-visible {
  opacity: 0.75;
}

.cr-planet-eli-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  position: relative;
  flex-shrink: 0;
}

.cr-planet-eli-dot::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.4);
  animation: eliDotPulse 2.8s infinite ease-out;
}

@keyframes eliDotPulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  50% { transform: scale(1.6); opacity: 0.3; }
  100% { transform: scale(2.2); opacity: 0; }
}

.cr-planet-eli-lbl {
  white-space: nowrap;
}

/* ==========================================================================
   Independent Home Page Footer (Always Obsidian Dark Void)
   ========================================================================== */
.cr-home-footer {
  position: relative;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #020204 !important;
  background-color: #020204 !important;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 56px 40px 36px 40px !important;
  box-sizing: border-box;
  margin-top: 0;
  direction: rtl;
  text-align: right;
  z-index: 10;
  color: #f1f5f9 !important;
}

html[data-theme="light"] .cr-home-footer,
[data-theme="light"] .cr-home-footer,
.cr-planet-root[data-theme="light"] .cr-home-footer,
.cr-home-footer[data-theme="light"] {
  background: #020204 !important;
  background-color: #020204 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
}

.cr-home-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cr-home-footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 36px 24px;
  margin-bottom: 36px;
  text-align: right;
}

@media (max-width: 1024px) {
  .cr-home-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px;
  }
}

@media (max-width: 640px) {
  .cr-home-footer {
    padding: 36px 20px 24px 20px !important;
  }
  .cr-home-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
}

.cr-home-footer-title {
  margin: 0 0 14px 0;
  font-family: var(--cr-font-fa);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f8fafc !important;
}

.cr-home-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cr-home-footer-link {
  display: inline-block;
  color: #94a3b8 !important;
  font-family: var(--cr-font-fa);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cr-home-footer-link:hover {
  color: #38bdf8 !important;
  transform: translateX(-2px);
}

.cr-home-footer-link:focus-visible {
  outline: 1px solid rgba(56, 189, 248, 0.6);
  outline-offset: 2px;
  border-radius: 2px;
}

.cr-home-footer-link[target="_blank"]::after {
  content: " ↗";
  font-size: 0.72rem;
  opacity: 0.55;
}

.cr-home-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 22px;
  font-size: 0.8rem;
  color: #64748b !important;
  gap: 16px;
  flex-wrap: wrap;
}

.cr-home-footer-copy {
  color: #64748b !important;
}

.cr-home-footer-motto {
  color: #475569 !important;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

