:root {
  --bg: #0c0c0c;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --text: #ffffff;
  --text-dim: #ababab;
  --accent: #f2c14e;
  --accent-soft: rgba(242, 193, 78, 0.14);
  --line: rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(0.16, 0.84, 0.36, 1);
  --f-en-display: "estedad", sans-serif;
  --f-en-body: "estedad", sans-serif;
  --f-fa: "estedad", sans-serif;
}
@font-face {
  font-family: "estedad";
  src: url(../fonts/YekanBakh-VF.woff2) format("truetype");
  letter-spacing: -0.5px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-en-body);
  overflow-x: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body {
  font-family: var(--f-fa);
}
::selection {
  background: var(--accent);
  color: #0a0a0a;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

[data-en],
[data-fa] {
  display: none;
}
html[lang="en"] [data-en] {
  display: revert;
}
html[lang="fa"] [data-fa] {
  display: revert;
}
html[lang="en"] span[data-en],
html[lang="en"] em[data-en],
html[lang="en"] b[data-en] {
  display: inline;
}
html[lang="fa"] span[data-fa],
html[lang="fa"] em[data-fa],
html[lang="fa"] b[data-fa] {
  display: inline;
}

/* ---------- Scroll progress ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform-origin: 0 0;
  transform: scaleX(0);
  z-index: 999;
}
html[dir="rtl"] .progress-bar {
  transform-origin: 100% 0;
}

/* ---------- Lenis helper ---------- */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}

/* ---------- Cursor glow ---------- */
.glow-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s;
  will-change: transform;
}

/* ---------- Nav ---------- */
header.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  padding: 22px 0;
  transition:
          background 0.4s var(--ease),
          backdrop-filter 0.4s var(--ease),
          padding 0.4s var(--ease),
          border-color 0.4s;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(21, 21, 21, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  padding: 14px 0;
  border-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--f-en-display);
  font-weight: 700;
  font-size: 18px;
}
.logo img {
  width: 45px;
  height: 45px;
}
.logo .mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}
.logo .mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), transparent 60%);
  opacity: 0.35;
}
.nav-links {
  display: flex;
  gap: 5px;
  list-style: none;
}
.nav-links a {
  position: relative;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.3s;
  border-radius: 30px;
  padding: 10px 20px;
}
.nav-links a:hover {
  color: var(--text);
  background: #ffffff12;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  background: rgba(255, 255, 255, 0.02);
}
.lang-switch button {
  position: relative;
  z-index: 2;
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #000;
  border-radius: 999px;
  transition: color 0.35s;
}
.lang-switch button.active {
  color: #000;
}
.lang-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.4s var(--ease);
  z-index: 1;
}
html[lang="fa"] .lang-pill {
  transform: translateX(calc(100% + 0px));
}
html[dir="rtl"] .lang-pill {
  left: auto;
  right: 4px;
  transform: none;
}
html[dir="rtl"][lang="en"] .lang-pill {
  transform: translateX(calc(-100% - 0px));
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--text);
  color: #070912;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.btn-primary span {
  position: relative;
  z-index: 2;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition:
          border-color 0.35s,
          background 0.35s;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
}
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  position: relative;
  transition: 0.3s;
}
.burger span::before {
  position: absolute;
  top: -5px;
}
.burger span::after {
  position: absolute;
  top: 5px;
}

/* magnetic wrapper */
.magnetic {
  display: inline-block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.blob-1 {
  width: 620px;
  height: 620px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, #3a2f0f, transparent 70%);
}
.blob-2 {
  width: 480px;
  height: 480px;
  bottom: -160px;
  left: -120px;
  background: radial-gradient(circle at 60% 60%, #1c1808, transparent 70%);
}
html[dir="rtl"] .blob-1 {
  right: auto;
  left: -120px;
}
html[dir="rtl"] .blob-2 {
  left: auto;
  right: -120px;
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#heroTitle svg {
  max-width: 100%;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero h1 {
  font-family: var(--f-en-display);
  font-weight: 600;
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  overflow: hidden;
}
html[lang="fa"] .hero h1 {
  font-family: var(--f-fa);
  font-weight: 800;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line .word {
  display: inline-block;
  transform: translateY(110%);
}
.hero h1 .accent-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}
.hero h1 .fill {
  color: var(--text);
}
.hero-sub {
  max-width: 560px;
  margin-top: 32px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dim);
}
.hero-cta {
  display: flex;
  gap: 18px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-meta {
  position: absolute;
  bottom: 48px;
  left: 0;
  width: 100%;
  z-index: 3;
}
.hero-meta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.meta-block {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-dim);
  font-size: 13px;
}
.meta-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.meta-icon i ,.socials i{
  font-size: 18px;
}
.scroll-cue {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.socials a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
@media (max-width: 768px) {
  .hero-meta {
    display: none;
  }
}

/* ---------- Section shared ---------- */
section {
  position: relative;
  z-index: 1;
}
.section {
  padding: 160px 0;
}
@media (max-width: 768px) {
  .section {
    padding: 96px 0;
  }
}
.eyebrow-sm {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  font-weight: 600;
}
.eyebrow-sm::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Statement ---------- */
.statement {
  background: var(--surface);
}
.statement-text {
  font-family: var(--f-en-display);
  font-size: clamp(32px, 5.4vw, 74px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 500;
  max-width: 1100px;
}
html[lang="fa"] .statement-text {
  font-family: var(--f-fa);
  font-weight: 700;
}
.statement-text .reveal-word {
  color: var(--text-dim);
}
.statement-text .reveal-word.in {
  color: var(--text);
}
.statement-text .accent {
  color: var(--accent);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
.about-head h2 {
  font-family: var(--f-en-display);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
html[lang="fa"] .about-head h2 {
  font-family: var(--f-fa);
  font-weight: 800;
}
.about-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.about-body p:last-child {
  margin-bottom: 0;
}
.about-body strong {
  color: var(--text);
  font-weight: 600;
}
.philosophy-list {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.philosophy-item {
  display: flex;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.philosophy-item .num {
  font-family: var(--f-en-display);
  color: var(--text-dim);
  font-size: 13px;
  padding-top: 4px;
  min-width: 28px;
}
.philosophy-item h4 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 600;
}
.philosophy-item p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ---------- Services (pricing cards) ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 54px;
}
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 42px 34px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  overflow: hidden;
  transition:
          transform 0.45s var(--ease),
          border-color 0.45s var(--ease);
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at 50% 0%, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.price-card:hover {
  transform: translateY(-8px);
  border-color: rgba(242, 193, 78, 0.5);
}
.price-card:hover::before {
  opacity: 1;
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(242, 193, 78, 0.08), var(--surface-2));
}
.price-card .badge {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 12px;
  border-radius: 999px;
}
.price-card .p-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}
.price-card .p-num {
  position: relative;
  z-index: 1;
  font-family: var(--f-en-display);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.price-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--f-en-display);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
html[lang="fa"] .price-card h3 {
  font-family: var(--f-fa);
  font-weight: 800;
  font-size: 24px;
}
.price-card .p-desc {
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 30px;
}
.price-card ul {
  position: relative;
  z-index: 1;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 38px;
  flex: 1;
}
.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
}
.price-card li::before {
  content: "\e949";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  font-family: ZWP-Icons;
}
.price-card .p-cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  transition: 0.35s;
}
.price-card:hover .p-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}
.price-card .p-cta:hover {
  background: var(--text);
  color: #070912;
  border-color: var(--text);
}
.price-card.featured .p-cta:hover {
  background: #d9a92e;
}
.p-cta i {
  font-size: 16px;
}

/* ---------- Skills cloud ---------- */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 60px;
}
.skill-chip {
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-dim);
  font-family: var(--f-en-display);
  transition: 0.4s var(--ease);
}
.skill-chip:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-4px);
}
.skill-chip.lg {
  font-size: 20px;
  padding: 16px 30px;
  color: var(--text);
}

/* ---------- Work (expanding box gallery) ---------- */
.work-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 54px;
}
.filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  transition: 0.3s;
}
.filter-btn.active,
.filter-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.work-row {
  display: flex;
  gap: 18px;
  height: 480px;
}
@media (max-width: 900px) {
  .work-row {
    flex-direction: column;
    height: auto;
  }
}
.project-card {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  transition:
          flex 0.65s var(--ease),
          border-color 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}
@media (max-width: 900px) {
  .project-card {
    flex: none !important;
    height: 120px;
    padding: 24px;
  }
}
.project-card.active {
  flex: 3.4;
}
@media (max-width: 900px) {
  .project-card.active {
    height: 280px;
  }
}
.project-card .pbg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
  transition: transform 0.8s var(--ease);
}
.project-card:hover .pbg,
.project-card.active .pbg {
  transform: scale(1.06);
}
.project-card .pscrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(2, 3, 10, 0.92) 10%, rgba(2, 3, 10, 0.25) 60%, rgba(2, 3, 10, 0.1) 100%);
}
.project-card .pnum {
  position: relative;
  z-index: 2;
  font-family: var(--f-en-display);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: auto;
}
.project-card .pcontent {
  position: relative;
  z-index: 2;
}
.project-card .ptype {
  display: inline-block;
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: var(--text-dim);
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
}
.project-card h3 {
  font-family: var(--f-en-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  transition: 0.5s var(--ease);
}
html[lang="fa"] .project-card h3 {
  font-family: var(--f-fa);
  font-weight: 700;
}
.project-card.active h3,
.project-card:hover h3 {
  writing-mode: horizontal-tb;
  white-space: normal;
  font-size: clamp(20px, 2.4vw, 30px);
}
.project-card .pdesc,
.project-card .pcta {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
          max-height 0.5s var(--ease),
          opacity 0.4s var(--ease) 0.1s,
          margin-top 0.5s var(--ease);
}
.project-card.active .pdesc,
.project-card:hover .pdesc {
  max-height: 80px;
  opacity: 1;
  margin-top: 12px;
}
.project-card.active .pcta,
.project-card:hover .pcta {
  max-height: 60px;
  opacity: 1;
  margin-top: 18px;
}
.project-card .pdesc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 440px;
}
.project-card .pcta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  width: fit-content;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.project-card .pcta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}

/* ---------- Spotlight border (shared: pricing + work cards) ---------- */
.price-card,
.project-card {
  --mx: 50%;
  --my: 50%;
}
.price-card::after,
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(
          260px circle at var(--mx) var(--my),
          rgba(255, 255, 255, 0.9),
          rgba(242, 193, 78, 0.5) 35%,
          transparent 60%
  );
  -webkit-mask:
          linear-gradient(#fff 0 0) content-box,
          linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
}
.price-card:hover::after,
.project-card:hover::after {
  opacity: 1;
}

/* ---------- Skills cloud (ensure visible) ---------- */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 60px;
}
.skill-chip {
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-dim);
  font-family: var(--f-en-display);
  transition: 0.4s var(--ease);
  opacity: 1; /* always visible; JS adds animation on scroll */
}
.skill-chip:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-4px);
}
.skill-chip.lg {
  font-size: 20px;
  padding: 16px 30px;
  color: var(--text);
}

/* ---------- Infinite Logo Carousel ---------- */
.logos-carousel-wrap {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 4px;
}
.logos-fade-l,
.logos-fade-r {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.logos-fade-l {
  left: 0;
  background: linear-gradient(to right, var(--surface) 20%, transparent);
}
.logos-fade-r {
  right: 0;
  background: linear-gradient(to left, var(--surface) 20%, transparent);
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  will-change: transform;
}
.logo-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 50px;
  flex-shrink: 0;
}
.logo-slide img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.45;
  transition: 0.4s;
}
.logo-slide:hover img {
  opacity: 1;
}

/* ---------- Horizontal Zigzag Process ---------- */
.process-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-top: 80px;
  padding-bottom: 60px;
  min-height: 420px;
}
@media (max-width: 900px) {
  .process-track {
    flex-direction: column;
    padding: 40px 0;
    min-height: unset;
  }
}
.proc-line-h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 8%, var(--line) 92%, transparent);
  transform: translateY(-50%);
  z-index: 0;
}
@media (max-width: 900px) {
  .proc-line-h {
    display: none;
  }
}
.proc-node {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.proc-node.top {
  margin-top: -120px;
}
.proc-node.bottom {
  margin-top: 120px;
}
@media (max-width: 900px) {
  .proc-node.top,
  .proc-node.bottom {
    margin-top: 0;
  }
}
.proc-connector {
  width: 1px;
  height: 64px;
  background: var(--line);
  flex-shrink: 0;
}
.proc-node.top .proc-connector {
  order: -1;
}
.proc-node.bottom .proc-connector {
  order: 1;
}
@media (max-width: 900px) {
  .proc-connector {
    display: none;
  }
}
.proc-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px;
  background: var(--surface);
  text-align: center;
  max-width: 200px;
  transition: 0.4s var(--ease);
}
.proc-box:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-6px);
}
.proc-dot-h {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--f-en-display);
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 auto 16px;
  transition: 0.4s;
}
.proc-box:hover .proc-dot-h {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.proc-box h3 {
  font-family: var(--f-en-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
html[lang="fa"] .proc-box h3 {
  font-family: var(--f-fa);
  font-weight: 700;
}
.proc-box p {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- Trust ---------- */
.trust {
  background: var(--surface);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 90px;
}
@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
.stat .num {
  font-family: var(--f-en-display);
  font-size: clamp(46px, 6vw, 84px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.stat .num .plus {
  color: var(--accent);
}
.stat .label {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 14px;
}
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 768px) {
  .testimonials {
    grid-template-columns: 1fr;
  }
}
.testi-card {
  background: var(--bg);
  padding: 42px;
}
.testi-quote {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 28px;
}
.testi-who {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #2a2410);
}
.testi-name {
  font-size: 14px;
  font-weight: 600;
}
.testi-role {
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.contact-head h2 {
  font-family: var(--f-en-display);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  max-width: 980px;
}
html[lang="fa"] .contact-head h2 {
  font-family: var(--f-fa);
  font-weight: 800;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 80px;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}
.field {
  margin-bottom: 26px;
}
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s;
}
.channel:hover {
  padding-inline-start: 10px;
}
.channel-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.channel-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-name {
  font-size: 13px;
  color: var(--text-dim);
}
.channel-value {
  font-family: var(--f-en-display);
  font-size: 18px;
  font-weight: 500;
}
html[lang="fa"] .channel-value {
  font-family: var(--f-fa);
}

/* ---------- Footer ---------- */
footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: 0.3s;
}
.footer-contact-item:hover {
  color: var(--accent);
}
.fc-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: 0.3s;
}
.footer-contact-item:hover .fc-icon {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.fc-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3px;
}
.fc-val {
  font-family: var(--f-en-display);
  font-size: 14px;
  font-weight: 500;
}
html[dir="rtl"] .fc-val {
  font-family: var(--f-fa);
  font-size: 13px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}
.back-top {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.back-top:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
  }
  .footer-links {
    gap: 28px;
  }
}

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--text);
  color: #070912;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition:
          opacity 0.4s var(--ease),
          transform 0.4s var(--ease);
}
html[dir="rtl"] .sticky-cta {
  right: auto;
  left: 28px;
}
.sticky-cta.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* reveal helpers */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}
.fade-in {
  opacity: 0;
}

/* mobile nav */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.mobile-menu.open {
  transform: translateY(0);
}
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}
.mobile-menu a {
  font-family: var(--f-en-display);
  font-size: 34px;
  font-weight: 600;
}
.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
html[dir="rtl"] .mobile-close {
  right: auto;
  left: 24px;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
}
@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-grid,
  .contact-grid {
    gap: 40px;
  }
  .stats-row {
    gap: 36px;
  }
}
