@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/yekan-bakh-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/yekan-bakh-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/yekan-bakh-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #10283d;
  --ink-strong: #081b2a;
  --ink-soft: #526474;
  --navy: #123f67;
  --navy-deep: #0a2b48;
  --teal: #2fb8b8;
  --teal-soft: #dff5f3;
  --purple: #6650a4;
  --purple-soft: #eee9fb;
  --orange: #f9731f;
  --orange-soft: #fff0e5;
  --gold: #dfb928;
  --gold-soft: #fff7d6;
  --paper: #fbfcfa;
  --surface: #ffffff;
  --surface-soft: #f1f5f5;
  --line: #dce6e8;
  --success: #147a64;
  --shadow-sm: 0 12px 32px rgba(16, 40, 61, 0.08);
  --shadow-lg: 0 28px 80px rgba(10, 43, 72, 0.14);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --container: 1180px;
  --header-height: 78px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="fa"] body {
  font-family: "Yekan Bakh", Tahoma, Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 12%, rgba(47, 184, 184, 0.09), transparent 25rem),
    radial-gradient(circle at 86% 18%, rgba(223, 185, 40, 0.08), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 42%, #f5f8f7 100%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
ul,
ol {
  margin-block-start: 0;
}

p:last-child {
  margin-block-end: 0;
}

::selection {
  color: #ffffff;
  background: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--navy-deep);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1001;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
}

html[dir="rtl"] .scroll-progress {
  transform-origin: right center;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(76px, 9vw, 132px);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 840px;
}

.section--soft {
  background: rgba(238, 244, 244, 0.72);
  border-block: 1px solid rgba(220, 230, 232, 0.78);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(30px, 4.5vw, 64px);
  align-items: start;
  margin-block-end: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 14px;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.section-title {
  max-inline-size: 18ch;
  margin-block-end: 0;
  color: var(--ink-strong);
  font-size: clamp(2rem, 3.35vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

html[lang="fa"] .section-title {
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 660px;
  margin-block-end: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.nav-open .site-header {
  background: rgba(251, 252, 250, 0.92);
  border-bottom-color: rgba(220, 230, 232, 0.9);
  box-shadow: 0 10px 40px rgba(16, 40, 61, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  height: 48px;
  object-fit: contain;
}

html[lang="fa"] .brand img {
  height: 46px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-nav > a,
.nav-dropdown-toggle {
  position: relative;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav > a::after,
.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -7px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms var(--ease-out);
}

.primary-nav > a:hover::after,
.primary-nav > a:focus-visible::after,
.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle:focus-visible::after,
.nav-dropdown.is-open .nav-dropdown-toggle::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: 0;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}

.nav-dropdown-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms var(--ease-out);
}

.nav-dropdown.is-open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  inset-block-start: calc(100% + 18px);
  inset-inline-start: 50%;
  z-index: 20;
  width: max-content;
  min-width: 270px;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 180ms var(--ease-out), visibility 180ms ease;
}

html[dir="rtl"] .nav-dropdown-menu {
  transform: translate(50%, -8px);
}

.nav-dropdown.is-open .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

html[dir="rtl"] .nav-dropdown.is-open .nav-dropdown-menu {
  transform: translate(50%, 0);
}

.nav-dropdown-menu a {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 11px;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: var(--navy);
  background: var(--surface-soft);
}

.nav-dropdown-menu strong {
  font-size: 0.88rem;
}

.nav-dropdown-menu span {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 500;
}

.language-link {
  display: inline-flex;
  min-width: 50px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  color: var(--navy-deep);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(16, 40, 61, 0.05);
  transition: transform 180ms ease, border-color 180ms ease;
}

.language-link:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--navy-deep);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 99px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: min(900px, 100svh);
  display: grid;
  align-items: center;
  padding-block-start: calc(var(--header-height) + 72px);
  padding-block-end: 80px;
  overflow: clip;
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -160px;
  inset-block-start: 110px;
  z-index: -1;
  width: 560px;
  aspect-ratio: 1;
  border: 1px solid rgba(18, 63, 103, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(47, 184, 184, 0.025), 0 0 0 150px rgba(223, 185, 40, 0.02);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  gap: clamp(40px, 5.5vw, 84px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 22px;
  padding: 8px 14px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(16, 40, 61, 0.06);
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--teal-soft);
}

.hero h1 {
  max-inline-size: 15ch;
  margin-block-end: 24px;
  color: var(--ink-strong);
  font-size: clamp(3rem, 4.8vw, 4.75rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

html[lang="fa"] .hero h1 {
  max-inline-size: 16ch;
  font-size: clamp(2.8rem, 4.35vw, 4.4rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.hero h1 em {
  color: var(--navy);
  font-style: normal;
  background: linear-gradient(105deg, var(--navy) 12%, var(--teal) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 680px;
  margin-block-end: 34px;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.8vw, 1.25rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
}

html[dir="rtl"] .button svg {
  transform: scaleX(-1);
}

.button--primary {
  color: #ffffff;
  background: var(--navy-deep);
  box-shadow: 0 14px 34px rgba(10, 43, 72, 0.24);
}

.button--primary:hover {
  background: var(--navy);
  box-shadow: 0 18px 42px rgba(10, 43, 72, 0.28);
  transform: translateY(-3px);
}

.button--secondary {
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.84);
  border-color: var(--line);
}

.button--secondary:hover {
  background: #ffffff;
  transform: translateY(-3px);
}

.hero-stack {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-stack::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: 0;
  border-radius: 48% 52% 58% 42% / 48% 40% 60% 52%;
  background: linear-gradient(145deg, rgba(47, 184, 184, 0.2), rgba(102, 80, 164, 0.13) 50%, rgba(223, 185, 40, 0.18));
  filter: blur(2px);
  animation: morph 11s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-stack::after {
  content: "";
  position: absolute;
  inset: 16% 13%;
  z-index: 0;
  border: 1px solid rgba(18, 63, 103, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(47, 184, 184, 0.025), 0 0 0 86px rgba(102, 80, 164, 0.02);
  animation: ecosystemOrbit 18s linear infinite;
  pointer-events: none;
}

.ecosystem-links {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

html[dir="rtl"] .ecosystem-links {
  transform: scaleX(-1);
}

.ecosystem-link-base path,
.ecosystem-link-flow path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.ecosystem-link-base path {
  stroke: rgba(18, 63, 103, 0.15);
  stroke-width: 1.25;
  stroke-dasharray: 3 7;
}

.ecosystem-link-flow path {
  stroke: url(#ecosystem-gradient);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 8 92;
  animation: ecosystemFlow 4.8s linear infinite;
  filter: drop-shadow(0 0 5px rgba(47, 184, 184, 0.45));
}

.ecosystem-link-flow path:nth-child(2) {
  animation-delay: -1.6s;
}

.ecosystem-link-flow path:nth-child(3) {
  animation-delay: -3.2s;
}

.ecosystem-core {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  z-index: 2;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(47, 184, 184, 0.35);
  border-radius: 50%;
  box-shadow: 0 18px 48px rgba(10, 43, 72, 0.16), 0 0 0 12px rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

html[dir="rtl"] .ecosystem-core {
  transform: translate(50%, -50%);
}

.ecosystem-core::before,
.ecosystem-core::after,
.ecosystem-core span {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(47, 184, 184, 0.22);
  border-radius: 50%;
  animation: corePulse 3.8s ease-out infinite;
}

.ecosystem-core::after {
  animation-delay: -1.9s;
}

.ecosystem-core span {
  inset: 8px;
  border-color: rgba(102, 80, 164, 0.18);
  animation: coreSpin 7s linear infinite;
}

.ecosystem-core svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  stroke-width: 1.6;
}

.signal-card-shell {
  position: absolute;
  z-index: 3;
  width: min(340px, 82%);
  will-change: transform;
}

.js .hero-stack:not(.is-ready) .signal-card-shell {
  opacity: 0;
  scale: 0.94;
}

.js .hero-stack.is-ready .signal-card-shell {
  animation: ecosystemCardIn 700ms var(--ease-out) both;
}

.signal-card-shell--expertise {
  inset-block-start: 4%;
  inset-inline-start: 4%;
}

.signal-card-shell--capital {
  inset-block-start: 34%;
  inset-inline-end: 0;
  z-index: 4;
}

.signal-card-shell--network {
  inset-block-end: 4%;
  inset-inline-start: 9%;
  z-index: 5;
}

.signal-card-shell--capital {
  animation-delay: 100ms !important;
}

.signal-card-shell--network {
  animation-delay: 200ms !important;
}

.signal-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 130px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(220, 230, 232, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(15px);
  transition: transform 350ms var(--ease-out), box-shadow 350ms ease;
  animation: signalFloat 6.4s ease-in-out infinite;
}

.signal-card-shell:hover {
  z-index: 7;
}

.signal-card-shell:hover .signal-card {
  box-shadow: 0 32px 90px rgba(10, 43, 72, 0.2);
  animation-play-state: paused;
}

.signal-card--expertise {
  transform: rotate(-4deg);
}

.signal-card-shell--expertise:hover .signal-card {
  transform: rotate(-1deg) translateY(-8px);
}

.signal-card--capital {
  transform: rotate(3deg);
  animation-delay: -2.1s;
}

.signal-card-shell--capital:hover .signal-card {
  transform: rotate(1deg) translateY(-8px);
}

.signal-card--network {
  transform: rotate(-2deg);
  animation-delay: -4.2s;
}

.signal-card-shell--network:hover .signal-card {
  transform: rotate(0) translateY(-8px);
}

.signal-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
}

.signal-icon svg {
  width: 28px;
  height: 28px;
}

.signal-card--expertise .signal-icon {
  color: var(--orange);
  background: var(--orange-soft);
}

.signal-card--capital .signal-icon {
  color: #9b7900;
  background: var(--gold-soft);
}

.signal-card--network .signal-icon {
  color: var(--purple);
  background: var(--purple-soft);
}

.signal-label {
  margin-block-end: 3px;
  color: var(--ink-strong);
  font-size: 1.05rem;
  font-weight: 700;
}

.signal-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.metrics {
  position: relative;
  z-index: 3;
  margin-block-start: -26px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(10, 43, 72, 0.24);
}

.metric {
  position: relative;
  padding: 32px 30px;
  color: #ffffff;
}

.metric:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block: 26px;
  inset-inline-end: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.metric strong {
  display: block;
  margin-block-end: 4px;
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.metric span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}

.about-copy p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
}

.principles {
  display: grid;
  gap: 14px;
}

.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.principle-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--navy);
  background: var(--teal-soft);
  border-radius: 13px;
  font-weight: 700;
}

.principle h3 {
  margin-block-end: 4px;
  color: var(--ink-strong);
  font-size: 1.05rem;
}

.principle p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.brand-card {
  position: relative;
  display: flex;
  min-height: 460px;
  flex-direction: column;
  overflow: hidden;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 46px rgba(16, 40, 61, 0.07);
  transition: transform 320ms var(--ease-out), box-shadow 320ms ease, border-color 320ms ease;
}

.brand-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 5px;
}

.brand-card--orange::before {
  background: var(--orange);
}

.brand-card--purple::before {
  background: var(--purple);
}

.brand-card--gold::before {
  background: var(--gold);
}

.brand-card:hover {
  border-color: rgba(47, 184, 184, 0.5);
  box-shadow: var(--shadow-lg);
  transform: translateY(-9px);
}

.brand-card-logo {
  display: grid;
  min-height: 118px;
  align-items: center;
  margin-block-end: 28px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #edf1f1;
  border-radius: 18px;
}

.brand-card-logo img {
  width: 100%;
  height: 82px;
  object-fit: contain;
}

.brand-card h3 {
  margin-block-end: 8px;
  color: var(--ink-strong);
  font-size: 1.32rem;
}

.brand-card p {
  margin-block-end: 24px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.brand-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: auto;
  padding-block-start: 18px;
  border-top: 1px solid var(--line);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(20, 122, 100, 0.12);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

html[dir="rtl"] .text-link svg {
  transform: scaleX(-1);
}

.text-link:hover svg {
  transform: translateX(3px);
}

html[dir="rtl"] .text-link:hover svg {
  transform: scaleX(-1) translateX(3px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 38px rgba(16, 40, 61, 0.06);
  transition: transform 300ms var(--ease-out), box-shadow 300ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -54px;
  inset-block-end: -54px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(18, 63, 103, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(47, 184, 184, 0.03);
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-7px);
}

.project-card--featured {
  color: #ffffff;
  background: linear-gradient(145deg, var(--navy-deep), var(--navy));
  border-color: transparent;
}

.project-card--featured::after {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 30px rgba(47, 184, 184, 0.08), 0 0 0 62px rgba(223, 185, 40, 0.05);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-block-end: 36px;
}

.project-index {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.project-card--featured .project-index {
  color: var(--gold);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  color: var(--navy);
  background: var(--teal-soft);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
}

.project-card--featured .tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

.project-card h3 {
  position: relative;
  z-index: 1;
  margin-block-end: 12px;
  color: var(--ink-strong);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.25;
}

.project-card--featured h3 {
  color: #ffffff;
}

.project-card p {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin-block-end: 26px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.project-card--featured p {
  color: rgba(255, 255, 255, 0.75);
}

.project-card .text-link {
  position: relative;
  z-index: 1;
  margin-block-start: auto;
  width: fit-content;
}

.project-card--featured .text-link {
  color: var(--gold);
}

.project-card--wide {
  grid-column: 1 / -1;
  min-height: 285px;
}

.project-card--wide p {
  max-width: 820px;
}

.project-card--sublay {
  background: #f4f8f8;
  border-inline-start: 4px solid var(--teal);
}

.project-card--sublay::after {
  border-color: rgba(47, 184, 184, 0.14);
  box-shadow: 0 0 0 30px rgba(47, 184, 184, 0.05), 0 0 0 62px rgba(18, 63, 103, 0.035);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.process-step {
  position: relative;
  padding: 28px 24px;
  border-block-start: 1px solid var(--line);
}

.process-step::before {
  content: "";
  position: absolute;
  inset-block-start: -6px;
  inset-inline-start: 24px;
  width: 11px;
  height: 11px;
  background: var(--surface);
  border: 3px solid var(--teal);
  border-radius: 50%;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block: 28px;
  inset-inline-end: 0;
  width: 1px;
  background: var(--line);
}

.process-step span {
  display: block;
  margin-block-end: 14px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
}

.process-step h3 {
  margin-block-end: 8px;
  color: var(--ink-strong);
  font-size: 1.13rem;
}

.process-step p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.portfolio-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.portfolio-card h3 {
  margin-block-end: 14px;
  color: var(--ink-strong);
  font-size: 1.45rem;
}

.portfolio-card p {
  color: var(--ink-soft);
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 0 20px;
  padding: 0;
  list-style: none;
}

.role-list li {
  padding: 6px 10px;
  color: var(--navy);
  background: var(--surface-soft);
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 54px;
  overflow: hidden;
  padding: clamp(38px, 7vw, 80px);
  color: #ffffff;
  background: linear-gradient(145deg, var(--navy-deep), #123d61 64%, #165c71);
  border-radius: var(--radius-lg);
  box-shadow: 0 36px 100px rgba(10, 43, 72, 0.28);
}

.contact-panel::after {
  content: "";
  position: absolute;
  inset-inline-end: -120px;
  inset-block-end: -180px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(47, 184, 184, 0.06), 0 0 0 110px rgba(223, 185, 40, 0.035);
}

.contact-copy,
.contact-details {
  position: relative;
  z-index: 1;
}

.contact-panel .eyebrow {
  color: var(--gold);
}

.contact-panel h2 {
  max-width: 690px;
  margin-block-end: 20px;
  color: #ffffff;
  font-size: clamp(2rem, 3.55vw, 3.55rem);
  line-height: 1.16;
  text-wrap: balance;
}

.contact-panel .contact-lead {
  max-width: 620px;
  margin-block-end: 32px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-panel .button--primary {
  color: var(--navy-deep);
  background: var(--gold);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.contact-panel .button--primary:hover {
  background: #edca42;
}

.contact-details {
  display: grid;
  align-content: center;
  gap: 13px;
}

.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.contact-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item small {
  display: block;
  margin-block-end: 1px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 600;
}

.contact-item a,
.contact-item span {
  color: #ffffff;
  font-size: 0.92rem;
  text-decoration: none;
}

.site-footer {
  padding-block: 34px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block-start: 28px;
  border-top: 1px solid var(--line);
}

.footer-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.84rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--navy);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes morph {
  0% {
    border-radius: 48% 52% 58% 42% / 48% 40% 60% 52%;
    transform: rotate(0deg) scale(1);
  }
  100% {
    border-radius: 58% 42% 44% 56% / 58% 48% 52% 42%;
    transform: rotate(5deg) scale(1.04);
  }
}

@keyframes ecosystemOrbit {
  0% {
    transform: rotate(0deg) scale(0.98);
  }
  50% {
    transform: rotate(180deg) scale(1.02);
  }
  100% {
    transform: rotate(360deg) scale(0.98);
  }
}

@keyframes ecosystemFlow {
  to {
    stroke-dashoffset: -100;
  }
}

@keyframes corePulse {
  0% {
    opacity: 0.72;
    transform: scale(0.84);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes coreSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ecosystemCardIn {
  from {
    opacity: 0;
    scale: 0.94;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    scale: 1;
    filter: blur(0);
  }
}

@keyframes signalFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

@media (max-width: 1040px) {
  :root {
    --header-height: 72px;
  }

  .primary-nav {
    gap: 14px;
  }

  .primary-nav > a,
  .nav-dropdown-toggle {
    font-size: 0.86rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
    gap: 32px;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .brand-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: auto 1fr auto;
    column-gap: 28px;
    min-height: 0;
  }

  .brand-card-logo {
    grid-row: 1 / 4;
    min-height: 100%;
    margin: 0;
  }

  .brand-card-footer {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .nav-wrap {
    margin-inline-start: auto;
  }

  .primary-nav {
    position: fixed;
    inset-block-start: var(--header-height);
    inset-inline: 16px;
    display: grid;
    gap: 4px;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-height: calc(100svh - var(--header-height) - 32px);
    overflow-y: auto;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav-open .primary-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-nav > a,
  .nav-dropdown-toggle {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-inline: 12px;
    border-radius: 12px;
  }

  .primary-nav > a:hover,
  .nav-dropdown-toggle:hover {
    background: var(--surface-soft);
  }

  .primary-nav > a::after,
  .nav-dropdown-toggle::after {
    display: none;
  }

  .nav-dropdown-menu,
  html[dir="rtl"] .nav-dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-height: 0;
    padding: 0 8px;
    overflow: hidden;
    visibility: visible;
    opacity: 1;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
    transform: none;
    transition: max-height 220ms var(--ease-out), padding 220ms var(--ease-out);
  }

  .nav-dropdown.is-open .nav-dropdown-menu,
  html[dir="rtl"] .nav-dropdown.is-open .nav-dropdown-menu {
    max-height: 90px;
    padding-block: 4px 8px;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown-menu a {
    min-height: 58px;
    padding-inline: 14px;
    background: var(--surface-soft);
  }

  .hero {
    min-height: auto;
    padding-block-start: calc(var(--header-height) + 76px);
  }

  .hero-grid,
  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    min-height: 470px;
    width: min(620px, 100%);
    margin-inline: auto;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .metrics-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2)::after,
  .metric:nth-child(4)::after {
    display: none;
  }

  .metric:nth-child(-n + 2) {
    border-block-end: 1px solid rgba(255, 255, 255, 0.12);
  }

  .process-step:nth-child(2)::after,
  .process-step:nth-child(4)::after {
    display: none;
  }
}

@media (max-width: 680px) {
  :root {
    --radius-lg: 26px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand img,
  html[lang="fa"] .brand img {
    height: 38px;
  }

  .nav-wrap {
    gap: 8px;
  }

  .language-link {
    min-width: 44px;
    min-height: 42px;
    padding-inline: 10px;
  }

  .hero {
    padding-block-start: calc(var(--header-height) + 52px);
  }

  .hero h1,
  html[lang="fa"] .hero h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.5rem);
  }

  html[lang="fa"] .hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.35rem);
  }

  .hero-stack {
    min-height: 430px;
  }

  .signal-card-shell {
    width: 88%;
  }

  .signal-card {
    min-height: 112px;
    padding: 18px;
  }

  .ecosystem-core {
    width: 64px;
    height: 64px;
  }

  .ecosystem-core svg {
    width: 32px;
    height: 32px;
  }

  .signal-icon {
    width: 48px;
    height: 48px;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .metrics {
    margin-block-start: -8px;
  }

  .metric {
    padding: 24px 18px;
  }

  .project-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .brand-card {
    display: flex;
  }

  .brand-card-logo {
    min-height: 108px;
    margin-block-end: 24px;
  }

  .brand-card-footer {
    width: 100%;
  }

  .project-card,
  .portfolio-card {
    padding: 24px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .contact-panel {
    padding: 30px 22px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .js .hero-stack .signal-card-shell {
    opacity: 1;
    scale: 1;
    transform: none !important;
  }
}

@media print {
  .site-header,
  .scroll-progress,
  .button-row,
  .menu-toggle {
    display: none !important;
  }

  body {
    color: #000000;
    background: #ffffff;
  }

  .section {
    padding-block: 36px;
  }

  .hero {
    min-height: auto;
    padding-block-start: 36px;
  }

  .project-card,
  .brand-card,
  .portfolio-card,
  .contact-panel {
    break-inside: avoid;
    box-shadow: none;
  }
}

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.error-card {
  width: min(680px, 100%);
  padding: clamp(30px, 7vw, 68px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.error-card .brand {
  justify-content: center;
  margin-block-end: 24px;
}

.error-code {
  margin-block-end: 8px;
  color: var(--teal);
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
}

.error-card h1 {
  margin-block-end: 12px;
  color: var(--ink-strong);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
}

.error-card > p:not(.error-code) {
  margin-block-end: 28px;
  color: var(--ink-soft);
}

.error-card .button-row {
  justify-content: center;
}
