:root {
  --bg: #070b14;
  --bg-soft: #0b1120;
  --card: rgba(14, 21, 37, 0.72);
  --card-solid: #0e1525;
  --text: #f4f7fb;
  --muted: #8d98ad;
  --line: rgba(255, 255, 255, 0.095);
  --primary: #7c5cff;
  --primary-2: #32d7ff;
  --accent: #a3ffcb;
  --danger: #ff6b91;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 26px;
  --font-fa: "Vazirmatn", sans-serif;
  --font-en: "Inter", sans-serif;
}

body.light {
  --bg: #f7f9fc;
  --bg-soft: #eef2f8;
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: rgba(17, 24, 39, 0.09);
  --shadow: 0 30px 80px rgba(72, 89, 122, 0.14);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-fa);
  line-height: 1.7;
  overflow-x: hidden;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}
body[data-lang="en"] {
  font-family: var(--font-en);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
svg {
  display: block;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.section {
  padding: 120px 0;
  position: relative;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.035;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.spotlight {
  width: 520px;
  height: 520px;
  border-radius: 50%;
  position: fixed;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(124, 92, 255, 0.13),
    transparent 65%
  );
  transform: translate(-50%, -50%);
  opacity: 0.75;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 16px 0;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    padding 0.25s ease;
}
.site-header.scrolled {
  padding: 9px 0;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  font: 800 13px/1 var(--font-en);
  background: linear-gradient(
    135deg,
    var(--primary),
    #5b3fea 55%,
    var(--primary-2)
  );
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.24);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-copy strong {
  font: 700 14px/1.3 var(--font-en);
}
.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline: auto;
}
.nav a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav a:hover,
.nav a.active {
  color: var(--text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn,
.lang-btn {
  height: 38px;
  min-width: 38px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  cursor: pointer;
}
.icon-btn svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.icon-btn .sun {
  display: none;
}
body.light .icon-btn .sun {
  display: block;
}
body.light .icon-btn .moon {
  display: none;
}
.lang-btn {
  font: 700 11px/1 var(--font-en);
  letter-spacing: 0.04em;
}
.nav-cta {
  padding: 9px 15px;
  border-radius: 11px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
}
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 10px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  border-radius: 5px;
}

.hero {
  min-height: 100vh;
  padding: 150px 0 42px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  top: -220px;
  right: -140px;
  background: radial-gradient(
    circle,
    rgba(124, 92, 255, 0.17),
    transparent 67%
  );
  filter: blur(6px);
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  bottom: -280px;
  left: -110px;
  background: radial-gradient(
    circle,
    rgba(50, 215, 255, 0.12),
    transparent 68%
  );
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 20%,
    black 72%,
    transparent
  );
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 70px;
  position: relative;
  z-index: 1;
}
.availability-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(163, 255, 203, 0.045);
  color: var(--muted);
  font-size: 11px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48e895;
  box-shadow: 0 0 0 5px rgba(72, 232, 149, 0.1);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(72, 232, 149, 0);
  }
}
.overline {
  margin: 28px 0 8px;
  font-size: 14px;
  color: var(--primary-2);
  font-weight: 600;
}
.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(46px, 5.25vw, 78px);
  line-height: 1.17;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 span {
  background: linear-gradient(110deg, #9f86ff, #55dfff 62%, #a3ffcb);
  -webkit-background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #7557f8, #6641f4);
  box-shadow: 0 16px 32px rgba(108, 73, 245, 0.22);
}
.btn-secondary {
  background: var(--card);
  border-color: var(--line);
}
.quick-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font: 600 11px/1 var(--font-en);
  transition: color 0.2s ease;
}
.profile-link:hover {
  color: var(--text);
}
.profile-link svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.profile-link:first-child svg,
.profile-link:nth-child(2) svg {
  fill: currentColor;
  stroke: none;
}
.is-placeholder {
  opacity: 0.62;
}

.hero-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}
.code-window {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(7, 11, 20, 0.84);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(18px);
}
body.light .code-window {
  background: rgba(255, 255, 255, 0.91);
}
.float-card {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}
.window-top {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.window-dots {
  display: flex;
  gap: 6px;
}
.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b72;
}
.window-dots span:nth-child(2) {
  background: #ffc857;
}
.window-dots span:nth-child(3) {
  background: #49d98a;
}
.file-name {
  margin-inline: auto;
  color: var(--muted);
  font: 500 10px/1 var(--font-en);
}
.window-spacer {
  width: 48px;
}
.code-body {
  padding: 24px 16px 24px 12px;
  font: 500 13px/1.85 var(--font-en);
  color: #dfe5f0;
}
body.light .code-body {
  color: #2f3542;
}
.code-body > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  min-height: 24px;
}
.code-body code {
  white-space: nowrap;
}
.line-no {
  user-select: none;
  color: #4b5670;
  text-align: right;
  padding-right: 10px;
}
.kw {
  color: #c792ea;
}
.str {
  color: #a3d977;
}
.fn {
  color: #82aaff;
}
.bool {
  color: #ff966c;
}
.comment {
  color: #60708a;
  font-style: italic;
}
.typing-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: #8e73ff;
  vertical-align: -2px;
  margin-left: 3px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.window-footer {
  height: 35px;
  border-top: 1px solid var(--line);
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font: 500 9px/1 var(--font-en);
}
.window-footer span:first-child {
  margin-right: auto;
}
.green-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4dde91;
  border-radius: 50%;
  margin-right: 5px;
}
.mini-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 174px;
  padding: 12px 13px;
  background: color-mix(in srgb, var(--card-solid) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(15px);
}
.mini-card-1 {
  top: 55px;
  left: -16px;
  animation: float 5.4s ease-in-out infinite reverse;
}
.mini-card-2 {
  bottom: 52px;
  right: -20px;
  animation: float 6.2s ease-in-out infinite 1s;
}
.mini-icon {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font: 800 10px/1 var(--font-en);
}
.mini-card div {
  display: flex;
  flex-direction: column;
}
.mini-card strong {
  font: 700 11px/1.4 var(--font-en);
}
.mini-card small {
  color: var(--muted);
  font: 500 9px/1.5 var(--font-en);
}

.tech-marquee {
  margin-top: 76px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(
    90deg,
    transparent,
    black 7%,
    black 93%,
    transparent
  );
}
.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 15px 0;
  color: var(--muted);
  font: 600 11px/1 var(--font-en);
  animation: marquee 30s linear infinite;
}
.marquee-track i {
  color: var(--primary);
  font-style: normal;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
body[dir="rtl"] .marquee-track {
  animation-direction: reverse;
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 50px;
  margin-bottom: 50px;
}
.section-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--primary-2);
  font: 700 10px/1 var(--font-en);
  letter-spacing: 0.14em;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.section-head h2 span,
.contact h2 span {
  color: var(--muted);
}
.section-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
  max-width: 510px;
}

.about {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}
.story-card,
.principle-card,
.stack-card,
.project-card,
.process-step {
  border: 1px solid var(--line);
  background: var(--card);
}
.story-card {
  padding: 35px;
  border-radius: var(--radius);
  min-height: 100%;
}
.story-card p {
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 2;
  font-size: 14px;
}
.signature-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 15px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.signature {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.2),
    rgba(50, 215, 255, 0.12)
  );
  color: #9e88ff;
  font: 800 12px/1 var(--font-en);
}
.signature-row div:last-child {
  display: flex;
  flex-direction: column;
}
.signature-row strong {
  font: 700 12px/1.4 var(--font-en);
}
.signature-row small {
  color: var(--muted);
  font-size: 10px;
}
.principles {
  display: grid;
  gap: 12px;
}
.principle-card {
  padding: 22px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}
.principle-card > span {
  color: var(--primary);
  font: 800 11px/1 var(--font-en);
  padding-top: 6px;
}
.principle-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.principle-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stack-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 15px;
  padding: 23px;
  border-radius: 20px;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}
.stack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.32);
}
.stack-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.12);
  color: #a58fff;
  font: 800 10px/1 var(--font-en);
}
.stack-card small {
  color: var(--primary-2);
  font: 700 8px/1 var(--font-en);
  letter-spacing: 0.13em;
}
.stack-card h3 {
  margin: 5px 0 8px;
  font: 700 14px/1.3 var(--font-en);
}
.stack-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.projects {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.featured-project {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: var(--card);
  margin-bottom: 16px;
}
.project-showcase {
  min-height: 510px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.finance-showcase {
  background: linear-gradient(145deg, #0a1020, #111d38);
}
.showcase-glow {
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(79, 224, 255, 0.25),
    transparent 68%
  );
}
.app-window {
  width: 270px;
  background: #f7f8fc;
  color: #131722;
  border-radius: 30px;
  padding: 18px;
  transform: rotate(-4deg);
  box-shadow: 0 35px 60px rgba(0, 0, 0, 0.35);
}
.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
}
.app-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #151a29;
  color: white;
  font: 800 8px var(--font-en);
}
.balance-panel {
  margin-top: 20px;
  padding: 14px;
  border-radius: 18px;
  background: #11182b;
  color: white;
  display: flex;
  flex-direction: column;
}
.balance-panel small {
  color: #94a0b8;
  font-size: 8px;
}
.balance-panel strong {
  margin-top: 6px;
  font-size: 17px;
}
.balance-panel em {
  font-style: normal;
  font-size: 7px;
  font-weight: 500;
}
.bank-card-demo {
  height: 130px;
  margin-top: 12px;
  padding: 15px;
  border-radius: 20px;
  color: white;
  background: linear-gradient(135deg, #7658ff, #3e6ce8 55%, #28c0df);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 32px rgba(70, 86, 220, 0.25);
}
.bank-card-demo span {
  font: 700 9px var(--font-en);
}
.bank-card-demo strong {
  font: 700 14px var(--font-en);
  letter-spacing: 0.1em;
}
.bank-card-demo small {
  font: 600 8px var(--font-en);
}
.app-tabs {
  display: flex;
  justify-content: space-around;
  margin-top: 17px;
  color: #7b8290;
  font-size: 7px;
}
.featured-copy {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-number {
  color: var(--muted);
  font: 600 11px/1 var(--font-en);
}
.project-label {
  color: var(--primary-2);
  margin-top: 24px;
  font: 700 9px/1 var(--font-en);
  letter-spacing: 0.14em;
}
.featured-copy h3 {
  margin: 10px 0 14px;
  font: 800 34px/1.25 var(--font-en);
}
.featured-copy h3 span {
  font-family: var(--font-fa);
  color: var(--muted);
  font-size: 0.65em;
}
.featured-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
  margin: 0;
}
.project-points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.project-points span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font: 600 9px/1 var(--font-en);
}
.project-actions {
  display: flex;
  gap: 20px;
  margin-top: 26px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}
.text-link b {
  color: var(--primary-2);
  font-family: var(--font-en);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.project-card {
  border-radius: 26px;
  overflow: hidden;
}
.project-visual {
  min-height: 280px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.shop-visual {
  background: linear-gradient(145deg, #201330, #3b194f);
}
.apk-visual {
  background: linear-gradient(145deg, #071e27, #0c3c49);
}
.commerce-visual {
  background: linear-gradient(145deg, #321b10, #67351d);
}
.browser-bar {
  height: 28px;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px 12px 0 0;
}
.browser-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}
.shop-ui {
  height: 190px;
  display: grid;
  grid-template-columns: 58px 1fr;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.shop-sidebar {
  background: #22152e;
}
.shop-main {
  padding: 13px;
}
.shop-banner {
  height: 55px;
  border-radius: 8px;
  background: linear-gradient(135deg, #9d62cc, #6e35a1);
}
.shop-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 11px;
}
.shop-products span {
  height: 76px;
  border-radius: 7px;
  background: #ece7ef;
}
.apk-dashboard {
  display: grid;
  grid-template-columns: 60px 1fr;
  height: 210px;
  background: #eaf2f4;
  border-radius: 16px;
  overflow: hidden;
  transform: perspective(600px) rotateX(2deg) rotateY(-4deg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}
.apk-side {
  background: #0f2b34;
  padding: 18px 13px;
}
.apk-side span {
  display: block;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 12px;
  border-radius: 8px;
}
.apk-content {
  padding: 16px;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.metric-row i {
  height: 40px;
  background: #fff;
  border-radius: 8px;
}
.apk-table {
  margin-top: 12px;
  padding: 10px;
  background: white;
  border-radius: 9px;
}
.apk-table b {
  display: block;
  height: 10px;
  background: #edf1f3;
  border-radius: 5px;
  margin: 8px 0;
}
.commerce-card {
  height: 215px;
  background: #fff7f0;
  border-radius: 18px;
  padding: 16px;
  transform: rotate(2deg);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}
.commerce-head {
  display: flex;
  justify-content: space-between;
}
.commerce-head b {
  width: 32px;
  height: 13px;
  background: #4f2d20;
  border-radius: 8px;
}
.commerce-head span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #d9c0ae;
}
.commerce-hero {
  height: 74px;
  margin-top: 18px;
  border-radius: 12px;
  background: linear-gradient(120deg, #6e3d29, #c98655);
}
.commerce-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.commerce-row i {
  height: 62px;
  border-radius: 9px;
  background: #eadacf;
}
.project-card-body {
  padding: 26px;
}
.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font: 600 10px/1 var(--font-en);
}
.status-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.1);
  color: #a18cff;
  font-size: 8px;
}
.project-card h3 {
  margin: 16px 0 10px;
  font: 800 24px/1.3 var(--font-en);
}
.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.project-card-cta {
  min-height: 100%;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(
    145deg,
    rgba(124, 92, 255, 0.12),
    rgba(50, 215, 255, 0.05)
  );
}
.project-cta-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 16px;
  color: #9d86ff;
  font: 300 28px/1 var(--font-en);
}
.project-card-cta h3 {
  font-family: var(--font-fa);
  font-size: 23px;
}
.project-card-cta .btn {
  margin-top: 24px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.process-step {
  position: relative;
  padding: 25px;
  border-radius: 20px;
  min-height: 210px;
  overflow: hidden;
}
.process-step::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  top: -40px;
  left: -40px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.08);
}
.process-step > span {
  color: var(--primary);
  font: 800 10px/1 var(--font-en);
}
.process-step h3 {
  margin: 38px 0 9px;
  font-size: 15px;
}
.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.contact {
  padding-top: 70px;
}
.contact-card {
  position: relative;
  overflow: hidden;
  padding: 70px 60px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(
    145deg,
    rgba(124, 92, 255, 0.09),
    rgba(50, 215, 255, 0.035)
  );
}
.contact-glow {
  position: absolute;
  width: 430px;
  height: 430px;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 92, 255, 0.24),
    transparent 68%
  );
  pointer-events: none;
}
.contact h2 {
  margin: 10px auto 18px;
  max-width: 780px;
  font-size: clamp(37px, 5vw, 64px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.contact p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
}
.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.config-note {
  margin-top: 18px !important;
  font-size: 9px !important;
  opacity: 0.6;
}
.footer {
  padding: 32px 0 44px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.back-top {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  font: 600 15px var(--font-en);
}

/* Content is visible by default. This prevents a JS/observer error from hiding the whole page. */
.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.reveal-ready.visible {
  opacity: 1;
  transform: none;
}
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}

body[data-lang="en"] {
  direction: ltr;
}
body[data-lang="en"] .hero h1,
body[data-lang="en"] .section-head h2,
body[data-lang="en"] .project-card-cta h3,
body[data-lang="en"] .contact h2 {
  font-family: var(--font-en);
}
body[data-lang="en"] .featured-copy h3 span {
  font-family: var(--font-en);
}
body[data-lang="en"] .mini-card-1 {
  left: auto;
  right: -16px;
}
body[data-lang="en"] .mini-card-2 {
  right: auto;
  left: -20px;
}

@media (max-width: 980px) {
  .nav {
    position: fixed;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 10px 12px;
    border-radius: 10px;
  }
  .nav a:hover {
    background: var(--card);
  }
  .menu-btn {
    display: block;
    margin-inline-start: auto;
  }
  .nav-actions {
    margin-inline-start: 0;
  }
  .nav-cta {
    display: none;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-copy {
    text-align: center;
  }
  .availability-pill,
  .hero-actions,
  .quick-links {
    margin-inline: auto;
    justify-content: center;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .hero-visual {
    min-height: 430px;
  }
  .code-window {
    width: min(90%, 560px);
  }
  .mini-card-1 {
    left: 1%;
  }
  .mini-card-2 {
    right: 1%;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .about-grid,
  .featured-project {
    grid-template-columns: 1fr;
  }
  .featured-copy {
    order: -1;
  }
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1180px);
  }
  .section {
    padding: 82px 0;
  }
  .site-header {
    padding: 10px 0;
  }
  .nav-shell {
    min-height: 54px;
    gap: 10px;
  }
  .brand-copy {
    display: none;
  }
  .brand-mark {
    width: 39px;
    height: 39px;
  }
  .menu-btn {
    width: 39px;
    height: 39px;
  }
  .icon-btn,
  .lang-btn {
    height: 36px;
    min-width: 36px;
  }
  .hero {
    min-height: auto;
    padding-top: 120px;
  }
  .hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }
  .hero-lead {
    font-size: 13px;
    line-height: 1.95;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .btn {
    flex: 1;
    min-width: 145px;
  }
  .quick-links {
    gap: 14px;
  }
  .hero-visual {
    min-height: 370px;
  }
  .code-window {
    width: 100%;
  }
  .code-body {
    font-size: 10.5px;
    padding-inline: 8px;
  }
  .code-body > div {
    grid-template-columns: 28px 1fr;
  }
  .line-no {
    padding-right: 6px;
  }
  .mini-card {
    display: none;
  }
  .tech-marquee {
    margin-top: 35px;
  }
  .section-head {
    margin-bottom: 30px;
  }
  .section-head h2 {
    font-size: 34px;
  }
  .section-head > p {
    font-size: 12px;
  }
  .story-card {
    padding: 24px;
  }
  .principle-card {
    padding: 18px;
  }
  .stack-grid {
    grid-template-columns: 1fr;
  }
  .stack-card {
    padding: 20px;
  }
  .featured-copy {
    padding: 28px;
  }
  .featured-copy h3 {
    font-size: 28px;
  }
  .project-showcase {
    min-height: 390px;
  }
  .app-window {
    width: 235px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-visual {
    min-height: 240px;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-step {
    min-height: 165px;
  }
  .process-step h3 {
    margin-top: 25px;
  }
  .contact-card {
    padding: 50px 22px;
  }
  .contact h2 {
    font-size: 37px;
  }
  .contact-actions {
    flex-direction: column;
  }
  .contact-actions .btn {
    width: 100%;
  }
  .footer-inner {
    flex-wrap: wrap;
  }
  .footer-brand {
    display: none;
  }
  .footer p {
    max-width: 75%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
