/* ============================================================
   خانه پوکر — آکادمی فارسی تفکر پوکر (نسخه ۲)
   Palette: شب سبزفام / سبز پیروزی / نقره‌ای مه‌آلود / صدف
   Display: Doran — Body: Vazirmatn
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Doran';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/Doran-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'Doran';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Doran-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Doran';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/Doran-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Doran';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/Doran-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Doran';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/Doran-ExtraBold.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --shab: #0a0f0c;
  --shab-2: #0d130f;
  --doodeh: #121a15;
  --doodeh-2: #18231c;
  --laki: #3ddc84;
  --laki-deep: #1d9b5e;
  --laki-soft: rgba(61, 220, 132, 0.12);
  --zar: #b7c6bd;
  --zar-bright: #dde8e0;
  --zar-soft: rgba(183, 198, 189, 0.14);
  --sadaf: #eef4ef;
  --khakestar: #93a29a;
  --khat: rgba(238, 244, 239, 0.09);
  --felt: #0f2b22;

  --font-display: 'Doran', 'Vazirmatn', serif;
  --font-body: 'Vazirmatn', 'Doran', sans-serif;

  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 34px 90px -30px rgba(0, 0, 0, 0.85);
  --header-h: 74px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
html.modal-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--shab);
  color: var(--sadaf);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.45; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; touch-action: manipulation; }

:focus-visible { outline: 2px solid var(--zar); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--laki); color: #06120b; }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
section { padding-block: clamp(72px, 10vw, 130px); }

/* ============================================================
   Custom cursor
   ============================================================ */
body.custom-cursor, body.custom-cursor a, body.custom-cursor button,
body.custom-cursor [role='button'] { cursor: none !important; }

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 900;
  opacity: 0;
  transition: opacity 0.3s;
}
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }

.cursor-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--laki);
  translate: -50% -50%;
}
.cursor-ring {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(183, 198, 189, 0.75);
  translate: -50% -50%;
  display: grid;
  place-items: center;
  transition: opacity 0.3s, width 0.28s var(--ease), height 0.28s var(--ease),
              border-color 0.28s, background-color 0.28s;
}
.cursor-ring .cursor-suit {
  font-size: 0.9rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.22s, transform 0.22s var(--ease);
}
.cursor-ring.is-hover {
  width: 58px; height: 58px;
  border-color: var(--laki);
  background: rgba(61, 220, 132, 0.16);
}
.cursor-ring.is-hover .cursor-suit { opacity: 1; transform: scale(1); }
.cursor-ring.is-down { width: 30px; height: 30px; }

/* ============================================================
   Page progress bar
   ============================================================ */
.page-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 400;
  background: transparent;
  pointer-events: none;
}
.page-progress .bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to left, var(--zar), var(--laki));
  border-end-start-radius: 3px;
  box-shadow: 0 0 12px rgba(61, 220, 132, 0.45);
}
@supports (animation-timeline: scroll()) {
  .page-progress .bar.css-driven {
    width: 100%;
    transform: scaleX(0);
    transform-origin: 100% 50%; /* RTL: grow from the right edge */
    animation: page-progress-grow linear both;
    animation-timeline: scroll(root);
  }
  @keyframes page-progress-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 15, 12, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--khat);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .logo-mark { width: 42px; height: auto; }
.brand .brand-fa {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1.3;
  display: block;
}
.brand .brand-en {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.32em; /* Latin only */
  color: var(--khakestar);
  display: block;
}

.main-nav { display: flex; gap: 26px; font-size: 0.94rem; font-weight: 500; }
.main-nav a {
  position: relative;
  color: var(--khakestar);
  transition: color 0.25s;
  padding-block: 6px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to left, var(--zar), var(--laki));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover { color: var(--sadaf); }
.main-nav a.active { color: var(--sadaf); }
.main-nav a.active::after { transform: scaleX(1); }

.header-cta {
  background: var(--laki);
  color: #06120b;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 100px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  box-shadow: 0 8px 26px -10px rgba(61, 220, 132, 0.55);
}
.header-cta:hover {
  background: #58e79a;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -10px rgba(61, 220, 132, 0.7);
}

/* ============================================================
   Hero — cinematic
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  overflow: hidden;
  padding-block: 0 0;
}
.hero-media {
  position: absolute;
  inset: -3%;
  z-index: -3;
  will-change: transform;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  /* یک باند گرادیان موازی فقط پایینِ کادر — وسط عکس کاملاً آزاد */
  background: linear-gradient(
    180deg,
    rgba(10, 15, 12, 0.32) 0%,
    transparent 22%,
    transparent 58%,
    rgba(10, 15, 12, 0.55) 76%,
    rgba(10, 15, 12, 0.88) 90%,
    var(--shab) 100%
  );
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse 80% 66% at 50% 44%, transparent 62%, rgba(10, 15, 12, 0.35) 100%);
  pointer-events: none;
}

.hero-glyphs { position: absolute; inset: 0; z-index: 0; pointer-events: none; will-change: transform; }
.hero-glyphs span {
  position: absolute;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  opacity: 0.16;
  animation: glyph-drift 9s ease-in-out infinite;
}
.hero-glyphs span:nth-child(odd) { color: var(--laki); }
.hero-glyphs span:nth-child(even) { color: var(--zar); }
.hero-glyphs .g1 { top: 22%; inset-inline-start: 10%; animation-delay: 0s; }
.hero-glyphs .g2 { top: 34%; inset-inline-end: 8%; animation-delay: -2.4s; }
.hero-glyphs .g3 { top: 62%; inset-inline-start: 6%; animation-delay: -4.2s; }
.hero-glyphs .g4 { top: 56%; inset-inline-end: 12%; animation-delay: -6s; }
@keyframes glyph-drift {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-20px) rotate(6deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  padding-bottom: clamp(34px, 5vh, 54px);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--zar-bright);
  background: rgba(10, 15, 12, 0.5);
  border: 1px solid rgba(183, 198, 189, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.55;
  margin-top: 16px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.85), 0 1px 8px rgba(0, 0, 0, 0.6);
}
.hero-title .accent { color: var(--laki); }
.hero-title .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(1.2deg);
  filter: blur(3px);
}
.hero.loaded .hero-title .w {
  animation: word-rise 0.85s var(--ease) forwards;
  animation-delay: calc(0.25s + var(--wi) * 0.085s);
}
@keyframes word-rise {
  to { opacity: 1; transform: translateY(0) rotate(0); filter: blur(0); }
}

.hero-sub {
  margin-top: 10px;
  font-size: clamp(0.88rem, 1.15vw, 0.98rem);
  color: rgba(238, 244, 239, 0.85);
  max-width: 46ch;
  margin-inline: auto;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
  opacity: 0;
}
.hero.loaded .hero-sub { animation: fade-rise 0.9s var(--ease) 1s forwards; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  opacity: 0;
}
.hero.loaded .hero-actions { animation: fade-rise 0.9s var(--ease) 1.2s forwards; }

.hero-note {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--khakestar);
  opacity: 0;
}
.hero.loaded .hero-note { animation: fade-rise 0.9s var(--ease) 1.4s forwards; }
.hero-note .dot { color: var(--zar); }

@keyframes fade-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--laki);
  color: #06120b;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 16px 36px;
  border-radius: 100px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s;
  box-shadow: 0 16px 44px -14px rgba(61, 220, 132, 0.7);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 46%;
  inset-inline-start: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: inset-inline-start 0.7s var(--ease);
}
.btn-primary:hover::before { inset-inline-start: 120%; }
.btn-primary:hover {
  background: #58e79a;
  transform: translateY(-2px);
  box-shadow: 0 22px 54px -14px rgba(61, 220, 132, 0.85);
}
.btn-ghost {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--sadaf);
  padding: 15px 28px;
  border-radius: 100px;
  border: 1px solid rgba(238, 244, 239, 0.28);
  background: rgba(10, 15, 12, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s, background 0.25s;
}
.btn-ghost:hover { border-color: var(--zar); background: var(--zar-soft); }

.scroll-cue {
  position: absolute;
  bottom: 22px;
  inset-inline-start: 50%;
  translate: 50% 0;
  z-index: 2;
  color: var(--khakestar);
  font-size: 1.35rem;
  animation: cue-bob 2.4s ease-in-out infinite;
}
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(9px); opacity: 1; }
}

/* ============================================================
   Section furniture
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--khakestar);
}
.eyebrow .suit { font-size: 1.15rem; line-height: 1; }
.eyebrow .suit.red { color: var(--laki); }
.eyebrow .suit.gold { color: var(--zar); }
.eyebrow::after {
  content: '';
  width: 46px;
  height: 1px;
  background: linear-gradient(to left, var(--khat), transparent);
}
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; margin-top: 10px; }
.section-lead { color: var(--khakestar); max-width: 58ch; margin-top: 14px; }

/* ---------- Stats strip ---------- */
.stats-strip { padding-block: 0; margin-top: clamp(-60px, -5vw, -34px); position: relative; z-index: 3; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--khat);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--doodeh), var(--shab-2));
  box-shadow: var(--shadow-card);
}
.stat { padding: 30px 22px; text-align: center; border-inline-start: 1px solid var(--khat); }
.stat:first-child { border-inline-start: none; }
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--zar-bright);
  display: block;
  line-height: 1.2;
}
.stat-label { color: var(--khakestar); font-size: 0.9rem; margin-top: 6px; display: block; }

/* ---------- Pillars ---------- */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.pillar {
  position: relative;
  padding: 34px 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, var(--doodeh), var(--shab-2));
  border: 1px solid var(--khat);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.pillar:hover { transform: translateY(-5px); border-color: rgba(183, 198, 189, 0.35); }
.pillar .suit-badge {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: var(--shab);
  border: 1px solid var(--khat);
}
.pillar h3 { font-size: 1.22rem; font-weight: 700; margin-top: 20px; }
.pillar p { color: var(--khakestar); font-size: 0.94rem; margin-top: 10px; }

/* ---------- Marquee ---------- */
.marquee {
  padding-block: clamp(20px, 4vw, 44px);
  border-block: 1px solid var(--khat);
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(180deg, transparent, rgba(183, 198, 189, 0.03), transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: marquee-slide 26s linear infinite;
  will-change: transform;
}
.marquee-chunk {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding-inline-end: 34px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.4;
}
.marquee-chunk .hollow {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(183, 198, 189, 0.5);
}
.marquee-chunk .solid { color: var(--laki); }
.marquee-chunk .suit-sep { font-size: 0.5em; color: var(--zar); opacity: 0.7; }
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to { transform: translateX(50%); } /* RTL: track flows right */
}

/* ---------- Path ---------- */
.path-list { margin-top: 56px; display: grid; gap: 14px; }
.path-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 26px 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--khat);
  background: linear-gradient(170deg, rgba(21, 21, 30, 0.65), rgba(14, 14, 22, 0.65));
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.path-item:hover { border-color: rgba(61, 220, 132, 0.4); transform: translateX(-6px); }
.path-rank {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--laki);
  text-align: center;
  line-height: 1.3;
  transition: text-shadow 0.3s;
}
.path-item:hover .path-rank { text-shadow: 0 0 22px rgba(61, 220, 132, 0.65); }
.path-rank small { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; color: var(--khakestar); }
.path-body h3 { font-size: 1.14rem; font-weight: 700; }
.path-body p { color: var(--khakestar); font-size: 0.92rem; margin-top: 6px; }
.path-meta { color: var(--zar); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }

/* ============================================================
   Quiz teaser (in page)
   ============================================================ */
.quiz-section {
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(61, 220, 132, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(183, 198, 189, 0.06), transparent 60%);
}
.quiz-teaser {
  margin-top: 56px;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(183, 198, 189, 0.22);
  background:
    radial-gradient(ellipse 130% 130% at 50% -30%, rgba(15, 43, 34, 0.85), rgba(10, 15, 12, 0.9) 70%),
    linear-gradient(175deg, var(--doodeh), var(--shab-2));
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(10, 15, 12, 0.4), inset 0 0 90px rgba(15, 43, 34, 0.5);
  padding: clamp(44px, 7vw, 90px) clamp(24px, 5vw, 70px);
  text-align: center;
  overflow: hidden;
}
.quiz-teaser::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: calc(var(--radius-lg) - 8px);
  border: 1px dashed rgba(183, 198, 189, 0.22); /* felt table stitching */
  pointer-events: none;
}
.quiz-teaser .teaser-mark { width: 84px; height: auto; margin-inline: auto; filter: drop-shadow(0 10px 26px rgba(61, 220, 132, 0.4)); }
.quiz-teaser h3 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 800; margin-top: 26px; }
.quiz-teaser p { color: var(--khakestar); max-width: 52ch; margin: 14px auto 0; }
.quiz-teaser .btn-primary { margin-top: 34px; }
.teaser-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
  font-size: 0.84rem;
  color: var(--khakestar);
}
.teaser-meta span { display: inline-flex; align-items: center; gap: 8px; }
.teaser-meta .suit { color: var(--zar); }

/* ============================================================
   Quiz modal — fullscreen
   ============================================================ */
.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none; /* closed modal must never intercept page clicks */
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(ellipse 100% 90% at 50% -20%, rgba(15, 43, 34, 0.75), transparent 60%),
    radial-gradient(ellipse 80% 70% at 50% 115%, rgba(61, 220, 132, 0.1), transparent 55%),
    var(--shab);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.quiz-modal.open { opacity: 1; visibility: visible; transform: scale(1); pointer-events: auto; }

.quiz-modal-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 4vw, 44px);
}
.quiz-modal-bar .bar-brand { display: inline-flex; align-items: center; gap: 10px; }
.quiz-modal-bar .bar-brand img { width: 34px; height: auto; }
.quiz-modal-bar .bar-brand b { font-family: var(--font-display); font-weight: 800; font-size: 1rem; }
.quiz-progress-text { font-size: 0.84rem; font-weight: 600; color: var(--zar); }
.quiz-close {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--khat);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--sadaf);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.quiz-close:hover { border-color: var(--laki); background: var(--laki-soft); transform: rotate(90deg); }

.quiz-progress {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: rgba(238, 244, 239, 0.07);
}
.quiz-progress-fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 0%;
  background: linear-gradient(to left, var(--laki), var(--zar));
  transition: width 0.5s var(--ease);
  border-start-end-radius: 4px;
  border-end-end-radius: 4px;
  box-shadow: 0 0 14px rgba(61, 220, 132, 0.5);
}

.quiz-stage {
  position: relative;
  display: grid;
  overflow-y: auto;
  overflow-x: hidden;
}
.quiz-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: min(820px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 30px 60px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-52px) rotate(0.4deg);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
.quiz-slide.active { opacity: 1; visibility: visible; transform: translateX(0) rotate(0); }
.quiz-slide.exit-back { transform: translateX(52px) rotate(-0.4deg); }

.q-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--zar);
}
.q-counter::before, .q-counter::after {
  content: '';
  width: 38px;
  height: 1px;
  background: rgba(183, 198, 189, 0.35);
}
.q-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.5;
  margin-top: 20px;
  max-width: 26ch;
}
.q-hint { color: var(--khakestar); font-size: 0.92rem; margin-top: 12px; }

.q-options {
  display: grid;
  gap: 13px;
  margin-top: 40px;
  width: min(640px, 100%);
}
.q-option {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: start;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--khat);
  background: rgba(21, 21, 30, 0.6);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--sadaf);
  transition: border-color 0.22s, background 0.22s, transform 0.22s var(--ease);
}
.q-option:hover { border-color: rgba(61, 220, 132, 0.55); background: var(--laki-soft); transform: translateX(-5px); }
.q-option.selected { border-color: var(--laki); background: var(--laki-soft); box-shadow: 0 0 0 1px var(--laki) inset; }
.q-option .chip {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--zar-bright);
  background: var(--shab);
  border: 2px dashed rgba(183, 198, 189, 0.45); /* poker-chip edge */
  transition: border-color 0.22s, color 0.22s, background 0.22s, transform 0.22s var(--ease);
}
.q-option:hover .chip, .q-option.selected .chip {
  border-style: solid;
  border-color: var(--laki);
  color: #06120b;
  background: var(--laki);
  transform: rotate(-14deg);
}

.quiz-slide-nav {
  position: absolute;
  bottom: 22px;
  inset-inline-end: clamp(20px, 4vw, 44px);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.qnav-btn {
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--khat);
  background: rgba(10, 15, 12, 0.6);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--sadaf);
  transition: background 0.22s, border-color 0.22s, opacity 0.22s;
}
.qnav-btn:hover:not(:disabled) { background: var(--doodeh-2); border-color: var(--zar); }
.qnav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.quiz-kbd-hint {
  position: absolute;
  bottom: 34px;
  inset-inline-start: clamp(20px, 4vw, 44px);
  font-size: 0.78rem;
  color: var(--khakestar);
  z-index: 2;
}

/* quiz cover */
.quiz-cover .cover-mark { width: 92px; height: auto; margin-inline: auto; filter: drop-shadow(0 10px 30px rgba(61, 220, 132, 0.4)); }

/* ============================================================
   Result — the personal playing card
   ============================================================ */
.quiz-slide.result-slide { justify-content: flex-start; padding-top: clamp(20px, 4vh, 50px); }
.result-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  text-align: start;
  width: 100%;
}
.player-card-scene { perspective: 1400px; }
.player-card {
  position: relative;
  width: 100%;
  aspect-ratio: 63 / 88;
  transform-style: preserve-3d;
  transition: transform 1.1s var(--ease);
  transform: rotateY(180deg);
}
.player-card.flipped { transform: rotateY(0deg); }
.card-face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.card-back {
  transform: rotateY(180deg);
  background:
    repeating-linear-gradient(45deg, rgba(183, 198, 189, 0.16) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(-45deg, rgba(183, 198, 189, 0.16) 0 2px, transparent 2px 12px),
    linear-gradient(160deg, #141b17, #0c110e);
  border: 1px solid rgba(183, 198, 189, 0.4);
  display: grid;
  place-items: center;
}
.card-back .back-emblem { width: 74px; height: auto; opacity: 0.95; filter: drop-shadow(0 6px 18px rgba(61, 220, 132, 0.45)); }
.card-front {
  background: linear-gradient(165deg, #f7faf7, #e6ede7);
  color: #121713;
  border: 1px solid rgba(183, 198, 189, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px rgba(183, 198, 189, 0.5);
}
.card-corner { font-family: var(--font-display); font-weight: 800; line-height: 1.15; font-size: 1.25rem; }
.card-corner .suit { display: block; font-size: 1.35rem; }
.card-corner.bottom { align-self: flex-end; transform: rotate(180deg); }
.card-center { text-align: center; padding-inline: 6px; }
.card-center .big-suit { font-size: 3.2rem; line-height: 1; display: block; }
.card-center .profile-name { font-family: var(--font-display); font-weight: 800; font-size: 1.24rem; margin-top: 12px; line-height: 1.5; }
.card-center .profile-tag { font-size: 0.76rem; font-weight: 600; color: #5f6b62; margin-top: 6px; letter-spacing: 0.14em; }
.suit-red { color: #1d9b5e; }
.suit-black { color: #121713; }

.result-body .result-kicker { color: var(--zar); font-weight: 700; font-size: 0.9rem; }
.result-body h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-top: 10px; }
.result-body .result-desc { color: var(--khakestar); margin-top: 14px; max-width: 58ch; }

.focus-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.focus-tag {
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(61, 220, 132, 0.45);
  background: var(--laki-soft);
  color: #6fe3a5;
}
.focus-tag.gold { border-color: rgba(183, 198, 189, 0.45); background: var(--zar-soft); color: var(--zar-bright); }

.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.plan-week { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--khat); background: rgba(10, 15, 12, 0.5); }
.plan-week .w-label { font-size: 0.78rem; font-weight: 700; color: var(--zar); }
.plan-week h4 { font-size: 0.98rem; font-weight: 700; margin-top: 6px; font-family: var(--font-body); }
.plan-week p { font-size: 0.85rem; color: var(--khakestar); margin-top: 4px; }

.result-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn-secondary {
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: 100px;
  border: 1px solid var(--khat);
  color: var(--sadaf);
  transition: border-color 0.25s, background 0.25s;
}
.btn-secondary:hover { border-color: var(--laki); background: var(--laki-soft); }

/* ---------- Academy ---------- */
.academy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.topic-card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--khat);
  background: linear-gradient(170deg, var(--doodeh), var(--shab-2));
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.topic-card:hover { transform: translateY(-5px); border-color: rgba(61, 220, 132, 0.4); }
.topic-card .topic-suit {
  position: absolute;
  inset-inline-end: -18px;
  bottom: -30px;
  font-size: 7rem;
  line-height: 1;
  opacity: 0.06;
  pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.45s;
}
.topic-card:hover .topic-suit { transform: rotate(-14deg) scale(1.08); opacity: 0.1; }
.topic-card h3 { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.topic-card h3 .suit { font-size: 1.05rem; }
.topic-card p { color: var(--khakestar); font-size: 0.92rem; margin-top: 12px; }
.topic-card .lesson-count { display: inline-block; margin-top: 18px; font-size: 0.8rem; font-weight: 600; color: var(--zar); }

/* ---------- Hand analysis ---------- */
.hand-section .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hand-demo {
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--khat);
  background:
    radial-gradient(ellipse 90% 80% at 50% 0%, rgba(183, 198, 189, 0.05), transparent 55%),
    linear-gradient(175deg, var(--doodeh), var(--shab-2));
  box-shadow: var(--shadow-card);
}
.hand-label { font-size: 0.82rem; font-weight: 700; color: var(--zar); }
.board-cards { display: flex; gap: 12px; margin-top: 20px; direction: ltr; justify-content: center; }
.pcard {
  width: 74px;
  aspect-ratio: 63 / 88;
  border-radius: 9px;
  background: linear-gradient(165deg, #f7faf7, #e6ede7);
  color: #121713;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s var(--ease);
}
.pcard:hover { transform: translateY(-6px) rotate(-2deg); }
.pcard .s { font-size: 1.2rem; }
.equity-row { margin-top: 30px; }
.equity-head { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--khakestar); }
.equity-head b { color: var(--zar-bright); font-size: 1rem; }
.equity-bar { height: 10px; margin-top: 10px; border-radius: 6px; background: rgba(238, 244, 239, 0.08); overflow: hidden; }
.equity-fill { height: 100%; width: 0%; border-radius: 6px; background: linear-gradient(to left, var(--laki), var(--zar)); transition: width 1.4s var(--ease); }
.hand-note { margin-top: 24px; font-size: 0.88rem; color: var(--khakestar); border-inline-start: 3px solid var(--laki); padding-inline-start: 14px; }

/* ---------- Responsible ---------- */
.responsible {
  position: relative;
  border-block: 1px solid rgba(61, 220, 132, 0.16);
  background:
    radial-gradient(ellipse 68% 85% at 50% 0%, rgba(61, 220, 132, 0.1), transparent 55%),
    radial-gradient(ellipse 95% 75% at 50% 118%, rgba(15, 43, 34, 0.6), transparent 68%),
    linear-gradient(180deg, var(--shab-2), var(--shab));
}
.responsible .container { max-width: 960px; text-align: center; }
.responsible .section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.responsible .rules-lead {
  color: var(--sadaf);
  font-size: clamp(1.1rem, 2.1vw, 1.4rem);
  font-weight: 700;
  margin-top: 18px;
}
.responsible .rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.rule {
  position: relative;
  overflow: hidden;
  padding: 42px 26px 36px;
  border-radius: 20px;
  border: 1px solid rgba(238, 244, 239, 0.12);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.9;
  color: var(--sadaf);
  background: linear-gradient(172deg, var(--doodeh-2), var(--shab-2));
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.rule::before {
  /* موج نور سبز که با هاور از پایین روشن می‌شود */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 118%, rgba(61, 220, 132, 0.26), transparent 64%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.rule::after {
  /* برق کوتاهی که از روی کارت رد می‌شود */
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  inset-inline-start: -55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-16deg);
  transition: inset-inline-start 0.8s var(--ease);
  pointer-events: none;
}
.rule:hover {
  transform: translateY(-10px);
  border-color: rgba(61, 220, 132, 0.7);
  box-shadow:
    0 30px 70px -22px rgba(61, 220, 132, 0.4),
    0 20px 48px -18px rgba(0, 0, 0, 0.75);
}
.rule:hover::before { opacity: 1; }
.rule:hover::after { inset-inline-start: 115%; }
.rule .rule-num {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin-inline: auto;
  margin-bottom: 24px;
  border-radius: 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--laki);
  background: rgba(61, 220, 132, 0.08);
  border: 1.5px solid rgba(61, 220, 132, 0.38);
  box-shadow: inset 0 0 26px rgba(61, 220, 132, 0.1);
  transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.rule:hover .rule-num {
  background: linear-gradient(160deg, #3ddc84, #1d9b5e);
  color: #06120b;
  border-color: transparent;
  transform: scale(1.12);
  box-shadow:
    0 16px 42px -10px rgba(61, 220, 132, 0.65),
    0 0 0 6px rgba(61, 220, 132, 0.14);
}
.rule p { margin: 0; transition: color 0.35s; }
.rule:hover p { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 40px;
  padding: clamp(220px, 34vw, 430px) 0 26px; /* بالای فوتر خالی — عکس دست‌ها کامل دیده شود */
  isolation: isolate;
  overflow: hidden;
}
.footer-bg { position: absolute; inset: 0; z-index: -1; }
.footer-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.footer-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* وسط عکس تقریباً آزاد؛ فقط لبه‌ها برای اتصال و خوانایی */
  background: linear-gradient(
    180deg,
    var(--shab) 0%,
    rgba(10, 15, 12, 0.04) 30%,
    rgba(10, 15, 12, 0.06) 58%,
    rgba(10, 15, 12, 0.55) 80%,
    rgba(10, 15, 12, 0.94) 100%
  );
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
.footer-brand-min { display: flex; align-items: baseline; gap: 12px; }
.footer-brand-fa {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}
.footer-brand-en { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.3em; color: var(--khakestar); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.82rem; }
.footer-links a { color: rgba(238, 244, 239, 0.66); transition: color 0.22s; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); }
.footer-links a:hover { color: var(--zar-bright); }
.footer-base {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(238, 244, 239, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--khakestar);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay='1'] { transition-delay: 0.12s; }
.reveal[data-delay='2'] { transition-delay: 0.24s; }
.reveal[data-delay='3'] { transition-delay: 0.36s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pillars-grid, .academy-grid { grid-template-columns: repeat(2, 1fr); }
  .hand-section .container { grid-template-columns: 1fr; }
  .result-layout { grid-template-columns: 230px 1fr; }
}

/* --- Hero: stacked banner layout on small screens --- */
@media (max-width: 900px) {
  .hero {
    min-height: 0;
    display: block;
    padding-top: var(--header-h);
  }
  .hero-media {
    position: relative;
    inset: auto;
    height: min(46vh, 430px);
    min-height: 290px;
    transform: none !important; /* no parallax on the banner */
  }
  .hero-media img { object-position: center 22%; }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(10, 15, 12, 0.4) 0%, transparent 32%, transparent 55%, var(--shab) 100%);
  }
  .hero-vignette, .hero-glyphs { display: none; }
  .hero-content {
    max-width: none;
    padding: 4px 0 52px;
  }
  .hero-content::before { display: none; } /* solid background — no scrim needed */
  .hero-title { font-size: clamp(1.6rem, 6.6vw, 2.5rem); margin-top: 18px; }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: min(320px, 100%);
    margin-inline: auto;
    margin-top: 28px;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { justify-content: center; text-align: center; }
  .stats-strip { margin-top: 0; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }

  /* sections */
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-inline-start: none; border-top: 1px solid var(--khat); }
  .stat:first-child { border-top: none; }
  .pillars-grid, .academy-grid { grid-template-columns: 1fr; }
  .path-item { grid-template-columns: 64px 1fr; gap: 18px; padding: 20px 18px; }
  .path-meta { grid-column: 2; }
  .responsible .rules { grid-template-columns: 1fr; }
  .quiz-teaser { padding: 40px 18px; }
  .teaser-meta { gap: 12px 18px; }

  /* quiz modal */
  .quiz-slide { width: calc(100% - 40px); padding-bottom: 100px; }
  .q-text { font-size: 1.4rem; }
  .q-options { margin-top: 28px; gap: 10px; }
  .q-option { font-size: 0.95rem; padding: 13px 14px; gap: 12px; }
  .q-option .chip { flex-basis: 34px; height: 34px; font-size: 0.8rem; }
  .quiz-kbd-hint { display: none; }
  .quiz-slide-nav { inset-inline-end: 16px; bottom: 16px; }

  /* result: big centered card, like desktop */
  .result-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 10px 2px 44px;
  }
  .result-layout > * { min-width: 0; }
  .player-card-scene { width: min(300px, 78vw); margin-inline: auto; }
  .plan-grid { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column; align-items: stretch; }
  .result-actions .btn-primary,
  .result-actions .btn-secondary { justify-content: center; text-align: center; }

  /* footer */
  .site-footer { margin-top: 24px; padding: 150px 0 20px; }
  .footer-bg img { object-position: 58% center; }
  .footer-bg::after {
    background: linear-gradient(180deg, var(--shab) 0%, rgba(10, 15, 12, 0.08) 34%, rgba(10, 15, 12, 0.62) 74%, rgba(10, 15, 12, 0.96) 100%);
  }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-links { gap: 12px 18px; }
  .footer-base {
    margin-top: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .hero-title .w, .hero-sub, .hero-actions, .hero-note { opacity: 1 !important; transform: none !important; filter: none !important; }
  .player-card { transition: none; }
  .marquee-track { animation: none; }
  .cursor-dot, .cursor-ring { display: none; }
}
