/* ============================================================
   آرامش — شیشه‌ی مایع، تک‌رنگ
   کل سایت فقط از «یک رنگ» (--h) و درجه‌های روشن/تیره‌ی همان ساخته می‌شود.
   تم: <html data-theme="ocean | indigo | lavender | rose">
   ============================================================ */
:root, html[data-theme="ocean"] { --h: 212; --s: 50%; }
html[data-theme="indigo"]         { --h: 236; --s: 46%; }
html[data-theme="lavender"]       { --h: 262; --s: 40%; }
html[data-theme="rose"]           { --h: 340; --s: 46%; }

:root {
  /* درجه‌های یک رنگ */
  --p:  var(--h) var(--s) 33%;     /* اصلی */
  --pd: var(--h) var(--s) 21%;     /* تیره */
  --pm: var(--h) var(--s) 48%;     /* میانه */
  --pl: var(--h) calc(var(--s) + 8%) 90%;  /* روشن */
  --ink: var(--h) 32% 13%;         /* متن و تیتر */
  --primary: hsl(var(--p));
  --primary-dark: hsl(var(--pd));
  --accent: hsl(var(--pm));
  --deep: hsl(var(--ink));
  --text: hsl(var(--ink) / .92);
  --muted: hsl(var(--h) 12% 38%);
  --bg: hsl(var(--h) 30% 96%);
  --primary-soft: hsl(var(--pl) / .7);
  --accent-soft: hsl(var(--pl) / .5);
  --surface: #fff;
  --radius: 26px;
  --ease: cubic-bezier(.22, .8, .24, 1);

  /* شیشه */
  --glass-bg: linear-gradient(135deg, hsl(var(--h) 60% 99% / .52), hsl(var(--h) 50% 94% / .12));
  --glass-bg-strong: linear-gradient(135deg, hsl(var(--h) 60% 99% / .72), hsl(var(--h) 50% 94% / .3));
  --glass-border: rgba(255, 255, 255, .6);
  --glass-blur: blur(28px) saturate(1.7) brightness(1.04);
  --rim: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 -14px 24px -14px rgba(255, 255, 255, .45);
  --glass-shadow: 0 2px 20px hsl(var(--pd) / .07), var(--rim);
  --glass-shadow-lg: 0 8px 32px hsl(var(--pd) / .12), var(--rim);
  --shadow: 0 2px 20px hsl(var(--pd) / .07);
  --shadow-lg: 0 8px 32px hsl(var(--pd) / .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { font-family: 'Vazirmatn', Tahoma, sans-serif; color: var(--text); line-height: 1.9; -webkit-font-smoothing: antialiased; background: transparent; position: relative; }
a { text-decoration: none; color: inherit; }
.container { width: min(1140px, 92%); margin-inline: auto; }
::selection { background: hsl(var(--pm) / .35); color: var(--deep); }

/* پس‌زمینه‌ی هم‌رنگ و ملایم که از پشت شیشه دیده می‌شود */
body::before, body::after { content: ''; position: fixed; z-index: -1; pointer-events: none; }
body::before { inset: 0;
  background:
    radial-gradient(620px 520px at 10% 15%, hsl(var(--h) 65% 74% / .55), transparent 70%),
    radial-gradient(560px 480px at 90% 35%, hsl(var(--h) 55% 84% / .6), transparent 70%),
    radial-gradient(640px 520px at 45% 100%, hsl(var(--h) 60% 68% / .38), transparent 70%); }
body::after { width: 55vmax; height: 55vmax; top: 25%; left: -10vmax; border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--h) 60% 70% / .3), transparent 65%); animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(70vw, 15vh, 0) scale(1.2); } }

/* ---------- آیکن‌ها ---------- */
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex-shrink: 0; }
.ico-box { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 18px; color: var(--primary); flex-shrink: 0;
  background: linear-gradient(135deg, hsl(var(--pl) / .9), hsl(var(--pl) / .35)); border: 1px solid var(--glass-border); box-shadow: var(--rim); }
.ico-box .ico { width: 26px; height: 26px; }
.logo .ico { width: 1.2em; height: 1.2em; vertical-align: -.25em; }
.chat-icon .ico, .bell .ico { width: 24px; height: 24px; color: var(--primary); }
.section-title .ico, .about-card h2 .ico { width: 1.1em; height: 1.1em; margin-inline-end: .3em; }
.btn .ico { width: 1.05em; height: 1.05em; margin-inline-start: 4px; }

/* ---------- دکمه‌ها ---------- */
.btn { display: inline-block; padding: 10px 24px; border-radius: 999px; font-weight: 600; border: 1px solid var(--glass-border); transition: transform .3s var(--ease), translate .25s var(--ease), background .3s, color .3s, box-shadow .3s; translate: var(--bx, 0px) var(--by, 0px); cursor: pointer; font-family: inherit; font-size: .95rem; backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.btn-primary { color: #fff; border-color: rgba(255, 255, 255, .28);
  background: linear-gradient(180deg, hsl(var(--pm) / .95), hsl(var(--p) / .95));
  box-shadow: 0 3px 12px hsl(var(--pd) / .22), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-primary:hover { transform: translateY(-2px); background: linear-gradient(180deg, hsl(var(--pm)), hsl(var(--pd))); }
.btn-outline { color: var(--primary); background: var(--glass-bg); box-shadow: var(--rim); }
.btn-outline:hover { transform: translateY(-2px); background: var(--glass-bg-strong); }
.btn:active { transform: scale(.97); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

/* ---------- هدر: کپسول شیشه‌ای ---------- */
.site-header { position: sticky; top: 12px; z-index: 100; margin-top: 12px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; padding: 0 14px 0 22px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass-bg-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow); transition: background .35s, border-color .35s, box-shadow .35s; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 1.4rem; font-weight: 800; color: var(--primary); letter-spacing: -.5px; transition: color .3s; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--deep); font-weight: 600; font-size: .95rem; padding: 7px 16px; border-radius: 999px; transition: .25s; }
.nav a:hover { color: var(--primary); background: rgba(255, 255, 255, .6); box-shadow: inset 0 1px 0 #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.user-name { color: var(--deep); font-weight: 600; transition: color .3s; }
.user-name .ico { width: 1.1em; height: 1.1em; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--primary); }

/* هدر روی عکس هیرو: شیشه‌ی تیره‌ی شفاف با متن سفید */
.site-header.over-hero .header-inner { background: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06)); border-color: rgba(255, 255, 255, .32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.site-header.over-hero .logo, .site-header.over-hero .user-name, .site-header.over-hero .menu-toggle { color: #fff; }
.site-header.over-hero .nav a { color: rgba(255, 255, 255, .9); }
.site-header.over-hero .nav a:hover { color: #fff; background: rgba(255, 255, 255, .18); box-shadow: none; }
.site-header.over-hero .chat-icon .ico, .site-header.over-hero .bell .ico { color: #fff; }
.site-header.over-hero .btn-outline { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); box-shadow: none; }
.site-header.over-hero .btn-outline:hover { background: rgba(255, 255, 255, .9); color: var(--primary); }

/* ---------- هیرو ---------- */
.hero { position: relative; min-height: calc(100vh - 78px); display: flex; align-items: center; padding: 170px 0 150px; margin-top: -78px; overflow: hidden; isolation: isolate; background: hsl(var(--h) 40% 10%); }
.hero-bg { position: absolute; inset: -5%; z-index: -2; background: var(--hero-img) var(--hero-pos, center top) / cover no-repeat; transform: translate3d(var(--mx, 0px), var(--py, 0px), 0) scale(1.06); will-change: transform; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to left, hsl(var(--h) 40% 9% / .9) 0%, hsl(var(--h) 40% 9% / .66) 40%, hsl(var(--h) 40% 9% / .1) 100%), linear-gradient(to top, hsl(var(--h) 40% 9% / .7), transparent 45%); }
.hero-inner { position: relative; }
.hero-text { max-width: 640px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 18px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: .92rem; margin-bottom: 20px; backdrop-filter: blur(16px) saturate(1.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.hero-text h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.35; margin-bottom: 18px; color: #fff; font-weight: 800; }
.hero-text p { color: rgba(255, 255, 255, .86); font-size: 1.15rem; margin-bottom: 34px; max-width: 560px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { color: var(--primary-dark); background: rgba(255, 255, 255, .92); border-color: #fff; box-shadow: inset 0 1px 0 #fff; }
.hero .btn-primary:hover { background: #fff; }
.hero .btn-outline { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .24); }

/* ---------- سطح‌های شیشه‌ای ---------- */
.trust-grid, .card, .feature, .who, .faq-item, .auth-card, .about-badge, .step, .about-photo { border: 1px solid var(--glass-border); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.card, .feature, .who, .step, .faq-item, .trust-grid, .auth-card { --gx: 20%; --gy: 0%;
  background: radial-gradient(260px circle at var(--gx) var(--gy), rgba(255, 255, 255, .6), transparent 62%), var(--glass-bg);
  box-shadow: var(--glass-shadow); }

/* ---------- نوار اعتماد ---------- */
.trust { position: relative; z-index: 5; margin-top: -86px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; border-radius: 32px; padding: 16px; background: var(--glass-bg-strong); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 22px; transition: background .3s; }
.trust-item:hover { background: rgba(255, 255, 255, .5); }
.trust-item strong { display: block; color: var(--deep); line-height: 1.5; }
.trust-item small { color: var(--muted); }

/* ---------- بخش‌ها ---------- */
.section { padding: 90px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .12)); border-block: 1px solid rgba(255, 255, 255, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.section-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 48px; font-weight: 800; color: var(--deep); }
.section-title::after { content: ''; display: block; width: 56px; height: 4px; border-radius: 4px; margin: 14px auto 0; background: linear-gradient(90deg, var(--primary), hsl(var(--pm) / .35)); }

.cards, .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; perspective: 1200px; }
.card, .step { --rx: 0deg; --ry: 0deg; --ty: 0px; position: relative; border-radius: var(--radius); padding: 36px 26px; text-align: center;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty)); transition: transform .35s var(--ease), box-shadow .35s var(--ease); will-change: transform; }
.card:hover, .step:hover { --ty: -6px; box-shadow: var(--glass-shadow-lg); }
.card-icon { width: 80px; height: 80px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; border-radius: 26px; color: var(--primary);
  background: linear-gradient(135deg, hsl(var(--pl) / .95), hsl(var(--pl) / .4)); border: 1px solid var(--glass-border); box-shadow: var(--rim); animation: floaty 5s ease-in-out infinite; }
.card-icon .ico { width: 36px; height: 36px; }
.cards .card:nth-child(2) .card-icon { animation-delay: -1.6s; }
.cards .card:nth-child(3) .card-icon { animation-delay: -3.2s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.card h3, .step h3 { margin-bottom: 8px; color: var(--deep); }
.card p, .step p { color: var(--muted); margin-bottom: 20px; }
.step p { margin-bottom: 0; }
.step span { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; color: #fff; border-radius: 50%; font-weight: 700; font-size: 1.2rem; margin-bottom: 12px;
  background: linear-gradient(180deg, hsl(var(--pm)), hsl(var(--p))); border: 1px solid rgba(255, 255, 255, .45); box-shadow: 0 3px 10px hsl(var(--pd) / .2), inset 0 1px 0 rgba(255, 255, 255, .4); }

/* ---------- درباره (صفحه اصلی) ---------- */
.about-teaser { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.about-photo { --rx: 0deg; --ry: 0deg; position: relative; aspect-ratio: 4 / 5; border-radius: 200px 200px 32px 32px; overflow: hidden; border-width: 3px; box-shadow: var(--glass-shadow-lg); transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .4s var(--ease); background: var(--primary-soft); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, center top); display: block; }
.about-badge { position: absolute; bottom: 16px; right: 16px; left: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 22px; background: var(--glass-bg-strong); color: var(--primary); font-weight: 700; box-shadow: var(--rim); }
.eyebrow-dark { display: inline-block; color: var(--primary); font-weight: 700; margin-bottom: 8px; letter-spacing: .5px; }
.about-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.5; color: var(--deep); margin-bottom: 14px; }
.about-copy > p { color: var(--muted); margin-bottom: 18px; }
.check-list { list-style: none; margin-bottom: 20px; }
.check-list li { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-weight: 500; }
.check-list .ico { color: var(--primary); width: 1.3em; height: 1.3em; }
.about-copy .tags { margin-bottom: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { background: hsl(var(--pl) / .6); border: 1px solid var(--glass-border); color: var(--primary); padding: 6px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }

/* ---------- رویکردها / مخاطبان ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; perspective: 1200px; }
.feature { --rx: 0deg; --ry: 0deg; --ty: 0px; border-radius: var(--radius); padding: 28px 24px; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty)); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.feature:hover { --ty: -5px; box-shadow: var(--glass-shadow-lg); }
.feature h3 { margin: 16px 0 8px; color: var(--deep); font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: .95rem; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.who { display: flex; align-items: center; gap: 16px; border-radius: 24px; padding: 20px; transition: transform .3s var(--ease), box-shadow .3s; }
.who:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow-lg); }
.who p { color: var(--text); font-weight: 500; }

/* ---------- سوالات متداول ---------- */
.faq { max-width: 780px; }
.faq-item { border-radius: 22px; margin-bottom: 12px; transition: box-shadow .3s, background .3s; }
.faq-item[open] { box-shadow: var(--glass-shadow-lg); background: var(--glass-bg-strong); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; font-weight: 700; color: var(--deep); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { color: var(--primary); transition: transform .3s var(--ease); }
.faq-item[open] summary .ico { transform: rotate(180deg); }
.faq-item p { padding: 0 24px 20px; color: var(--muted); }

/* ---------- دعوت نهایی و فوتر ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 90px 0;
  background: radial-gradient(520px 320px at 85% 0%, hsl(var(--pm) / .45), transparent 70%), linear-gradient(135deg, hsl(var(--h) 45% 12%), hsl(var(--pd))); }
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .8); margin-bottom: 26px; }
.cta-band .btn-primary { color: var(--primary-dark); background: rgba(255, 255, 255, .92); border-color: #fff; box-shadow: inset 0 1px 0 #fff; }
.site-footer { background: hsl(var(--h) 45% 11%); color: rgba(255, 255, 255, .72); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; padding-bottom: 36px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; }
.site-footer h4 .ico { color: hsl(var(--h) 55% 70%); }
.site-footer a { display: block; margin-bottom: 6px; transition: .2s; }
.site-footer a:hover { color: #fff; transform: translateX(-4px); }
.copyright { text-align: center; padding: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }

/* ---------- ورود و ثبت‌نام ---------- */
.auth-section { min-height: calc(100vh - 78px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { width: min(440px, 100%); border-radius: 34px; padding: 40px 34px; background: var(--glass-bg-strong); box-shadow: var(--glass-shadow-lg); animation: rise .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-icon { width: 70px; height: 70px; margin: 0 auto 8px; border-radius: 24px; display: flex; align-items: center; justify-content: center; color: var(--primary);
  background: linear-gradient(135deg, hsl(var(--pl) / .95), hsl(var(--pl) / .4)); border: 1px solid var(--glass-border); box-shadow: var(--rim); }
.auth-icon .ico { width: 32px; height: 32px; }
.auth-head h1 { font-size: 1.55rem; margin: 6px 0; color: var(--deep); }
.auth-head p { color: var(--muted); font-size: .95rem; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--deep); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 18px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px; font-family: inherit; font-size: 1rem; color: var(--text);
  background: rgba(255, 255, 255, .45); box-shadow: inset 0 2px 5px hsl(var(--pd) / .07), inset 0 1px 0 rgba(255, 255, 255, .9); transition: .25s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; background: rgba(255, 255, 255, .8); border-color: hsl(var(--pm) / .7); box-shadow: 0 0 0 4px hsl(var(--pm) / .16), inset 0 1px 0 #fff; }
.form-group input[dir="ltr"] { text-align: right; }
.error { display: block; color: #c0392b; font-size: .83rem; margin-top: 5px; }
.password-wrap { position: relative; }
.password-wrap input { padding-left: 46px; }
.toggle-pass { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 1.1rem; opacity: .6; }
.toggle-pass:hover { opacity: 1; }
.btn-block { display: block; width: 100%; padding: 14px; font-size: 1.05rem; margin-top: 10px; text-align: center; }
.auth-switch { text-align: center; margin-top: 20px; color: var(--muted); font-size: .93rem; }
.auth-switch a { color: var(--primary); font-weight: 700; }

/* ---------- پیام‌ها ---------- */
.messages { width: min(1140px, 92%); margin: 14px auto 0; }
.alert { padding: 13px 20px; border-radius: 20px; margin-bottom: 10px; font-size: .95rem; transition: opacity .4s; border: 1px solid var(--glass-border); backdrop-filter: var(--glass-blur); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.alert-success { background: hsl(var(--pl) / .75); color: var(--primary-dark); }
.alert-info { background: hsl(var(--pl) / .55); color: var(--primary-dark); }
.alert-error { background: rgba(255, 215, 215, .7); color: #a8322a; }

/* ---------- زنگوله و چت ---------- */
.bell { position: relative; font-size: 1.4rem; line-height: 1; padding: 6px 8px; }
.bell-badge { position: absolute; top: -4px; left: -2px; min-width: 18px; height: 18px; padding: 0 5px; background: #e74c3c; color: #fff; font-size: .72rem; font-weight: 700; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.chat-icon { position: relative; font-size: 20px; text-decoration: none; }
.chat-badge { position: absolute; top: -8px; left: -10px; background: #e53935; color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.notif-card { text-align: right; margin-bottom: 14px; }
.notif-new { border-right: 4px solid var(--primary); }
.notif-time { color: var(--muted); }

/* ---------- درباره ما ---------- */
.about-wrap { max-width: 820px; }
.about-head { text-align: center; margin-bottom: 30px; }
.about-head h1 { font-size: 2rem; margin: 6px 0; color: var(--deep); }
.about-sub { color: var(--muted); }
.about-card { text-align: right; margin-bottom: 20px; padding: 30px; }
.about-card:hover { --ty: 0px; }
.about-card h2 { font-size: 1.25rem; margin-bottom: 14px; color: var(--primary); }
.about-card p { color: var(--text); margin-bottom: 0; }
.about-list { padding-right: 20px; line-height: 2.2; }
.approach { padding: 14px 0; border-bottom: 1px solid hsl(var(--p) / .1); }
.approach:last-child { border-bottom: 0; }
.approach h3 { font-size: 1.05rem; margin-bottom: 6px; }
.approach p { color: var(--muted); }
.about-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 10px; }

/* ---------- انتخاب‌گر رنگ (پیش‌نمایش) ---------- */
.theme-picker { position: fixed; bottom: 18px; left: 18px; z-index: 200; display: flex; gap: 10px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass-bg-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow); }
.theme-picker button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; transition: transform .25s var(--ease); }
.theme-picker button:hover { transform: scale(1.18); }
.theme-picker button.on { outline: 2px solid var(--primary-dark); outline-offset: 2px; }

/* ============ موشن اسکرول ============ */
/* ظاهر شدن عناصر */
.js .reveal { opacity: 0; translate: 0 44px; scale: .96; transition: opacity 1s var(--ease), translate 1s var(--ease), scale 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; translate: 0 0; scale: 1; }

/* نوار پیشرفت اسکرول */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; transform-origin: right; transform: scaleX(0); background: linear-gradient(to left, hsl(var(--pm)), hsl(var(--h) 65% 78%)); pointer-events: none; }

/* هدر: ورود نرم و پنهان شدن هنگام اسکرول به پایین */
.site-header { transition: transform .6s var(--ease); }
.site-header.hide { transform: translateY(-150%); }
.js .header-inner { animation: headerIn 1s var(--ease) both; }
@keyframes headerIn { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }

/* تیترها: ظاهر شدن کلمه‌به‌کلمه از پشت ماسک */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .18em 0; margin: -.18em 0; }
.split .wi { display: inline-block; transform: translateY(120%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--base, 0ms) + var(--i, 0) * 80ms); will-change: transform; }
.split.in .wi { transform: none; }
.js .section-title.split::after { transform: scaleX(0); transition: transform 1.2s var(--ease) .5s; }
.js .section-title.split.in::after { transform: scaleX(1); }

/* خط پیشرفت مراحل رزرو که با اسکرول پر می‌شود */
@media (min-width: 900px) {
  .steps { position: relative; }
  .steps::before, .steps::after { content: ''; position: absolute; top: 62px; right: 12%; left: 12%; height: 2px; border-radius: 2px; z-index: 0; }
  .steps::before { background: hsl(var(--p) / .14); }
  .steps::after { background: linear-gradient(to left, hsl(var(--p)), hsl(var(--pm))); transform-origin: right; transform: scaleX(var(--sp, 0)); }
  .steps .step { z-index: 1; }
}
.hero-text, .about-photo img { will-change: transform; }
.about-photo img { transform: scale(1); }
.about-photo { aspect-ratio: 3 / 4; }

/* ---------- موبایل ---------- */
@media (max-width: 800px) {
  .menu-toggle { display: block; }
  .header-inner { padding: 0 12px 0 16px; }
  .nav { display: none; position: absolute; top: 76px; right: 0; left: 0; flex-direction: column; padding: 14px; gap: 6px; border-radius: 28px; border: 1px solid var(--glass-border); background: var(--glass-bg-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow-lg); }
  .nav.open { display: flex; animation: rise .35s var(--ease); }
  .site-header.over-hero .nav a { color: var(--deep); }
  .header-actions .btn { padding: 6px 14px; font-size: .9rem; }
  .user-name { display: none; }
  .hero { padding: 150px 0 130px; }
  .hero::before { background: linear-gradient(to top, hsl(var(--h) 40% 9% / .94), hsl(var(--h) 40% 9% / .55)); }
  .hero-text { text-align: center; margin-inline: auto; }
  .hero-text p { margin-inline: auto; }
  .hero-text h1 { font-size: 2rem; }
  .hero-buttons { justify-content: center; }
  .section { padding: 64px 0; }
  .about-teaser { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 340px; margin-inline: auto; }
  .auth-card { padding: 30px 22px; }
  .theme-picker { bottom: 12px; left: 12px; }
}
@supports not (backdrop-filter: blur(1px)) {
  .trust-grid, .card, .feature, .who, .faq-item, .auth-card, .header-inner, .step { background: rgba(255, 255, 255, .88); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: 0 0; scale: 1; }
  .split .wi { transform: none; }
}



/* ============================================================
   اصلاحات موبایل
   ============================================================ */
.nav-mobile-only { display: none; }

@media (max-width: 800px) {
  /* --- کارایی: سبک‌تر کردن شیشه و انیمیشن‌ها --- */
  :root { --glass-blur: blur(12px) saturate(1.3); --radius: 22px; }
  body::after { display: none; }
  .card-icon { animation: none; }
  .card, .feature, .step, .about-photo { will-change: auto; }

  /* --- لمس: حداقل ۴۴px --- */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; line-height: 1.5; }
  .btn-block { display: flex; }

  /* --- هدر --- */
  .site-header { top: 8px; margin-top: 8px; }
  .header-inner { height: 58px; gap: 6px; padding: 0 8px 0 12px; }
  .logo { font-size: 1.2rem; }
  .header-actions { gap: 4px; margin-inline-start: auto; }
  .hide-mobile { display: none !important; }
  .chat-icon, .bell { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 1.5rem; line-height: 1; border-radius: 50%; }

  /* --- منوی بازشونده --- */
  .nav { top: calc(100% + 8px); right: 4%; left: 4%; }
  .nav a, .nav-mobile-only button { padding: 12px 16px; font-size: 1rem; }
  .nav-mobile-only { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding-top: 10px; border-top: 1px solid hsl(var(--p) / .12); }
  .nav-mobile-only a, .nav-mobile-only button { display: block; width: 100%; text-align: right; font: inherit; font-weight: 600; color: var(--deep); background: none; border: 0; border-radius: 999px; cursor: pointer; }
  .nav-mobile-only button { color: #a8322a; }
  .nav-mobile-only a:active, .nav-mobile-only button:active { background: rgba(255, 255, 255, .6); }

  /* --- هیرو --- */
  .hero { min-height: 100vh; min-height: 100svh; margin-top: -66px; padding: 120px 0 150px; }
  .hero-eyebrow { font-size: .82rem; padding: 6px 14px; border-radius: 18px; line-height: 1.7; }
  .hero-text h1 { font-size: clamp(1.8rem, 8vw, 2.2rem); }
  .hero-text p { font-size: 1.02rem; margin-bottom: 26px; }
  .hero-buttons { flex-direction: column; gap: 10px; }
  .hero-buttons .btn-lg { width: 100%; padding: 13px 20px; }

  /* --- نوار اعتماد: ۲×۲ فشرده --- */
  .trust { margin-top: -70px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; border-radius: 26px; }
  .trust-item { flex-direction: column; text-align: center; gap: 6px; padding: 12px 6px; }
  .trust-item .ico-box { width: 44px; height: 44px; border-radius: 15px; }
  .trust-item .ico-box .ico { width: 22px; height: 22px; }
  .trust-item strong { font-size: .92rem; }
  .trust-item small { display: block; font-size: .78rem; line-height: 1.5; }

  /* --- بخش‌ها و کارت‌ها --- */
  .section { padding: 56px 0; }
  .section-title { margin-bottom: 30px; }
  .cards, .steps { gap: 16px; }
  .features, .who-grid { gap: 14px; }
  .card, .step { padding: 26px 20px; }
  .feature { padding: 22px 20px; }
  .about-teaser { gap: 28px; }
  .faq-item summary { padding: 16px 18px; min-height: 44px; }
  .faq-item p { padding: 0 18px 18px; }
  .cta-band { padding: 60px 0; }
  .cta-band .btn { width: 100%; max-width: 360px; }

  /* --- فوتر --- */
  .site-footer { padding-top: 44px; }
  .footer-grid { gap: 22px; padding-bottom: 24px; }
  .site-footer a { padding: 4px 0; }

  /* --- فرم‌ها و ورود/ثبت‌نام --- */
  .auth-section { min-height: auto; padding: 24px 12px 48px; }
  .auth-card { padding: 28px 18px; border-radius: 28px; }
  .form-group input, .form-group select, .form-group textarea { padding: 12px 14px; font-size: 16px; } /* جلوگیری از زوم iOS */

  /* --- انتخابگر رنگ (پیش‌نمایش) --- */
  .theme-picker { padding: 6px 10px; gap: 8px; opacity: .9; }
}

/* گوشی‌های کوچک */
@media (max-width: 400px) {
  .logo { font-size: 1.1rem; }
  .header-actions .btn { padding: 4px 10px; font-size: .85rem; }
}

/* دستگاه‌های لمسی: بدون حالت hover چسبنده */
@media (hover: none) {
  .card:hover, .step:hover, .feature:hover { --ty: 0px; }
  .who:hover, .btn-primary:hover, .btn-outline:hover { transform: none; }
}




.video-icon { position: relative; }
.call-dot { position: absolute; top: -2px; left: -2px; width: 10px; height: 10px; border-radius: 50%;
  background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); animation: callPulse 1.6s infinite; }
@keyframes callPulse { 70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }
