/*
 * آلا · قالب معرفی (اتود C)
 * همه کلاس‌ها با پیشوند am- هستند تا با ویجت آلا و افزونه‌ها تداخل نداشته باشند.
 */

@font-face { font-family: "DanaFaNum"; src: url("../fonts/DanaFaNum-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DanaFaNum"; src: url("../fonts/DanaFaNum-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DanaFaNum"; src: url("../fonts/DanaFaNum-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* پالت رسمی اتود C (Dark) */
  --am-canvas: #06202D;
  --am-canvas-2: #051A25;
  --am-surface: #0E3C4A;
  --am-raised: #134B5B;
  --am-subtle: #0A2E3B;
  --am-border: #1E5666;
  --am-border-strong: #6A97A1;
  --am-ink: #E8FFF7;
  --am-ink-2: #B4D3D6;
  --am-ink-3: #9BBDC3;
  --am-cta: #077672;
  --am-cta-hover: #066B67;
  --am-accent: #0A8A86;
  --am-mint: #32D7AA;
  --am-mint-2: #7CF2D0;
  --am-mint-soft: rgba(50, 215, 170, .14);
  --am-grad: linear-gradient(135deg, #32D7AA, #7CF2D0);
  --am-grad-text: linear-gradient(100deg, #7CF2D0 0%, #32D7AA 45%, #A8FBE3 100%);
  --am-focus: 0 0 0 2px #06202D, 0 0 0 4px #7CF2D0;

  --am-font: "DanaFaNum", "Vazirmatn", Tahoma, system-ui, sans-serif;
  --am-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --am-r-chip: 6px;
  --am-r-ctrl: 10px;
  --am-r-card: 16px;
  --am-r-xl: 24px;
  --am-r-pill: 999px;

  --am-sh-pop: 0 24px 64px rgba(0, 0, 0, .45);
  --am-glow: 0 0 0 1px rgba(124, 242, 208, .18), 0 12px 40px rgba(50, 215, 170, .18);

  --am-container: 1200px;
  --am-header-h: 72px;
  --am-ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--am-header-h) + 16px); -webkit-text-size-adjust: 100%; }

body.am-body {
  position: relative;
  margin: 0;
  background: var(--am-canvas);
  color: var(--am-ink);
  font-family: var(--am-font);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

:where(.am-body) img, :where(.am-body) svg { max-width: 100%; height: auto; display: block; }
:where(.am-body) a { color: var(--am-mint-2); text-decoration: none; }
:where(.am-body) a:hover { color: #A8FBE3; }
.am-body :focus-visible { outline: none; box-shadow: var(--am-focus); border-radius: 8px; }
:where(.am-body) :is(h1, h2, h3, h4) { margin: 0; font-weight: 700; line-height: 1.45; color: var(--am-ink); }
:where(.am-body) p { margin: 0; }
.am-body bdi[dir="ltr"], .am-ltr { direction: ltr; unicode-bidi: isolate; }

.am-skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--am-cta); color: #fff; padding: 10px 16px; border-radius: var(--am-r-ctrl); }
.am-skip:focus { top: 12px; color: #fff; }

.am-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.am-container { width: 100%; max-width: var(--am-container); margin-inline: auto; padding-inline: 24px; }

/* ---------- پس‌زمینه سراسری ---------- */
.am-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background:
  radial-gradient(1200px 600px at 85% -10%, rgba(50, 215, 170, .16), transparent 60%),
  radial-gradient(900px 500px at 0% 30%, rgba(10, 138, 134, .14), transparent 65%),
  linear-gradient(180deg, #06202D 0%, #051A25 100%); }
.am-bg::after { content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(124, 242, 208, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 242, 208, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); }

/* ---------- دکمه‌ها ---------- */
.am-btn { --pad: 12px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: var(--pad); min-height: 46px;
  border-radius: var(--am-r-ctrl); border: 1px solid transparent; font: 500 15px/1.4 var(--am-font); cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--am-ease), border-color .2s var(--am-ease), transform .2s var(--am-ease), box-shadow .2s var(--am-ease), color .2s; }
.am-btn svg { width: 18px; height: 18px; flex: none; }
.am-btn--primary { background: var(--am-cta); color: #fff !important; border-color: rgba(124, 242, 208, .35);
  box-shadow: 0 0 0 1px rgba(124, 242, 208, .08) inset, 0 10px 30px rgba(7, 118, 114, .45); }
.am-btn--primary:hover { background: var(--am-cta-hover); color: #fff !important; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(124, 242, 208, .25) inset, 0 14px 40px rgba(50, 215, 170, .35); }
.am-btn--ghost { background: rgba(232, 255, 247, .04); color: var(--am-ink) !important; border-color: var(--am-border); }
.am-btn--ghost:hover { border-color: var(--am-mint); background: var(--am-mint-soft); color: var(--am-ink) !important; }
.am-btn--lg { --pad: 15px 28px; min-height: 54px; font-size: 16px; font-weight: 700; border-radius: 12px; }
.am-btn--block { width: 100%; }
.am-btn .am-ico-dir { transform: scaleX(-1); }

/* ---------- هدر ---------- */
.am-header { position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--am-header-h); transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.am-header.is-scrolled { background: rgba(6, 32, 45, .72); border-bottom-color: rgba(30, 86, 102, .7); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
.am-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.am-brand { display: inline-flex; align-items: center; flex: none; }
.am-brand img { height: 52px; width: auto; }
.am-nav { flex: 1; }
.am-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.am-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; color: var(--am-ink-2); font-weight: 500; font-size: 15px; transition: color .2s, background-color .2s; }
.am-nav a:hover, .am-nav a.is-active { color: var(--am-ink); background: rgba(232, 255, 247, .06); }
.am-nav a svg { width: 14px; height: 14px; opacity: .7; }
.am-header__cta { display: flex; align-items: center; gap: 10px; }
.am-burger { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--am-border); background: rgba(232, 255, 247, .04); color: var(--am-ink); cursor: pointer; align-items: center; justify-content: center; }
.am-burger span, .am-burger span::before, .am-burger span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--am-ease), opacity .2s; }
.am-burger span::before, .am-burger span::after { content: ""; position: absolute; inset-inline-start: 0; }
.am-burger span::before { top: -6px; } .am-burger span::after { top: 6px; }
.am-nav-open .am-burger span { background: transparent; }
.am-nav-open .am-burger span::before { transform: translateY(6px) rotate(45deg); }
.am-nav-open .am-burger span::after { transform: translateY(-6px) rotate(-45deg); }

.am-drawer { position: fixed; inset: var(--am-header-h) 0 0 0; z-index: 49; background: rgba(5, 26, 37, .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  padding: 24px; display: flex; flex-direction: column; gap: 8px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s var(--am-ease), transform .3s var(--am-ease), visibility .3s; }
.am-nav-open .am-drawer { opacity: 1; transform: none; visibility: visible; }
.am-drawer a:not(.am-btn) { display: flex; justify-content: space-between; align-items: center; padding: 16px 8px; font-size: 18px; font-weight: 500; color: var(--am-ink); border-bottom: 1px solid var(--am-border); min-height: 44px; }
.am-drawer .am-btn { margin-top: 16px; }
.am-drawer a:not(.am-btn) svg { width: 20px; height: 20px; flex: none; color: var(--am-mint-2); opacity: .8; }
.am-drawer a:not(.am-btn):not([target]) svg { transform: scaleX(-1); }
.am-nav-open { overflow: hidden; }

/* ---------- هیرو ---------- */
.am-hero { position: relative; min-height: 100vh; min-height: 100svh; padding-top: calc(var(--am-header-h) + 40px); padding-bottom: 72px; display: flex; align-items: center; overflow: hidden; }
.am-hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 32px; align-items: center; }
.am-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: var(--am-r-pill); background: rgba(14, 60, 74, .6); border: 1px solid var(--am-border); color: var(--am-ink-2); font-size: 13px; font-weight: 500; }
.am-eyebrow b { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--am-r-pill); background: var(--am-grad); color: #06202D; font-size: 12px; font-weight: 700; }
.am-hero h1 { margin-top: 22px; font-size: clamp(32px, 4.3vw, 58px); line-height: 1.35; letter-spacing: -.5px; text-wrap: balance; }
.am-hero h1 .am-grad-text { display: inline-block; }
.am-grad-text { background: var(--am-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; background-size: 200% 100%; animation: am-shine 8s linear infinite; }
@keyframes am-shine { to { background-position: -200% 0; } }
.am-hero__lead { margin-top: 20px; font-size: clamp(16px, 1.5vw, 19px); color: var(--am-ink-2); max-width: 600px; line-height: 2; }
.am-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.am-hero__meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--am-ink-3); font-size: 14px; }
.am-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.am-hero__meta svg { width: 18px; height: 18px; color: var(--am-mint); }

.am-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 620px; margin-inline: auto; }
.am-stage__glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(50, 215, 170, .35), rgba(10, 138, 134, .08) 55%, transparent 70%); filter: blur(30px); animation: am-breathe 6s ease-in-out infinite; }
@keyframes am-breathe { 50% { transform: scale(1.08); opacity: .8; } }
.am-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.am-stage__logo { position: absolute; left: 50%; top: 50%; width: 22%; transform: translate(-50%, -50%); filter: drop-shadow(0 10px 30px rgba(50, 215, 170, .45)); pointer-events: none; transition: opacity .6s; z-index: 2; }
.am-stage__ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed rgba(124, 242, 208, .16); pointer-events: none; }

.am-badge-float { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(10, 46, 59, .72); border: 1px solid rgba(124, 242, 208, .2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); font-size: 13px; font-weight: 500; color: var(--am-ink); white-space: nowrap; animation: am-float 7s ease-in-out infinite; }
.am-badge-float small { display: block; font-size: 11px; color: var(--am-ink-3); font-weight: 400; line-height: 1.5; }
.am-badge-float .am-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--am-mint-soft); color: var(--am-mint-2); flex: none; }
.am-badge-float .am-ico svg { width: 18px; height: 18px; }
.am-badge-float--1 { top: 8%; inset-inline-start: -2%; }
.am-badge-float--2 { top: 44%; inset-inline-end: -4%; animation-delay: -2.5s; }
.am-badge-float--3 { bottom: 8%; inset-inline-start: 6%; animation-delay: -4.5s; }
@keyframes am-float { 50% { transform: translateY(-10px); } }
.am-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--am-mint); box-shadow: 0 0 0 0 rgba(50, 215, 170, .6); animation: am-ping 2s infinite; flex: none; }
@keyframes am-ping { 70% { box-shadow: 0 0 0 8px rgba(50, 215, 170, 0); } 100% { box-shadow: 0 0 0 0 rgba(50, 215, 170, 0); } }

.am-scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--am-border-strong); opacity: .6; }
.am-scroll-hint::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--am-mint-2); animation: am-wheel 1.8s infinite; }
@keyframes am-wheel { to { transform: translateY(14px); opacity: 0; } }

/* ---------- بخش‌ها ---------- */
.am-section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.am-section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.am-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--am-mint-2); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.am-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--am-grad); }
.am-section__head h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.4; }
.am-section__head p { margin-top: 16px; color: var(--am-ink-2); font-size: 17px; }

/* کارت پایه با افکت نور و کج‌شدن */
.am-card { position: relative; background: linear-gradient(180deg, rgba(14, 60, 74, .55), rgba(10, 46, 59, .55)); border: 1px solid var(--am-border); border-radius: var(--am-r-card);
  padding: 28px; overflow: hidden; isolation: isolate; transform-style: preserve-3d; transition: border-color .3s, transform .35s var(--am-ease), box-shadow .35s var(--am-ease); }
.am-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(50, 215, 170, .16), transparent 45%); }
.am-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 242, 208, .7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.am-card:hover { border-color: rgba(124, 242, 208, .28); box-shadow: var(--am-sh-pop); }
.am-card:hover::before, .am-card:hover::after { opacity: 1; }
.am-card h3 { font-size: 19px; margin-top: 18px; }
.am-card p { margin-top: 10px; color: var(--am-ink-2); font-size: 15px; line-height: 1.95; }
.am-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--am-mint-2);
  background: linear-gradient(135deg, rgba(50, 215, 170, .2), rgba(10, 138, 134, .12)); border: 1px solid rgba(124, 242, 208, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.am-icon svg { width: 24px; height: 24px; }

/* کانال‌ها */
.am-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.am-channel { text-align: start; padding: 24px; }
.am-channel .am-tag { display: inline-block; margin-top: 14px; font-size: 12px; padding: 3px 10px; border-radius: var(--am-r-pill); background: rgba(124, 242, 208, .12); color: var(--am-mint-2); font-weight: 500; }
.am-channel h3 { font-size: 17px; }
.am-channel p { font-size: 14px; }
.am-flow { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; color: var(--am-ink-3); font-size: 14px; }
.am-flow__pill { padding: 8px 14px; border-radius: var(--am-r-pill); border: 1px solid var(--am-border); background: rgba(10, 46, 59, .6); color: var(--am-ink-2); }
.am-flow__pill--hl { border-color: rgba(124, 242, 208, .4); color: var(--am-mint-2); background: var(--am-mint-soft); }
.am-flow__arrow { width: 36px; height: 2px; background: linear-gradient(270deg, transparent, var(--am-mint)); position: relative; overflow: hidden; }
.am-flow__arrow::after { content: ""; position: absolute; inset-block: 0; width: 12px; background: var(--am-mint-2); animation: am-flow 1.6s linear infinite; }
@keyframes am-flow { from { right: -12px; } to { right: 100%; } }

/* بنتو امکانات */
.am-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.am-bento > * { grid-column: span 2; }
.am-bento > .am-bento--wide { grid-column: span 4; }
.am-bento > .am-bento--full { grid-column: 1 / -1; }
.am-bento--wide, .am-bento--full { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.am-mini { margin-top: 18px; border-radius: 12px; border: 1px solid var(--am-border); background: rgba(6, 32, 45, .6); padding: 14px; font-size: 13px; color: var(--am-ink-2); }
.am-mini__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed rgba(30, 86, 102, .8); }
.am-mini__row:last-child { border-bottom: 0; }
.am-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--am-r-pill); font-size: 12px; font-weight: 500; background: rgba(124, 242, 208, .14); color: var(--am-mint-2); white-space: nowrap; }
.am-pill--warn { background: rgba(255, 200, 87, .12); color: #FFD98A; }
.am-pill--muted { background: rgba(155, 189, 195, .12); color: var(--am-ink-2); }
.am-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin-top: 18px; padding: 12px; border-radius: 12px; background: rgba(6, 32, 45, .6); border: 1px solid var(--am-border); }
.am-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--am-mint-2), rgba(10, 138, 134, .5)); transform-origin: bottom; transform: scaleY(.1); transition: transform 1.1s var(--am-ease); }
.is-in .am-bars i { transform: scaleY(1); }

/* دمو */
.am-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.am-demo__copy h2 { font-size: clamp(28px, 3.4vw, 42px); }
.am-demo__copy > p { margin-top: 16px; color: var(--am-ink-2); font-size: 17px; }
.am-checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.am-checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--am-ink-2); font-size: 15px; }
.am-checks svg { width: 20px; height: 20px; color: var(--am-mint); flex: none; margin-top: 4px; }

.am-chat { position: relative; border-radius: var(--am-r-xl); background: linear-gradient(180deg, #0E3C4A, #0A2E3B); border: 1px solid rgba(124, 242, 208, .2); box-shadow: var(--am-sh-pop), var(--am-glow); overflow: hidden; }
.am-chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--am-border); background: rgba(6, 32, 45, .35); }
.am-chat__avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--am-grad); display: grid; place-items: center; flex: none; }
.am-chat__avatar img { width: 30px; height: 30px; }
.am-chat__title { font-weight: 700; font-size: 15px; line-height: 1.5; }
.am-chat__status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--am-ink-3); }
.am-chat__ai { margin-inline-start: auto; padding: 2px 10px; border-radius: var(--am-r-pill); background: var(--am-grad); color: #06202D; font-size: 11px; font-weight: 700; }
.am-chat__body { height: 400px; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--am-border) transparent; }
.am-msg { max-width: 86%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.95; animation: am-pop .35s var(--am-ease) both; }
@keyframes am-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.am-msg--user { align-self: flex-end; background: var(--am-cta); color: #fff; border-end-end-radius: 4px; }
.am-msg--bot { align-self: flex-start; background: #134B5B; color: var(--am-ink); border-end-start-radius: 4px; border: 1px solid rgba(124, 242, 208, .1); }
.am-msg__src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.am-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 16px; background: #134B5B; border-end-start-radius: 4px; }
.am-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--am-mint-2); animation: am-typing 1.2s infinite; }
.am-typing i:nth-child(2) { animation-delay: .15s; } .am-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes am-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.am-product { margin-top: 10px; display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(6, 32, 45, .55); border: 1px solid var(--am-border); }
.am-product__thumb { width: 52px; height: 52px; border-radius: 10px; background: linear-gradient(135deg, #134B5B, #0A2E3B); display: grid; place-items: center; color: var(--am-mint-2); }
.am-product__thumb svg { width: 26px; height: 26px; }
.am-product b { display: block; font-size: 13.5px; }
.am-product__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.am-live { position: relative; overflow: hidden; }
.am-live.is-loading { color: transparent; background: rgba(124, 242, 208, .1); min-width: 110px; }
.am-live.is-loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(124, 242, 208, .35), transparent); animation: am-shimmer 1s infinite; }
@keyframes am-shimmer { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.am-code-inline { display: block; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #051A25; border: 1px solid var(--am-border); font: 12.5px/1.7 var(--am-mono); color: var(--am-mint-2); direction: ltr; text-align: left; white-space: pre-wrap; word-break: break-all; }
.am-chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--am-border); background: rgba(6, 32, 45, .35); }
.am-chip { padding: 8px 14px; min-height: 38px; border-radius: var(--am-r-pill); border: 1px solid rgba(124, 242, 208, .3); background: rgba(50, 215, 170, .08); color: var(--am-ink); font: 500 13.5px/1.5 var(--am-font); cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s; }
.am-chip:hover { background: var(--am-mint-soft); border-color: var(--am-mint); transform: translateY(-1px); }
.am-chip[disabled] { opacity: .45; cursor: default; transform: none; }
.am-chip.is-used { border-style: dashed; }
.am-chat__input { display: flex; align-items: center; gap: 10px; padding: 12px 18px 16px; }
.am-chat__field { flex: 1; min-height: 44px; display: flex; align-items: center; padding-inline: 14px; border-radius: 12px; background: #051A25; border: 1px solid var(--am-border); color: var(--am-ink-3); font-size: 14px; }
.am-chat__send { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--am-cta); color: #fff; border: 0; }
.am-chat__send svg { width: 20px; height: 20px; transform: scaleX(-1); }
.am-chat__foot { text-align: center; font-size: 11px; color: var(--am-ink-3); padding-bottom: 12px; }

/* قیمت‌ها */
.am-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.am-plan { display: flex; flex-direction: column; padding: 30px 26px; }
.am-plan h3 { margin-top: 0; font-size: 22px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.am-plan__desc { min-height: 56px; }
.am-plan__price { margin: 22px 0 6px; font-size: 30px; font-weight: 700; line-height: 1.4; }
.am-plan__price--muted { font-size: 19px; color: var(--am-ink); }
.am-plan__note { font-size: 13px; color: var(--am-ink-3); }
.am-plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; flex: 1; align-content: start; }
.am-plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--am-ink-2); line-height: 1.8; }
.am-plan li svg { width: 18px; height: 18px; color: var(--am-mint); flex: none; margin-top: 4px; }
.am-plan--featured { border-color: rgba(124, 242, 208, .45); background: linear-gradient(180deg, rgba(19, 75, 91, .85), rgba(10, 46, 59, .8)); box-shadow: var(--am-glow); }
.am-plan--featured::after { opacity: .6; }
.am-plan__flag { font-size: 12px; padding: 3px 10px; border-radius: var(--am-r-pill); background: var(--am-grad); color: #06202D; font-weight: 700; }
.am-pricing-note { margin-top: 28px; text-align: center; color: var(--am-ink-3); font-size: 14px; }

/* دانلود افزونه‌ها */
.am-downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; max-width: 1040px; margin-inline: auto; }
.am-download { display: flex; flex-direction: column; padding: 32px 30px; }
.am-download__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.am-download__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.am-download .am-tag { display: inline-block; font-size: 12.5px; padding: 4px 12px; border-radius: var(--am-r-pill); background: rgba(124, 242, 208, .12); color: var(--am-mint-2); font-weight: 500; }
.am-download .am-tag--ver { background: var(--am-grad); color: #06202D; font-weight: 700; }
.am-download h3 { font-size: 22px; margin-top: 20px; }
.am-steps { list-style: none; counter-reset: am-step; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; flex: 1; align-content: start; }
.am-steps li { counter-increment: am-step; position: relative; padding-inline-start: 38px; font-size: 14.5px; line-height: 1.9; color: var(--am-ink-2); }
.am-steps li::before { content: counter(am-step, persian); position: absolute; inset-inline-start: 0; top: 3px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--am-mint-2); background: var(--am-mint-soft); border: 1px solid rgba(124, 242, 208, .28); line-height: 1; }
.am-card.am-download .am-download__req { font-size: 13px; color: var(--am-ink-3); margin: 18px 0 20px; }
.am-steps .am-path { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; padding: 1px 7px; border-radius: 6px; background: #041620; color: var(--am-mint-2); border: 1px solid var(--am-border); }
.am-download .am-btn bdi { font-weight: 500; opacity: .85; font-size: 14px; }

/* توسعه‌دهندگان */
.am-dev { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.am-dev h2 { font-size: clamp(28px, 3.4vw, 42px); }
.am-dev__copy > p { margin-top: 16px; color: var(--am-ink-2); font-size: 17px; }
.am-dev__copy .am-btn { margin-top: 28px; }
.am-dev__copy .am-btn + .am-btn { margin-inline-start: 12px; }
.am-code { border-radius: var(--am-r-xl); overflow: hidden; border: 1px solid var(--am-border); background: #041620; box-shadow: var(--am-sh-pop); }
.am-code__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--am-border); background: rgba(14, 60, 74, .45); }
.am-code__dots { display: flex; gap: 6px; direction: ltr; margin-inline-end: auto; }
.am-code__dots i { width: 11px; height: 11px; border-radius: 50%; background: #1E5666; }
.am-tab { padding: 6px 12px; border-radius: 8px; border: 0; background: transparent; color: var(--am-ink-3); font: 500 13px/1.5 var(--am-font); cursor: pointer; }
.am-tab[aria-selected="true"] { background: var(--am-mint-soft); color: var(--am-mint-2); }
.am-code pre { margin: 0; padding: 22px; overflow-x: auto; direction: ltr; text-align: left; font: 13.5px/1.9 var(--am-mono); color: #CFE9EA; min-height: 270px; }
.am-code pre[hidden] { display: none; }
.am-code .t-k { color: #7CF2D0; } .am-code .t-s { color: #A8FBE3; } .am-code .t-c { color: #6A97A1; } .am-code .t-a { color: #FFD98A; }

/* درباره ما */
.am-about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.am-about h2 { font-size: clamp(28px, 3.4vw, 42px); }
.am-about__copy p { margin-top: 16px; color: var(--am-ink-2); font-size: 17px; }
.am-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.am-value { padding: 18px; border-radius: 14px; border: 1px solid var(--am-border); background: rgba(10, 46, 59, .5); }
.am-value b { display: block; font-size: 15px; }
.am-value span { font-size: 13.5px; color: var(--am-ink-3); }
.am-about__visual { position: relative; padding: 36px; border-radius: var(--am-r-xl); border: 1px solid var(--am-border); overflow: hidden;
  background: radial-gradient(400px 260px at 30% 20%, rgba(50, 215, 170, .25), transparent 60%), linear-gradient(160deg, #0E3C4A, #06202D); }
.am-about__visual img.am-about__logo { width: 120px; margin-bottom: 24px; filter: drop-shadow(0 12px 30px rgba(50, 215, 170, .4)); }
.am-about__visual h3 { font-size: 24px; }
.am-about__visual p { margin-top: 10px; color: var(--am-ink-2); }
.am-about__visual .am-btn { margin-top: 22px; }

/* CTA پایانی */
.am-final { position: relative; border-radius: 28px; padding: clamp(40px, 6vw, 72px); text-align: center; overflow: hidden; border: 1px solid rgba(124, 242, 208, .3);
  background: radial-gradient(600px 300px at 50% 0%, rgba(124, 242, 208, .25), transparent 65%), linear-gradient(135deg, #0A8A86 0%, #077672 40%, #0E3C4A 100%); }
.am-final::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: radial-gradient(rgba(232, 255, 247, .35) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%); mask-image: radial-gradient(ellipse at center, #000, transparent 70%); }
.am-final > * { position: relative; }
.am-final h2 { font-size: clamp(28px, 3.8vw, 46px); color: #fff; }
.am-final p { margin: 16px auto 0; max-width: 620px; color: #E8FFF7; font-size: 17px; }
.am-final__actions { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.am-final .am-btn--primary { background: #06202D; border-color: rgba(124, 242, 208, .45); }
.am-final .am-btn--primary:hover { background: #0A2E3B; }
.am-final .am-btn--ghost { border-color: rgba(232, 255, 247, .5); background: rgba(6, 32, 45, .2); }

/* فوتر */
.am-footer { border-top: 1px solid var(--am-border); padding: 56px 0 28px; margin-top: 24px; background: rgba(5, 26, 37, .7); }
.am-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.am-footer__brand img { height: 48px; width: auto; }
.am-footer__brand p { margin-top: 14px; color: var(--am-ink-3); font-size: 14px; max-width: 340px; }
.am-footer h4 { font-size: 15px; margin-bottom: 14px; color: var(--am-ink); }
.am-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.am-footer ul a { color: var(--am-ink-2); font-size: 14px; }
.am-footer ul a:hover { color: var(--am-mint-2); }
.am-footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--am-border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; color: var(--am-ink-3); font-size: 13.5px; }
.am-made { display: inline-flex; align-items: center; gap: 8px; color: var(--am-ink-2) !important; font-weight: 500; }
.am-made:hover { color: var(--am-mint-2) !important; }
.am-made i { width: 8px; height: 8px; border-radius: 50%; background: var(--am-grad); }

.am-top { position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 40; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--am-border);
  background: rgba(10, 46, 59, .85); color: var(--am-mint-2); cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.am-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.am-top svg { width: 20px; height: 20px; }
/* دکمه ویجت آلا پیش‌فرض پایین راست است؛ دکمه بالا سمت چپ می‌ماند و اگر ویجت چپ باشد بالاتر می‌رود */
.ala-chat-active .am-top { bottom: 100px; }

/* صفحه‌های عادی (index/page/404) */
.am-page { padding: calc(var(--am-header-h) + 64px) 0 96px; min-height: 70vh; }
.am-page__head { margin-bottom: 36px; }
.am-page__head h1 { font-size: clamp(28px, 4vw, 44px); }
.am-prose { max-width: 760px; color: var(--am-ink-2); font-size: 17px; }
.am-prose > * + * { margin-top: 1.1em; }
.am-prose h2, .am-prose h3 { color: var(--am-ink); margin-top: 1.6em; }
.am-prose img { border-radius: 14px; }
.am-prose pre, .am-prose code { direction: ltr; text-align: left; font-family: var(--am-mono); }
.am-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.am-404 { text-align: center; }
.am-404__code { font-size: clamp(80px, 16vw, 180px); font-weight: 700; line-height: 1; }
.am-404 p { margin: 16px auto 28px; color: var(--am-ink-2); max-width: 520px; }
.am-pagination { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; }
.am-pagination .page-numbers { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--am-border); color: var(--am-ink-2); }
.am-pagination .current { background: var(--am-cta); color: #fff; border-color: var(--am-cta); }

/* سازگاری وردپرس */
.alignleft { float: left; margin-inline-end: 1.5em; } .alignright { float: right; margin-inline-start: 1.5em; } .aligncenter { margin-inline: auto; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--am-ink-3); }
.sticky, .bypostauthor { position: relative; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
body.admin-bar .am-header { top: 32px; }

/* ---------- نمایش تدریجی ---------- */
.am-js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .8s var(--am-ease), transform .8s var(--am-ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.am-js [data-reveal="scale"] { transform: scale(.94); }
.am-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1100px) {
  .am-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-bento > * { grid-column: span 3; }
  .am-bento > .am-bento--wide, .am-bento > .am-bento--full { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .am-downloads { grid-template-columns: 1fr; max-width: 560px; }
  .am-nav, .am-header__cta .am-btn--ghost { display: none; }
  .am-burger { display: inline-flex; }
  .am-header__inner { justify-content: space-between; }
  .am-hero { min-height: auto; padding-top: calc(var(--am-header-h) + 28px); }
  .am-hero__grid, .am-demo, .am-dev, .am-about { grid-template-columns: 1fr; }
  .am-hero__copy { text-align: center; }
  .am-hero__lead { margin-inline: auto; }
  .am-hero__actions, .am-hero__meta { justify-content: center; }
  .am-stage { max-width: 460px; order: -1; margin-top: -8px; }
  .am-footer__grid { grid-template-columns: 1fr 1fr; }
  .am-footer__brand { grid-column: 1 / -1; }
  .am-posts { grid-template-columns: 1fr 1fr; }
  .am-scroll-hint { display: none; }
}
@media (max-width: 640px) {
  .am-container { padding-inline: 18px; }
  .am-brand img { height: 38px; }
  .am-header__cta .am-btn--primary { --pad: 8px 14px; min-height: 42px; font-size: 14px; }
  .am-header__cta .am-btn--primary svg { display: none; }
  .am-channels, .am-plans, .am-posts, .am-downloads { grid-template-columns: 1fr; }
  .am-download { padding: 26px 22px; }
  .am-dev__copy .am-btn + .am-btn { margin-inline-start: 0; }
  .am-bento > *, .am-bento > .am-bento--wide { grid-column: 1 / -1; }
  .am-bento--wide, .am-bento--full { grid-template-columns: 1fr; }
  .am-stage { max-width: 340px; }
  .am-badge-float { font-size: 12px; padding: 8px 10px; }
  .am-badge-float small { display: none; }
  .am-badge-float .am-ico { width: 28px; height: 28px; }
  .am-badge-float--1 { inset-inline-start: 0; top: 4%; }
  .am-badge-float--2 { display: none; }
  .am-badge-float--3 { inset-inline-start: 10%; bottom: 2%; }
  .am-hero__actions .am-btn { flex: 1 1 100%; }
  .am-values { grid-template-columns: 1fr; }
  .am-chat__body { height: 380px; }
  .am-flow__arrow { display: none; }
  .am-footer__grid { grid-template-columns: 1fr; }
  .am-footer__bottom { flex-direction: column; text-align: center; }
  body.admin-bar .am-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .am-js [data-reveal] { opacity: 1; transform: none; }
}

/* برچسب گره‌های صحنه سه‌بعدی */
.am-stage__labels { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.am-node-label { position: absolute; top: 0; left: 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--am-ink); white-space: nowrap;
  background: rgba(6, 32, 45, .78); border: 1px solid rgba(124, 242, 208, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); will-change: transform, opacity; }
.am-stage.is-3d .am-stage__glow { opacity: .75; }
.am-stage:not(.is-3d) .am-stage__labels { display: none; }

/* بعد از نمایش، کج‌شدن کارت‌ها سریع و بدون تاخیر باشد */
.am-js [data-reveal].is-in:hover { transition: border-color .3s, transform .35s var(--am-ease), box-shadow .35s var(--am-ease), opacity .8s; transition-delay: 0s; }
