/* =========================================================
   i2165062 — INTRO SLIDER (FINAL VERSION)
   ========================================================= */

:root {
  --ink: #2b2f35;
  --muted: #777;
  --accent: #00a896;
  --bg0: #f7f8f9;
  --bg1: #eef0f2;
  --card: rgba(255,255,255,0.8);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Poppins","Segoe UI",sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 700px at 50% 0%, var(--bg1), var(--bg0));
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- SLIDER CONTAINER ---------- */
.slider {
  position: relative;
  width: min(900px, 92vw);
  background: var(--card);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  padding: 60px;
  overflow: hidden;
}

/* ---------- SLIDES ---------- */
.slide {
  display: none;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .6s ease, transform .6s ease;
}

.slide.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* ---------- TYPOGRAPHY ---------- */
.intro-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.intro-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 28px;
}

.intro-text p {
  margin-bottom: 16px;
  font-size: 16px;
  color: #333;
  text-align: justify;
}

.intro-text strong {
  color: var(--accent);
  font-weight: 600;
}

.intro-text em {
  color: #b27b00;
  font-style: normal;
  font-weight: 600;
}

/* ---------- LISTS ---------- */
.roadmap, .token-points { list-style: none; padding: 0; margin: 20px 0; }
.roadmap li, .token-points li {
  margin-bottom: 12px;
  line-height: 1.6;
}
.roadmap li strong { color: var(--accent); }

/* ---------- BLUE NEXT BUTTON ---------- */
.next-btn {
  position: absolute;
  bottom: 50px;
  right: 15px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,168,150,0.12);
  border: 2px solid var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-out infinite;
  box-shadow: 0 0 0 0 rgba(0,168,150,0.4);
  z-index: 10;
  transition: opacity .3s ease, transform .3s ease;
}

.next-btn::before {
  content: '›';
  font-size: 28px;
  color: var(--accent);
  font-weight: 800;
}

/* محو شدن در آخرین اسلاید */
.next-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,168,150,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(0,168,150,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,168,150,0); }
}
/* در صفحه‌های کوچک‌تر (لپ‌تاپ یا تبلت) کمی فاصله بده */
@media (max-width: 1024px) {
  .next-btn { right: 10px; bottom: 45px; width: 54px; height: 54px; }
}

@media (max-width: 820px) {
  .next-btn { right: 8px; bottom: 40px; width: 50px; height: 50px; }
}

@media (max-width: 450px) {
  .next-btn { right: 6px; bottom: 35px; width: 46px; height: 46px; }
}

/* ---------- BACK TO HOME BUTTON ---------- */
.back-home {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 15px;
  border: none;
  padding: 10px 28px;
  border-radius: 30px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.back-home.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.back-home:hover {
  background: #029482;
}

/* ---------- DOTS ---------- */
.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  cursor: pointer;
  opacity: .6;
}

.dot.is-active {
  background: var(--accent);
  opacity: 1;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .slider { padding: 40px 24px 100px; }
  .next-btn { width: 52px; height: 52px; right: -25px; bottom: 40px; }
  .back-home { bottom: 24px; font-size: 14px; padding: 8px 22px; }
}

@media (max-width: 450px) {
  .next-btn { width: 46px; height: 46px; right: -20px; }
  .dots { bottom: 12px; }
}


