/* AIONEX — company website. Brand: navy ink + logo blue, Vazirmatn. */
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f8fb;
  --bg-soft: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --ink: #0b1426;
  --ink-2: #26344d;
  --muted: #56647c;
  --line: #dde4ee;
  --line-strong: #c9d3e1;
  --brand: #1f4fe0;
  --brand-hover: #173fbf;
  --brand-ink: #ffffff;
  --brand-soft: #e9effe;
  --brand-glow: rgba(31, 79, 224, .18);
  --cyan: #0ea5c6;
  --success: #12805c;
  --success-soft: #e3f4ec;
  --danger: #c0362c;
  --danger-soft: #fdecea;
  --dark: #0a1222;
  --dark-2: #111c31;
  --dark-line: #22314b;
  --dark-ink: #eef3fb;
  --dark-muted: #a3b2c9;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-1: 0 1px 2px rgba(11, 20, 38, .06), 0 1px 1px rgba(11, 20, 38, .04);
  --shadow-2: 0 8px 24px rgba(11, 20, 38, .08), 0 2px 6px rgba(11, 20, 38, .05);
  --shadow-3: 0 24px 60px rgba(11, 20, 38, .16), 0 6px 16px rgba(11, 20, 38, .08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1200px;
  --header-h: 72px;
  --font: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #070d18;
  --bg-soft: #0b1322;
  --surface: #0f1829;
  --surface-2: #142036;
  --ink: #eef3fb;
  --ink-2: #cfd9e8;
  --muted: #9aaac2;
  --line: #1f2d45;
  --line-strong: #2b3c59;
  --brand: #5b8cff;
  --brand-hover: #82a8ff;
  --brand-ink: #06101f;
  --brand-soft: #14244a;
  --brand-glow: rgba(91, 140, 255, .22);
  --success: #4fd1a1;
  --success-soft: #0f2e25;
  --danger: #ff8a80;
  --danger-soft: #3a1714;
  --dark: #050a14;
  --dark-2: #0c1527;
  --dark-line: #1d2b44;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-3: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
}
html[lang="en"] body { line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -.01em; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.025em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="ltr"] .icon-dir { transform: scaleX(-1); }
[dir="rtl"] .icon-dir-back { transform: scaleX(-1); }
#i-play path { fill: currentColor; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 8px 16px; border-radius: var(--radius-sm); background: var(--brand); color: var(--brand-ink); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.button {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 20px; border-radius: 12px;
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .95rem; line-height: 1.4; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s, transform .2s var(--ease), box-shadow .2s;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button--primary { --btn-bg: var(--brand); --btn-fg: var(--brand-ink); box-shadow: 0 6px 18px var(--brand-glow); }
.button--primary:hover { --btn-bg: var(--brand-hover); }
.button--ghost { --btn-bd: var(--line-strong); --btn-bg: var(--surface); }
.button--ghost:hover { --btn-bd: var(--brand); --btn-fg: var(--brand); }
.button--ghost-light { --btn-bd: rgba(238, 243, 251, .28); --btn-fg: var(--dark-ink); }
.button--ghost-light:hover { --btn-bd: var(--dark-ink); --btn-bg: rgba(255, 255, 255, .06); }
.button--sm { min-height: 40px; padding: 6px 16px; font-size: .9rem; }
.button--lg { min-height: 52px; padding: 12px 24px; font-size: 1rem; border-radius: 14px; }
.button[disabled] { cursor: not-allowed; --btn-bg: var(--line); --btn-fg: var(--muted); box-shadow: none; transform: none; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink); transition: background-color .2s, border-color .2s; }
.icon-button:hover { background: var(--surface-2); border-color: var(--line); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid transparent; transition: border-color .25s, background-color .25s, box-shadow .25s; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--surface) 94%, transparent); border-bottom-color: var(--line); box-shadow: var(--shadow-1); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header, .site-header.is-scrolled { background: var(--surface); } }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; padding: 6px 0; flex: none; }
.brand-logo { width: 140px; height: auto; }
.brand-logo--light { display: none; }
[data-theme="dark"] .brand-logo--dark { display: none; }
[data-theme="dark"] .brand-logo--light { display: block; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.main-nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .94rem; transition: color .2s, background-color .2s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); background: var(--surface-2); }
.main-nav .nav-cta-mobile { display: none; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-toggle { min-width: 44px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; font-size: .85rem; letter-spacing: .02em; }
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }
.icon-sun, [data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
.menu-toggle { display: none; }
.icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 20%, var(--brand-glow), transparent 70%),
    radial-gradient(500px 360px at 85% 80%, rgba(14, 165, 198, .10), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  opacity: .9;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .85rem; font-weight: 600; box-shadow: var(--shadow-1); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(18, 128, 92, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18, 128, 92, .45); } 70% { box-shadow: 0 0 0 10px rgba(18, 128, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 128, 92, 0); } }
.hero h1 { margin-top: 24px; font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 850; line-height: 1.18; }
.hero h1 > span { display: block; }
.text-gradient { background: linear-gradient(100deg, var(--brand) 10%, var(--cyan) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.lead { margin-top: 24px; max-width: 620px; font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 620px; }
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong { font-size: 1.5rem; font-weight: 850; line-height: 1.3; }
.hero-proof span { color: var(--muted); font-size: .88rem; }

/* hero visual */
.hero-visual { position: relative; min-height: 500px; }
.hv-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); }
.hv-chat { inset-inline-start: 0; top: 0; width: min(350px, 88%); padding: 20px; display: grid; gap: 10px; animation: floatA 7s ease-in-out infinite; }
.hv-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hv-head strong { display: block; font-size: .95rem; }
.hv-head small { color: var(--success); font-size: .78rem; font-weight: 600; }
.hv-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--cyan)); color: #fff; font-weight: 800; font-size: .85rem; }
.hv-bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .88rem; line-height: 1.7; opacity: 0; transform: translateY(8px); animation: bubbleIn .5s var(--ease) forwards; }
.hv-bubble--in { justify-self: start; background: var(--surface-2); border-end-start-radius: 4px; animation-delay: .3s; }
.hv-bubble--out { justify-self: end; background: var(--brand); color: var(--brand-ink); border-end-end-radius: 4px; animation-delay: 1.1s; }
.hv-bubble.hv-late { animation-delay: 2s; }
.hv-typing { justify-self: end; display: flex; gap: 4px; padding: 10px 14px; border-radius: 16px; background: var(--brand-soft); opacity: 0; animation: bubbleIn .4s 2.5s forwards; }
.hv-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: typing 1.2s infinite; }
.hv-typing span:nth-child(2) { animation-delay: .15s; }
.hv-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes bubbleIn { to { opacity: 1; transform: translateY(0); } }
.hv-booking { inset-inline-end: 0; top: 48px; max-width: 270px; display: flex; align-items: center; gap: 14px; padding: 16px 20px; animation: floatB 8s ease-in-out infinite, popIn .6s 2.8s var(--ease) both; }
.hv-booking strong { display: block; font-size: .95rem; }
.hv-booking small { color: var(--muted); font-size: .8rem; }
.hv-check { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--success-soft); color: var(--success); }
.hv-check .icon { stroke-width: 2.6; }
.hv-kpi { inset-inline-end: 2%; bottom: 0; width: min(290px, 70%); padding: 16px 20px; animation: floatA 9s ease-in-out infinite reverse, popIn .6s .6s var(--ease) both; }
.hv-kpi-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .85rem; color: var(--muted); }
.hv-kpi-top strong { color: var(--success); font-size: 1.1rem; }
.hv-bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; margin: 12px 0 8px; }
.hv-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--brand) 30%, var(--surface-2)); transform-origin: bottom; animation: grow .8s var(--ease) both; }
.hv-bars i.is-now { background: var(--brand); }
.hv-bars i:nth-child(2) { animation-delay: .05s; } .hv-bars i:nth-child(3) { animation-delay: .1s; } .hv-bars i:nth-child(4) { animation-delay: .15s; } .hv-bars i:nth-child(5) { animation-delay: .2s; } .hv-bars i:nth-child(6) { animation-delay: .25s; } .hv-bars i:nth-child(7) { animation-delay: .3s; }
.hv-kpi small { color: var(--muted); font-size: .75rem; }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes floatA { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes floatB { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: var(--dark-ink); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 800; font-size: .88rem; letter-spacing: .02em; margin-bottom: 12px; }
.kicker::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.kicker--light { color: #8fb0ff; }
.section h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); font-weight: 820; }
.section-lead { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.section--dark .section-lead { color: var(--dark-muted); }

/* services */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.service-card--accent { background: linear-gradient(180deg, var(--brand-soft), var(--surface) 70%); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.service-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.service-icon .icon { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.2rem; font-weight: 800; }
.service-card p { color: var(--muted); font-size: .96rem; }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-inline-start: 28px; font-size: .93rem; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%; background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312805c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; padding-top: 8px; color: var(--brand); font-weight: 700; font-size: .93rem; }
.card-link:hover { gap: 10px; }
.card-link .icon { width: 18px; height: 18px; transition: transform .2s; }

/* featured */
.featured { overflow: hidden; }
.featured::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 420px at 85% 10%, rgba(91, 140, 255, .22), transparent 70%), radial-gradient(500px 400px at 0% 100%, rgba(14, 165, 198, .14), transparent 70%); pointer-events: none; }
.featured-grid { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.feature-list { display: grid; gap: 12px; margin-top: 28px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--dark-ink); }
.feature-list .icon { margin-top: 4px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(79, 209, 161, .16); color: #4fd1a1; stroke-width: 2.6; }
.fine-print { margin-top: 20px; color: var(--dark-muted); font-size: .85rem; }
.browser-frame { border-radius: var(--radius-lg); overflow: hidden; background: var(--dark-2); border: 1px solid var(--dark-line); box-shadow: 0 40px 80px rgba(0, 0, 0, .45); transform: perspective(1600px) rotateY(var(--tilt, -6deg)) rotateX(2deg); transition: transform .6s var(--ease); }
[dir="ltr"] .browser-frame { --tilt: 6deg; }
.featured-shot:hover .browser-frame { transform: none; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--dark-line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b3a55; }
.browser-bar span { margin-inline-start: 12px; padding: 2px 12px; border-radius: 6px; background: #0a1222; color: var(--dark-muted); font-size: .75rem; direction: ltr; }
.featured-shot { margin: 0; }

/* work */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .9rem; transition: all .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease); animation: cardIn .45s var(--ease) both; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } }
.work-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-badge { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(10, 18, 34, .86); color: #fff; font-size: .75rem; font-weight: 700; }
.work-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4fd1a1; }
.work-badge--external::before { background: #8fb0ff; }
.work-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.work-cat { color: var(--brand); font-size: .8rem; font-weight: 700; }
.work-body h3 { font-size: 1.15rem; font-weight: 800; direction: ltr; text-align: start; }
[dir="rtl"] .work-body h3 { text-align: right; }
.work-body p { color: var(--muted); font-size: .93rem; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.work-tags span { padding: 2px 10px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); font-size: .75rem; direction: ltr; }
.work-actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.work-actions .button { flex: 1 1 auto; min-height: 42px; padding: 6px 14px; font-size: .9rem; }
@media (min-width: 1101px) {
  .work-card--wide { grid-column: span 2; flex-direction: row; }
  .work-card--wide .work-media { flex: 0 0 56%; aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-inline-end: 1px solid var(--line); }
  .work-card--wide .work-body { padding: 28px; justify-content: center; }
  .work-card--wide h3 { font-size: 1.45rem; }
}
.work-note { margin-top: 32px; color: var(--muted); font-size: .88rem; max-width: 820px; }

/* process */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.process-step { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.process-step::after { content: ""; position: absolute; top: 46px; inset-inline-end: -21px; width: 22px; height: 2px; background: var(--line-strong); }
.process-step:last-child::after { display: none; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 800; margin-bottom: 18px; }
.process-step h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: .93rem; }

/* why */
.why-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.why-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.why-head .button { margin-top: 28px; }
.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.why-item { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.why-item > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.why-item h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: .92rem; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.plan--featured { border: 2px solid var(--brand); box-shadow: 0 24px 50px var(--brand-glow); }
.plan-badge { position: absolute; top: -14px; inset-inline-start: 24px; padding: 2px 12px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .78rem; font-weight: 800; }
.plan h3 { font-size: 1.25rem; font-weight: 800; }
.plan-for { color: var(--muted); font-size: .93rem; margin-top: -8px; }
.plan .button { margin-top: auto; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-3); }
.about-photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--radius-xl); border: 2px solid var(--brand-soft); z-index: -1; }
[dir="rtl"] .about-photo::before { inset: 24px 24px -24px -24px; }
.about-copy > p { margin-top: 20px; color: var(--muted); font-size: 1.02rem; }
.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; }
.about-facts div { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.about-facts dt { color: var(--muted); font-size: .8rem; font-weight: 600; }
.about-facts dd { margin: 4px 0 0; font-weight: 700; font-size: .93rem; line-height: 1.6; }
.about-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.faq-item summary { position: relative; list-style: none; cursor: pointer; padding: 20px 24px; padding-inline-end: 56px; font-weight: 700; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; inset-inline-end: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356647c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 22px; color: var(--muted); }

/* contact */
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 10% 0%, rgba(91, 140, 255, .2), transparent 70%); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contact-aside h2 { color: var(--dark-ink); }
.next-steps { display: grid; gap: 16px; margin-top: 32px; }
.next-steps li { display: flex; gap: 14px; align-items: flex-start; }
.next-steps li > span { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: rgba(91, 140, 255, .18); color: #8fb0ff; font-weight: 800; }
.next-steps strong { display: block; }
.next-steps small { color: var(--dark-muted); font-size: .88rem; }
.contact-direct { margin-top: 32px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--dark-line); background: var(--dark-2); }
.contact-direct p { color: var(--dark-muted); font-size: .88rem; }
.contact-direct a { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; color: #fff; }
.contact-direct a:hover { color: #8fb0ff; }

.request-card { position: relative; overflow: hidden; padding: 32px; border-radius: var(--radius-xl); background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px rgba(0, 0, 0, .35); }
.request-progress { position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--surface-2); }
.request-progress span { display: block; height: 100%; width: 33.33%; background: linear-gradient(90deg, var(--brand), var(--cyan)); transition: width .4s var(--ease); }
[dir="rtl"] .request-progress span { margin-inline-start: 0; background: linear-gradient(270deg, var(--brand), var(--cyan)); }
.request-steps { display: flex; gap: 8px; margin-bottom: 28px; }
.request-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .88rem; background: var(--surface-2); }
.request-steps li > span:first-child { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: .78rem; font-weight: 800; }
.request-steps li.is-current { background: var(--brand-soft); color: var(--brand); }
.request-steps li.is-current > span:first-child { background: var(--brand); color: var(--brand-ink); }
.request-steps li.is-done > span:first-child { background: var(--success); color: #fff; }
.form-step { border: 0; margin: 0; padding: 0; min-width: 0; animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(var(--step-dx, -12px)); } }
[dir="ltr"] .form-step { --step-dx: 12px; }
.step-title { padding: 0; font-size: 1.3rem; font-weight: 800; }
.step-hint { margin-top: 4px; color: var(--muted); font-size: .88rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice > span { display: flex; align-items: center; gap: 10px; height: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.choice b { font-weight: 600; font-size: .93rem; line-height: 1.5; }
.choice .icon { color: var(--muted); }
.choice:hover > span { border-color: var(--line-strong); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-glow); }
.choice input:checked + span .icon { color: var(--brand); }
.choice input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; margin-top: 18px; min-width: 0; }
.field-label { font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.field-label em { color: var(--danger); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 132px; line-height: 1.8; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356647c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: left 14px center; padding-inline-end: 40px; }
[dir="ltr"] .field select { background-position: right 14px center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field-meta { display: flex; justify-content: space-between; gap: 12px; }
.counter { color: var(--muted); font-size: .78rem; direction: ltr; }
.field-error { color: var(--danger); font-size: .84rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: inline-flex; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; }
.segmented input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.segmented input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--brand); flex: none; }
.check a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-status { margin-top: 16px; font-size: .9rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 12px 16px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); }
.form-status.is-busy { color: var(--muted); }
.form-nav { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-nav-spacer { flex: 1; }
.draft-note { margin-top: 12px; color: var(--muted); font-size: .8rem; }
.button.is-loading { pointer-events: none; }
.button.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.request-done, .request-fallback { text-align: center; padding: 24px 8px; animation: stepIn .4s var(--ease); }
.request-done:focus { outline: none; }
.done-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--success-soft); color: var(--success); margin-bottom: 20px; }
.done-icon .icon { width: 36px; height: 36px; stroke-width: 2.6; }
.request-done h3, .request-fallback h3 { font-size: 1.4rem; font-weight: 800; }
.request-done p, .request-fallback p { margin-top: 10px; color: var(--muted); }
.done-ref { padding: 12px; border-radius: 12px; background: var(--surface-2); display: inline-flex; gap: 8px; margin-top: 20px !important; }
.done-ref strong { color: var(--ink); letter-spacing: .06em; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* footer */
.site-footer { background: var(--dark); color: var(--dark-muted); padding: 64px 0 32px; border-top: 1px solid var(--dark-line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-brand img { width: 140px; }
.footer-brand p { margin-top: 16px; max-width: 360px; font-size: .92rem; }
.footer-nav, .footer-contact { display: grid; gap: 10px; align-content: start; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--dark-line); font-size: .85rem; }
.footer-legal { display: flex; gap: 20px; }

/* project dialog */
.project-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--radius-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); overflow: hidden; }
.project-dialog::backdrop { background: rgba(5, 10, 20, .62); }
.project-dialog[open] { animation: dialogIn .35s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.pd-inner { position: relative; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.pd-close { position: sticky; top: 12px; float: left; margin: 12px; z-index: 2; background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-2); }
[dir="ltr"] .pd-close { float: right; }
.pd-hero { aspect-ratio: 16 / 7; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.pd-hero img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pd-body { padding: 28px 32px 32px; display: grid; gap: 24px; }
.pd-title { display: grid; gap: 6px; }
.pd-title h2 { font-size: 1.7rem; font-weight: 850; direction: ltr; text-align: start; }
[dir="rtl"] .pd-title h2 { text-align: right; }
.pd-title p { color: var(--muted); font-size: 1.02rem; }
.pd-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pd-box { padding: 18px 20px; border-radius: var(--radius); background: var(--surface-2); }
.pd-box h3 { font-size: .9rem; font-weight: 800; color: var(--brand); margin-bottom: 6px; }
.pd-box p { color: var(--ink-2); font-size: .94rem; }
.pd-section h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }
.pd-try { counter-reset: try; display: grid; gap: 10px; }
.pd-try li { position: relative; counter-increment: try; padding: 12px 16px; padding-inline-start: 52px; border-radius: var(--radius); border: 1px solid var(--line); font-size: .94rem; }
.pd-try li::before { content: counter(try); position: absolute; inset-inline-start: 14px; top: 12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: .82rem; }
.pd-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.pd-note { padding: 14px 18px; border-radius: var(--radius); border: 1px dashed var(--line-strong); color: var(--muted); font-size: .88rem; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }

/* mobile sticky CTA */
.mobile-cta { display: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 8px 8px; font-size: .9rem; }
  .services-grid, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-step::after { display: none; }
  .why-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-head, .faq-grid .section-head { position: static; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 16px 24px 24px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-3); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s var(--ease); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .menu-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 12px 16px; font-size: 1rem; }
  .main-nav .nav-cta-mobile { display: flex; margin-top: 8px; color: var(--brand-ink); }
  .header-tools { margin-inline-start: auto; }
  .hero { padding: 48px 0 72px; }
  .hero-grid, .featured-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 440px; max-width: 520px; width: 100%; margin-inline: auto; }
  .section { padding: 80px 0; }
  .section-head--split { grid-template-columns: 1fr; gap: 0; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .about-photo { max-width: 420px; }
  .browser-frame { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .mobile-cta { position: fixed; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: flex; min-height: 52px; border-radius: 14px; box-shadow: 0 12px 32px rgba(11, 20, 38, .3); transform: translateY(140%); transition: transform .35s var(--ease); }
  .mobile-cta.is-visible { transform: none; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .brand-logo { width: 116px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-proof { gap: 16px 24px; }
  .hero-proof strong { font-size: 1.25rem; }
  .hero-visual { min-height: 400px; }
  .hv-chat { width: 100%; }
  .hv-booking { top: auto; bottom: 150px; inset-inline-end: 0; }
  .hv-kpi { inset-inline-end: 0; }
  .services-grid, .work-grid, .process, .why-list, .pd-cols, .pd-features, .about-facts, .choice-grid, .field-row { grid-template-columns: 1fr; }
  .service-card, .why-item { padding: 22px; }
  .request-card { padding: 24px 18px; border-radius: var(--radius-lg); }
  .request-steps li > span:last-child { display: none; }
  .request-steps li { justify-content: center; }
  .form-nav .button { flex: 1; }
  .form-nav-spacer { display: none; }
  .pd-body { padding: 22px 20px 24px; }
  .pd-title h2 { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hv-bubble, .hv-typing { opacity: 1; transform: none; }
}
@media print {
  .site-header, .mobile-cta, .hero-visual, .request-card, .site-footer { display: none; }
  .section--dark { background: #fff; color: #000; }
}

/* simple legal pages */
.legal { padding: 72px 0 96px; min-height: 60vh; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 850; }
.legal h2 { font-size: 1.25rem; font-weight: 800; margin-top: 36px; }
.legal p { margin-top: 12px; color: var(--ink-2); }
.legal .legal-updated { color: var(--muted); font-size: .9rem; }
.legal-mail { color: var(--brand); font-weight: 700; }
.legal .hero-actions { margin-top: 28px; }
.page-tools { margin-inline-start: auto; }
.site-footer--slim { padding: 24px 0; }
.site-footer--slim .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }

.section, .hero, .site-footer { overflow-x: clip; }

/* English uses a Latin UI stack so digits render as Western numerals (Vazirmatn here is the Farsi-digit build) */
html[lang="en"] body, html[lang="en"] button, html[lang="en"] input, html[lang="en"] select, html[lang="en"] textarea { font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] .hero-proof strong { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
.done-ref strong { font-family: ui-monospace, "Cascadia Mono", Consolas, "Segoe UI", monospace; }
.work-badge--request::before { background: #f5b84b; }
