:root {
  --cyan: #00e5ff;
  --cyan-dim: #00b8d4;
  --cyan-glow: rgba(0, 229, 255, 0.4);
  --bg-dark: #050508;
  --bg-card: rgba(12, 14, 22, 0.92);
  --text: #e8e8f0;
  --text-muted: #a0a0b8;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Page ===== */
.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  background: var(--bg-dark);
}

.page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 70% at 0% 0%, rgba(0, 229, 255, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 55% 70% at 100% 0%, rgba(0, 229, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 80, 160, 0.2) 0%, transparent 55%),
    linear-gradient(175deg, #0b1222 0%, var(--bg-dark) 55%, #09061a 100%);
  pointer-events: none;
}

.page::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 20%, rgba(0, 229, 255, 0.5), transparent),
    radial-gradient(1px 1px at 75% 30%, rgba(0, 229, 255, 0.4), transparent),
    radial-gradient(1px 1px at 50% 70%, rgba(255, 200, 60, 0.35), transparent);
  opacity: 0.5;
  pointer-events: none;
}

/* ===== Hero banner ===== */
.page__hero {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding:
    calc(0.5rem + var(--safe-top))
    max(1rem, var(--safe-right))
    0.5rem
    max(1rem, var(--safe-left));
}

.page__hero::before {
  content: '';
  position: absolute;
  width: 85%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.18) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.page__bg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 36rem;
  height: auto;
  border-radius: 0.625rem;
  filter: drop-shadow(0 8px 32px rgba(0, 229, 255, 0.2));
}

.page__overlay {
  display: none;
}

/* ===== Content / CTA ===== */
.page__content {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  padding:
    0.75rem
    max(1.25rem, var(--safe-right))
    calc(1.25rem + var(--safe-bottom))
    max(1.25rem, var(--safe-left));
}

.page__pitch {
  font-size: clamp(0.95rem, 4.2vw, 1.05rem);
  font-weight: 500;
  line-height: 1.75;
  color: var(--text);
  text-align: center;
  margin-bottom: 1.25rem;
}

.page__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3.375rem;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dim) 100%);
  color: var(--bg-dark);
  font-family: inherit;
  font-size: clamp(1rem, 4.5vw, 1.1rem);
  font-weight: 700;
  line-height: 1.3;
  border-radius: 0.75rem;
  text-decoration: none;
  box-shadow: 0 0 24px var(--cyan-glow), 0 4px 16px rgba(0, 0, 0, 0.4);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.page__cta:active {
  transform: scale(0.98);
}

.page__cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.page__cta-arrow {
  font-size: 1.1em;
}

.page__hint {
  margin-top: 0.75rem;
  font-size: clamp(0.88rem, 3.8vw, 0.95rem);
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Steps ===== */
.page__steps {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 229, 255, 0.15);
}

.page__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.page__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--bg-dark);
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan-glow);
}

.page__step-text {
  font-size: clamp(0.68rem, 2.8vw, 0.78rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
}

/* ===== Mobile: پایین‌تر آوردن محتوا ===== */
@media (max-width: 767px) {
  .page {
    justify-content: flex-end;
    padding-bottom: calc(2rem + var(--safe-bottom));
  }

  .page__hero {
    padding-top: calc(1.25rem + var(--safe-top));
    padding-bottom: 0.75rem;
  }

  .page__bg {
    max-width: 100%;
  }

  .page__content {
    flex: 0 0 auto;
    padding-top: 0.5rem;
    padding-bottom: 0;
  }
}

/* ===== Desktop: همان layout موبایل، بزرگ‌تر و وسط صفحه ===== */
@media (min-width: 768px) {
  .page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 2.5rem 2rem 3rem;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page__hero {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    max-width: 46rem;
    padding: 0;
  }

  .page__hero::before {
    display: block;
    width: 70%;
    height: 65%;
  }

  .page__bg {
    position: relative;
    width: 100%;
    max-width: 46rem;
    height: auto;
    border-radius: 0.75rem;
    object-fit: contain;
    filter: drop-shadow(0 12px 40px rgba(0, 229, 255, 0.25));
  }

  .page__overlay {
    display: none;
  }

  .page__content {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    max-width: 36rem;
    margin-top: 1.75rem;
    padding: 2rem 2.25rem;
    background: rgba(8, 10, 18, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 1rem;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
    text-align: center;
  }

  .page__pitch {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
  }

  .page__cta {
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
    min-height: 3.5rem;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .page__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 2rem var(--cyan-glow), 0 4px 16px rgba(0, 0, 0, 0.4);
  }

  .page__hint {
    font-size: 0.95rem;
    margin-top: 0.85rem;
  }

  .page__steps {
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  .page__step {
    flex: 0 0 auto;
    min-width: 6rem;
  }

  .page__step-text {
    font-size: 0.88rem;
  }
}

@media (min-width: 1200px) {
  .page__hero {
    max-width: 52rem;
  }

  .page__bg {
    max-width: 52rem;
  }

  .page__content {
    max-width: 40rem;
    padding: 2.25rem 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page__cta {
    transition: none;
  }
}
