/* نسخه‌ی ۱۱ صفحه‌ی اول هیما: عکس پس‌زمینه‌ی ثابت، منوی کپسولی شیشه‌ای، نشان «تازه»، دو دکمه و سه قاب پایین.
   ورود نمایشی (html.pre): فقط عکس + عنوان بزرگ وسط؛ بعد عنوان سر جایش می‌نشیند و بقیه پلکانی می‌آیند. عکس عوض نمی‌شود. */
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

body { background: #050505; }
.h11 { position: relative; isolation: isolate; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.h11-bg { position: absolute; inset: 0; z-index: -2; }
.h11-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; display: block; }
.h11-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(80% 60% at 50% 45%, rgba(0, 0, 0, .55), transparent 75%), linear-gradient(to bottom, rgba(0, 0, 0, .35), transparent 30%, transparent 60%, #050505 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }

/* سربرگ */
.h11-top { position: relative; top: auto; z-index: 20; background: none !important; box-shadow: none !important; backdrop-filter: none !important; }
.h11-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter) 0; max-width: 1400px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.h11-pill { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.h11-pill a { padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s, background .2s; }
.h11-pill a:hover, .h11-pill a.on { color: #fff; }
.h11-pill a.on { background: rgba(255, 255, 255, .08); }
.h11-pill .h11-cta { margin-inline-start: 4px; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #111 !important; font-weight: 700; }
.h11-pill .h11-cta:hover { background: rgba(255, 255, 255, .9); }
.h11-pill .h11-cta svg, .h11-menu svg, .h11-acts svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h11-menu { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); backdrop-filter: blur(12px); place-items: center; cursor: pointer; }
.h11-menu svg { width: 20px; height: 20px; }
.h11-mnav { margin: 10px var(--gutter) 0; border-radius: 18px; background: rgba(10, 10, 10, .85); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .1); }

/* متن وسط */
.h11-main { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(28px, 4vh, 56px); padding: clamp(40px, 8vh, 110px) var(--gutter) clamp(20px, 3vh, 40px); max-width: 1400px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.h11-copy { max-width: 46rem; margin: 0 auto; text-align: center; }
.h11-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 6px 8px 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); backdrop-filter: blur(12px); font-size: 14px; color: rgba(255, 255, 255, .9); }
.h11-badge b { padding: 1px 10px; border-radius: 999px; background: var(--amber); color: #111; font-size: 12px; font-weight: 800; }
.h11-title { margin: 0; font: 900 clamp(38px, min(6vw, 8.5vh), 80px)/1.2 var(--fa); color: #fff; letter-spacing: -.01em; text-shadow: 0 4px 40px rgba(0, 0, 0, .5); }
.h11-desc { margin: clamp(14px, 2.5vh, 24px) auto 0; max-width: 36rem; font-size: clamp(15px, 1.3vw, 18px); line-height: 2; color: rgba(255, 255, 255, .78); text-wrap: balance; }
.h11-acts { margin-top: clamp(20px, 3.5vh, 36px); display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.h11-b1, .h11-b2 { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.h11-b1 { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); backdrop-filter: blur(12px); }
.h11-b1:hover { background: rgba(255, 255, 255, .18); }
.h11-b2 { color: rgba(255, 255, 255, .88); }
.h11-b2:hover { color: #fff; }
.h11-b2 svg { fill: currentColor; stroke: none; }

/* سه قاب */
.h11-cap { margin: 0 0 18px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .62); }
.h11 .h11-cards { padding-bottom: 0; padding-inline: 0; }
.h11-cards .card { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.h11-rest { position: relative; z-index: 1; background: #050505; }

/* ورود پلکانی بعد از نشستن عنوان */
.h11 .s1, .h11 .s3, .h11 .s4, .h11 .s5, .h11-cards .card, .h11-top { animation: fadeSlideIn .8s cubic-bezier(.2, .8, .2, 1) both; }
.h11-top { animation-delay: 0s; } .h11 .s1 { animation-delay: .1s; } .h11 .s3 { animation-delay: .25s; } .h11 .s4 { animation-delay: .4s; }
.h11 .s5 { animation-delay: .55s; } .h11-cards .card:nth-child(1) { animation-delay: .65s; } .h11-cards .card:nth-child(2) { animation-delay: .78s; } .h11-cards .card:nth-child(3) { animation-delay: .91s; }

/* حالت ورود نمایشی: فقط عکس و عنوان (بزرگ‌تر، وسط صفحه) */
.pre .h11-top, .pre .h11 .s1, .pre .h11 .s3, .pre .h11 .s4, .pre .h11 .s5, .pre .h11-cards .card { opacity: 0; animation: none; }
@keyframes h11Word { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: none; } }
.settling .h11-top { animation-delay: .7s; } .settling .h11 .s1 { animation-delay: .8s; } .settling .h11 .s3 { animation-delay: .95s; } .settling .h11 .s4 { animation-delay: 1.1s; }
.settling .h11 .s5 { animation-delay: 1.25s; } .settling .h11-cards .card:nth-child(1) { animation-delay: 1.35s; } .settling .h11-cards .card:nth-child(2) { animation-delay: 1.48s; } .settling .h11-cards .card:nth-child(3) { animation-delay: 1.61s; }

@media (max-width: 1023px) {
    .h11-pill { display: none; }
    .h11-menu { display: grid; }
}
@media (max-width: 767px) {
    .h11-bg img { object-position: 84% 50%; }
    .h11-shade { background: radial-gradient(90% 50% at 50% 35%, rgba(0, 0, 0, .6), transparent 80%), linear-gradient(to bottom, rgba(0, 0, 0, .3), transparent 35%, rgba(5, 5, 5, .5) 70%, #050505 100%); }
    .h11 .h11-desc { display: block; }
    .h11-main { padding-top: 56px; gap: 36px; }
    .h11-badge { font-size: 12.5px; }
    /* موبایل: سه قاب فشرده در سه ردیف (مثل نسخه‌ی ۱۰) */
}
@media (prefers-reduced-motion: reduce) {
    .h11 *, .h11-top { animation: none !important; transition: none !important; }
}
/* دسکتاپ: سه قاب کم‌ارتفاع تا در همان صفحه‌ی اول کامل دیده شوند */
@media (min-width: 768px) {
    .h11 .card .pic { aspect-ratio: 16 / 6; }
    .h11 .card .body { padding: 14px 22px 16px; }
    .h11 .card .body > svg.ic { width: 28px; height: 28px; }
    .h11 .card h2 { margin-top: 6px; }
    .h11 .card .go { padding-top: 8px; }
}

/* ---- نسخه‌ی ۱۱.۱: فقط عنوان یک‌خطی + سه قاب بزرگ ---- */
.h11-main { justify-content: flex-start; gap: clamp(20px, 3.5vh, 40px); padding-top: clamp(28px, 6vh, 72px); }
.h11-title { white-space: nowrap; font: 900 clamp(26px, min(4.2vw, 7vh), 60px)/1.25 var(--fa); transform-origin: 50% 50%; will-change: transform; }
.h11-title .w { display: inline-block; }
.h11-frames { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.h11 .h11-cards { flex: 1; align-items: stretch; }
@media (min-width: 768px) {
    .h11 .card { display: flex; flex-direction: column; }
    .h11 .card .pic { aspect-ratio: auto; flex: 1 1 auto; min-height: 180px; }
}
/* ورود: کلمه‌ها یکی‌یکی از زیر با محو و نور طلایی بالا می‌آیند */
.pre .h11-title { animation: none; opacity: 1; }
.pre .h11-title .w { opacity: 0; animation: h11In 1.2s cubic-bezier(.2, .8, .2, 1) forwards, h11Glow 2.4s ease-in-out 1.4s infinite alternate; }
.pre .h11-title .w:nth-child(1) { animation-delay: .25s; } .pre .h11-title .w:nth-child(2) { animation-delay: .6s; } .pre .h11-title .w:nth-child(3) { animation-delay: .95s; }
@keyframes h11In { 0% { opacity: 0; transform: translateY(.6em) scale(.9); filter: blur(14px); letter-spacing: .2em; }
    60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; filter: none; letter-spacing: 0; } }
@keyframes h11Glow { from { text-shadow: 0 0 0 rgba(245, 162, 58, 0); } to { text-shadow: 0 0 28px rgba(245, 162, 58, .55), 0 0 2px rgba(255, 220, 160, .6); } }
.pre .h11-title { text-shadow: none; }
.settling .h11-title { letter-spacing: -.01em; }
/* بعد از نشستن: سه قاب از پایین با کمی بزرگ‌نمایی */
.h11-cards .card { animation-name: h11Card; }
@keyframes h11Card { from { opacity: 0; transform: translateY(60px) scale(.94); } to { opacity: 1; transform: none; } }
.settling .h11-top { animation-delay: .9s; } .settling .h11-cards .card:nth-child(1) { animation-delay: 1s; } .settling .h11-cards .card:nth-child(2) { animation-delay: 1.15s; } .settling .h11-cards .card:nth-child(3) { animation-delay: 1.3s; }
@media (max-width: 767px) {
    .h11-title { font-size: clamp(22px, 6.6vw, 30px); }
    .h11 .h11-cards { grid-template-rows: repeat(3, minmax(0, 1fr)); }
    .h11 .card { flex-direction: column; }
    .h11 { height: 100svh; min-height: 560px; }
    .h11-main, .h11-frames, .h11 .h11-cards { min-height: 0; }
    .h11 .card { min-height: 0; }
    .h11 .card .pic { position: relative; width: auto; flex: 1 1 0; min-height: 0; }
    .h11 .card .pic img { position: absolute; inset: 0; }
    .h11 .card .body { padding: 10px 14px; flex: none; }
}

/* ---- نسخه‌ی ۱۳ ---- */
/* پس‌زمینه‌ی ثابت: عکس سر جایش می‌ماند و همه‌ی محتوای صفحه رویش بالا و پایین می‌رود */
.h11-bg { position: fixed; inset: 0; }
.h11-shade { position: fixed; }
.h11 { overflow: visible; }
.h11-rest { background: linear-gradient(to bottom, rgba(5, 5, 5, .55), rgba(5, 5, 5, .78) 30%, rgba(5, 5, 5, .86)); backdrop-filter: blur(2px); }
.h11-rest .why, .h11-rest .process, .h11-rest .contact { border-top-color: rgba(255, 255, 255, .08); }
.foot { background: rgba(5, 5, 5, .9); }
/* توضیح زیر شعار */
.h11-desc { margin: clamp(8px, 1.6vh, 16px) auto 0; max-width: 46rem; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.9; color: rgba(255, 255, 255, .72); }
.pre .h11-desc { opacity: 0; animation: none; }
.settling .h11 .s3 { animation-delay: .85s; }
/* نور دور قاب‌ها کمتر */
.h11 .card { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 14%, transparent), 0 12px 32px -18px color-mix(in srgb, var(--c) 45%, transparent); }
.h11 .card:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent), 0 16px 40px -18px color-mix(in srgb, var(--c) 60%, transparent); }
.h11 .card::after { opacity: .45; }
/* جای بیشتر برای توضیح قاب‌ها */
.h11 .card small { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.9; color: rgba(255, 255, 255, .62); }
@media (min-width: 768px) {
    .h11 .card .pic { flex: 1 1 0; min-height: 120px; position: relative; }
    .h11 .card .pic img { position: absolute; inset: 0; }
    .h11 .card .body { flex: none; padding: 16px 22px 18px; }
}
@media (max-width: 767px) {
    .h11 .card small { display: none; }
    .h11-desc { font-size: 13px; }
}

/* ---- نسخه‌ی ۱۴: طلوع + تایپ ---- */
/* طلوع: صفحه سیاه است؛ عکس از تاریکی با نور گرم بالا می‌آید (فقط در ورود نمایشی) */
.pre .h11-bg img, .settling .h11-bg img { animation: h11Sunrise 3.4s cubic-bezier(.3, .1, .2, 1) .2s both; }
@keyframes h11Sunrise {
    0% { filter: brightness(0) saturate(.4); transform: translateY(6%) scale(1.12); }
    35% { filter: brightness(.35) saturate(1.3) hue-rotate(-8deg); }
    70% { filter: brightness(1.15) saturate(1.15); }
    100% { filter: none; transform: none; }
}
.pre .h11-shade { animation: h11Haze 3.4s ease .2s both; }
@keyframes h11Haze { from { background-color: #000; } to { background-color: transparent; } }
/* تایپ: مکان‌نما چشمک‌زن کنار متن */
.h11-title .tx { display: inline-block; min-height: 1.25em; }
.pre .h11-title .tx { animation: none; opacity: 1; }
.typing .h11-title .tx::after, .pre .h11-title .tx:empty::after { content: ""; display: inline-block; width: .07em; height: .9em; margin-inline-start: .08em; vertical-align: -.08em; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: h11Caret .8s steps(1) infinite; }
.pre:not(.typing) .h11-title .tx:empty::after { opacity: 0; animation: none; }
@keyframes h11Caret { 50% { opacity: 0; } }
.typing .h11-title { text-shadow: 0 0 30px rgba(245, 162, 58, .35); }
/* هم‌زمان با کوچک شدن شعار، سه قاب ظاهر می‌شوند */
.settling .h11-top { animation-delay: .5s; } .settling .h11 .s3 { animation-delay: .7s; }
.settling .h11-cards .card:nth-child(1) { animation-delay: .1s; } .settling .h11-cards .card:nth-child(2) { animation-delay: .25s; } .settling .h11-cards .card:nth-child(3) { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .h11-bg img, .h11-shade { animation: none !important; } }

/* ---- نسخه‌ی ۱۵ ---- */
/* طلوع نرم: یک منحنی پیوسته، بدون پرش نور */
.pre .h11-bg img, .settling .h11-bg img { animation: h11Rise 5s cubic-bezier(.45, 0, .2, 1) .1s both; }
@keyframes h11Rise { from { filter: brightness(0) saturate(.6); transform: translateY(5%) scale(1.1); } to { filter: brightness(1) saturate(1); transform: none; } }
.pre .h11-shade { animation: h11Haze 5s cubic-bezier(.45, 0, .2, 1) .1s both; }
/* شعار: کلمه‌ها از پایین با تاری و کمی کوچکی، پله‌پله واضح می‌شوند */
.typing .h11-title .tx::after, .pre .h11-title .tx:empty::after { display: none; }
.typing .h11-title { text-shadow: none; }
.h11-title .wd { display: inline-block; }
.pre .h11-title .wd { opacity: 0; }
.typing .h11-title .wd { animation: h11Word2 .8s ease-out forwards; }
@keyframes h11Word2 {
    0% { opacity: 0; transform: translateY(30px) scale(.8); filter: blur(10px); }
    50% { opacity: .8; transform: translateY(10px) scale(.95); filter: blur(2px); }
    100% { opacity: 1; transform: none; filter: blur(0); }
}
/* هنگام کوچک شدن، شعار همیشه روی قاب‌ها؛ قاب‌ها کمی دیرتر می‌آیند */
.h11-copy { position: relative; z-index: 5; }
.settling .h11-cards .card:nth-child(1) { animation-delay: .45s; } .settling .h11-cards .card:nth-child(2) { animation-delay: .58s; } .settling .h11-cards .card:nth-child(3) { animation-delay: .71s; }
