/* صفحه‌ی اصلی Univoa — هم‌سبک با تصویر شاخص: آسمان غروب بنفش، لوگوی سه‌بعدی U و کارت‌های شیشه‌ای شناور.
   حرکت فقط با اشاره‌گر دقیق (ماوس) و بدون «کاهش حرکت» فعال می‌شود. */
.hm-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.6rem, 6vw, 4.6rem);
  background:
    radial-gradient(620px 380px at 78% 105%, rgba(255, 158, 122, .42), transparent 65%),
    radial-gradient(700px 420px at 8% -10%, rgba(192, 77, 255, .38), transparent 62%),
    radial-gradient(520px 320px at 100% 0%, rgba(92, 200, 255, .22), transparent 60%),
    linear-gradient(165deg, #130A38 0%, #2A1272 48%, #5B2BD8 100%); }
.hm-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .45;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1.4px); background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%); mask-image: linear-gradient(180deg, #000, transparent 78%); }
.hm-bloom { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.hm-bloom.b1 { width: 360px; height: 360px; inset-block-start: -120px; inset-inline-start: -80px; background: rgba(214, 110, 255, .35); }
.hm-bloom.b2 { width: 300px; height: 300px; inset-block-end: -110px; inset-inline-end: 30%; background: rgba(255, 158, 122, .28); }

.hm-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(1.2rem, 4vw, 3.2rem); align-items: center; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; padding: .4rem 1rem; border-radius: 999px; font-size: .9rem;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hm-eyebrow .ic { color: #FFD9A0; width: 1.05em; height: 1.05em; }
.hm-copy h1 { display: grid; gap: .15rem; margin: 0; font-weight: 800; line-height: 1.35; }
.hm-brand { font-size: clamp(2.9rem, 8vw, 4.8rem); letter-spacing: -.02em; line-height: 1.1; font-family: "Vazirmatn", system-ui, sans-serif; }
.hm-line { font-size: clamp(1.45rem, 3.6vw, 2.35rem); font-weight: 700; color: rgba(255, 255, 255, .94); }
.hm-line em { font-style: normal; background: linear-gradient(100deg, #C9A8FF, #FF9ED2 70%, #FFC38A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-motto { margin: 1.1rem 0 .4rem; font-weight: 700; font-size: 1.05rem; color: #E6D9FF; letter-spacing: .01em; }
.hm-lead { margin: 0 0 1.5rem; max-width: 54ch; color: rgba(255, 255, 255, .8); line-height: 2; }

.hm-search { display: flex; align-items: center; gap: .4rem; max-width: 540px; padding: .35rem; border-radius: 18px; background: rgba(255, 255, 255, .97); color: #1B1340;
  box-shadow: 0 18px 44px rgba(10, 4, 32, .42); }
.hm-search .ic { flex: none; margin-inline-start: .8rem; color: #6D3CF0; }
.hm-search input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font: inherit; font-size: 1rem; color: #1B1340; padding: .4rem .3rem; outline: 0; }
.hm-search input::placeholder { color: #7F79A6; }
.hm-search button { flex: none; min-height: 48px; border: 0; border-radius: 13px; padding: 0 1.5rem; background: linear-gradient(135deg, #6D3CF0, #A24DFF); color: #fff; font: inherit; font-weight: 800; cursor: pointer; transition: filter .15s; }
.hm-search button:hover { filter: brightness(1.1); }
.hm-search:focus-within { box-shadow: 0 0 0 3px rgba(255, 185, 92, .85), 0 18px 44px rgba(10, 4, 32, .42); }

.hm-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: 0 1.5rem; border-radius: 999px; font-weight: 800; font-size: 1rem; transition: transform .15s, box-shadow .15s, background .15s; }
.hm-btn .ic { width: 1.15em; height: 1.15em; }
.hm-btn-main { background: linear-gradient(135deg, #7B4DFF, #A24DFF); color: #fff; box-shadow: 0 10px 26px rgba(124, 77, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.hm-btn-main .ic { transform: scaleX(-1); }
.hm-btn-main:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(124, 77, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.hm-btn-glass { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hm-btn-glass:hover { background: rgba(255, 255, 255, .2); }
.hm-hero a:focus-visible, .hm-hero button:focus-visible { outline: 3px solid #FFD9A0; outline-offset: 3px; }

.hm-stats { list-style: none; display: inline-flex; flex-wrap: wrap; gap: .4rem 1.8rem; margin: 1.7rem 0 0; padding: .8rem 1.3rem; border-radius: 20px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hm-stats li { display: grid; gap: 0; }
.hm-stats b { font-size: 1.45rem; line-height: 1.4; }
.hm-stats span { color: rgba(255, 255, 255, .75); font-size: .82rem; }

/* صحنه: تصویر شاخص + کارت‌های شیشه‌ای */
.hm-stage { perspective: 1400px; display: grid; place-items: center; }
.hm-scene { --rx: 0deg; --ry: 0deg; position: relative; width: min(540px, 100%); transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s ease-out; }
.hm-glow { position: absolute; inset: 10% 4% 0; border-radius: 50%; filter: blur(52px); opacity: .9; transform: translateZ(-60px);
  background: radial-gradient(circle, rgba(162, 77, 255, .65), rgba(255, 158, 122, .3) 55%, transparent 72%); }
.hm-art { display: block; position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 570 / 495; box-shadow: 0 34px 70px rgba(8, 3, 28, .55), 0 0 0 1px rgba(255, 255, 255, .22);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%); mask-image: linear-gradient(90deg, transparent 0, #000 9%); }
.hm-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-card { position: absolute; display: flex; align-items: center; gap: .75rem; width: min(260px, 62%); min-height: 64px; padding: .75rem .9rem; border-radius: 20px; color: #fff;
  background: linear-gradient(150deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .09)); border: 1px solid rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 22px 44px rgba(10, 4, 32, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
  transform: translateZ(var(--z, 40px)); animation: hm-float 7s ease-in-out infinite; transition: background .2s, border-color .2s; }
.hm-card:hover { background: linear-gradient(150deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .14)); border-color: rgba(255, 255, 255, .6); }
.hm-ctext { display: grid; gap: .1rem; min-width: 0; }
.hm-ctext b { font-size: .95rem; line-height: 1.5; }
.hm-ctext small { color: rgba(255, 255, 255, .82); font-size: .76rem; line-height: 1.55; }
.hm-tile { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #8E5CFF, #5524D6); box-shadow: 0 8px 18px rgba(90, 40, 214, .5); }
.hm-tile-2 { background: linear-gradient(145deg, #5CC8FF, #2F8FE0); box-shadow: 0 8px 18px rgba(47, 143, 224, .5); }
.hm-tile-3 { background: linear-gradient(145deg, #FFB95C, #FF7A8A); box-shadow: 0 8px 18px rgba(255, 122, 138, .45); }
.hm-tile .ic { width: 22px; height: 22px; }
.hm-c1 { inset-block-start: 4%; inset-inline-end: -4%; }
.hm-c2 { inset-block-start: 40%; inset-inline-start: -7%; animation-delay: -2.3s; }
.hm-c3 { inset-block-end: 5%; inset-inline-end: -3%; animation-delay: -4.6s; }
@keyframes hm-float { 50% { transform: translateZ(calc(var(--z, 40px) + 14px)) translateY(-9px); } }

/* مسیرهای چهارگانه */
.hm-paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: -2.6rem !important; position: relative; z-index: 2; }
.hm-path { display: grid; grid-template-columns: auto 1fr; gap: .1rem .85rem; align-items: center; min-height: 84px; padding: .9rem 1.1rem; border-radius: 20px; color: var(--ink);
  background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-md); transition: transform .18s, border-color .18s; }
.hm-path:hover, .hm-path:focus-visible { transform: translateY(-3px); border-color: var(--brand); }
.hm-path-ic { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #fff; background: var(--grad-brand, linear-gradient(135deg, #6D3CF0, #C04DFF)); box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 40%, transparent); }
.hm-path:nth-child(2) .hm-path-ic { background: linear-gradient(135deg, #5CC8FF, #2F8FE0); }
.hm-path:nth-child(3) .hm-path-ic { background: linear-gradient(135deg, #8E5CFF, #5524D6); }
.hm-path:nth-child(4) .hm-path-ic { background: linear-gradient(135deg, #FFB95C, #FF7A8A); }
.hm-path b { font-size: 1.05rem; align-self: end; }
.hm-path small { color: var(--ink-soft); font-size: .8rem; line-height: 1.6; align-self: start; }

/* بخش‌ها: کارت‌های سه‌بعدی با ردگیری اشاره‌گر */
.hm-cats .cat-card { transition: transform .18s ease-out, box-shadow .2s, border-color .2s; transform: perspective(800px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(var(--lift, 0px)); will-change: transform; }
.hm-cats .cat-card:hover, .hm-cats .cat-card:focus-visible { --lift: -4px; box-shadow: 0 22px 40px color-mix(in srgb, var(--c) 28%, rgba(27, 19, 64, .18)); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }

@media (max-width: 1000px) { .hm-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .hm-grid { grid-template-columns: 1fr; }
  .hm-stage { margin-top: .5rem; }
  .hm-scene { width: min(480px, 100%); }
  .hm-c1 { inset-inline-end: 0; } .hm-c2 { inset-inline-start: 0; } .hm-c3 { inset-inline-end: 0; }
}
@media (max-width: 600px) {
  .hm-hero { padding-bottom: 3.4rem; }
  .hm-search { padding: .3rem; }
  .hm-search button { padding: 0 1.1rem; }
  .hm-actions .hm-btn { flex: 1 1 100%; }
  .hm-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: .4rem; padding: .7rem .9rem; text-align: center; }
  .hm-stats b { font-size: 1.2rem; }
  /* کارت‌ها روی موبایل زیر تصویر می‌نشینند تا روی هم نیفتند */
  .hm-scene { transform: none !important; }
  .hm-art { -webkit-mask-image: none; mask-image: none; }
  .hm-card { position: relative; inset: auto !important; width: 100%; margin-top: .6rem; animation: none; transform: none; }
  .hm-glow { inset: 0 5% 30%; }
  .hm-paths { gap: .7rem; margin-top: -2rem !important; }
  .hm-path { grid-template-columns: 1fr; justify-items: start; gap: .35rem; min-height: 120px; padding: .9rem; }
  .hm-path-ic { grid-row: auto; width: 42px; height: 42px; }
}
@media (max-width: 340px) { .hm-paths { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hm-card { animation: none; } .hm-scene, .hm-cats .cat-card, .hm-path, .hm-btn { transition: none; } }
