:root {
  --bg: #080b12;
  --bg-elevated: #0d111b;
  --bg-soft: #111725;
  --card: rgba(15, 20, 31, 0.72);
  --card-solid: #0e1420;
  --text: #f5f7fb;
  --muted: #9aa5b5;
  --muted-strong: #c3cad5;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.14);
  --accent: #8b7cff;
  --accent-2: #54d9d2;
  --accent-soft: rgba(139,124,255,.12);
  --accent-2-soft: rgba(84,217,210,.10);
  --success: #5ee6a8;
  --shadow: 0 28px 80px rgba(0,0,0,.34);
  --shadow-soft: 0 18px 50px rgba(0,0,0,.22);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --shell: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.2,.75,.25,1);
}

html[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --bg-soft: #eef2f8;
  --card: rgba(255,255,255,.78);
  --card-solid: #ffffff;
  --text: #101521;
  --muted: #657084;
  --muted-strong: #394456;
  --line: rgba(15,23,42,.09);
  --line-strong: rgba(15,23,42,.14);
  --accent: #635bdb;
  --accent-2: #178f91;
  --accent-soft: rgba(99,91,219,.09);
  --accent-2-soft: rgba(23,143,145,.08);
  --shadow: 0 28px 80px rgba(38,50,78,.13);
  --shadow-soft: 0 16px 46px rgba(38,50,78,.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
html[dir="rtl"] body {
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  line-height: 1.8;
}
button, a { font: inherit; }
a { color: inherit; }
button { color: inherit; }
svg { display: block; }

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: #111827;
  transform: translateY(-180%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.section { padding: 110px 0 0; }
.section-pad { padding-top: 72px; padding-bottom: 42px; }

.ambient, .noise { position: fixed; inset: 0; pointer-events: none; }
.ambient { z-index: -3; filter: blur(8px); }
.ambient-one { background: radial-gradient(44rem 26rem at 10% 8%, var(--accent-soft), transparent 68%); }
.ambient-two { background: radial-gradient(38rem 26rem at 92% 14%, var(--accent-2-soft), transparent 70%); }
.noise {
  z-index: -2;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.site-header {
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 88%, transparent), color-mix(in srgb, var(--bg) 70%, transparent));
  backdrop-filter: blur(16px) saturate(140%);
}
.site-header.scrolled { border-color: var(--line); }
.nav-shell { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-inline-end: auto; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent-2) 65%, var(--accent)));
  color: white; font-weight: 800; box-shadow: 0 8px 26px var(--accent-soft);
}
.brand-name { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav a { text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 500; transition: color .2s ease; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .lang-button {
  height: 40px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-elevated) 72%, transparent); border-radius: 12px;
  display: grid; place-items: center; cursor: pointer; transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.icon-button { width: 40px; }
.lang-button { min-width: 46px; padding: 0 11px; font-size: .76rem; font-weight: 700; letter-spacing: .04em; }
.icon-button:hover, .lang-button:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }
.nav-cta {
  min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border-radius: 12px;
  text-decoration: none; color: #fff; background: var(--text); color: var(--bg); font-size: .86rem; font-weight: 700;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); opacity: .92; }
.nav-cta svg, .button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .nav-cta svg, html[dir="rtl"] .button.primary svg, html[dir="rtl"] .contact-arrow { transform: scaleX(-1); }

.hero { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(44px, 6vw, 88px); }
.hero-copy { padding-block: 40px; }
.eyebrow, .section-kicker { color: var(--muted-strong); font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
html[dir="rtl"] .eyebrow, html[dir="rtl"] .section-kicker { letter-spacing: 0; text-transform: none; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(94,230,168,.35); animation: pulse 2.4s infinite; }
@keyframes pulse { 55% { box-shadow: 0 0 0 8px rgba(94,230,168,0); } 100% { box-shadow: 0 0 0 0 rgba(94,230,168,0); } }
.hero h1 {
  max-width: 780px; margin: 22px 0 22px; font-size: clamp(3.2rem, 6vw, 5.8rem); line-height: .99; letter-spacing: -.065em; font-weight: 700;
  text-wrap: balance;
}
html[dir="rtl"] .hero h1 { letter-spacing: -.045em; line-height: 1.14; font-size: clamp(2.9rem, 5.4vw, 5.2rem); }
.hero-lead { max-width: 690px; margin: 0; color: var(--muted); font-size: clamp(1.02rem, 1.45vw, 1.18rem); line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid transparent;
  border-radius: 14px; text-decoration: none; font-size: .92rem; font-weight: 700; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 58%, var(--accent-2))); box-shadow: 0 10px 32px color-mix(in srgb, var(--accent) 24%, transparent); }
.button.secondary { color: var(--text); border-color: var(--line); background: color-mix(in srgb, var(--card-solid) 72%, transparent); }
.button.secondary:hover { border-color: var(--line-strong); background: var(--card-solid); }
.hero-proof { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr auto 1.14fr; align-items: center; gap: 19px; }
.proof-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.proof-item strong { font-size: .92rem; font-weight: 700; letter-spacing: -.02em; }
.proof-item span { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.proof-divider { width: 1px; height: 28px; background: var(--line); }

.hero-visual { position: relative; }
.visual-frame {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, color-mix(in srgb, var(--card-solid) 83%, transparent), color-mix(in srgb, var(--bg-elevated) 78%, transparent));
  box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(18px);
}
.visual-frame::before { content: ""; position: absolute; inset: 1px; pointer-events: none; border-radius: calc(var(--radius-lg) - 1px); background: linear-gradient(120deg, rgba(255,255,255,.045), transparent 30%); }
.visual-topbar, .visual-footer { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 16px; color: var(--muted); font-size: .72rem; }
.visual-topbar { border-bottom: 1px solid var(--line); }
.visual-footer { border-top: 1px solid var(--line); justify-content: space-between; }
.visual-footer > span { display: inline-flex; align-items: center; gap: 7px; }
.window-dots { display: flex; gap: 5px; margin-inline-end: 2px; }
.window-dots span { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 55%, transparent); }
.status-pill { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: rgba(94,230,168,.08); color: color-mix(in srgb, var(--success) 84%, var(--text)); }
.status-pill i, .ok-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .66rem; }
.flow-canvas { position: relative; height: 440px; overflow: hidden; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent); }
.flow-canvas::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 42%); }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); z-index: 1; }
.flow-path { fill: none; stroke: url(#lineGradient); stroke-width: 1.4; stroke-dasharray: 5 7; animation: dash 7s linear infinite; }
.path-b, .path-d { animation-direction: reverse; animation-duration: 8.5s; }
@keyframes dash { to { stroke-dashoffset: -96; } }
.flow-node { position: absolute; z-index: 4; min-width: 142px; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 14px; background: color-mix(in srgb, var(--card-solid) 88%, transparent); box-shadow: var(--shadow-soft); }
.flow-node strong { display: block; font-size: .73rem; }
.flow-node small { display: block; color: var(--muted); font-size: .62rem; margin-top: 1px; }
.node-icon { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font: 700 .62rem/1 ui-monospace, monospace; }
.node-1 { left: 5%; top: 16%; }
.node-2 { left: 5%; bottom: 16%; }
.node-3 { right: 5%; top: 16%; }
.node-4 { right: 5%; bottom: 16%; }
.node-core { left: 50%; top: 50%; transform: translate(-50%,-50%); min-width: 156px; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.core-ring { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 22px var(--accent-soft), 0 0 28px var(--accent-soft); }
.core-ring span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 800; font-size: .72rem; }
.packet { position: absolute; z-index: 3; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 18px var(--accent-2); opacity: .95; }
.packet-1 { animation: packetA 5s var(--ease) infinite; }
.packet-2 { animation: packetB 6.5s var(--ease) .7s infinite; }
.packet-3 { animation: packetC 5.7s var(--ease) 1.1s infinite; }
.packet-4 { animation: packetD 6.2s var(--ease) 1.6s infinite; }
@keyframes packetA { 0%,12% { left: 18%; top: 27%; opacity: 0 } 22% { opacity:1 } 48% { left:49%; top:49%; } 72% { left:79%; top:27%; } 86%,100% { left:79%; top:27%; opacity:0 } }
@keyframes packetB { 0%,12% { left:18%; top:72%; opacity:0 } 23% { opacity:1 } 48% { left:49%; top:49%; } 72% { left:79%; top:72%; } 86%,100% { opacity:0 } }
@keyframes packetC { 0%,16% { left:18%; top:27%; opacity:0 } 27% { opacity:1 } 51% { left:49%; top:49%; } 74% { left:79%; top:72%; } 90%,100% { opacity:0 } }
@keyframes packetD { 0%,16% { left:18%; top:72%; opacity:0 } 26% { opacity:1 } 50% { left:49%; top:49%; } 74% { left:79%; top:27%; } 90%,100% { opacity:0 } }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: color-mix(in srgb, var(--card-solid) 58%, transparent); }
.principle { min-height: 132px; padding: 24px; display: flex; align-items: flex-start; gap: 15px; }
.principle + .principle { border-inline-start: 1px solid var(--line); }
.principle-index { font: 600 .68rem/1 ui-monospace, monospace; color: var(--accent); margin-top: 4px; }
.principle strong { display: block; font-size: .92rem; margin-bottom: 7px; }
.principle p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.7; }

.section-head { display: grid; grid-template-columns: 1fr minmax(260px, .62fr); gap: 50px; align-items: end; margin-bottom: 34px; }
.section-head h2, .about-copy h2, .work-content h2, .contact-card h2 { margin: 11px 0 0; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
html[dir="rtl"] .section-head h2, html[dir="rtl"] .about-copy h2, html[dir="rtl"] .work-content h2, html[dir="rtl"] .contact-card h2 { line-height: 1.35; letter-spacing: -.035em; }
.section-head > p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.82; }

.expertise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.expertise-card { min-height: 350px; position: relative; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(155deg, color-mix(in srgb, var(--card-solid) 88%, transparent), color-mix(in srgb, var(--bg-elevated) 68%, transparent)); transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease; }
.expertise-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.expertise-card.featured { grid-column: 1 / -1; min-height: 330px; padding-right: 45%; }
html[dir="rtl"] .expertise-card.featured { padding-right: 24px; padding-left: 45%; }
.expertise-card.featured::after { content: ""; position: absolute; width: 380px; height: 380px; right: -60px; top: -20px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 66%); }
html[dir="rtl"] .expertise-card.featured::after { right: auto; left: -60px; }
.card-topline { display: flex; justify-content: space-between; color: var(--muted); font: 600 .64rem/1 ui-monospace, monospace; letter-spacing: .08em; }
.card-icon { width: 60px; height: 60px; margin: 58px 0 26px; border: 1px solid var(--line); border-radius: 17px; display: grid; place-items: center; background: var(--bg-soft); color: var(--accent); box-shadow: inset 0 0 30px var(--accent-soft); }
.card-icon span { font-weight: 700; }
.automation-icon { position: absolute; right: 11%; top: 50%; transform: translateY(-50%); width: 190px; height: 190px; margin: 0; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 64%); }
html[dir="rtl"] .automation-icon { right: auto; left: 11%; }
.automation-icon::before, .automation-icon::after, .automation-icon span { content: ""; position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); }
.automation-icon::before { inset: 30px; }
.automation-icon::after { inset: 58px; }
.automation-icon span:nth-child(1) { width: 14px; height: 14px; background: var(--accent); border: 0; top: 32px; left: 86px; box-shadow: 0 0 22px var(--accent); }
.automation-icon span:nth-child(2) { width: 11px; height: 11px; background: var(--accent-2); border: 0; right: 45px; bottom: 46px; box-shadow: 0 0 20px var(--accent-2); }
.automation-icon span:nth-child(3) { width: 9px; height: 9px; background: var(--success); border: 0; left: 49px; bottom: 43px; box-shadow: 0 0 18px var(--success); }
.expertise-card h3 { margin: 0 0 12px; font-size: 1.35rem; letter-spacing: -.025em; }
.expertise-card p { margin: 0; max-width: 620px; color: var(--muted); font-size: .9rem; line-height: 1.78; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.tag-row span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted-strong); background: color-mix(in srgb, var(--bg-soft) 72%, transparent); font: 500 .67rem/1 ui-monospace, monospace; }

.about-panel { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; padding: clamp(30px, 5vw, 60px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(145deg, var(--accent-soft), transparent 34%), color-mix(in srgb, var(--card-solid) 68%, transparent); }
.about-label { display: flex; flex-direction: column; align-items: flex-start; }
.about-number { margin-top: 58px; font-size: clamp(4.5rem, 9vw, 7rem); line-height: .9; font-weight: 700; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--text) 60%, transparent); }
.about-label > span:last-child { margin-top: 12px; color: var(--muted); font-size: .82rem; }
.about-copy p { margin: 21px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.9; }
.about-copy blockquote { margin: 30px 0 0; padding: 18px 0 18px 20px; border-left: 2px solid var(--accent); color: var(--muted-strong); font-size: .98rem; font-weight: 500; }
html[dir="rtl"] .about-copy blockquote { padding: 18px 20px 18px 0; border-left: 0; border-right: 2px solid var(--accent); }

.stack-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: color-mix(in srgb, var(--card-solid) 68%, transparent); }
.stack-group { min-height: 100px; display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: center; padding: 20px 24px; }
.stack-group + .stack-group { border-top: 1px solid var(--line); }
.stack-label { color: var(--muted); font-size: .78rem; font-weight: 600; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.stack-tags span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); font-size: .8rem; font-weight: 600; transition: transform .2s ease, border-color .2s ease; }
.stack-tags span:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.work-card { min-height: 440px; display: grid; grid-template-columns: 1fr .9fr; gap: 44px; align-items: center; overflow: hidden; position: relative; padding: clamp(30px, 5vw, 64px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--card-solid) 85%, transparent) 50%, color-mix(in srgb, var(--accent-2) 8%, transparent)); }
.work-content { position: relative; z-index: 3; }
.work-content p { max-width: 560px; margin: 20px 0 28px; color: var(--muted); font-size: .94rem; line-height: 1.85; }
.work-preview { min-height: 310px; position: relative; display: grid; place-items: center; }
.channel-card { position: absolute; width: min(100%, 430px); height: 112px; border: 1px solid var(--line-strong); border-radius: 19px; background: var(--card-solid); box-shadow: var(--shadow-soft); transition: transform .35s var(--ease); }
.channel-back { transform: translateY(-54px) rotate(4deg) scale(.91); opacity: .32; }
.channel-mid { transform: translateY(-25px) rotate(-2deg) scale(.96); opacity: .62; }
.channel-front { z-index: 2; display: flex; align-items: center; gap: 14px; padding: 18px; }
.work-card:hover .channel-back { transform: translateY(-62px) rotate(6deg) scale(.91); }
.work-card:hover .channel-mid { transform: translateY(-30px) rotate(-3deg) scale(.96); }
.channel-avatar { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 16px; color: #fff; font-size: 1.2rem; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.channel-meta { display: flex; flex-direction: column; gap: 5px; }
.channel-meta strong { font-size: .9rem; }
.channel-meta span { color: var(--muted); font-size: .76rem; }
.channel-arrow { margin-inline-start: auto; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--accent-2); }

.contact-section { padding-bottom: 110px; }
.contact-card { position: relative; overflow: hidden; text-align: center; padding: clamp(44px, 7vw, 88px) clamp(24px, 7vw, 78px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: color-mix(in srgb, var(--card-solid) 74%, transparent); }
.contact-glow { position: absolute; width: 520px; height: 280px; left: 50%; top: -130px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 68%); pointer-events: none; }
.contact-card h2 { max-width: 820px; margin-inline: auto; }
.contact-card > p { max-width: 680px; margin: 20px auto 30px; color: var(--muted); font-size: .95rem; line-height: 1.85; }
.telegram-contact { max-width: 430px; min-height: 76px; margin: 0 auto; padding: 11px 13px; display: flex; align-items: center; gap: 13px; text-align: start; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-soft); text-decoration: none; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.telegram-contact:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-soft); }
.telegram-badge { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #2ca5e0, #228ed2); }
.telegram-badge svg { width: 25px; height: 25px; fill: #fff; }
.telegram-copy { display: flex; flex-direction: column; gap: 3px; }
.telegram-copy small { color: var(--muted); font-size: .72rem; }
.telegram-copy strong { font-size: .95rem; }
.contact-arrow { margin-inline-start: auto; width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); }
.footer-inner > div:first-child { display: flex; align-items: baseline; gap: 12px; }
.footer-inner strong { color: var(--text); font-size: .88rem; }
.footer-inner span, .footer-inner p { font-size: .72rem; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; align-items: center; gap: 16px; margin-inline-start: auto; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .72rem; transition: color .2s ease; }
.footer-links a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
::selection { color: #fff; background: var(--accent); }

@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 42px; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { max-width: 760px; width: 100%; }
  .expertise-card.featured { padding-right: 38%; }
  html[dir="rtl"] .expertise-card.featured { padding-left: 38%; }
  .automation-icon { right: 7%; transform: translateY(-50%) scale(.82); }
  html[dir="rtl"] .automation-icon { right: auto; left: 7%; }
  .work-card { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .section { padding-top: 82px; }
  .section-pad { padding-top: 34px; }
  .site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); }
  .brand-name { display: none; }
  .nav-shell { gap: 12px; }
  .nav-actions { margin-inline-start: auto; }
  .nav-cta { min-width: 40px; padding: 0 11px; }
  .nav-cta span { display: none; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  html[dir="rtl"] .hero h1 { font-size: clamp(2.6rem, 11vw, 4rem); }
  .hero-proof { grid-template-columns: 1fr 1fr; gap: 18px; }
  .proof-divider { display: none; }
  .hero-proof .proof-item:last-child { grid-column: 1 / -1; }
  .flow-canvas { height: 370px; }
  .flow-node { min-width: 118px; padding: 9px 10px; }
  .node-core { min-width: 132px; }
  .node-1, .node-2 { left: 3%; }
  .node-3, .node-4 { right: 3%; }
  .visual-footer .mono { display: none; }
  .principles { grid-template-columns: 1fr; }
  .principle + .principle { border-inline-start: 0; border-top: 1px solid var(--line); }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card, .expertise-card.featured { grid-column: auto; min-height: 330px; padding: 22px; }
  .expertise-card.featured { padding-bottom: 180px; }
  html[dir="rtl"] .expertise-card.featured { padding: 22px 22px 180px; }
  .automation-icon, html[dir="rtl"] .automation-icon { width: 150px; height: 150px; right: 50%; left: auto; top: auto; bottom: 6px; transform: translateX(50%) scale(.8); }
  html[dir="rtl"] .automation-icon { transform: translateX(50%) scale(.8); }
  .card-icon { margin-top: 42px; }
  .about-panel { grid-template-columns: 1fr; gap: 32px; }
  .about-number { margin-top: 28px; }
  .stack-group { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .work-card { grid-template-columns: 1fr; }
  .work-preview { min-height: 240px; }
  .contact-section { padding-bottom: 82px; }
  .footer-inner { padding: 24px 0; flex-direction: column; align-items: flex-start; justify-content: center; }
  .footer-inner > div:first-child { flex-direction: column; gap: 3px; }
  .footer-links { margin-inline-start: 0; }
}

@media (max-width: 460px) {
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .flow-canvas { height: 340px; }
  .flow-node { min-width: 108px; gap: 7px; padding: 8px; }
  .flow-node small { display: none; }
  .node-icon { width: 24px; height: 24px; }
  .node-core { min-width: 110px; }
  .core-ring { width: 31px; height: 31px; }
  .core-ring span { width: 20px; height: 20px; }
  .visual-footer { padding: 0 12px; }
  .telegram-contact { min-height: 70px; }
}

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