/* ============================================
   HOORAN HERO — Lightfall Edition v6
   File: hero.css
   تایپوگرافی‌محور + WebGL پس‌زمینه — پالت سایت
   ============================================ */

.hooran-hero,
.hooran-hero *,
.hooran-hero *::before,
.hooran-hero *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.hooran-hero {
    /* HORSILA Dark Luxury Palette */
    --hh-gold:        #C9A96E;   /* Accent Gold */
    --hh-gold-light:  #D4B996;   /* Hover */
    --hh-gold-dark:   #A88B52;   /* Active/Pressed */
    --hh-bg-dark:     #121212;   /* Primary BG */
    --hh-bg-mid:      #1C1C1E;   /* Secondary BG */
    --hh-text-cream:  #8E8E93;   /* Text Secondary */
    --hh-text-light:  #FFFFFF;   /* Text Primary */
    --hh-glass-bg:    rgba(28, 28, 30, 0.5);
    --hh-glass-border:rgba(201, 169, 110, 0.18);
    --hh-font-fa:     'IRANSans', 'Vazirmatn', Tahoma, sans-serif;
    --hh-font-en:     'Cormorant Garamond', Georgia, serif;

    font-family: var(--hh-font-fa);
    background: var(--hh-bg-dark);
    min-height: 100svh;
    direction: rtl;
    overflow-x: hidden;
}

/* ── Keyframes ──────────────────────────────────── */
@keyframes hh-curtainOut {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes hh-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes hh-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes hh-lineGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* فلش‌های آبشاری داخل حلقه اسکرول */
@keyframes hh-chevDrop {
    0%, 100% { opacity: 0.15; transform: translateY(-2px); }
    45%      { opacity: 1;    transform: translateY(2px); }
}

/* موج دایره‌ای دور حلقه اسکرول */
@keyframes hh-ringPing {
    0%   { transform: scale(1);    opacity: 0.7; }
    70%  { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hooran-hero *,
    .hooran-hero *::before,
    .hooran-hero *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Section ────────────────────────────────────── */
.hh-section {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(20px, 4vw, 56px);
}

/* Lightfall WebGL — پایین‌ترین لایه */
#hh-lightfall {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--hh-bg-dark);
}
#hh-lightfall canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* لایه تیره‌کننده وسط برای خوانایی متن */
.hh-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 62% 56% at 50% 48%, rgba(18, 18, 18, 0.62) 0%, rgba(18, 18, 18, 0.28) 55%, transparent 100%),
        linear-gradient(to bottom,
            rgba(18, 18, 18, 0.35) 0%,
            transparent 22%,
            transparent 58%,
            rgba(12, 10, 8, 0.45) 76%,
            rgba(12, 10, 8, 0.85) 90%,
            #0c0a08 100%); /* هم‌رنگ سکشن بعدی (skrew-section) */
}

/* پرده ورود */
.hh-curtain {
    position: absolute;
    inset: 0;
    z-index: 40;
    pointer-events: none;
    background: var(--hh-bg-dark);
    animation: hh-curtainOut 1.4s ease 0.15s forwards;
}

/* ── Stage — ستون مرکزی ─────────────────────────── */
.hh-stage {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: clamp(14px, 2.4vh, 26px);
    padding-top: clamp(80px, 3vw, 120px);
}

/* kicker */
.hh-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(0.7rem, 1.4vw, 0.82rem);
    font-weight: 500;
    letter-spacing: 0.28em;
    color: var(--hh-gold);
    opacity: 0;
    animation: hh-up 0.9s ease 1.1s forwards;
}

.hh-kicker-line {
    display: block;
    width: clamp(28px, 5vw, 54px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.55), transparent);
    transform-origin: center;
    animation: hh-lineGrow 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.3s both;
}

/* title */
.hh-title {
    font-size: clamp(2.5rem, 7.4vw, 5.4rem);
    font-weight: 700;
    line-height: 1.32;
    color: var(--hh-text-light);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
    max-width: 16ch;
    opacity: 0;
    animation: hh-up 1s cubic-bezier(0.22, 1, 0.36, 1) 1.35s forwards;
}

.hh-title-gold {
    display: block;
    background: linear-gradient(120deg, var(--hh-gold-light) 0%, var(--hh-gold) 45%, var(--hh-gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--hh-gold);
    filter: drop-shadow(0 0 26px rgba(201, 169, 110, 0.25));
}

/* subtitle */
.hh-sub {
    font-size: clamp(0.96rem, 2vw, 1.18rem);
    font-weight: 300;
    line-height: 2.1;
    color: var(--hh-text-cream);
    max-width: 560px;
    opacity: 0;
    animation: hh-up 1s ease 1.6s forwards;
}

/* ── CTA ────────────────────────────────────────── */
.hh-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: clamp(4px, 1vh, 10px);
    opacity: 0;
    animation: hh-up 0.9s ease 1.85s forwards;
}

.hh-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: 999px;
    font-family: var(--hh-font-fa);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.hh-btn svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.35s ease;
}

.hh-btn--gold {
    color: #121212;
    background: linear-gradient(135deg, var(--hh-gold-light) 0%, var(--hh-gold) 55%, var(--hh-gold-dark) 100%);
    box-shadow: 0 10px 34px -10px rgba(201, 169, 110, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.hh-btn--gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px -10px rgba(201, 169, 110, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.hh-btn--gold:hover svg { transform: translateX(-4px); }

.hh-btn--ghost {
    color: var(--hh-text-cream);
    background: var(--hh-glass-bg);
    border: 1px solid var(--hh-glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.hh-btn--ghost:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 169, 110, 0.5);
    background: rgba(201, 169, 110, 0.1);
    color: var(--hh-gold-light);
}

/* ── Stats ──────────────────────────────────────── */
.hh-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 4vw, 44px);
    margin-top: clamp(10px, 2.6vh, 28px);
}

.hh-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0;
    animation: hh-up 0.85s ease forwards;
}

.hh-stat-num {
    font-size: clamp(1.5rem, 3.4vw, 2.2rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(120deg, var(--hh-gold-light), var(--hh-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--hh-gold);
}

.hh-stat-label {
    font-size: clamp(0.7rem, 1.4vw, 0.8rem);
    font-weight: 300;
    color: #8E8E93;
    letter-spacing: 0.04em;
}

.hh-stat-sep {
    width: 1px;
    height: 34px;
    background: linear-gradient(to bottom, transparent, rgba(201, 169, 110, 0.3), transparent);
    opacity: 0;
    animation: hh-fadeIn 0.8s ease 2.4s forwards;
}

/* ── Brand mark (پس‌زمینه تایپوگرافی) ───────────── */
.hh-brand-mark {
    position: absolute;
    left: 50%;
    bottom: clamp(44px, 8vh, 84px);
    transform: translateX(-50%);
    z-index: -1;
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-weight: 900;
    font-size: clamp(5rem, 17vw, 15rem);
    letter-spacing: 0.18em;
    line-height: 1;
    background: linear-gradient(180deg, rgba(212, 185, 150, 0.28) 0%, rgba(201, 169, 110, 0.12) 55%, rgba(201, 169, 110, 0.03) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(212, 185, 150, 0.28);
    filter: drop-shadow(0 0 34px rgba(201, 169, 110, 0.12));
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    animation: hh-fadeIn 1.6s ease 2s forwards;
}

.hh-scroll-ind,
.hh-scroll-ring,
.hh-scroll-chev,
.hh-chev-1,
.hh-chev-2 { display: none !important; }

/* ── Socials ────────────────────────────────────── */
.hh-socials-rail {
    position: absolute;
    z-index: 6;
    left: clamp(14px, 3vw, 34px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: hh-up 0.8s ease 2.3s forwards;
    opacity: 0;
}

.hh-social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--hh-glass-bg);
    border: 1px solid var(--hh-glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: 0.3s ease;
    text-decoration: none;
    color: var(--hh-text-light);
}

.hh-social-btn:hover {
    border-color: var(--hh-gold);
    background: rgba(201, 169, 110, 0.12);
    transform: translateY(-2px);
}

.hh-social-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 860px) {
    .hh-section {
        padding-bottom: 24px;
    }

    .hh-stage {
        justify-content: flex-start;
        padding-top: clamp(72px, 14vw, 100px);
        padding-bottom: 16px;
        gap: clamp(10px, 2vh, 18px);
    }

    .hh-socials-rail {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 16px;
        align-self: center;
        order: 9;
    }

    /* scroll indicator: در جریان flex، زیر social icons */
    .hh-scroll-ind {
        position: static;
        transform: none;
        order: 10;
        align-self: center;
        margin: 12px auto 8px;
        animation: hh-up 0.8s ease 2.6s forwards;
    }

    .hh-brand-mark {
        display: none;
    }
}

@media (max-width: 480px) {
    .hh-title { max-width: 14ch; font-size: clamp(2rem, 8.5vw, 3rem); }
    .hh-sub { font-size: 0.9rem; line-height: 1.85; }
    .hh-btn { padding: 13px 22px; font-size: 0.9rem; }
    .hh-cta-row { gap: 10px; }
    .hh-stats { gap: 12px; flex-wrap: wrap; justify-content: center; }
    .hh-stat-sep { display: none; }
    .hh-stat-num { font-size: clamp(1.3rem, 5vw, 1.8rem); }
}