/* ==================================================================
   طرح ۲ — سه‌بعدی. روی site.css سوار می‌شود (دکمه، فرم، پاورقی، مودال از آنجا).
   ================================================================== */

body.v3d { background: #04050a; color: var(--text); }
.v3d ::selection { background: rgba(227, 36, 43, .55); color: #fff; }

/* ---------- سربرگ شناور کپسولی ---------- */
.v3d .site-header { top: 14px; height: auto; border: 0; background: none; }
.v3d .site-header__inner {
    height: 64px; max-width: 1160px; padding-inline: 14px 10px; border-radius: 999px;
    background: rgba(12, 16, 28, .55); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 20px 50px -25px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: background-color .3s, box-shadow .3s;
}
.v3d .site-header.is-scrolled { background: none; backdrop-filter: none; border: 0; }
.v3d .site-header.is-scrolled .site-header__inner { background: rgba(8, 10, 18, .82); }
.v3d .site-logo img { height: 34px; }
.v3d .site-nav { margin-inline: auto; }

/* ---------- عنوان‌ها ---------- */
.x-kicker { display: inline-flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: #ff8a80; margin-bottom: 1rem; }
.x-kicker::before { content: ''; width: 34px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--red-2)); }
.x-title { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.3; letter-spacing: -.02em; color: #fff; }
.x-title .grad, .x-hero h1 .grad {
    background: linear-gradient(100deg, #ff9b8f 0%, #ff4d4f 35%, #e3242b 60%, #ff7ab6 100%); background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite;
}
.x-sub { margin-top: 1rem; max-width: 620px; color: var(--muted); font-size: 1.04rem; }
.x-head { margin-bottom: clamp(36px, 5vw, 60px); }
.x-head--center { text-align: center; }
.x-head--center .x-sub { margin-inline: auto; }
.x-head--center .x-kicker::after { content: ''; width: 34px; height: 2px; border-radius: 2px; background: linear-gradient(270deg, transparent, var(--red-2)); }

.x-section { position: relative; padding-block: clamp(80px, 10vw, 140px); overflow-x: clip; }
.x-aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.x-aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.x-aurora .a1 { width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(227, 36, 43, .55), transparent 65%); top: -18vw; right: -10vw; }
.x-aurora .a2 { width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(124, 58, 237, .35), transparent 65%); bottom: -16vw; left: -12vw; animation-delay: -6s; }
.x-aurora .a3 { width: 30vw; height: 30vw; background: radial-gradient(circle, rgba(255, 122, 182, .25), transparent 65%); top: 30%; left: 35%; animation-delay: -12s; }
.x-section > .container { position: relative; z-index: 1; }

/* ---------- قهرمان با کرهٔ سه‌بعدی ---------- */
.x-hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding-top: 100px; }
.x-hero__grid { position: absolute; inset: auto -20% -30% -20%; height: 70%; z-index: -1; transform: perspective(700px) rotateX(62deg); transform-origin: bottom;
    background-image: linear-gradient(rgba(227, 36, 43, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(227, 36, 43, .22) 1px, transparent 1px);
    background-size: 64px 64px; mask-image: linear-gradient(to top, #000 10%, transparent 75%); animation: gridmove 6s linear infinite; }
.x-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2rem; align-items: center; }
.x-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); font-weight: 900; line-height: 1.22; letter-spacing: -.03em; color: #fff; }
.x-hero p { margin-top: 1.4rem; font-size: 1.1rem; color: var(--muted); max-width: 540px; }
.x-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.x-pill { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem .45rem .45rem; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #d6dbe8; font-size: .86rem; margin-bottom: 1.6rem; }
.x-pill b { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .75rem; border-radius: 999px; background: linear-gradient(135deg, var(--red-2), var(--red)); color: #fff; font-size: .78rem; }
.x-pill b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-out infinite; }
.x-globe { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; margin-inline: auto; cursor: grab; touch-action: pan-y; }
.x-globe:active { cursor: grabbing; }
.x-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.x-globe__halo { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(227, 36, 43, .25), rgba(227, 36, 43, .05) 55%, transparent 70%); filter: blur(10px); }
.x-globe__tag {
    position: absolute; display: flex; align-items: center; gap: .55rem; padding: .55rem .9rem; border-radius: 14px; white-space: nowrap;
    background: rgba(14, 18, 32, .7); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .1); color: #fff; font-size: .85rem; font-weight: 600;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9); animation: float 7s ease-in-out infinite;
}
.x-globe__tag svg { color: var(--red-2); width: 18px; height: 18px; }
.x-globe__tag--1 { top: 12%; inset-inline-start: 0; }
.x-globe__tag--2 { bottom: 16%; inset-inline-end: 0; animation-delay: -3s; }
.x-globe__tag--3 { bottom: 4%; inset-inline-start: 18%; animation-delay: -5s; }
.x-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.6rem; }
.x-stat { min-width: 128px; padding: .9rem 1.1rem; border-radius: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .08); }
.x-stat b { display: block; font-size: 1.6rem; font-weight: 900; color: #fff; line-height: 1.25; }
.x-stat span { font-size: .8rem; color: var(--muted); }

/* ---------- نوار کلمات ---------- */
.x-ticker-wrap { overflow: hidden; padding-block: 34px; margin-block: -34px; position: relative; z-index: 2; }
.x-ticker { position: relative; padding-block: 22px; background: linear-gradient(90deg, #8f0d14, var(--red), #c21a6b); transform: rotate(-2deg) scale(1.04); box-shadow: 0 30px 60px -30px rgba(227, 36, 43, .8); overflow: hidden; z-index: 2; }
.x-ticker__track { display: flex; gap: 2.4rem; width: max-content; animation: marquee 30s linear infinite; }
.x-ticker span { display: inline-flex; align-items: center; gap: 2.4rem; color: #fff; font-size: 1.15rem; font-weight: 800; white-space: nowrap; }
.x-ticker span::after { content: '✦'; color: rgba(255, 255, 255, .6); font-size: .9rem; }

/* ---------- مشتریان: حلقهٔ سه‌بعدی ---------- */
.x-clients { background: radial-gradient(ellipse at 50% 30%, #12101c, #04050a 70%); }
.ring-stage { position: relative; height: 430px; perspective: 1500px; perspective-origin: 50% 35%; margin-top: 10px; user-select: none; touch-action: pan-y; cursor: grab; }
.ring-stage:active { cursor: grabbing; }
.ring { position: absolute; top: 32%; left: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.ring__card {
    position: absolute; width: var(--cw, 190px); height: calc(var(--cw, 190px) * .62); left: calc(var(--cw, 190px) / -2); top: calc(var(--cw, 190px) * -.31);
    transform-style: preserve-3d; transition: filter .3s;
}
.ring__face, .ring__back { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ring__face {
    display: grid; place-items: center; padding: 16px 22px; overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, .98), rgba(232, 236, 245, .94));
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .85), inset 0 1px 0 #fff, 0 0 0 1px rgba(255, 255, 255, .25);
    -webkit-box-reflect: below 14px linear-gradient(transparent 55%, rgba(255, 255, 255, .22));
}
.ring__face img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
.ring__face::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%); background-size: 250% 100%; animation: sheen 5s ease-in-out infinite; pointer-events: none; mix-blend-mode: overlay; }
.ring__back {
    transform: rotateY(180deg); display: grid; place-items: center;
    background: linear-gradient(160deg, rgba(40, 18, 26, .92), rgba(10, 12, 22, .95)); border: 1px solid rgba(255, 90, 78, .3);
    box-shadow: inset 0 0 30px rgba(227, 36, 43, .25);
}
.ring__back span { font-size: calc(var(--cw, 190px) * .3); font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 90, 78, .75); text-shadow: 0 0 24px rgba(227, 36, 43, .5); }
.ring-floor { position: absolute; left: 50%; bottom: 8px; width: min(900px, 92%); height: 120px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(227, 36, 43, .45), rgba(124, 58, 237, .12) 45%, transparent 70%); filter: blur(12px); }
.ring-floor::before { content: ''; position: absolute; inset: 30% 18%; border-radius: 50%; border: 1px solid rgba(255, 90, 78, .35); box-shadow: 0 0 40px rgba(227, 36, 43, .5); }
.ring-hint { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .6rem; display: flex; align-items: center; justify-content: center; gap: .5rem; }
.x-counter { display: flex; justify-content: center; gap: clamp(20px, 5vw, 70px); margin-top: 2.4rem; flex-wrap: wrap; }
.x-counter div { text-align: center; }
.x-counter b { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.2; background: linear-gradient(180deg, #fff, #9aa5ba); -webkit-background-clip: text; background-clip: text; color: transparent; }
.x-counter span { color: var(--muted); font-size: .9rem; }

/* ---------- کارت‌های سه‌بعدی شیب‌دار ---------- */
.tilt { position: relative; transform-style: preserve-3d; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .45s var(--ease), box-shadow .45s var(--ease); will-change: transform; }
.tilt.is-tilting { transition: transform .08s linear, box-shadow .3s; }
.tilt__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), transparent 45%); opacity: 0; transition: opacity .3s; z-index: 3; }
.tilt:hover .tilt__glare { opacity: 1; }
.z1 { transform: translateZ(30px); }
.z2 { transform: translateZ(55px); }

.x-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.x-card {
    display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; color: #fff;
    background: linear-gradient(165deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02) 60%); border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 30px 60px -35px rgba(0, 0, 0, .9);
}
.x-card:hover { box-shadow: 0 40px 80px -30px rgba(227, 36, 43, .45); border-color: rgba(255, 90, 78, .35); }
.x-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; margin: 10px 10px 0; border-radius: 18px; }
.x-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform .6s var(--ease); }
.x-card:hover .x-card__media img { transform: scale(1.12); }
.x-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 5, 10, .75), transparent 60%); }
.x-card__num { position: absolute; bottom: 10px; inset-inline-start: 12px; z-index: 1; font-size: 2.2rem; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .6); }
.x-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.3rem; }
.x-card__body h3 { font-size: 1.02rem; font-weight: 800; }
.x-card__body p { margin-top: .45rem; font-size: .86rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-card__go { margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: #ff8a80; }
.x-more { display: none; }
.x-more.is-open { display: grid; margin-top: 22px; }

/* ---------- بنتو (چرا پارتاک) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: 18px; }
.bento__item {
    position: relative; padding: 1.7rem; border-radius: 26px; overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)); border: 1px solid rgba(255, 255, 255, .08);
}
.bento__item h3 { font-size: 1.12rem; font-weight: 800; color: #fff; }
.bento__item p { margin-top: .5rem; font-size: .9rem; color: var(--muted); }
.bento__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--red-2), var(--red)); box-shadow: 0 14px 30px -10px rgba(227, 36, 43, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.bento__icon svg { width: 27px; height: 27px; }
.b-wide { grid-column: span 4; }
.b-tall { grid-column: span 2; grid-row: span 2; }
.b-half { grid-column: span 2; }
.b-lead { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 85% 0%, rgba(227, 36, 43, .35), transparent 55%), linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)); }
.b-lead p { font-size: 1rem; max-width: 560px; }
.b-lead strong { color: #fff; }
.cube-wrap { perspective: 600px; height: 120px; display: grid; place-items: center; margin-top: 1rem; }
.cube { position: relative; width: 70px; height: 70px; transform-style: preserve-3d; animation: cube 12s linear infinite; }
.cube span { position: absolute; inset: 0; border-radius: 10px; border: 1px solid rgba(255, 120, 110, .7); background: rgba(227, 36, 43, .14); box-shadow: inset 0 0 20px rgba(227, 36, 43, .4); }
.cube span:nth-child(1) { transform: translateZ(35px); }
.cube span:nth-child(2) { transform: rotateY(180deg) translateZ(35px); }
.cube span:nth-child(3) { transform: rotateY(90deg) translateZ(35px); }
.cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(35px); }
.cube span:nth-child(5) { transform: rotateX(90deg) translateZ(35px); }
.cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(35px); }

/* ---------- روند: کارت‌های چرخان ---------- */
.flip-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.flip { perspective: 1100px; height: 250px; }
.flip__inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.flip:hover .flip__inner, .flip:focus-within .flip__inner, .flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; border-radius: 24px; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid rgba(255, 255, 255, .08); }
.flip__front { background: linear-gradient(160deg, #141a2c, #0a0d18); }
.flip__back { transform: rotateY(180deg); background: linear-gradient(150deg, var(--red), #8f0d14 70%); }
.flip__n { font-size: 3.6rem; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 90, 78, .8); }
.flip__front svg { width: 34px; height: 34px; color: #ff8a80; }
.flip h3 { font-size: 1.15rem; font-weight: 800; color: #fff; }
.flip__back p { color: rgba(255, 255, 255, .9); font-size: .95rem; }

/* ---------- طرح‌ها ---------- */
.x-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.x-plan { display: flex; flex-direction: column; padding: 2rem 1.8rem; border-radius: 28px; color: #fff; background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)); border: 1px solid rgba(255, 255, 255, .09); }
.x-plan--hot { background: linear-gradient(165deg, rgba(227, 36, 43, .32), rgba(20, 10, 18, .9) 55%); border-color: rgba(255, 90, 78, .45); box-shadow: 0 40px 90px -40px rgba(227, 36, 43, .8); }
.x-plan__tag { align-self: flex-start; padding: .2rem .8rem; border-radius: 999px; background: #fff; color: var(--red); font-size: .78rem; font-weight: 800; margin-bottom: .8rem; }
.x-plan h3 { font-size: 1.25rem; font-weight: 800; }
.x-plan__price { margin-top: 1rem; font-size: 2.1rem; font-weight: 900; line-height: 1.3; }
.x-plan__price small { font-size: .88rem; font-weight: 600; color: var(--muted); }
.x-plan ul { list-style: none; padding: 1.4rem 0 0; margin: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: .75rem; flex: 1; }
.x-plan li { display: flex; gap: .6rem; font-size: .92rem; color: #d7dceb; }
.x-plan li svg { flex: none; width: 18px; height: 18px; margin-top: .25rem; color: #ff8a80; }
.x-plan__extra { font-size: .84rem; color: var(--muted); margin-bottom: 1.1rem; }
.v3d:not(.v3d-light) .btn--outline { color: #fff; background: linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .04)) padding-box, linear-gradient(135deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .06) 50%, rgba(255, 90, 78, .5)) border-box; }
.v3d:not(.v3d-light) .btn--dark { background: #fff; color: var(--ink); }

/* ---------- کتاب سه‌بعدی کاتالوگ ---------- */
.x-catalog { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.book-stage { perspective: 1800px; display: grid; place-items: center; height: 440px; }
.book { position: relative; width: 250px; height: 340px; transform-style: preserve-3d; transform: rotateY(-28deg) rotateX(8deg); transition: transform 1s var(--ease); cursor: pointer; }
.book-stage:hover .book { transform: rotateY(-8deg) rotateX(4deg); }
.book__page, .book__cover { position: absolute; inset: 0; border-radius: 4px 14px 14px 4px; overflow: hidden; }
.book__page img, .book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__page { transform: translateZ(-1px); box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .9); background: #fff; }
.book__cover { transform-origin: right center; transition: transform 1.1s var(--ease); box-shadow: inset -8px 0 18px rgba(0, 0, 0, .25); z-index: 2; backface-visibility: hidden; }
.book-stage:hover .book__cover { transform: rotateY(150deg); }
.book__spine { position: absolute; top: 0; right: -14px; width: 28px; height: 100%; transform: rotateY(90deg); background: linear-gradient(90deg, #8f0d14, var(--red)); }
.book__shadow { position: absolute; bottom: -40px; left: 10%; width: 80%; height: 40px; border-radius: 50%; background: radial-gradient(ellipse, rgba(227, 36, 43, .45), transparent 70%); filter: blur(8px); transform: translateZ(-60px); }

/* ---------- مقالات ---------- */
.x-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.x-article { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; color: #fff; background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)); border: 1px solid rgba(255, 255, 255, .08); }
.x-article__media { aspect-ratio: 16 / 9; overflow: hidden; margin: 10px 10px 0; border-radius: 16px; background: #10172a; }
.x-article__media img { width: 100%; height: 100%; object-fit: cover; }
.x-article__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.x-article__meta { display: flex; gap: .7rem; align-items: center; font-size: .8rem; color: var(--muted); }
.x-article__meta .chip { background: rgba(227, 36, 43, .16); color: #ff8a80; }
.x-article h3 { margin-top: .7rem; font-size: 1.06rem; font-weight: 800; }
.x-article p { margin-top: .45rem; font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- فرم ---------- */
.v3d .visit { background: linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 60px 120px -60px rgba(227, 36, 43, .55); }
.v3d .visit .lead { color: var(--muted); }
.v3d .site-footer { background: #04050a; border-top: 1px solid rgba(255, 255, 255, .06); }

/* ---------- انیمیشن‌ها ---------- */
@keyframes shine { to { background-position: 200% center; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6vw, 4vw) scale(1.15); } }
@keyframes gridmove { from { background-position: 0 0; } to { background-position: 0 64px; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }
@keyframes sheen { 0%, 60% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@keyframes cube { from { transform: rotateX(-25deg) rotateY(0); } to { transform: rotateX(-25deg) rotateY(360deg); } }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1100px) {
    .x-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .b-lead, .b-wide { grid-column: span 4; }
    .b-tall, .b-half { grid-column: span 2; }
    .b-tall { grid-row: span 1; }
}
@media (max-width: 960px) {
    .v3d .site-header__inner { margin-inline: 12px; width: auto; }
    .x-hero__inner, .x-catalog { grid-template-columns: 1fr; }
    .x-globe { max-width: 460px; order: -1; margin-bottom: -20px; }
    .x-hero { padding-top: 96px; min-height: auto; padding-bottom: 60px; }
    .x-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flip-steps { grid-template-columns: 1fr 1fr; }
    .x-plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
    .ring-stage { height: 340px; }
    .book-stage { height: 400px; }
}
@media (max-width: 600px) {
    .v3d .site-header { top: 10px; }
    .v3d .site-header__inner { height: 58px; }
    .x-globe__tag { font-size: .76rem; padding: .45rem .7rem; }
    .x-globe__tag--3 { display: none; }
    .x-stat { min-width: 0; flex: 1; padding: .75rem .8rem; }
    .x-stat b { font-size: 1.3rem; }
    .x-services { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -20px; padding: 6px 20px 18px; scrollbar-width: none; }
    .x-services::-webkit-scrollbar { display: none; }
    .x-services > .x-card { flex: 0 0 80%; scroll-snap-align: center; }
    .x-more { display: none; }
    .x-more.is-open { display: flex; margin-top: 0; }
    .bento { grid-template-columns: 1fr; }
    .b-lead, .b-wide, .b-tall, .b-half { grid-column: auto; grid-row: auto; }
    .flip-steps { grid-template-columns: 1fr; }
    .flip { height: 200px; }
    .ring-stage { height: 280px; }
    .x-ticker span { font-size: .98rem; }
}
@media (prefers-reduced-motion: reduce) {
    .tilt { transform: none !important; }
}

/* ==================================================================
   طرح ۲ روشن — پایهٔ روشن؛ کره، نوار قرمز، طرح ویژه، فرم و پاورقی تیره می‌مانند
   ================================================================== */
body.v3d-light {
    --l-bg: #f5f6fa; --l-ink: #0b1220; --l-muted: #5b6578; --l-line: #e5e8f0;
    background: var(--l-bg); color: var(--l-ink);
}
.v3d-light .x-aurora span { opacity: .22; }
.v3d-light .x-aurora .a2 { background: radial-gradient(circle, rgba(124, 58, 237, .28), transparent 65%); }

/* سربرگ سفید شیشه‌ای */
.v3d-light .site-header__inner, .v3d-light .site-header.is-scrolled .site-header__inner {
    background: rgba(255, 255, 255, .78); border-color: rgba(11, 18, 32, .07);
    box-shadow: 0 18px 40px -26px rgba(11, 18, 32, .35), inset 0 1px 0 #fff;
}
.v3d-light .site-logo .logo-light { display: none; }
.v3d-light .site-logo .logo-dark { display: block; }
.v3d-light .site-nav > a, .v3d-light .site-nav__group > button { color: #3b4558; }
.v3d-light .site-nav > a:hover, .v3d-light .site-nav__group > button:hover, .v3d-light .site-nav > a.is-active { color: var(--l-ink); background: rgba(11, 18, 32, .055); }
.v3d-light .site-nav__menu { background: rgba(255, 255, 255, .97); border-color: var(--l-line); box-shadow: 0 30px 60px -24px rgba(11, 18, 32, .3); }
.v3d-light .site-nav__menu a { color: #2b3446; }
.v3d-light .site-nav__menu a:hover { background: #f2f4f8; color: var(--l-ink); }
.v3d-light .menu-toggle:not(.mobile-nav__close) { color: var(--l-ink); border-color: var(--l-line); background: #fff; }

/* عنوان‌ها و متن */
.v3d-light .x-title { color: var(--l-ink); }
.v3d-light .x-sub, .v3d-light .ring-hint { color: var(--l-muted); }
.v3d-light .x-kicker { color: var(--red); }
.v3d-light .btn--ghost { color: var(--l-ink); background: linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, .85)) padding-box, linear-gradient(135deg, rgba(227, 36, 43, .55), rgba(11, 18, 32, .12) 45%, rgba(11, 18, 32, .12) 60%, rgba(227, 36, 43, .4)) border-box; box-shadow: 0 10px 24px -18px rgba(11, 18, 32, .45); }
.v3d-light .btn--ghost > svg { background: var(--red-soft); color: var(--red); }
.v3d-light .visit .btn--ghost, .v3d-light .x-plan--hot .btn--ghost { color: #fff; }
.v3d-light .btn--dark { color: #fff; background: linear-gradient(180deg, #1d2536, var(--l-ink)); }

/* قهرمان روشن با کرهٔ تیره */
.v3d-light .x-hero { background: radial-gradient(ellipse at 20% 40%, #fff 0%, #f5f6fa 55%, #eceef5 100%); }
.v3d-light .x-hero__grid { background-image: linear-gradient(rgba(227, 36, 43, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(227, 36, 43, .14) 1px, transparent 1px); }
.v3d-light .x-hero h1 { color: var(--l-ink); }
.v3d-light .x-hero p { color: var(--l-muted); }
.v3d-light .x-pill { background: #fff; border-color: var(--l-line); color: #3b4558; box-shadow: 0 10px 24px -16px rgba(11, 18, 32, .3); }
.v3d-light .x-stat { background: #fff; border-color: var(--l-line); box-shadow: 0 18px 36px -24px rgba(11, 18, 32, .35); }
.v3d-light .x-stat b { color: var(--l-ink); }
.v3d-light .x-stat span { color: var(--l-muted); }
.v3d-light .x-globe__halo { background: radial-gradient(circle, rgba(227, 36, 43, .22), rgba(227, 36, 43, .06) 55%, transparent 70%); }
.v3d-light .x-globe__tag { background: rgba(255, 255, 255, .86); color: var(--l-ink); border-color: var(--l-line); box-shadow: 0 20px 40px -22px rgba(11, 18, 32, .45); }

/* حلقهٔ مشتریان روی صحنهٔ روشن */
.v3d-light .x-clients { background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #f1f3f8 60%, #e9ecf3 100%); }
.v3d-light .ring__face { box-shadow: 0 30px 50px -26px rgba(11, 18, 32, .45), 0 0 0 1px rgba(11, 18, 32, .06), inset 0 1px 0 #fff; -webkit-box-reflect: below 14px linear-gradient(transparent 60%, rgba(255, 255, 255, .35)); }
.v3d-light .ring__back { background: linear-gradient(160deg, #fff4f3, #ffe3e1); border-color: rgba(227, 36, 43, .25); box-shadow: inset 0 0 26px rgba(227, 36, 43, .12); }
.v3d-light .ring__back span { -webkit-text-stroke-color: rgba(227, 36, 43, .7); text-shadow: none; }
.v3d-light .ring-floor { background: radial-gradient(ellipse at center, rgba(227, 36, 43, .28), rgba(124, 58, 237, .08) 45%, transparent 70%); }
.v3d-light .x-counter b { background: linear-gradient(180deg, var(--l-ink), #5b6578); -webkit-background-clip: text; background-clip: text; }
.v3d-light .x-counter span { color: var(--l-muted); }

/* کارت‌ها: سفید با سایهٔ نرم */
.v3d-light .x-card, .v3d-light .x-article, .v3d-light .bento__item, .v3d-light .x-plan {
    color: var(--l-ink); background: #fff; border-color: var(--l-line); box-shadow: 0 24px 50px -34px rgba(11, 18, 32, .4);
}
.v3d-light .x-card:hover, .v3d-light .x-article:hover { box-shadow: 0 34px 70px -30px rgba(227, 36, 43, .35); border-color: rgba(227, 36, 43, .3); }
.v3d-light .x-card__body p, .v3d-light .x-article p, .v3d-light .x-article__meta, .v3d-light .bento__item p, .v3d-light .x-plan__extra { color: var(--l-muted); }
.v3d-light .x-card__go { color: var(--red); }
.v3d-light .x-article__meta .chip { background: var(--red-soft); color: var(--red); }
.v3d-light .x-article__media { background: #eef1f6; }
.v3d-light .bento__item h3 { color: var(--l-ink); }
.v3d-light .b-lead { background: radial-gradient(circle at 85% 0%, rgba(227, 36, 43, .14), transparent 55%), #fff; }
.v3d-light .b-lead strong { color: var(--l-ink); }
.v3d-light .cube span { background: rgba(227, 36, 43, .08); border-color: rgba(227, 36, 43, .55); box-shadow: inset 0 0 18px rgba(227, 36, 43, .18); }
.v3d-light .tilt__glare { background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), transparent 45%); }

/* کارت‌های چرخان */
.v3d-light .flip__front { background: #fff; border-color: var(--l-line); box-shadow: 0 24px 50px -34px rgba(11, 18, 32, .4); }
.v3d-light .flip__front h3 { color: var(--l-ink); }
.v3d-light .flip__front svg { color: var(--red); }
.v3d-light .flip__n { -webkit-text-stroke-color: rgba(227, 36, 43, .55); }

/* طرح‌ها: طرح ویژه تیره برای تضاد */
.v3d-light .x-plan li { color: #3b4558; }
.v3d-light .x-plan li svg { color: var(--red); }
.v3d-light .x-plan ul { border-color: var(--l-line); }
.v3d-light .x-plan__price small { color: var(--l-muted); }
.v3d-light .x-plan--hot { color: #fff; background: linear-gradient(165deg, #2a0d14, #0b1020 60%); border-color: transparent; box-shadow: 0 40px 90px -40px rgba(227, 36, 43, .7); }
.v3d-light .x-plan--hot li { color: #dfe4ef; }
.v3d-light .x-plan--hot li svg { color: #ff8a80; }
.v3d-light .x-plan--hot ul { border-color: rgba(255, 255, 255, .12); }
.v3d-light .x-plan--hot .x-plan__price small, .v3d-light .x-plan--hot .x-plan__extra { color: #a7b0c2; }

/* فرم بازدید: بلوک تیره روی زمینهٔ روشن */
.v3d-light .visit { background: linear-gradient(150deg, #120b14, #0a0f1d 55%); border: 0; box-shadow: 0 60px 120px -60px rgba(11, 18, 32, .8); }
.v3d-light .visit .x-title { color: #fff; }
.v3d-light .visit .x-kicker { color: #ff8a80; }
.v3d-light .site-footer { border-top: 0; }

@media (max-width: 960px) {
    .v3d-light .mobile-nav { background: rgba(255, 255, 255, .98); }
    .v3d-light .mobile-nav a { color: var(--l-ink); border-color: var(--l-line); }
    .v3d-light .mobile-nav__close { color: var(--l-ink); border-color: var(--l-line); background: #fff; }
}

/* ==================================================================
   مشتریان: دیوار سه‌بعدی متحرک (ستون‌های کج که بالا و پایین می‌روند)
   ================================================================== */
.x-clients2 { background: linear-gradient(180deg, #f5f6fa, #eef0f6); }
.clients2 { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem; align-items: center; }
.clients2__stats { display: flex; gap: 2rem; flex-wrap: wrap; margin: 2rem 0 2.2rem; }
.clients2__stats b { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 900; line-height: 1.2; color: var(--l-ink, #0b1220); }
.clients2__stats span { font-size: .88rem; color: var(--l-muted, #5b6578); }
.wall-stage {
    position: relative; height: 560px; overflow: hidden; border-radius: 36px; perspective: 1600px;
    background: radial-gradient(ellipse at 50% 40%, #ffffff, #e9ecf4 70%);
    box-shadow: inset 0 0 0 1px rgba(11, 18, 32, .05), 0 40px 80px -50px rgba(11, 18, 32, .45);
    mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 55%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 55%, transparent 100%);
}
.wall {
    position: absolute; top: 50%; left: 50%; width: 820px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
    transform-style: preserve-3d; transform: translate(-50%, -50%) rotateX(52deg) rotateY(0deg) rotateZ(-38deg);
}
.wall__col { display: flex; flex-direction: column; gap: 22px; animation: wallUp var(--dur, 36s) linear infinite; }
.wall__col--down { animation-name: wallDown; }
.wall-stage:hover .wall__col { animation-play-state: paused; }
.wall__tile {
    position: relative; height: 128px; display: grid; place-items: center; padding: 18px 22px; border-radius: 22px;
    background: linear-gradient(160deg, #fff, #f3f5f9); border: 1px solid rgba(11, 18, 32, .06);
    box-shadow: 0 1px 0 #fff inset, 0 24px 34px -20px rgba(11, 18, 32, .45), 0 2px 6px -2px rgba(11, 18, 32, .12);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.wall__tile img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(.25); transition: filter .3s; }
.wall__tile:hover { transform: translateZ(40px) translateY(-6px); box-shadow: 0 40px 50px -24px rgba(227, 36, 43, .45), 0 0 0 1px rgba(227, 36, 43, .25); z-index: 2; }
.wall__tile:hover img { filter: none; }
@keyframes wallUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 11px)); } }
@keyframes wallDown { from { transform: translateY(calc(-50% - 11px)); } to { transform: translateY(0); } }
.v3d:not(.v3d-light) .x-clients2 { background: #04050a; }
.v3d:not(.v3d-light) .wall-stage { background: radial-gradient(ellipse at 50% 40%, #171b2a, #06070d 70%); }
.v3d:not(.v3d-light) .clients2__stats b { color: #fff; }

/* ==================================================================
   کاتالوگ: کتاب ورق‌خوردنی (StPageFlip)
   ================================================================== */
.fb-shell { max-width: 1120px; margin-inline: auto; }
.fb-stage {
    position: relative; padding: clamp(18px, 3vw, 40px); border-radius: 34px;
    background: radial-gradient(ellipse at 50% 0%, #ffffff, #e8ebf3 80%); border: 1px solid rgba(11, 18, 32, .06);
    box-shadow: 0 50px 100px -60px rgba(11, 18, 32, .55), inset 0 1px 0 #fff;
}
.fb-stage::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 14px; height: 30px; border-radius: 50%; background: radial-gradient(ellipse, rgba(11, 18, 32, .3), transparent 70%); filter: blur(8px); z-index: 0; }
.flipbook { position: relative; z-index: 1; margin-inline: auto; }
/* پیش از آماده شدن کتاب یا اگر کتابخانه بارگذاری نشد: نوار افقی قابل کشیدن */
.flipbook:not(.is-ready) { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.flipbook:not(.is-ready) .fb-page { flex: 0 0 min(80%, 460px); scroll-snap-align: center; border-radius: 10px; overflow: hidden; }
.fb-page { background: #fff; }
.fb-page img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.stf__parent .fb-page { box-shadow: inset 0 0 30px rgba(0, 0, 0, .04); }
.fb-bar { display: flex; align-items: center; justify-content: center; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.fb-nav { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); background: #fff; border: 1px solid rgba(11, 18, 32, .08); box-shadow: 0 12px 26px -16px rgba(11, 18, 32, .5); transition: transform .25s var(--ease), background-color .25s, color .25s; }
.fb-nav:hover { background: var(--red); color: #fff; transform: scale(1.06); }
.fb-count { min-width: 92px; text-align: center; font-weight: 800; color: var(--ink); }
.fb-sep { width: 1px; height: 28px; background: rgba(11, 18, 32, .12); margin-inline: .4rem; }
.fb-thumbs { display: flex; justify-content: center; gap: 10px; margin-top: 1.3rem; overflow-x: auto; padding: 4px 4px 10px; scrollbar-width: none; }
.fb-thumbs::-webkit-scrollbar { display: none; }
.fb-thumb { position: relative; flex: none; width: 92px; aspect-ratio: 900 / 624; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: #fff; box-shadow: 0 8px 20px -12px rgba(11, 18, 32, .5); opacity: .7; transition: opacity .25s, transform .25s var(--ease), border-color .25s; }
.fb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fb-thumb span { position: absolute; bottom: 4px; inset-inline-start: 4px; padding: 0 .4rem; border-radius: 6px; background: rgba(11, 18, 32, .7); color: #fff; font-size: .72rem; font-weight: 700; }
.fb-thumb:hover { opacity: 1; transform: translateY(-2px); }
.fb-thumb.is-active { opacity: 1; border-color: var(--red); }
.fb-shell:fullscreen { max-width: none; display: flex; flex-direction: column; justify-content: center; padding: 24px; background: #eef0f6; }
.fb-shell:fullscreen .fb-stage { flex: 1; display: grid; place-items: center; }
.v3d:not(.v3d-light) .fb-stage { background: radial-gradient(ellipse at 50% 0%, #1a2032, #0a0d18 80%); border-color: rgba(255, 255, 255, .06); }
.v3d:not(.v3d-light) .fb-count { color: #fff; }

/* ==================================================================
   کرهٔ واقعی (globe.gl): لایهٔ WebGL روی کرهٔ بوم ساده
   ================================================================== */
.x-globe__gl { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.x-globe__gl canvas { width: 100% !important; height: 100% !important; }
.x-globe.is-real .x-globe__gl { opacity: 1; }
.x-globe.is-real > canvas { opacity: 0; transition: opacity .8s; }
.x-globe.is-real .x-globe__halo { opacity: .5; }
.globe-label { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #0b1220; font: 700 12px Vazir, Tahoma, sans-serif; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); transform: translate(-50%, -140%); pointer-events: none; }
.globe-label i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(227, 36, 43, .2); }

@media (max-width: 960px) {
    .clients2 { grid-template-columns: 1fr; }
    .wall-stage { height: 440px; }
    .wall { width: 700px; }
}
@media (max-width: 600px) {
    .wall-stage { height: 360px; border-radius: 26px; }
    .wall { width: 600px; gap: 14px; }
    .wall__col { gap: 14px; }
    .wall__tile { height: 92px; padding: 12px 14px; border-radius: 16px; }
    .fb-sep { display: none; }
    .fb-thumb { width: 72px; }
}
.globe-label--below { transform: translate(-50%, 45%); }
