/* هیما — صفحه‌ی اول (نسخه‌ی ۴: نسخه‌ی ۳ + بازبینی ui-ux-pro-max). همه‌ی منابع محلی. */
@font-face { font-family: "IRANSansX"; src: url("fonts/iransansx-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("fonts/iransansx-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("fonts/iransansx-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("fonts/iransansx-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
    --bg-1: #1A1D4A;
    --bg-2: #241A4D;
    --text: #F4F5FF;
    --muted: #B7BDE3;
    --line: rgba(255, 255, 255, .14);
    --amber: #F5A23A;
    --blue: #3DA5FF;
    --violet: #8C6BFF;
    --gutter: clamp(16px, 4vw, 56px);
    --max: 1340px;
    --fa: "IRANSansX", Tahoma, sans-serif;
    --en: "Inter", "IRANSansX", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-1); }
body {
    margin: 0; min-height: 100vh; color: var(--text); font: 400 16px/1.9 var(--fa); -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(60% 50% at 0% 0%, rgba(140, 70, 200, .55), transparent 70%),
        radial-gradient(50% 60% at 100% 20%, rgba(60, 110, 230, .45), transparent 70%),
        radial-gradient(70% 50% at 50% 100%, rgba(90, 60, 200, .35), transparent 70%),
        linear-gradient(160deg, var(--bg-2), var(--bg-1) 55%, #1C2A66);
    background-attachment: fixed;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.en { font-family: var(--en); direction: ltr; unicode-bidi: isolate; }
svg.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* سربرگ: لوگو در چپ، منو در وسط، دکمه در راست (مثل طرح مرجع) */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--amber); color: #1A1D4A; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
/* سربرگ چسبان؛ بعد از کمی اسکرول پس‌زمینه‌ی شیشه‌ای می‌گیرد */
.top { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s, backdrop-filter .25s; }
.top.scrolled { background: rgba(26, 29, 74, .72); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0, 0, 0, .6); }
.top.scrolled .wrap { height: 76px; }
.top-end { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .4); background: transparent; color: var(--text); cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
.mnav { display: flex; flex-direction: column; padding: 8px var(--gutter) 18px; gap: 2px; background: rgba(26, 29, 74, .96); border-bottom: 1px solid var(--line); }
.mnav[hidden] { display: none; }
.mnav a { min-height: 48px; display: flex; align-items: center; padding: 0 6px; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
.top .wrap { transition: height .25s; display: grid; grid-template-columns: auto 1fr auto; align-items: center; height: 104px; direction: ltr; }
.logo { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.logo svg { height: 30px; width: auto; display: block; }
.nav { display: flex; justify-content: center; gap: clamp(20px, 3vw, 44px); direction: rtl; }
.nav a { position: relative; padding: 12px 0; text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); font-weight: 700; }
.nav a.on::after { content: ""; position: absolute; inset: auto -4px -6px; height: 2px; border-radius: 2px; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.cta { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; direction: rtl; text-decoration: none; font: 500 15px var(--fa); color: var(--text); border: 1.5px solid rgba(255, 255, 255, .55); transition: background .2s, border-color .2s; }
.cta:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.cta svg { width: 18px; height: 18px; }

/* دکمه‌ها */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; text-decoration: none; font: 700 15.5px var(--fa); cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--amber); color: #1A1D4A; box-shadow: 0 10px 30px -10px var(--amber); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px var(--amber); }
.btn.ghost { border: 1.5px solid rgba(255, 255, 255, .45); color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

/* سرصفحه */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.hero h1 { margin: 0; font: 900 clamp(34px, 5vw, 60px)/1.3 var(--fa); text-shadow: 0 2px 30px rgba(120, 100, 255, .35); }
.hero p { margin: 18px auto 0; max-width: 46em; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); text-wrap: balance; }
.hero h1 { text-wrap: balance; }
.hero-acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.trust { list-style: none; display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap; margin: 26px 0 0; padding: 0; color: var(--muted); font-size: 14.5px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--amber); stroke-width: 2.2; }

/* کارت‌ها با نور رنگی دور قاب */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 32px); padding-bottom: clamp(64px, 8vw, 110px); direction: ltr; }
.card {
    --c: var(--blue);
    position: relative; display: flex; flex-direction: column; direction: rtl; text-decoration: none; color: var(--text);
    border-radius: 22px; overflow: hidden; isolation: isolate;
    border: 1.5px solid transparent;
    background:
        linear-gradient(180deg, rgba(30, 32, 80, .55), rgba(28, 26, 70, .78)) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, .5), color-mix(in srgb, var(--c) 35%, transparent) 40%, var(--c)) border-box;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent),
        0 18px 50px -12px color-mix(in srgb, var(--c) 55%, transparent),
        0 0 60px -18px var(--c);
    backdrop-filter: blur(14px);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.card.visual { --c: var(--amber); }
.card.kadr { --c: var(--blue); }
.card.webinar { --c: var(--violet); }
/* نور داخلی پایین کارت */
.card::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; z-index: -1; pointer-events: none; background: radial-gradient(90% 70% at 50% 110%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); }
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent), 0 26px 70px -12px color-mix(in srgb, var(--c) 70%, transparent), 0 0 90px -16px var(--c); }
.card .pic { position: relative; aspect-ratio: 427 / 308; overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .pic img { transform: scale(1.04); }
.card .pic::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(24, 22, 64, .7)); }
.card .body { padding: 28px clamp(22px, 2.6vw, 38px) 30px; display: flex; flex-direction: column; flex: 1; }
.card .body > svg.ic { width: 46px; height: 46px; stroke-width: 1.3; color: #fff; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 70%, transparent)); }
.card h2 { margin: 18px 0 2px; display: flex; gap: 12px; align-items: baseline; direction: ltr; justify-content: flex-end; font: 500 clamp(22px, 2vw, 27px)/1.3 var(--en); }
.card h2 b { font-weight: 600; letter-spacing: .22em; }
.card p { margin: 0; font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; }
.card .go { margin-top: auto; padding-top: 34px; color: var(--c); display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.card .go svg { width: 26px; height: 26px; stroke-width: 1.5; transition: transform .3s; }
.card:hover .go svg { transform: translateX(-6px); }

/* بخش‌های میانی */
.sec-t { margin: 0; text-align: center; font: 900 clamp(26px, 3vw, 38px)/1.4 var(--fa); }
.sec-p { margin: 10px auto 0; max-width: 40em; text-align: center; color: var(--muted); }
.why, .process { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.why-i { padding: 24px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: border-color .25s, background .25s; }
.why-i:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); }
.why-i svg { width: 34px; height: 34px; color: var(--amber); }
.why-i h3 { margin: 14px 0 6px; font: 700 18px/1.5 var(--fa); }
.why-i p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 38px 0 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 24px; border-radius: 18px; border: 1px dashed rgba(255, 255, 255, .22); }
.steps b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--blue)); font: 900 18px var(--fa); box-shadow: 0 0 24px -6px var(--violet); }
.steps h3 { margin: 14px 0 6px; font: 700 18px/1.5 var(--fa); }
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.contact-acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* تماس */
.contact { padding: clamp(48px, 7vw, 90px) 0; border-top: 1px solid var(--line); }
.contact .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.contact h2 { margin: 0 0 6px; font: 900 clamp(24px, 2.6vw, 32px)/1.4 var(--fa); }
.contact p { margin: 0; color: var(--muted); }
.contact dl { display: grid; grid-template-columns: auto auto; gap: 4px 18px; margin: 0; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; font-weight: 700; }
.foot { padding: 20px 0 calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 1000px) {
    .cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .why-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .why-grid, .steps { grid-template-columns: 1fr; }
    .hero-acts .btn, .contact-acts .btn { flex: 1 1 100%; }
}
@media (max-width: 760px) {
    .top .wrap { grid-template-columns: auto auto; height: 76px; }
    .nav { display: none; }
    .top .cta { display: none; }
    .menu-btn { display: grid; }
    .top-end { justify-self: end; }
    .logo svg { height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}


/* ───────── نسخه‌ی ۵: تم سیاه + سیاه‌چاله‌ی پس‌زمینه‌ی بالای صفحه ───────── */
:root { --bg-1: #000; --bg-2: #000; --muted: rgba(255, 255, 255, .62); --line: rgba(255, 255, 255, .1); --hero-h: max(92svh, 720px); }
html { background: #000; }
body { background: #000; }
.bh-stage { position: absolute; inset: 0 0 auto 0; height: var(--hero-h); z-index: 0; overflow: hidden; pointer-events: none;
    background: radial-gradient(34% 26% at 28% 46%, rgba(255, 150, 60, .18), transparent 70%), #000; }
.bh-stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.bh-stage canvas.on { opacity: 1; }
/* بدون WebGL: یک حلقه‌ی نورانی ساده به‌جای تصویر */
.bh-stage canvas.nogl { opacity: 0; }
.bh-stage:has(canvas.nogl) { background:
    radial-gradient(circle at 28% 46%, #000 0 70px, rgba(255, 190, 120, .9) 74px, rgba(255, 120, 40, .35) 96px, transparent 170px),
    radial-gradient(50% 10% at 28% 47%, rgba(255, 150, 60, .45), transparent 70%), #000; }
/* پرده‌ی تیره فقط سمت متن (راست)، نه روی هاله‌ی حفره */
.bh-scrim { position: absolute; inset: 0; background: linear-gradient(to left, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .62) 30%, rgba(0, 0, 0, 0) 58%); }
.bh-stage::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(transparent, #000); }
.top, main, .foot { position: relative; z-index: 1; }
.top.scrolled { background: rgba(0, 0, 0, .72); }
.mnav { background: rgba(0, 0, 0, .96); }
.hero { min-height: calc(var(--hero-h) - 104px); display: flex; align-items: center; padding: 0 0 clamp(40px, 6vw, 72px); text-align: start; }
.hero .wrap { width: 100%; }
.hero-copy { max-width: 34rem; }
.hero h1 { font: 400 clamp(40px, 5.6vw, 72px)/1.15 var(--fa); letter-spacing: -.01em; text-shadow: none; color: #fff; }
.hero p { margin: 24px 0 0; max-width: 28rem; font-size: clamp(15px, 1.2vw, 17px); line-height: 2; color: rgba(255, 255, 255, .6); }
.hero-acts { justify-content: flex-start; margin-top: 36px; }
.hero .btn { border-radius: 999px; min-height: 48px; }
.hero .btn.primary { background: #fff; color: #000; box-shadow: none; }
.hero .btn.primary:hover { background: rgba(255, 255, 255, .9); }
.hero .btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .85); }
.hero .btn.ghost:hover { border-color: rgba(255, 255, 255, .45); color: #fff; }
.trust { justify-content: flex-start; color: rgba(255, 255, 255, .55); }
/* کارت‌ها روی سیاه: شیشه‌ی تیره با همان نور رنگی دور قاب */
.card { background:
    linear-gradient(180deg, rgba(18, 18, 22, .78), rgba(10, 10, 12, .92)) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, .35), color-mix(in srgb, var(--c) 30%, transparent) 40%, var(--c)) border-box; }
.card .pic::after { background: linear-gradient(transparent, rgba(8, 8, 10, .8)); }
.why-i { background: rgba(255, 255, 255, .03); }
@media (max-width: 767px) {
    :root { --hero-h: 92svh; }
    .bh-scrim { background: linear-gradient(to bottom, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .6) 30%, rgba(0, 0, 0, 0) 55%); }
    .bh-stage:has(canvas.nogl) { background: radial-gradient(circle at 50% 76%, #000 0 50px, rgba(255, 190, 120, .9) 53px, rgba(255, 120, 40, .35) 70px, transparent 130px), #000; }
    .hero { min-height: calc(var(--hero-h) - 76px); align-items: flex-start; padding-top: 28px; }
    .hero .trust { display: none; }
}


/* ───────── نسخه‌ی ۶: سه قاب در نگاه اول ───────── */
:root { --hero-h: 100svh; }
.first { min-height: calc(100svh - 104px); display: flex; flex-direction: column; }
.first .hero { flex: 1; min-height: 0; padding: 0; transition: flex-grow 1.1s cubic-bezier(.2, .8, .2, 1); }
.first .cards { padding: 0 var(--gutter) clamp(20px, 3vh, 36px); gap: clamp(14px, 1.6vw, 24px); }
.first .card .pic { aspect-ratio: 16 / 7; }
.first .card .body { padding: 16px clamp(18px, 2vw, 26px) 18px; }
.first .card .body > svg.ic { width: 32px; height: 32px; }
.first .card h2 { margin: 8px 0 0; font-size: clamp(18px, 1.6vw, 22px); }
.first .card p { font-size: 15px; }
.first .card .go { padding-top: 12px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 62px); }
.hero p { margin-top: 16px; }
.hero-acts { margin-top: 26px; }
.trust { margin-top: 18px; }
/* حالت ورود نمایشی: قاب‌ها پایین و پنهان، شعار وسط صفحه */
.intro .first .cards { opacity: 0; transform: translateY(70px); max-height: 0; pointer-events: none;
    transition: opacity .9s ease .25s, transform 1.1s cubic-bezier(.2, .8, .2, 1) .15s, max-height 1.1s cubic-bezier(.2, .8, .2, 1); }
.intro.settled .first .cards { opacity: 1; transform: none; max-height: 600px; pointer-events: auto; }
.intro .first .card { transition: transform .35s, box-shadow .35s, opacity .8s; }
.intro.settled .first .card:nth-child(2) { transition-delay: .1s; }
.intro.settled .first .card:nth-child(3) { transition-delay: .2s; }
.intro .hero .trust { opacity: 1; transition: opacity .6s; }
@media (max-width: 1000px) {
    .first .cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); max-width: none; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; direction: rtl; scrollbar-width: none; }
    .first .cards::-webkit-scrollbar { display: none; }
    .first .card { scroll-snap-align: start; }
}
@media (max-width: 767px) {
    .first { min-height: calc(100svh - 76px); }
    .first .hero { align-items: flex-start; padding-top: 22px; }
    .first .card .pic { aspect-ratio: 16 / 8; }
    .hero h1 { font-size: clamp(32px, 9vw, 40px); }
}
@media (max-width: 1000px) {
    .first .cards { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}
@media (max-width: 767px) {
    .first .hero-acts .btn { flex: 0 1 auto; min-height: 46px; padding: 0 18px; font-size: 14px; }
    .first .hero-acts { margin-top: 20px; }
}
.intro:not(.settled) .first .cards { overflow: hidden; }
html, body { overflow-x: clip; }


/* ───────── نسخه‌ی ۷: ورود نمایشی (سیاه‌چاله‌ی بزرگ ← نماد) + تم مشکی و زرد ───────── */
:root { --amber: #F5A23A; --gold: #FFD27A; --ember: #FF7A2F; }
.card.visual { --c: var(--amber); }
.card.kadr { --c: var(--gold); }
.card.webinar { --c: var(--ember); }
.bh-scrim { background: none; }
.bh-stage::after { height: 30%; }
/* چیدمان نهایی: مثل نسخه‌ی ۴، وسط‌چین، نماد سیاه‌چاله بالای عنوان */
.first .hero { justify-content: center; text-align: center; align-items: center; }
.hero-copy { max-width: 46rem; margin: 0 auto; }
.emblem { height: clamp(96px, 15vh, 150px); margin: 0 auto 6px; }
.hero h1 { font: 900 clamp(30px, 3.8vw, 52px)/1.35 var(--fa); letter-spacing: 0; }
.hero p { margin: 12px auto 0; max-width: 40rem; }
.hero-acts, .trust { justify-content: center; }
.hero .btn.primary { background: var(--amber); color: #120c02; box-shadow: 0 10px 30px -12px var(--amber); }
.hero .btn.primary:hover { background: #ffb24f; }
.trust svg { color: var(--amber); }
.why-i svg { color: var(--amber); }
.steps b { background: var(--amber) !important; color: #120c02 !important; }
.nav a.on::after, .nav a[aria-current]::after { background: var(--amber); }
/* لوگو و شعار ورود: زیر سیاه‌چاله، حرف‌به‌حرف */
.intro-t { position: absolute; left: 0; right: 0; top: 70svh; align-content: start; z-index: 2; display: grid; justify-items: center; gap: 14px; pointer-events: none; opacity: 0; visibility: hidden; }
.intro-logo { width: clamp(150px, 16vw, 230px); height: auto; overflow: visible; }
.intro-s { margin: 0; font: 400 clamp(17px, 1.6vw, 22px) var(--fa); color: rgba(255, 255, 255, .78); letter-spacing: .02em; }
.intro-s span { display: inline-block; }
.pre .intro-t { opacity: 1; visibility: visible; }
.pre .intro-logo > g > *, .pre .intro-logo > path { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: hRise .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.pre .intro-logo .l1 { animation-delay: .35s; } .pre .intro-logo .l2 { animation-delay: .5s; }
.pre .intro-logo .l3 { animation-delay: .65s; } .pre .intro-logo .l4 { animation-delay: .85s; animation-name: hRiseGlow; }
.pre .intro-s span { opacity: 0; filter: blur(8px); animation: hBlur 1s ease forwards; }
.pre .intro-s span:nth-child(1) { animation-delay: 1.15s; } .pre .intro-s span:nth-child(2) { animation-delay: 1.45s; }
@keyframes hRise { from { opacity: 0; transform: translateY(16px) scaleY(.6); } to { opacity: 1; transform: none; } }
@keyframes hRiseGlow { 0% { opacity: 0; transform: translateY(16px) scaleY(.6); } 70% { opacity: 1; filter: drop-shadow(0 0 14px var(--amber)); } 100% { opacity: 1; transform: none; filter: drop-shadow(0 0 4px rgba(245, 162, 58, .5)); } }
@keyframes hBlur { to { opacity: 1; filter: none; } }
/* بیرون رفتن لوگوی ورود هنگام کوچک شدن سیاه‌چاله */
.settling .intro-t { visibility: visible; animation: hOut .7s ease forwards; }
@keyframes hOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-30px); filter: blur(6px); } }
/* حالت ورود: منو و محتوا پنهان */
.pre body { overflow: hidden; }
.pre .top, .pre .first .hero-copy > *:not(.emblem), .pre .first .cards .card { opacity: 0; }
.pre .first .hero-copy > *:not(.emblem) { transform: translateY(26px); }
.pre .first .cards .card { transform: translateY(70px) scale(.94); }
.top { transition: opacity .8s ease .55s, background .25s, box-shadow .25s, backdrop-filter .25s; }
.first .hero-copy > * { transition: opacity .8s ease, transform 1s cubic-bezier(.2, .8, .2, 1); }
.first .hero-copy > h1 { transition-delay: .55s; } .first .hero-copy > p { transition-delay: .7s; }
.first .hero-copy > .hero-acts { transition-delay: .85s; } .first .hero-copy > .trust { transition-delay: .95s; }
.first .cards .card { transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.settling .first .cards .card:nth-child(1) { transition-delay: .9s; }
.settling .first .cards .card:nth-child(2) { transition-delay: 1.02s; }
.settling .first .cards .card:nth-child(3) { transition-delay: 1.14s; }
.first .cards { opacity: 1 !important; transform: none !important; max-height: none !important; pointer-events: auto !important; }
@media (max-width: 767px) {
    .intro-t { top: 66svh; }
    .first .hero { align-items: center; padding-top: 6px; }
    .emblem { height: 92px; }
    .hero h1 { font-size: clamp(24px, 7vw, 32px); }
    .first .hero p { font-size: 14px; line-height: 1.9; }
}
@media (prefers-reduced-motion: reduce) { .intro-t { display: none; } }


/* ───────── نسخه‌ی ۸ ───────── */
/* ورود نمایشی فارسی: نام، شعار، زیرشعار */
.intro-t { gap: 10px; text-align: center; padding: 0 var(--gutter); }
.intro-n { margin: 0; font: 900 clamp(40px, 5vw, 68px)/1.2 var(--fa); color: #fff; }
.intro-s { font-size: clamp(18px, 1.8vw, 24px); color: var(--amber); }
.intro-d { margin: 4px 0 0; max-width: 36rem; font-size: clamp(14px, 1.2vw, 16px); line-height: 2; color: rgba(255, 255, 255, .6); }
.pre .intro-n { opacity: 0; animation: hName 1.1s cubic-bezier(.2, .8, .2, 1) .3s forwards; }
.pre .intro-d { opacity: 0; filter: blur(6px); animation: hBlur 1s ease 1.75s forwards; }
@keyframes hName { 0% { opacity: 0; transform: translateY(18px) scale(.94); letter-spacing: .2em; filter: blur(8px); }
    70% { opacity: 1; text-shadow: 0 0 24px rgba(245, 162, 58, .7); } 100% { opacity: 1; transform: none; letter-spacing: 0; filter: none; text-shadow: 0 0 10px rgba(245, 162, 58, .25); } }
.intro-t { top: 66svh; }
/* دسکتاپ: شعار کنار نماد سیاه‌چاله (راست متن، چپ نماد) */
@media (min-width: 768px) {
    .first .hero { text-align: start; }
    .hero-copy { max-width: 62rem; display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 30vw, 420px); column-gap: clamp(20px, 3vw, 48px); align-items: center; }
    .hero-copy > :not(.emblem) { grid-column: 1; }
    .hero-copy .emblem { grid-column: 2; grid-row: 1 / span 3; height: clamp(150px, 24vh, 230px); width: 100%; margin: 0; }
    .hero p { margin: 10px 0 0; }
    .trust { justify-content: flex-start; margin-top: 16px; }
}
@media (max-width: 767px) { .intro-t { top: 60svh; } .intro-d { font-size: 13.5px; } }
@media (min-width: 768px) { .intro-t { top: 71svh; } }


/* ───────── نسخه‌ی ۹ (موبایل): سه خدمت در نگاه اول ───────── */
@media (max-width: 767px) {
    /* سه ردیف فشرده: عکس کوچک + نام + توضیح + فلش؛ هر سه خدمت بدون اسکرول دیده می‌شوند */
    .first .cards { display: grid; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; overflow: visible; gap: 10px; padding-bottom: 18px; }
    .first .card { flex-direction: row; align-items: stretch; border-radius: 18px; min-height: 92px; }
    .first .card .pic { aspect-ratio: auto; width: 96px; flex: 0 0 96px; }
    .first .card .pic::after { display: none; }
    .first .card .body { padding: 12px 14px; justify-content: center; position: relative; }
    .first .card .body > svg.ic { display: none; }
    .first .card h2 { margin: 0; font-size: 17px; justify-content: flex-end; }
    .first .card h2 b { letter-spacing: .14em; }
    .first .card p { font-size: 13.5px; color: rgba(255, 255, 255, .7); }
    .first .card .go { position: absolute; left: 12px; top: 50%; translate: 0 -50%; padding: 0; font-size: 0; }
    .first .card .go svg { width: 22px; height: 22px; }
    .emblem { height: 76px; }
    .first .hero p { display: none; }

    .first .hero { align-items: center; padding: 0 0 8px; }
    .emblem { height: 120px; }
    .first .hero h1 { font-size: clamp(26px, 7.6vw, 34px); }
}


/* ───────── نسخه‌ی ۱۰: عنوان ورود نمایشی دقیقاً هم‌شکل عنوان صفحه («هیما؛ سه جهان، یک برند») ───────── */
.intro-n { font: 900 clamp(30px, 3.8vw, 52px)/1.35 var(--fa); color: #fff; letter-spacing: 0; text-shadow: none; }
.intro-n span { display: inline-block; }
.intro-d { margin-top: 6px; max-width: 40rem; font-size: clamp(15px, 1.2vw, 17px); color: rgba(255, 255, 255, .6); }
.pre .intro-n { opacity: 1; animation: none; }
.pre .intro-n span { opacity: 0; filter: blur(8px); transform: translateY(14px); animation: hWord .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.pre .intro-n .w1 { animation-delay: .35s; } .pre .intro-n .w2 { animation-delay: .8s; } .pre .intro-n .w3 { animation-delay: 1.1s; }
.pre .intro-d { animation-delay: 1.6s; }
@keyframes hWord { to { opacity: 1; filter: none; transform: none; } }
@media (max-width: 767px) { .intro-n { font-size: clamp(26px, 7.6vw, 34px); } .intro-d { font-size: 14px; } }
