/* ============================================ */
/* INTRO — تونل اسکرولی (canvas · سبز/سیاه کنسول) */
/* ============================================ */

body.intro-active {
    overflow: hidden !important;
    height: 100vh;
    background-color: var(--bg, #0a0a0c);
}

/* ۳) حین اینترو هیچ هاور/انتخاب/کلیکی دیده نشه —
      نه از المان‌های زیرین، نه از خود تونل.
      ورودی‌ها (wheel/touch/key) روی window هستن، پس قطع نمی‌شن. */
body.intro-active,
body.intro-active * {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow: hidden;
    /* پس‌زمینه نداره: خودِ canvas پرده تاریک رو می‌کشه و سوراخ وسط
       با destination-out باز می‌شه → لندینگ از ته دایره دیده می‌شه */
    background: transparent;
    pointer-events: none;
}

.intro-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

/* حین حضور در لندینگ، overlay کاملاً پنهان (صفر هزینه رندر)
   و با اسکرولِ بالا از اول صفحه دوباره نمایان می‌شه */
.intro-overlay.intro-idle {
    display: none;
}

/* ============================================ */
/* CENTER (لوگو) */
/* ============================================ */
.intro-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.2s linear, transform 0.2s linear;
}

.core-dot {
    width: 6px;
    height: 6px;
    background: #48ff91;
    border-radius: 50%;
    box-shadow: 0 0 20px #48ff91;
    margin-bottom: 20px;
    animation: pulse-core 2s infinite;
}

@keyframes pulse-core {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.intro-hint h1 {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    letter-spacing: 12px;
    margin: 0 0 10px;
    color: #fff;
}

.intro-hint p {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #48ff91;
    letter-spacing: 4px;
    margin: 0;
}

.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============================================ */
/* HUD */
/* ============================================ */
.intro-corner {
    position: absolute;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: rgba(72, 255, 145, 0.6);
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.2s linear;
}
.intro-corner.tl { top: 24px; left: 28px; }
.intro-corner.tr { top: 24px; right: 28px; text-align: right; }
.intro-corner.bl { bottom: 28px; left: 28px; }
.intro-corner.br { bottom: 28px; right: 28px; text-align: right; }

.scroll-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(72, 255, 145, 0.1);
    z-index: 10;
}
.scroll-progress {
    height: 100%;
    background: #48ff91;
    width: 0%;
    box-shadow: 0 0 10px #48ff91;
}

@media (max-width: 640px) {
    .intro-corner { font-size: 0.7rem; letter-spacing: 1px; }
    .intro-corner.tl, .intro-corner.tr { top: 14px; }
    .intro-corner.bl, .intro-corner.br { bottom: 18px; }
    .intro-corner.tl, .intro-corner.bl { left: 14px; }
    .intro-corner.tr, .intro-corner.br { right: 14px; }
    .intro-hint h1 { letter-spacing: 6px; }
}
