:root {
  --navy-900: #0b1626;
  --navy-800: #0f2038;
  --navy-700: #152b49;
  --navy-600: #1d3a5f;
  --sky-500: #4e8fc7;
  --sky-400: #7baeda;
  --sky-100: #e7f0f8;
  --white: #ffffff;
  --gray-50: #f6f7f9;
  --gray-100: #eef0f3;
  --gray-200: #e2e5ea;
  --gray-400: #9aa3b2;
  --gray-500: #6c7686;
  --gray-700: #414b5b;
  --ink: #101826;
  --radius-sm: 6px;
  --radius-md: 10px;
  --container: 1180px;
  --dur-fast: 0.2s;
  --dur-med: 0.5s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* ---- Theme tokens (Light = default) ---- */
  --bg-page: var(--white);
  --bg-surface: var(--white);
  --bg-elevated: var(--white);
  --input-bg: var(--white);
  --border-color: var(--gray-200);
  --text-heading: var(--navy-900);
  --text-body: var(--ink);
  --text-copy: var(--gray-700);
  --text-secondary: var(--gray-500);
  --text-muted: var(--gray-400);
  --chip-bg: var(--sky-100);
  /* Darker accent for small text/labels on light surfaces —
       --sky-500 alone fails AA contrast on white; this keeps the
       same brand hue while staying readable. */
  --accent-text: #2f6693;

  /* ---- Deep-surface tokens: Header/Hero/Industries/Final CTA/
       Placeholder/Mobile-menu (tier 1) and Stats/Footer (tier 2).
       Light = white/near-white, Dark = Primary/Navy. Text/border on
       these surfaces reuse the tokens above, which already flip
       correctly against either background. ---- */
  --surface-deep: var(--white);
  --surface-deep-alt: var(--gray-50);
  --surface-deep-hover: var(--gray-100);
  --hero-grad-start: var(--white);
  --hero-grad-end: var(--sky-100);
  --header-scrolled-bg: rgba(255, 255, 255, 0.86);
  --accent-panel-bg: var(--sky-100);
  --accent-panel-text: var(--navy-900);
  --accent-panel-text-secondary: rgba(16, 24, 38, 0.6);
  --accent-on-surface: var(--sky-500);
  --toggle-border: rgba(11, 22, 38, 0.16);
  --toggle-bg: rgba(11, 22, 38, 0.05);
  --toggle-hover-bg: rgba(11, 22, 38, 0.09);
  --toggle-hover-border: rgba(11, 22, 38, 0.32);
  --ghost-border: rgba(11, 22, 38, 0.22);
}

html[data-theme="dark"] {
  --bg-page: var(--navy-900);
  --bg-surface: var(--navy-800);
  --bg-elevated: var(--navy-800);
  --input-bg: var(--navy-700);
  --border-color: rgba(255, 255, 255, 0.12);
  --text-heading: var(--white);
  --text-body: rgba(255, 255, 255, 0.82);
  --text-copy: rgba(255, 255, 255, 0.75);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.42);
  --chip-bg: rgba(78, 143, 199, 0.18);

  --surface-deep: var(--navy-900);
  --surface-deep-alt: var(--navy-800);
  --surface-deep-hover: var(--navy-700);
  --hero-grad-start: var(--navy-900);
  --hero-grad-end: var(--navy-800);
  --header-scrolled-bg: rgba(11, 22, 38, 0.86);
  --accent-panel-bg: var(--navy-900);
  --accent-panel-text: var(--white);
  --accent-panel-text-secondary: rgba(255, 255, 255, 0.6);
  --accent-on-surface: var(--sky-400);
  /* On dark surfaces sky-400 already has strong contrast, so the
       label accent can reuse it as-is. */
  --accent-text: var(--sky-400);
  --toggle-border: rgba(255, 255, 255, 0.28);
  --toggle-bg: rgba(255, 255, 255, 0.06);
  --toggle-hover-bg: rgba(255, 255, 255, 0.14);
  --toggle-hover-border: #fff;
  --ghost-border: rgba(255, 255, 255, 0.28);
}

html {
  background: var(--bg-page);
}
html,
body {
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--bg-page);
  color: var(--text-body);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  line-height: 1.85;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

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

[id] {
  scroll-margin-top: 110px;
}

::selection {
  background: var(--sky-100);
  color: var(--navy-900);
}

:focus-visible {
  outline: 2px solid var(--sky-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Skip to content link ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 0;
  top: -100%;
  z-index: 999;
  background: var(--sky-500);
  color: var(--white);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ---------- Typography scale ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent-text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--sky-500);
  display: inline-block;
}
h1,
h2,
h3 {
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
h4 {
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.5;
}
.section-title {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 14px;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 560px;
  line-height: 1.85;
}
.section-head {
  margin-bottom: 48px;
}
.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head.center .section-sub {
  margin-left: auto;
  margin-right: auto;
}
.section-head.center .eyebrow {
  justify-content: center;
}
.section-head.center .eyebrow::before {
  display: none;
}

section {
  padding: 96px 0;
}
@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.22s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--navy-900);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--sky-500);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -10px rgba(11, 22, 38, 0.35);
}
.btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-heading);
}
.btn-outline:hover {
  border-color: var(--sky-500);
  color: var(--accent-text);
  transform: translateY(-2px);
  box-shadow: 0 10px 18px -12px rgba(78, 143, 199, 0.3);
}
.btn-ghost-light {
  border: 1px solid var(--ghost-border);
  color: var(--text-heading);
}
.btn-ghost-light:hover {
  border-color: var(--sky-500);
  background: var(--toggle-hover-bg);
  transform: translateY(-2px);
}
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-heading);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
  transition: all 0.3s var(--ease);
}
.btn-arrow:hover {
  border-color: var(--sky-500);
  color: var(--accent-text);
  gap: 12px;
}
.btn-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}
.btn-arrow:hover svg {
  transform: translateX(-4px);
}

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: all var(--dur-med) var(--ease);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header.scrolled {
  padding: 14px 0;
  background: var(--header-scrolled-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border-color);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 17px;
  color: var(--text-heading);
}
.logo-mark {
  width: 44px;
  height: 44px;
  background-image: url("../assets/logo/logo-mark.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.logo-text small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--sky-400);
  margin-top: 2px;
  letter-spacing: 0.01em;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}
nav.main-nav ul {
  display: flex;
  gap: 34px;
}
nav.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-copy);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--text-heading);
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: var(--sky-400);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}
nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  transform: scaleX(1);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-cta .btn {
  padding: 11px 22px;
  font-size: 14px;
}
.header-cta .btn-primary {
  background: var(--sky-500);
}
.header-cta .btn-primary:hover {
  background: var(--sky-400);
}
/* Header sits transparently over the Hero (or solid once scrolled),
     so its outline button must follow the theme like everything else.
     Overrides the legacy inline style="color:#fff;..." kept on the
     markup for backward compatibility. */
.header-cta .btn-outline {
  color: var(--text-heading) !important;
  border-color: var(--border-color) !important;
}
.header-cta .btn-outline:hover {
  color: var(--accent-text) !important;
  border-color: var(--sky-500) !important;
}

.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
}
.mobile-toggle svg {
  width: 22px;
  height: 22px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.22s var(--ease);
}
.theme-toggle:hover {
  background: var(--toggle-hover-bg);
  border-color: var(--toggle-hover-border);
  transform: translateY(-2px);
}
.theme-toggle-icon {
  display: block;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--surface-deep);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 26px 28px;
  overflow-y: auto;
  transform: translateY(-3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--dur-med) var(--ease),
    transform var(--dur-med) var(--ease),
    visibility 0s linear var(--dur-med);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity var(--dur-med) var(--ease),
    transform var(--dur-med) var(--ease),
    visibility 0s linear 0s;
}
.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}
.mobile-close {
  color: var(--text-heading);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-close svg {
  width: 22px;
  height: 22px;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu a {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  display: block;
}
.mobile-menu .btn {
  margin-top: 34px;
  justify-content: center;
  width: 100%;
}

@media (max-width: 960px) {
  nav.main-nav {
    display: none;
  }
  .header-cta .btn-outline {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}
@media (max-width: 560px) {
  .header-cta {
    gap: 10px;
  }
  .header-cta .lang-switch {
    display: none;
  }
  .header-cta .btn-primary {
    padding: 9px 14px;
    font-size: 13px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  .theme-toggle {
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 380px) {
  .container {
    padding: 0 18px;
  }
  .logo {
    gap: 8px;
    font-size: 15px;
  }
  .logo-mark {
    width: 30px;
    height: 30px;
  }
  .header-cta {
    gap: 8px;
  }
}

/* ---------- English Header Fit Fix (longer EN labels vs FA) ---------- */
html[lang="en"] .logo,
html[lang="en"] .logo-text {
  white-space: nowrap;
}
html[lang="en"] nav.main-nav a {
  white-space: nowrap;
}
html[lang="en"] nav.main-nav ul {
  gap: 22px;
}
html[lang="en"] .header-cta {
  gap: 10px;
}
html[lang="en"] .header-cta .btn {
  white-space: nowrap;
  padding: 11px 16px;
}
@media (max-width: 560px) {
  html[lang="en"] .header-cta .btn-primary {
    padding: 9px 12px;
    font-size: 12.5px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(
    175deg,
    var(--hero-grad-start) 0%,
    var(--hero-grad-end) 100%
  );
  color: var(--text-heading);
  padding: 168px 0 112px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  color: var(--text-heading);
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.28;
  margin-bottom: 24px;
}
.hero p {
  color: var(--text-copy);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 38px;
  line-height: 1.95;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
/* Fine background grid inside the hero illustration is a single
     <g> with an inline stroke tuned for the dark gradient; override
     it here so it stays visible against the light gradient too. */
.hero-visual svg > g {
  stroke: var(--border-color);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-copy > * {
  opacity: 0;
  animation: heroFadeUp 0.6s var(--ease) forwards;
}
.hero-copy > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero-copy > *:nth-child(2) {
  animation-delay: 0.15s;
}
.hero-copy > *:nth-child(3) {
  animation-delay: 0.25s;
}
.hero-copy > *:nth-child(4) {
  animation-delay: 0.35s;
}
.hero-copy > *:nth-child(5) {
  animation-delay: 0.45s;
}

.hero-visual {
  position: relative;
  height: 420px;
  opacity: 0;
  animation: heroFadeUp 0.7s var(--ease) 0.2s forwards;
}
.hero-visual svg {
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -30%;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(78, 143, 199, 0.14) 0%,
    rgba(78, 143, 199, 0) 70%
  );
  z-index: 1;
}
.hero::before {
  content: "";
  position: absolute;
  right: -12%;
  top: -25%;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(123, 174, 218, 0.09) 0%,
    rgba(123, 174, 218, 0) 70%
  );
  z-index: 1;
}

@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 150px 0 80px;
  }
  .hero-visual {
    height: 280px;
    order: -1;
    margin-bottom: 20px;
  }
}
@media (max-width: 560px) {
  .hero {
    padding: 128px 0 64px;
  }
  .hero-visual {
    height: 220px;
    margin-bottom: 8px;
  }
  .hero p {
    margin-bottom: 30px;
  }
}

/* draw-in line animation */
.draw-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 2.2s var(--ease) forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.fade-node {
  opacity: 0;
  animation: fadeNode 0.6s var(--ease) forwards;
}
@keyframes fadeNode {
  to {
    opacity: 1;
  }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--surface-deep-alt);
  padding: 0;
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-color);
}
.stat-item {
  padding: 52px 28px;
  text-align: center;
  border-left: 1px solid var(--border-color);
}
.stat-item:last-child {
  border-left: none;
}
.stat-num {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: 0.01em;
}
.stat-label {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 500;
}
@media (max-width: 720px) {
  .stats .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    padding: 36px 20px;
    border-bottom: 1px solid var(--border-color);
  }
}

/* ---------- About ---------- */
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-copy p {
  color: var(--text-copy);
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 520px;
}
.about-visual {
  background: var(--accent-panel-bg);
  border-radius: var(--radius-md);
  padding: 56px 40px;
  color: var(--accent-panel-text);
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-visual .since {
  font-size: 64px;
  font-weight: 800;
  color: var(--accent-panel-text);
  line-height: 1;
}
.about-visual .since-label {
  margin-top: 14px;
  color: var(--accent-panel-text-secondary);
  font-size: 14px;
}
.about-visual .grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}
.grid-lines g {
  stroke: var(--border-color);
}
@media (max-width: 900px) {
  .about .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-visual {
    order: -1;
  }
}
@media (max-width: 560px) {
  .about-visual {
    padding: 40px 28px;
    min-height: 260px;
  }
  .about-visual .since {
    font-size: 52px;
  }
}

/* ---------- Goals ---------- */
.goals {
  background: var(--bg-elevated);
}
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.goal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 44px 36px;
  position: relative;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.goal-card:hover {
  border-color: var(--sky-500);
  transform: translateY(-3px);
  box-shadow:
    0 10px 20px -12px rgba(11, 22, 38, 0.14);
  z-index: 1;
}
.goal-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  display: inline-block;
  transition:
    transform 0.35s var(--ease),
    color 0.35s var(--ease);
}
.goal-card:hover .goal-num {
  transform: scale(1.08);
  color: var(--text-heading);
}
.goal-card p {
  font-size: 15.5px;
  color: var(--text-heading);
  font-weight: 500;
  line-height: 1.9;
}
@media (max-width: 900px) {
  .goals-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: all 0.35s var(--ease);
}
.service-card:hover {
  border-color: var(--sky-500);
  box-shadow:
    0 10px 20px -12px rgba(11, 22, 38, 0.14);
  transform: translateY(-3px);
}
.service-index {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 26px;
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.service-card:hover .service-index {
  transform: scale(1.08);
}
.service-card h2,
.service-card h3 {
  font-size: 19px;
  margin-bottom: 16px;
}
.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}
.service-card li {
  font-size: 14.5px;
  color: var(--text-secondary);
  padding-right: 16px;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 9px;
  width: 5px;
  height: 1px;
  background: var(--text-muted);
}
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
.section-footer-action {
  margin-top: 44px;
  text-align: center;
}

/* ---------- Industries ---------- */
.industries {
  background: var(--surface-deep);
  color: var(--text-heading);
}
.industries .section-sub {
  color: var(--text-secondary);
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
}
.industry-tile {
  background: var(--surface-deep);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  transition: all 0.3s var(--ease);
  position: relative;
}
.industry-tile:hover {
  background: var(--surface-deep-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.22);
  z-index: 1;
}
.industry-tile:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--sky-400);
  pointer-events: none;
}
.industry-tile:hover .industry-index {
  color: var(--accent-on-surface);
}
.industry-tile:hover .industry-name {
  color: var(--text-heading);
}
.industry-index {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.3s var(--ease);
}
.industry-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-body);
  margin-top: 14px;
  line-height: 1.6;
  transition: color 0.3s var(--ease);
}
@media (max-width: 900px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .industries-grid {
    grid-template-columns: 1fr;
  }
}
.industries .section-footer-action .btn-ghost-line {
  color: var(--text-heading);
  border-bottom: 1px solid var(--border-color);
}

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.value-item {
  padding: 44px 28px;
  border-top: 1px solid var(--border-color);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.value-item:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 20px -12px rgba(11, 22, 38, 0.14);
}
.value-item:nth-child(-n + 2) {
  border-top: 1px solid var(--border-color);
}
.value-mark {
  font-size: 13px;
  color: var(--accent-text);
  font-weight: 700;
  margin-bottom: 18px;
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.value-item:hover .value-mark {
  transform: scale(1.08);
}
.value-item p {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.7;
  max-width: 440px;
}
@media (max-width: 720px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Credentials ---------- */
.credentials {
  background: var(--bg-elevated);
}
.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.cred-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.cred-card:hover {
  border-color: var(--sky-500);
  transform: translateY(-3px);
  box-shadow:
    0 10px 20px -12px rgba(11, 22, 38, 0.14);
}
.cred-card .cred-tag {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.cred-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
  line-height: 1.7;
  letter-spacing: normal;
}
.cred-card .cred-detail {
  font-size: 14px;
  color: var(--text-secondary);
}
.cred-card .cred-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}
@media (max-width: 720px) {
  .cred-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Management ---------- */
.management-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.member-card {
  text-align: center;
}
.member-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--sky-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
}
.member-card:hover .member-avatar {
  background: var(--sky-500);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 18px -8px rgba(78, 143, 199, 0.4);
}
.member-avatar.has-photo {
  padding: 0;
  overflow: hidden;
}
.member-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.member-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
  line-height: 1.5;
  letter-spacing: normal;
}
.member-card span {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  display: block;
}
@media (max-width: 900px) {
  .management-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 36px;
  }
}
@media (max-width: 560px) {
  .management-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--surface-deep);
  color: var(--text-heading);
  text-align: center;
}
.final-cta h2 {
  color: var(--text-heading);
  font-size: clamp(24px, 3.2vw, 36px);
  max-width: 640px;
  margin: 0 auto 36px;
}
.final-cta .hero-actions {
  justify-content: center;
}

/* ---------- Footer ---------- */
footer {
  background: var(--surface-deep-alt);
  color: var(--text-copy);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-color);
}
.footer-brand .logo {
  color: var(--text-heading);
  margin-bottom: 18px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 300px;
  line-height: 1.9;
}
footer h2,
footer h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 22px;
  line-height: 1.85;
  letter-spacing: normal;
}
footer ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
footer ul a {
  font-size: 14px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  transition:
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
footer ul a:hover {
  color: var(--accent-on-surface);
  transform: translateX(-3px);
}
.footer-contact-note {
  font-size: 13.5px;
  color: var(--text-secondary);
  background: var(--surface-deep-hover);
  border: 1px solid var(--border-color);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  line-height: 1.8;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.footer-contact-note:hover {
  border-color: var(--accent-on-surface);
}
.footer-contact-note a {
  color: var(--text-heading);
  transition: color 0.3s var(--ease);
}
.footer-contact-note a:hover {
  color: var(--accent-on-surface);
}
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Placeholder page (future routes) ---------- */
.placeholder-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-deep);
  color: var(--text-heading);
  text-align: center;
  padding: 0 28px;
}
.placeholder-page .eyebrow {
  justify-content: center;
}
.placeholder-page .eyebrow::before {
  display: none;
}
.placeholder-page .placeholder-title {
  color: var(--text-heading);
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 18px;
}
.placeholder-page p {
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 34px;
  font-size: 15.5px;
}
[hidden] {
  display: none !important;
}

/* ---------- About page (Stage 2) ---------- */
.page-hero .container {
  grid-template-columns: 1fr;
}
.page-hero .hero-copy {
  max-width: 760px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.timeline-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 44px 36px;
  position: relative;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.timeline-item:hover {
  border-color: var(--sky-500);
  transform: translateY(-3px);
  box-shadow:
    0 10px 20px -12px rgba(11, 22, 38, 0.14);
  z-index: 1;
}
.timeline-year {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 14px;
}
.timeline-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
}
@media (max-width: 900px) {
  .timeline-grid {
    grid-template-columns: 1fr;
  }
}

.stats-5 .container {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 900px) {
  .stats-5 .container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 560px) {
  .stats-5 .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Contact page (Stage 6) ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  position: relative;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.contact-info-card:hover {
  border-color: var(--sky-500);
  transform: translateY(-3px);
  box-shadow:
    0 10px 20px -12px rgba(11, 22, 38, 0.14);
  z-index: 1;
}
.contact-info-card .cred-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--chip-bg);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.contact-info-card h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
  letter-spacing: normal;
}
.contact-info-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
}
@media (max-width: 720px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 48px;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-copy);
  margin-bottom: 8px;
}
.contact-form .form-field {
  margin-bottom: 20px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-body);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--dur-fast) var(--ease);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--sky-400);
  outline-offset: 2px;
  border-color: var(--sky-400);
}
.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}
.contact-form .form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}
/* ---------- v5.4: اتصال فرم تماس با ما به دیتابیس ---------- */
.contact-form .contact-required {
  color: #c0392b;
}
.contact-form .contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-field-error {
  display: block;
  font-size: 12.5px;
  color: #c0392b;
  margin-top: 6px;
  min-height: 1px;
}
.contact-form-general-error,
.contact-form-success {
  font-size: 13.5px;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
}
.contact-form-general-error {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
}
.contact-form-success {
  color: #1e824c;
  background: rgba(30, 130, 76, 0.08);
  border: 1px solid rgba(30, 130, 76, 0.25);
}
.contact-form-general-error[hidden],
.contact-form-success[hidden] {
  display: none;
}
@media (max-width: 640px) {
  .contact-form {
    padding: 28px;
  }
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Blog page (Stage 8) ---------- */
.empty-state {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 64px 40px;
}
.empty-state h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 14px;
}
.empty-state p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
}
@media (max-width: 640px) {
  .empty-state {
    padding: 44px 24px;
  }
}

/* ---------- Mobile spacing & card polish (Stage 4) ---------- */
@media (max-width: 560px) {
  .section-head {
    margin-bottom: 36px;
  }
  .goal-card,
  .service-card,
  .cred-card,
  .timeline-item,
  .contact-info-card {
    padding: 32px 24px;
  }
  .value-item {
    padding: 32px 22px;
  }
  footer {
    padding: 56px 0 26px;
  }
  .footer-grid {
    gap: 36px;
    padding-bottom: 40px;
  }
}
