/* ==========================================================================
   فهرست فایل (TABLE OF CONTENTS):
   01. ROOT & VARIABLES
   02. RESET & GLOBAL STYLES
   03. TYPOGRAPHY & TEXT ELEMENTS
   04. BUTTONS & GLOBAL LINKS

   06. MAIN NAVIGATION & HEADER (Desktop & Mobile)
   07. HERO SECTION



   12. STATS (آمار)
   13. ABOUT (Who We Are)

   
   19. CONTACT FORM & INFO
   20. FOOTER
   21. SUB-PAGES & MISC COMPONENTS
========================================================================== */


/* ==========================================================================
   01. ROOT & VARIABLES (متغیرها و رنگ‌‌بندی پایه)
   ========================================================================== */
:root {
  /* Theme tokens — light base (:root). Dark overrides: body.dark-theme in dark-theme.css */
  /* Light: --cyan-primary #008f80, --blue-deep #0044b3, --paper #f0f4f8, --text-main #0f172a */
  --cyan-primary: #008f80;
  --blue-deep: #0044b3;
  --blue-navy: #0a5fb0;
  --black-void: #020407;
  --dark-navy: #050a15;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --border-fine: rgba(15, 23, 42, 0.08);
  --border-active: rgba(0, 143, 128, 0.3);
  --text-main: #0f172a;
  --text-muted: #475569;

  --void: #e2e8f0;
  --navy: #ffffff;
  --navy-mid: #ffffff;
  --navy-soft: #f8fafc;
  --steel: var(--text-muted);

  --ion: var(--cyan-primary);
  --ion-dim: rgba(0, 143, 128, 0.16);

  --paper: #f0f4f8;
  --section-band: #f2f2f2;
  --graphite: #e2e8f0;
  --white: #ffffff;
  --ink: var(--text-main);
  --muted: var(--text-muted);
  --line: var(--border-fine);
  --line-dark: var(--border-fine);

  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-brand: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --container: 1280px;
  --section-pad-y: clamp(72px, 8vw, 112px);
  --section-pad-x: max(4%, 36px);

  /* Footer — same in light and dark (bg #050A15; text-white / slate-400) */
  --footer-bg: #050a15;
  --footer-heading: #ffffff;
  --footer-muted: #94a3b8;
  --footer-border: #1a3b5c;
}

/* ==========================================================================
   02. RESET & GLOBAL STYLES (تنظیمات پایه و عمومی)
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

@media (max-width: 640px) {
  :root {
    --section-pad-x: 20px;
  }
}

/* Home: keep legacy fixed horizontal gutters (not --section-pad-x) */
body.page-home .industrial-hero .wrap,
body.page-home .contact-sec > .wrap,
body.page-home #who > .wrap {
  padding-left: 36px;
  padding-right: 36px;
}

@media (max-width: 640px) {
  body.page-home .industrial-hero .wrap,
  body.page-home .contact-sec > .wrap,
  body.page-home #who > .wrap,
  body.page-home footer > .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
}

section.block {
  padding: 110px 0;
}

section.block.alt {
  background: var(--graphite);
}

section.block.dark {
  background: var(--navy);
}

#investors {
  padding: var(--section-pad-y) 0;
  background: var(--section-band);
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head p {
  margin-top: 14px;
  font-size: 15px;
}

/* ==========================================================================
   03. TYPOGRAPHY & TEXT ELEMENTS (تایپوگرافی و عناوین)
   ========================================================================== */
.eyebrow,
.eyebrow.on-light {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan-primary) !important;
  font-weight: 600;
  margin-bottom: 18px;
  text-shadow: 0 0 10px rgba(0, 217, 194, 0.15);
}

.eyebrow::before,
.eyebrow.blue::before,
.eyebrow.on-light::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--cyan-primary) !important;
  box-shadow: 0 0 8px var(--cyan-primary);
}

.eyebrow.blue {
  color: var(--blue-deep) !important;
  text-shadow: 0 0 10px rgba(0, 144, 255, 0.15);
}

.eyebrow.blue::before {
  background: var(--blue-deep) !important;
  box-shadow: 0 0 8px var(--blue-deep);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
}

h3 {
  font-size: 22px;
  line-height: 1.35;
}

p {
  color: var(--muted);
}

/* ==========================================================================
   04. BUTTONS & GLOBAL LINKS (دکمه‌ها و لینک‌های عمومی)
   ========================================================================== */
.btn {
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: .2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--cyan-primary) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 144, 255, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--cyan-primary) 100%);
  box-shadow: 0 15px 35px rgba(0, 217, 194, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1.5px solid var(--border-active);
  color: var(--text-main);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: var(--ion-dim);
  border-color: var(--ion);
}

.btn-outline-blue {
  background: transparent;
  border: 1.5px solid var(--blue-deep);
  color: var(--blue-deep);
}

.btn-outline-blue:hover {
  background: color-mix(in srgb, var(--blue-deep) 12%, transparent);
  border-color: var(--blue-deep);
  color: var(--blue-deep);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 217, 194, 0.3);
  transition: all 0.3s ease;
  width: fit-content;
}

.link-arrow:hover {
  color: #fff;
  border-bottom-color: var(--cyan-primary);
  text-shadow: 0 0 10px rgba(0, 217, 194, 0.5);
  transform: translateX(4px);
}

.link-arrow .a {
  transition: transform 0.3s ease;
}

.link-arrow:hover .a {
  transform: translateX(5px);
}

/* ==========================================================================
   05. GLOBAL HERO BLOCK
   ========================================================================== */
.global-hero-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 10;
}

.gh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.05vw, 13px);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-wrap: balance;
  background: rgba(255, 255, 255, 0.05);
  padding: 7px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gh-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--cyan-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan-primary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 15px var(--cyan-primary);
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.gh-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0 10px 32px;
}

.gh-line {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, rgba(0, 217, 194, 0.5), transparent);
}

.gh-node .gh-line:last-child {
  background: linear-gradient(to top, rgba(0, 217, 194, 0.5), transparent);
}

.gh-connector {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan-primary);
  letter-spacing: 0.15em;
  padding: 4px 0;
  font-weight: 700;
}

.gh-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.gh-title .gh-highlight {
  color: rgba(255, 255, 255, 0.7);
}

.gh-subtitle {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--cyan-primary);
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(0, 217, 194, 0.3);
}

.gh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.gh-tag {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
}

.gh-tag:hover {
  transform: scale(1.08) translateY(-3px);
  background: rgba(0, 217, 194, 0.15);
  border-color: var(--cyan-primary);
  box-shadow: 0 10px 20px rgba(0, 217, 194, 0.2);
  color: var(--cyan-primary);
}

.gh-actions {
  margin-top: 40px;
}

.premium-eyebrow {
  background: rgba(2, 4, 7, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 217, 194, 0.25) !important;
  box-shadow: 0 8px 25px rgba(0, 217, 194, 0.1);
  color: #fff !important;
  letter-spacing: 0.08em !important;
}

/* ==========================================================================
   06. MAIN NAVIGATION & HEADER (منوی اصلی و هدر سایت)
   ========================================================================== */
header.site {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  transition: padding 0.55s cubic-bezier(0.33, 1, 0.68, 1);
  pointer-events: none;
}

.nav-inner {
  position: relative;
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  column-gap: 16px;
  height: 90px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
  box-sizing: border-box;
  background: rgba(2, 4, 7, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 217, 194, 0.15);
  border-radius: 0;
  transition:
    height 0.55s cubic-bezier(0.33, 1, 0.68, 1),
    max-width 0.55s cubic-bezier(0.33, 1, 0.68, 1),
    padding 0.55s cubic-bezier(0.33, 1, 0.68, 1),
    margin 0.55s cubic-bezier(0.33, 1, 0.68, 1),
    border-radius 0.55s cubic-bezier(0.33, 1, 0.68, 1),
    background 0.55s ease,
    border-color 0.55s ease,
    box-shadow 0.55s ease;
}

header.site > .wrap.nav-inner {
  /* .wrap also sets padding — use a single header padding */
  padding-left: clamp(16px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}

/* Full-width top bar when not scrolled (home + inner pages) */
header.site:not(.scrolled) {
  padding: 0;
}

header.site:not(.scrolled) > .wrap.nav-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  height: 72px;
  padding-left: calc(clamp(16px, 3vw, 40px) - 2px);
  padding-right: calc(clamp(16px, 3vw, 40px) - 2px);
}

header.site:not(.scrolled) .brand .mark {
  height: clamp(38px, 4.2vw, 48px);
}

header.site:not(.scrolled) .nav-cta,
header.site:not(.scrolled) .theme-toggle-btn,
header.site:not(.scrolled) .lang-toggle-btn {
  height: 34px;
}

header.site.header--home:not(.scrolled) nav.main>ul>li>a {
  padding: 4px clamp(4px, 0.4vw, 8px);
}

/* Top of page: fused glass over hero/poster (home uses .header--on-poster for fully clear bar) */
header.site:not(.scrolled):not(.header--on-poster) > .wrap.nav-inner {
  background: rgba(10, 15, 26, 0.05);
  backdrop-filter: blur(24px) saturate(1.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.55);
  border: none;
  border-bottom: none;
  box-shadow: none;
}

header.site:not(.scrolled):not(.header--on-poster) .nav-inner::before {
  opacity: 0;
}

header.site.scrolled > .wrap.nav-inner {
  max-width: min(1360px, calc(100% - 16px));
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.nav-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(2, 4, 7, 0.95) 0%, rgba(14, 22, 38, 0.3) 100%);
  opacity: 1;
  transition: opacity 0.6s ease;
}

.site .brand,
.brand {
  position: relative;
  z-index: 20;
  grid-column: 1;
  min-width: 0;
  flex-shrink: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(15px, 1.35vw, 19px);
  color: #fff;
  transition: font-size 0.5s ease;
  white-space: nowrap;
}

.brand small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: .15em;
  color: var(--cyan-primary);
  text-transform: uppercase;
}

.brand .mark {
  width: auto;
  height: clamp(40px, 4.8vw, 52px);
  flex: none;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: left center;
}

/* Inner pages — larger logo (home: .header--home + home-hero-horizon.css) */
header.site:not(.header--home) .brand .mark {
  height: clamp(46px, 5.4vw, 58px);
}

header.site:not(.header--home):not(.scrolled) .brand .mark {
  height: clamp(44px, 5vw, 56px);
}

header.site:not(.header--home).scrolled .brand .mark {
  height: clamp(42px, 4vw, 50px);
}

/* Header wordmark (logo.svg) — replaces .mark + title text */
header.site .brand.brand--wordmark {
  gap: 0;
  flex-shrink: 0;
  padding-top: 1px;
}

header.site .brand.brand--wordmark .brand-wordmark {
  display: block;
  width: auto;
  object-fit: contain;
  object-position: left center;
  flex: none;
}

header.site.header--home .brand.brand--wordmark .brand-wordmark {
  height: min(68px, calc(100% - 2px));
  max-height: 68px;
  max-width: min(310px, 74vw);
}

header.site.header--home:not(.scrolled) .brand.brand--wordmark .brand-wordmark {
  height: 68px;
}

header.site.header--home.scrolled .brand.brand--wordmark .brand-wordmark {
  height: 56px;
  max-height: 56px;
  max-width: min(258px, 70vw);
}

header.site:not(.header--home) .brand.brand--wordmark .brand-wordmark {
  height: min(56px, calc(100% - 2px));
  max-height: 56px;
  max-width: min(268px, 74vw);
}

header.site:not(.header--home):not(.scrolled) .brand.brand--wordmark .brand-wordmark {
  height: 56px;
}

header.site:not(.header--home).scrolled .brand.brand--wordmark .brand-wordmark {
  height: 50px;
  max-height: 50px;
  max-width: min(232px, 70vw);
}

.site .main,
header.site nav.main {
  grid-column: 2;
  position: static;
  left: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

nav.main {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site .main ul,
nav.main>ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px clamp(4px, 0.6vw, 10px);
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
  max-width: 100%;
}

@media (min-width: 1121px) {
  .site .main ul,
  nav.main>ul {
    flex-wrap: nowrap;
  }
}

nav.main>ul>li {
  position: relative;
}

nav.main>ul>li>a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px clamp(4px, 0.5vw, 8px);
  font-size: clamp(11.5px, 1.05vw, 14px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  white-space: nowrap;
}

nav.main>ul>li.has-dd > a::after {
  content: "▾";
  display: inline-block;
  position: static;
  width: auto;
  height: auto;
  margin-left: 2px;
  font-size: 9px;
  line-height: 1;
  background: none;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.22s ease;
}

nav.main>ul>li.has-dd:hover > a::after,
nav.main>ul>li.has-dd.open > a::after {
  opacity: 1;
}

nav.main>ul>li.has-dd.open > a::after {
  transform: rotate(180deg);
}

nav.main .dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 210px;
  padding: 6px 0;
  background: rgba(10, 15, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1100;
}

nav.main .dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

nav.main .dropdown a:hover,
nav.main .dropdown a.active {
  color: var(--cyan-primary);
  background: rgba(0, 217, 194, 0.08);
}

nav.main .dropdown-group {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

nav.main .dropdown-group-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

nav.main .dropdown-sub {
  padding-left: 24px;
  font-size: 12.5px;
  font-weight: 500;
}

nav.main>ul>li.has-dd.open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

header.site:not(.header--home) nav.main>ul>li.has-dd > a::after {
  bottom: auto;
  left: auto;
}

header.site:not(.header--home) nav.main>ul>li.has-dd > a:hover::after,
header.site:not(.header--home) nav.main>ul>li.has-dd > a.active::after {
  transform: none;
}

header.site:not(.header--home) nav.main>ul>li.has-dd.open > a:hover::after,
header.site nav.main>ul>li.has-dd.open > a::after {
  transform: rotate(180deg);
}

header.site.header--home nav.main>ul>li.has-dd > a::after {
  display: inline-block;
  content: "▾";
}

/* Inner pages: accent dot + glow on nav links */
header.site:not(.header--home) nav.main>ul>li>a:hover,
header.site:not(.header--home) nav.main>ul>li>a.active {
  color: var(--cyan-primary);
  text-shadow: 0 0 10px rgba(0, 217, 194, 0.4);
}

header.site:not(.header--home) nav.main>ul>li:not(.has-dd)>a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--cyan-primary);
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  box-shadow: 0 0 10px var(--cyan-primary);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

header.site:not(.header--home) nav.main>ul>li:not(.has-dd)>a:hover::after,
header.site:not(.header--home) nav.main>ul>li:not(.has-dd)>a.active::after {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

/* Home: plain white text links (same look for every item — no pill, no dot) */
header.site.header--home .main ul,
header.site.header--home nav.main>ul {
  flex-wrap: nowrap;
  gap: 2px clamp(12px, 1.25vw, 20px);
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

header.site.header--home nav.main>ul>li>a::after {
  display: none;
  content: none;
}

header.site.header--home nav.main>ul>li>a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue-navy);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  pointer-events: none;
}

header.site.header--home nav.main>ul>li>a {
  color: #000;
  font-size: clamp(13px, 0.28vw + 11px, 14px);
  font-weight: 500;
  padding: 6px clamp(6px, 0.5vw, 10px);
  border-radius: 0;
  background: none;
  transition:
    color 0.2s ease,
    font-size 0.35s ease,
    padding 0.35s ease;
}

header.site.header--home nav.main>ul>li>a:hover,
header.site.header--home nav.main>ul>li>a:focus-visible {
  color: #000;
  font-weight: 500;
  background: none;
  text-shadow: none;
}

header.site.header--home nav.main>ul>li>a:hover::before,
header.site.header--home nav.main>ul>li>a:focus-visible::before {
  transform: scaleX(1);
}

/* Current page (.active): same as idle until hover */
header.site.header--home nav.main>ul>li>a.active {
  color: #000;
  font-weight: 500;
}

header.site.header--home nav.main>ul>li>a.active::before {
  transform: scaleX(0);
}

header.site.header--home nav.main>ul>li>a.active:hover::before,
header.site.header--home nav.main>ul>li>a.active:focus-visible::before {
  transform: scaleX(1);
}

header.site.header--home .nav-inner::before {
  display: none;
}

/* Home — top of page: same horizontal track as .scrolled capsule (no layout jump) */
header.site.header--home:not(.scrolled) {
  padding: 0;
}

header.site.header--home > .wrap.nav-inner {
  width: 100%;
  transition:
    max-width 0.55s cubic-bezier(0.33, 1, 0.68, 1),
    height 0.55s cubic-bezier(0.33, 1, 0.68, 1),
    margin 0.55s cubic-bezier(0.33, 1, 0.68, 1),
    padding 0.55s cubic-bezier(0.33, 1, 0.68, 1),
    border-radius 0.55s cubic-bezier(0.33, 1, 0.68, 1),
    background 0.55s ease,
    border-color 0.55s ease,
    box-shadow 0.55s ease;
}

header.site.header--home:not(.scrolled) > .wrap.nav-inner {
  max-width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  border-radius: 0;
}

header.site.header--home .nav-inner {
  background: rgba(2, 4, 7, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header.site.header--home.scrolled {
  padding: 8px;
}

header.site.header--home.scrolled > .wrap.nav-inner {
  max-width: min(1360px, calc(100% - 16px));
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

header.site.header--home.scrolled .nav-inner {
  background: rgba(10, 15, 26, 0.38);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  column-gap: 10px;
}

header.site.header--home.scrolled .brand {
  font-size: clamp(15px, 0.5vw + 13px, 17px);
  gap: 8px;
}

header.site.header--home.scrolled .brand small {
  display: none;
}

header.site.header--home.scrolled .brand .mark {
  height: 38px;
  transform: none;
}

header.site.header--home.scrolled nav.main>ul {
  gap: 0 clamp(8px, 1vw, 16px);
}

header.site.header--home.scrolled nav.main>ul>li>a {
  font-size: clamp(12.5px, 0.22vw + 10px, 13.5px);
  padding: 5px clamp(4px, 0.4vw, 7px);
}

header.site.header--home.scrolled .nav-cta {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

@media (max-width: 1023px) {
  body.page-home header.site.header--home nav.main>ul>li>a,
  body.page-home header.site.header--on-poster nav.main>ul>li>a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
  }

  body.page-home header.site.header--home nav.main>ul>li>a::before,
  body.page-home header.site.header--on-poster nav.main>ul>li>a::before {
    display: none;
  }

  body.page-home header.site.header--home nav.main>ul>li>a:hover,
  body.page-home header.site.header--on-poster nav.main>ul>li>a:hover {
    color: var(--cyan-primary);
    font-weight: 500;
  }

  body.page-home header.site.header--home nav.main>ul>li>a.active,
  body.page-home header.site.header--on-poster nav.main>ul>li>a.active {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
  }
}

header.site.header--home .nav-cta {
  box-shadow: none;
}

header.site.header--home .nav-actions .nav-cta:hover,
header.site.header--home .nav-actions .theme-toggle-btn:hover,
header.site.header--home .nav-actions .lang-toggle-btn:hover {
  transform: none;
}

.site .nav-actions,
.nav-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  margin-left: 0;
  min-width: 0;
}

.nav-cta {
  margin: 0;
  margin-inline-start: 0;
  height: 36px;
  padding: 0 clamp(12px, 1.2vw, 18px);
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--black-void);
  color: var(--text-main) !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease, top 0.5s cubic-bezier(0.25, 1, 0.5, 1), right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-actions .nav-cta:hover,
.nav-actions .theme-toggle-btn:hover,
.nav-actions .lang-toggle-btn:hover,
.nav-actions .nav-cta:focus-visible,
.nav-actions .theme-toggle-btn:focus-visible,
.nav-actions .lang-toggle-btn:focus-visible {
  background: var(--cyan-primary);
  color: var(--void) !important;
  border-color: transparent;
  box-shadow: 0 0 20px var(--ion-dim);
}

.nav-actions .nav-cta:hover,
.nav-actions .nav-cta:focus-visible {
  transform: scale(1.05);
}

.theme-toggle-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle-btn .theme-icon[hidden] {
  display: none;
}

body:not(.page-home) .theme-toggle-btn {
  display: none !important;
}

.lang-switcher {
  position: relative;
  display: inline-block;
  margin: 0;
}

.lang-toggle-btn {
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}


@media (min-width: 1121px) and (max-width: 1320px) {
  .brand small {
    display: none;
  }
}

header.site.scrolled {
  padding: 8px;
}

header.site.scrolled .theme-toggle-btn {
  display: none;
}

header.site.scrolled .nav-inner {
  height: 62px;
  max-width: 100%;
  width: 100%;
  padding: 0 24px 0 32px;
  background: rgba(10, 15, 26, 0.38);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  column-gap: 10px;
}

header.site.scrolled .nav-inner::before {
  opacity: 0;
}

header.site.scrolled .brand .mark {
  height: clamp(38px, 3.2vw, 44px);
  transform: none;
}

header.site.scrolled .brand {
  font-size: 17.5px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
  transition: 0.3s;
  border-radius: 2px;
}

@media (max-width: 1120px) {
  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 76px;
    column-gap: 12px;
  }

  header.site:not(.scrolled) > .wrap.nav-inner {
    height: 64px;
    padding-left: 18px;
    padding-right: 18px;
  }

  header.site:not(.scrolled) .brand .mark {
    height: 40px;
  }

  header.site:not(.header--home):not(.scrolled) .brand .mark {
    height: 48px;
  }

  header.site.scrolled {
    padding: 16px;
  }

  header.site.scrolled .nav-inner {
    height: 64px;
    padding: 0 20px;
    border-radius: 16px;
    max-width: 100%;
  }

  .brand .mark {
    height: 44px;
  }

  header.site:not(.header--home) .brand .mark {
    height: 52px;
  }

  header.site.scrolled .brand .mark {
    height: 40px;
    transform: none;
  }

  header.site:not(.header--home).scrolled .brand .mark {
    height: 46px;
  }

  header.site.header--home .brand.brand--wordmark .brand-wordmark {
    height: min(60px, calc(100% - 2px));
    max-height: 60px;
    max-width: min(274px, 80vw);
  }

  header.site.header--home.scrolled .brand.brand--wordmark .brand-wordmark {
    height: 52px;
    max-height: 52px;
    max-width: min(238px, 76vw);
  }

  header.site:not(.header--home) .brand.brand--wordmark .brand-wordmark {
    height: min(52px, calc(100% - 2px));
    max-height: 52px;
    max-width: min(248px, 78vw);
  }

  header.site:not(.header--home).scrolled .brand.brand--wordmark .brand-wordmark {
    height: 46px;
    max-height: 46px;
    max-width: min(216px, 76vw);
  }

  .burger {
    display: flex;
  }

  .site .main,
  header.site nav.main,
  nav.main {
    position: fixed;
    inset: 0;
    grid-column: auto;
    width: auto;
    max-width: none;
    background: rgba(10, 15, 26, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transform: translateY(-100%);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
  }

  .site .main.open,
  nav.main.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  nav.main>ul {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    gap: 16px;
  }

  header.site.header--home nav.main>ul>li>a {
    padding: 12px 16px;
    font-size: 18px;
    opacity: 1;
  }

  nav.main>ul>li>a {
    padding: 12px;
    font-size: 18px;
    color: #fff;
  }

  nav.main .dropdown {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    max-width: 300px;
    margin: 4px auto 8px;
    padding: 4px 0;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 10px;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  nav.main>ul>li.has-dd:hover .dropdown,
  nav.main>ul>li.has-dd:focus-within .dropdown {
    visibility: visible;
    pointer-events: auto;
  }

  nav.main .dropdown a {
    text-align: center;
    font-size: 16px;
    padding: 10px 16px;
  }

  nav.main>ul>li>a::after {
    display: none;
  }

  .nav-actions .nav-cta {
    display: none !important;
  }

  nav.main .nav-cta {
    display: block !important;
    margin: 32px 0 0;
    font-size: 16px;
    padding: 14px 32px;
  }

  .burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Home: horizontal nav from 1024px (overrides global burger ≤1120px) */
@media (min-width: 1024px) {
  body.page-home .burger {
    display: none;
  }

  body.page-home .nav-actions .nav-cta {
    display: flex !important;
  }

  body.page-home .site .main,
  body.page-home header.site nav.main {
    position: static;
    inset: auto;
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: row;
    padding: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
  }

  body.page-home nav.main>ul {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: auto;
    gap: 2px clamp(6px, 0.75vw, 14px);
  }

  body.page-home nav.main>ul>li>a {
    padding: 6px clamp(4px, 0.35vw, 8px);
    font-size: clamp(11px, 0.85vw, 13px);
  }

  body.page-home nav.main .dropdown {
    position: absolute;
    opacity: 0;
    visibility: hidden;
  }

  body.page-home nav.main>ul>li.has-dd.open .dropdown {
    opacity: 1;
    visibility: visible;
  }
}

/* Header menus open as a modal; the page behind dims and blurs */
.nav-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

body.nav-modal-open {
  overflow: hidden;
}

body.nav-modal-open .nav-modal-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mega open: active header tab + double rule directly under that item */
body.nav-modal-open nav.main > ul > li.is-mega-active > a {
  color: var(--cyan-primary);
  text-shadow: none;
}

body.nav-modal-open header.site:not(.header--home) nav.main > ul > li.is-mega-active > a {
  text-shadow: none;
}

.nav-mega-tab-mark {
  position: fixed;
  pointer-events: none;
  z-index: 1102;
}

.nav-mega-tab-mark__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 1px;
}

.nav-mega-tab-mark__line--1 {
  top: 0;
  background: var(--blue-deep, #0044b3);
}

.nav-mega-tab-mark__line--2 {
  background: var(--cyan-primary);
}

body.nav-modal-open header.site nav.main > ul > li > a:hover::before,
body.nav-modal-open header.site nav.main > ul > li > a:focus-visible::before {
  transform: scaleX(0);
}

body.nav-modal-open header.site:not(.header--home) nav.main > ul > li:not(.has-dd) > a:hover::after,
body.nav-modal-open header.site:not(.header--home) nav.main > ul > li:not(.has-dd) > a.active::after,
body.nav-modal-open header.site:not(.header--home) nav.main > ul > li:not(.has-dd).is-mega-active > a::after {
  opacity: 0;
  transform: translateX(-50%) scale(0);
}

.nav-mega {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(1040px, calc(100vw - 32px));
  min-height: 320px;
  max-height: min(72vh, 560px);
  display: flex;
  overflow: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
  z-index: 1101;
  color: #14202b;
}

.nav-mega[hidden] {
  display: none;
}

.nav-mega-intro {
  position: relative;
  flex: 0 0 min(300px, 34%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px 28px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.nav-mega-intro-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: inherit;
}

.nav-mega-intro-desc {
  margin: 0;
  flex: 1;
  max-width: 28ch;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(20, 32, 43, 0.72);
}

.nav-mega-all {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
}

.nav-mega-go {
  width: 28px;
  height: 28px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.nav-mega-cols {
  flex: 1;
  display: flex;
  gap: 0;
  min-width: 0;
}

.nav-mega-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px 36px;
  min-width: 0;
}

.nav-mega-col--mid {
  flex: 0 0 220px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.nav-mega-col--right {
  flex: 1;
  min-width: 180px;
}

.nav-mega-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
}

.nav-mega-link-text {
  flex: 1;
  min-width: 0;
}

.nav-mega-link--branch {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-mega-link--branch .nav-mega-link-text {
  flex: 0 1 auto;
}

.nav-mega-go.nav-mega-go--inline {
  width: auto;
  height: auto;
  min-width: 0;
  margin-left: 6px;
  padding: 0;
  border: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: calc(1.05em + 5px);
  font-weight: 600;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-mega-col--right .nav-mega-go.nav-mega-go--inline {
  font-size: 32px;
}

.nav-mega-link:hover .nav-mega-go--inline,
.nav-mega-link:focus-visible .nav-mega-go--inline {
  opacity: 1;
  color: var(--blue-deep, #0044b3);
}

.nav-mega-link:hover,
.nav-mega-all:hover {
  color: var(--cyan-primary);
}

.nav-mega--solo .nav-mega-cols {
  display: none;
}

.nav-mega--two-cols .nav-mega-col--right {
  display: none;
}

.nav-mega--two-cols .nav-mega-col--mid {
  flex: 1;
  border-right: 0;
}

body.dark-theme .nav-modal-backdrop,
body.dark-theme.nav-modal-open .nav-modal-backdrop {
  background: rgba(2, 4, 7, 0.46);
}

body.dark-theme .nav-mega {
  background: rgba(12, 18, 28, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
}

body.dark-theme .nav-mega-intro {
  border-right-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .nav-mega-intro-desc {
  color: rgba(255, 255, 255, 0.62);
}

body.dark-theme .nav-mega-col--mid {
  border-right-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 800px) {
  .nav-mega {
    flex-direction: column;
    width: min(480px, calc(100vw - 24px));
    min-height: 0;
    max-height: calc(100vh - 108px);
  }

  .nav-mega-intro {
    flex: none;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 24px 22px 20px;
  }

  .nav-mega-intro-desc {
    max-width: none;
  }

  .nav-mega-cols {
    flex-direction: column;
  }

  .nav-mega-col {
    padding: 20px 22px;
  }

  .nav-mega-col--mid {
    flex: none;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .nav-mega--two-cols .nav-mega-col--right {
    display: none;
  }
}

/* ==========================================================================
   07. HERO SECTION (INDUSTRIAL PROCESS PREMIUM)
   ========================================================================== */
.industrial-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #05080B;
  /* رنگ پس زمینه سازمانی بسیار تاریک و لوکس */
}

.hero-canvas-container {
  position: absolute;
  right: -15%;
  top: 50%;
  transform: translateY(-50%);
  width: 70vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, #05080B 0%, rgba(5, 8, 11, 0.85) 45%, transparent 80%);
}

.industrial-hero .hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 140px 0 80px;
}

.industrial-hero .hero-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.hero-text-col {
  width: 100%;
  max-width: 750px;
}

/* --- تایپوگرافی باوقار شرکتی --- */
.hero-mega-title {
  margin: 30px 0;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.thin-text {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.solid-text {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-block;
  margin-top: 5px;
}

.saf-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: -5px;
  max-width: 100%;
}

.saf-badge {
  color: var(--cyan-primary);
  background: color-mix(in srgb, var(--cyan-primary) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan-primary) 30%, transparent);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  border-radius: 6px;
  transform: translateY(-8px);
}

.gh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.gh-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #00C7D9;
  border: 1px solid rgba(0, 199, 217, 0.3);
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(0, 199, 217, 0.05);
}

.industrial-btn {
  background: #087FC1;
  /* رنگ آبی سازمانی */
  color: #ffffff;
  border: 1px solid #087FC1;
  box-shadow: none !important;
  /* حذف نئون */
  transition: all 0.3s ease;
}

.industrial-btn:hover {
  background: #00C7D9;
  border-color: #00C7D9;
  color: #05080B;
  transform: translateY(-2px);
}

.industrial-btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.industrial-btn-ghost:hover {
  border-color: #00C7D9;
  color: #00C7D9;
}

.hero-legend {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px 20px;
  background: rgba(5, 8, 11, 0.6);
  backdrop-filter: blur(8px);
  min-width: 250px;
}

.hero-legend .legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: none !important;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 36px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* رسپانسیو */
@media (max-width: 1024px) {
  .industrial-hero .hero-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-canvas-container {
    right: 0;
    width: 100vw;
  }

  .hero-veil {
    background: linear-gradient(180deg, #05080B 0%, rgba(5, 8, 11, 0.85) 50%, rgba(5, 8, 11, 0.2) 100%);
  }
}

/* ==========================================================================
   07. HERO SECTION (STRICT INDUSTRIAL PREMIUM + KINETIC MASK)
   ========================================================================== */
.industrial-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #05080B;
}

.hero-canvas-container {
  position: absolute;
  right: -15%;
  top: 50%;
  transform: translateY(-50%);
  width: 70vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, #05080B 0%, rgba(5, 8, 11, 0.85) 45%, transparent 80%);
}

.industrial-hero .hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 140px 0 80px;
}

.industrial-hero .hero-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.hero-text-col {
  width: 100%;
  max-width: 780px;
  /* فضای بیشتر برای کلمه طولانی AVIATION */
}

/* --- تایپوگرافی --- */
.hero-mega-title {
  margin: 30px 0;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.thin-text {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* افکت ماسک سیال (Liquid Flow) با پالت مجاز سازمانی */
.industrial-masked-text {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 68px);
  /* کمی بهینه‌تر برای کلمات طولانی */
  font-weight: 900;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 5px;
  line-height: 1.1;

  background: linear-gradient(-45deg, #087FC1 0%, #00C7D9 30%, #087FC1 60%, #55C95A 100%);
  background-size: 250% 250%;

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;

  animation: liquidFlow 12s ease-in-out infinite;
}

.hero-mega-title-stack {
  display: inline-block;
  max-width: 100%;
}

.hero-mega-title-stack .thin-text {
  display: block;
}

.hero-mega-title-stack .hero-mega-ammonia {
  display: block;
  width: 100%;
  margin-top: 6px;
  text-align: center;
  font-size: clamp(40px, 6.5vw, 80px);
}

.hero-mega-title > .thin-text {
  display: block;
}

.hero-mega-headlines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: 100%;
  margin-top: 6px;
}

.hero-mega-headlines .industrial-masked-text {
  display: block;
  margin-top: 0;
  text-align: left;
  line-height: 1.05;
}

.hero-mega-headlines .hero-mega-ammonia {
  width: auto;
  font-size: clamp(40px, 6.5vw, 80px);
}

.hero-mega-headlines .saf-line-top,
.hero-mega-headlines .hero-mega-fuel {
  font-size: clamp(22px, 3.6vw, 56px);
}

.hero-mega-fuel-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-mega-fuel-row .hero-mega-saf {
  margin-top: 0;
}

.hero-mega-saf {
  margin-top: 12px;
}

@keyframes liquidFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.saf-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 4px;
  max-width: 100%;
}

.saf-row .industrial-masked-text {
  margin-top: 0;
  font-size: clamp(22px, 3.6vw, 56px);
  line-height: 1.05;
}

.saf-line-bottom {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}

.saf-line-bottom .industrial-masked-text {
  flex: 0 1 auto;
}

.saf-line-bottom .saf-badge {
  flex: 0 0 auto;
}

.saf-badge {
  color: #55C95A;
  background: rgba(85, 201, 90, 0.05);
  border: 1px solid rgba(85, 201, 90, 0.3);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 20px);
  border-radius: 6px;
  /* حذف translateY برای تراز بهتر با flexbox */
}

.industrial-hero .hero-sub {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 22px 0 28px;
  padding: 12px 0 14px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.25vw, 14px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-sub__accent {
  flex-shrink: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cyan-primary) 0%, var(--blue-deep) 100%);
  box-shadow: 0 0 14px rgba(0, 217, 194, 0.4);
}

.hero-sub__inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 0.75em;
  width: fit-content;
  max-width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(90deg, rgba(0, 217, 194, 0.06) 0%, transparent 100%);
}

.hero-sub__phrase {
  color: rgba(243, 246, 249, 0.88);
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

.hero-sub__sep {
  color: var(--cyan-primary);
  font-weight: 700;
  font-size: 1.2em;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 0 18px rgba(0, 217, 194, 0.45);
}

.gh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.gh-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #00C7D9;
  border: 1px solid rgba(0, 199, 217, 0.3);
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(0, 199, 217, 0.05);
}

.industrial-btn {
  background: #087FC1;
  color: #ffffff;
  border: 1px solid #087FC1;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

.industrial-btn:hover {
  background: #00C7D9;
  border-color: #00C7D9;
  color: #05080B;
  transform: translateY(-2px);
}

.industrial-btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.industrial-btn-ghost:hover {
  border-color: #00C7D9;
  color: #00C7D9;
}

.hero-legend {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px 20px;
  background: rgba(5, 8, 11, 0.6);
  backdrop-filter: blur(8px);
  min-width: 250px;
}

.hero-legend .legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: none !important;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 36px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* رسپانسیو */
@media (max-width: 1024px) {
  .industrial-hero .hero-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-canvas-container {
    right: 0;
    width: 100vw;
  }

  .hero-veil {
    background: linear-gradient(180deg, #05080B 0%, rgba(5, 8, 11, 0.85) 55%, rgba(5, 8, 11, 0.2) 100%);
  }
}

/* ==========================================================================
   07. HERO SECTION (بخش اصلی بالای سایت)
   ========================================================================== */
/* .hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--void);
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(2, 4, 7, 0.97) 0%, rgba(2, 4, 7, 0.85) 38%, rgba(2, 4, 7, 0.4) 68%, rgba(2, 4, 7, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 150px 0 90px;
} */


/* .hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.14;
  margin-bottom: 24px;
  max-width: 680px;
}

/* اصلاح رنگ فقط برای کلمه مدنظر (جلوگیری از تخریب بج SAF و آمونیاک) */
.hero h1 .gh-highlight {
  background: linear-gradient(135deg, var(--cyan-primary) 0%, var(--blue-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* کلاس کمکی برای چیدمان صحیح سوخت هوایی و بج SAF در یک خط */
.title-flex-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 17.5px;
  max-width: 520px;
  margin-bottom: 32px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-legend {
  border: 1px solid var(--border-active);
  border-radius: 16px;
  padding: 26px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}

.hero-legend .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: var(--text-main);
}

.legend-row:last-child {
  margin-bottom: 0;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.legend-dot.ion {
  background: var(--ion);
  box-shadow: 0 0 10px var(--ion);
}

.legend-dot.catalyst {
  background: var(--blue-deep);
  box-shadow: 0 0 10px var(--blue-deep);
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 36px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
}

.hero-scroll .line {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--ion), transparent);
}

.ammonia-center {
  display: block;
  text-align: center;
  width: 100%;
  padding: 10px 0;
  margin: 12px 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 217, 194, 0.12) 50%, transparent 100%);
  border-radius: 8px;
  color: #fff;
}

.saf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--cyan-primary);
  background: rgba(0, 217, 194, 0.1);
  border: 1px solid rgba(0, 217, 194, 0.3);
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(0, 217, 194, 0.15);
}

*/

/* ==========================================================================
   09. DIVISIONS & R&D CARDS (بخش دپارتمان‌ها و کارت‌ها)
   ========================================================================== */
.divisions {
  position: relative;
  background: var(--navy);
  padding: 110px 0;
  overflow: hidden;
}

.divisions::before,
.divisions::after {
  content: "";
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
}

.divisions::before {
  background: var(--cyan-primary);
  top: 0;
  left: -15%;
}

.divisions::after {
  background: var(--blue-deep);
  bottom: -10%;
  right: -15%;
}

.divisions .wrap {
  position: relative;
  z-index: 1;
}

.div-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.div-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.div-grid:has(> .div-card:only-child) {
  grid-template-columns: minmax(0, 1fr);
  max-width: min(720px, 100%);
  margin-inline: auto;
}

@media (max-width: 860px) {
  .div-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.div-card {
  background: rgba(14, 22, 38, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 48px;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.div-card:hover {
  transform: translateY(-8px);
}

.div-card.rd:hover {
  border-color: rgba(0, 217, 194, 0.35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 40px rgba(0, 217, 194, 0.15);
}

.div-card.assoc:hover {
  border-color: rgba(0, 144, 255, 0.35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 40px rgba(0, 144, 255, 0.15);
}

.div-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.div-card h3 {
  color: var(--text-main);
  font-size: 32px;
  margin-bottom: 6px;
}

.div-card .full {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: block;
}

.div-card p {
  flex: 1;
  margin-bottom: 24px;
}

.div-card.rd h3 {
  color: var(--ion);
  text-shadow: none;
}

.div-card.assoc h3 {
  color: var(--blue-deep);
  text-shadow: none;
}

/* ==========================================================================
   10. TYPOGRAPHIC COLLAGE & ANIMATIONS (کلاژ تایپوگرافی)
   ========================================================================== */
.div-card .typo-collage,
.typo-collage {
  position: relative;
  width: 100%;
  height: 260px;
  margin-bottom: 32px;
  border-radius: 12px;
  background-color: rgba(14, 22, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s, transform .3s;
}

.div-card:hover .typo-collage {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.div-card.rd .typo-collage::before,
.div-card.assoc .typo-collage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  mix-blend-mode: screen;
  z-index: 1;
}

.div-card.rd .typo-collage::before {
  background-image: url('assets/images/backgrounds/rd.jpeg');
}

.div-card.assoc .typo-collage::before {
  background-image: url('assets/images/backgrounds/as.jpeg');
}

.div-card .typo-collage>div,
.div-card .typo-collage * {
  position: relative;
  z-index: 10;
}

.typo-main {
  position: relative;
  z-index: 4;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
  text-transform: uppercase;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
}

.typo-main span {
  color: var(--ion);
}

.typo-marquee {
  position: absolute;
  z-index: 5;
  background: var(--ion);
  color: var(--void);
  padding: 8px 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.2px;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  left: 0;
}

.typo-marquee.cyan-tape {
  transform: none;
  top: 0;
}

.typo-marquee.blue-tape {
  background: var(--blue-deep);
  color: #fff;
  transform: none;
  bottom: 0;
}

.typo-marquee-inner {
  display: inline-block;
  animation: marqueeScroll 15s linear infinite;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.typo-word {
  position: absolute;
  z-index: 4;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  opacity: 0;
  animation: typoWordIn .6s ease forwards, typoFloat 4.2s ease-in-out infinite;
  animation-play-state: paused;
}

.div-card.reveal.in .typo-word {
  animation-play-state: running;
}

@keyframes typoWordIn {
  to {
    opacity: var(--w-op, 1);
  }
}

@keyframes typoFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .typo-marquee-inner,
  .typo-word {
    animation: none;
    opacity: var(--word-op, 1);
    transform: none;
  }
}

/* ==========================================================================
   11. FOCUS AREAS — light layout in SITE LIGHT DEFAULT; dark in dark-theme.css
   ========================================================================== */

/* ==========================================================================
   12. ENTERPRISE IMPACT (Ultra-Minimalist / Pure Stats)
   ========================================================================== */
/* Enterprise impact — light default */
body.page-home:not(.dark-theme) .enterprise-impact{
  background: var(--section-band);
  padding: var(--section-pad-y) 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.page-home:not(.dark-theme) .impact-item{
  position: relative;
  padding-top: 32px;
  border-top: 1px solid rgba(15, 23, 42, 0.15);
  transition: all 0.5s ease;
}

body.page-home:not(.dark-theme) .impact-item:hover{
  border-top-color: var(--cyan-primary);
  transform: translateY(-6px);
}

body.page-home:not(.dark-theme) .impact-num{
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 300;
  color: #0b162c;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

body.page-home:not(.dark-theme) .impact-num span{
  text-shadow: none;
  transition: color 0.5s ease;
}

body.page-home:not(.dark-theme) .impact-item:hover .impact-num span{
  color: var(--blue-deep);
}

body.page-home:not(.dark-theme) .impact-label{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #475569;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

body.page-home:not(.dark-theme) .impact-grid-full{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

body.page-home .impact-grid-full .impact-item:nth-child(2) {
  transition-delay: 0.1s;
}

body.page-home .impact-grid-full .impact-item:nth-child(3) {
  transition-delay: 0.2s;
}

body.page-home .impact-grid-full .impact-item:nth-child(4) {
  transition-delay: 0.3s;
}

/* ---------------------------------------------------
   ریسپانسیو (Responsive Grid)
--------------------------------------------------- */
@media (max-width: 1024px) {
  body.page-home:not(.dark-theme) .impact-grid-full{
    grid-template-columns: repeat(2, 1fr);
    /* در تبلت ۲ ستونه */
    gap: 60px 40px;
  }
}

@media (max-width: 600px) {
  body.page-home:not(.dark-theme) .impact-grid-full{
    grid-template-columns: 1fr;
    /* در موبایل زیر هم */
    gap: 48px;
  }

  body.page-home:not(.dark-theme) .impact-item{
    text-align: center;
  }
}

/* ==========================================================================
   13. ABOUT / WHO WE ARE — light layout in SITE LIGHT DEFAULT; dark in dark-theme.css
   ========================================================================== */

/* ==========================================================================
   16.  INVESTORS (اسپانسرها و سرمایه‌گذاران)
   ========================================================================== */

.invest-grid-pro {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 980px) {
  .invest-grid-pro {
    grid-template-columns: 1fr;
  }
}

.invest-card-small {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 144, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;
}

.invest-card-small:hover {
  border-color: var(--cyan-primary);
  box-shadow: 0 30px 60px rgba(0, 217, 194, 0.25);
  transform: translateY(-6px);
}

.invest-small-bg,
.invest-card-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.invest-small-bg img,
.invest-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.invest-card-small:hover .invest-small-bg img,
.invest-card-large:hover .invest-card-bg img {
  transform: scale(1.05);
}

.invest-small-bg::after,
.invest-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--black-void) 0%, rgba(5, 10, 20, 0.9) 45%, rgba(0, 85, 255, 0.15) 100%);
}

.invest-small-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ic-invest {
  width: 44px;
  height: 44px;
  color: var(--cyan-primary);
  margin-bottom: 24px;
}

.invest-small-content h4 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}

.invest-small-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  flex-grow: 1;
}

.invest-small-content .link-arrow {
  color: #fff;
  margin-top: auto;
}

.invest-card-large {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 60px 50px;
  border: 1px solid rgba(0, 144, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;
}

.invest-card-large:hover {
  border-color: var(--cyan-primary);
  box-shadow: 0 30px 60px rgba(0, 217, 194, 0.25);
  transform: translateY(-6px);
}

.invest-large-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.vip-tag {
  display: inline-block;
  font-size: 10px;
  font-family: var(--font-mono);
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 217, 194, 0.4);
  border-radius: 30px;
  background: rgba(0, 217, 194, 0.15);
}

.invest-large-content h3 {
  font-size: 28px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.invest-large-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 36px;
}

.btn-large {
  padding: 16px 32px !important;
  font-size: 15px !important;
  box-shadow: 0 10px 30px rgba(0, 144, 255, 0.4) !important;
}

@media (max-width: 600px) {
  .invest-card-large {
    padding: 40px 30px;
  }

  .invest-small-bg::after,
  .invest-card-bg::after {
    background: linear-gradient(180deg, var(--black-void) 0%, rgba(5, 10, 20, 0.9) 60%, rgba(0, 85, 255, 0.2) 100%);
  }

  .invest-large-content h3 {
    font-size: 26px;
  }
}

.invest-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.if-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.if-icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--cyan-primary);
  background: rgba(0, 217, 194, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-top: 2px;
}

.if-item strong {
  display: block;
  font-size: 14px;
  color: #fff;
  font-family: var(--font-body);
  margin-bottom: 2px;
}

.if-item span {
  display: block;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* ==========================================================================
   18. MISSION, VISION & VALUES (ماموریت و چشم‌انداز)
   ========================================================================== */
.mission {
  padding: 60px 0;
  background: transparent;
  border-top: 1px solid var(--border-fine);
  border-bottom: 1px solid var(--border-fine);
  text-align: center;
}

.mission .wrap {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mission-earth {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(135deg, var(--cyan-primary), var(--blue-deep));
  box-shadow: 0 15px 45px rgba(0, 217, 194, 0.4);
  margin: 0 auto 32px auto;
}

.mission-earth img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--black-void);
}

.mission-earth-crop {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--black-void);
  position: relative;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.mission-earth-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.6);
}

.mission blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0 0 16px 0;
  border: none;
  padding: 0;
}

.mission .who {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--cyan-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 768px) {
  .mission {
    padding: 48px 0;
  }

  .mission blockquote {
    font-size: 18px;
  }

  .mission-earth {
    width: 170px;
    height: 170px;
  }
}

#vision {
  background: var(--graphite);
  padding: 140px 0 160px;
  position: relative;
  overflow: hidden;
}

#vision .section-head {
  margin-bottom: 60px;
  position: relative;
  z-index: 3;
}

#vision .invest-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  position: relative;
  z-index: 2;
}

#vision .vision-spotlight-visual,
#vision .vision-charter-visual,
#vision .vision-spotlight-tag,
#vision .vision-watermark {
  display: none;
}

#vision .invest-card {
  position: relative;
  padding: 64px 56px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  opacity: 0;
}

#vision .invest-card:nth-child(1) {
  grid-column: 1 / 9;
  border-radius: 32px 32px 0 32px;
  background: linear-gradient(135deg, rgba(14, 22, 38, 0.85) 0%, rgba(0, 217, 194, 0.15) 100%);
  border: 1px solid rgba(0, 217, 194, 0.25);
  box-shadow: -20px 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 217, 194, 0.05);
  z-index: 1;
  transform: translateX(-80px) translateY(40px);
}

#vision .invest-card:nth-child(2) {
  grid-column: 5 / 13;
  margin-top: -80px;
  border-radius: 32px 32px 32px 0;
  background: linear-gradient(135deg, rgba(14, 22, 38, 0.85) 0%, rgba(0, 144, 255, 0.15) 100%);
  border: 1px solid rgba(0, 144, 255, 0.25);
  box-shadow: 20px 40px 70px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 144, 255, 0.05);
  z-index: 2;
  transform: translateX(80px) translateY(80px);
}

#vision .invest-card.reveal.in {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

#vision .invest-card:nth-child(2).reveal.in {
  transition-delay: 0.2s;
}

#vision .invest-card:nth-child(1):hover {
  transform: translate(-10px, -10px) !important;
  box-shadow: -30px 40px 70px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 217, 194, 0.15);
}

#vision .invest-card:nth-child(2):hover {
  transform: translate(10px, -10px) !important;
  box-shadow: 30px 40px 70px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 144, 255, 0.15);
}

#vision .invest-card h4 {
  font-size: 34px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

#vision .invest-card:nth-child(1) h4 {
  color: var(--cyan-primary);
}

#vision .invest-card:nth-child(2) h4 {
  color: var(--blue-deep);
}

#vision .invest-card h4::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 0;
  height: 3px;
  border-radius: 3px;
}

#vision .invest-card:nth-child(1) h4::before {
  width: 48px;
  background: var(--cyan-primary);
  box-shadow: 0 0 12px var(--cyan-primary);
}

#vision .invest-card:nth-child(2) h4::before {
  width: 64px;
  background: var(--blue-deep);
  box-shadow: 0 0 12px var(--blue-deep);
}

#vision .invest-card p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
  #vision .invest-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  #vision .invest-card:nth-child(1),
  #vision .invest-card:nth-child(2) {
    margin-top: 0;
    border-radius: 24px;
    padding: 44px 36px;
    transform: translateY(40px);
  }
}

/* ==========================================================================
   19. CONTACT FORM & INFO (فرم تماس و اطلاعات)
   ========================================================================== */
.contact-sec {
  padding: var(--section-pad-y) 0;
  position: relative;
  z-index: 1;
  background: transparent !important;
  border-top: 1px solid var(--border-fine);
  overflow: hidden;
}

.contact-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('assets/images/backgrounds/w.jpeg');
  background-size: cover;
  background-position: 15% center;
  background-attachment: fixed;
  filter: brightness(0.35) contrast(1.1);
}

.contact-sec::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--navy) 0%, rgba(5, 10, 20, 0.2) 20%, rgba(5, 10, 20, 0.2) 80%, var(--navy) 100%);
  pointer-events: none;
}

.contact-shell {
  max-width: 840px;
  margin: 0 8% 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: rgba(14, 22, 38, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.contact-shell--info {
  max-width: min(700px, 52vw);
  margin: 0 0 0 auto;
  grid-template-columns: 1fr;
  padding: 32px clamp(22px, 2.5vw, 36px) 28px;
}

.contact-sec-head {
  max-width: none;
}

.contact-sec-head h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  color: #fff;
  margin: 10px 0 12px;
  line-height: 1.15;
}

.contact-sec-lead {
  font-size: 13.5px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
}

.contact-info-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-shell--info .contact-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.contact-info-card {
  background: rgba(2, 4, 7, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px 16px 12px;
  min-height: 0;
}

.contact-shell--info .contact-info-card {
  padding: 4px 16px 14px;
  border-radius: 12px;
}

.contact-shell--info .contact-info-card--offices {
  grid-column: 1 / -1;
}

.contact-info-card .cinfo-item {
  border-top: none;
  padding-top: 16px;
}

.contact-shell--info .contact-info-card .cinfo-item {
  gap: 12px;
  padding-top: 16px;
  align-items: flex-start;
}

.contact-shell--info .contact-info-card p {
  word-break: break-word;
}

.contact-info-card .cinfo-item p a {
  font-size: 15px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-card .cinfo-item p a:hover {
  color: var(--cyan-primary);
}

.contact-shell--info .office-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.contact-shell--info .contact-info-card--offices .office-block + .office-block {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.contact-sec-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-shell--info .contact-sec-actions {
  margin-top: 22px;
  padding-top: 18px;
}

@media (max-width: 1024px) {
  .contact-shell {
    margin: 0 auto;
    max-width: 90%;
  }

  .contact-shell--info {
    max-width: min(680px, 58vw);
    margin-left: auto;
    margin-right: 0;
  }
}

@media (max-width: 860px) {
  .contact-shell {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .contact-shell--info {
    max-width: min(600px, 94%);
    margin-left: auto;
    margin-right: auto;
  }

  .contact-shell--info .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-shell--info .contact-info-card--offices {
    grid-column: auto;
  }

  .contact-shell--info .office-columns {
    grid-template-columns: 1fr;
  }

  .contact-shell--info .contact-info-card--offices .office-block + .office-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.contact-media {
  position: relative;
  background: radial-gradient(circle at 30% 20%, rgba(0, 217, 194, .12), transparent 60%), var(--navy-mid);
}

.contact-media img {
  display: none;
}

.contact-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(2, 4, 7, 0.5) 0%, transparent 100%);
  pointer-events: none;
}

.contact-media-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
}

.contact-media-inner h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #fff;
}

.cinfo-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cinfo-item .ic {
  flex: none;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-shadow: 0 0 10px rgba(0, 217, 194, 0.3);
}

.cinfo-item h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.cinfo-item p {
  font-size: 13px;
  margin: 0;
  color: var(--text-main);
}

.cinfo-offices h5 {
  margin-bottom: 6px;
}

.cinfo-offices .office-block + .office-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.office-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-primary);
  margin-bottom: 4px;
}

.cinfo-offices .office-block p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(243, 246, 249, 0.92);
}

.contact-form {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 32px 24px;
  }
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 11.5px;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-fine);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13.5px;
  background: rgba(2, 4, 7, 0.4);
  color: var(--text-main);
  transition: 0.3s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan-primary);
  box-shadow: 0 0 0 3px var(--ion-dim);
  background: rgba(2, 4, 7, 0.7);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-form .btn-primary {
  margin-top: 8px;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--cyan-primary) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 12px;
  font-size: 13.5px;
  box-shadow: 0 10px 25px rgba(0, 144, 255, 0.4);
  transition: 0.2s;
}

.contact-form .btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--cyan-primary) 100%);
  box-shadow: 0 15px 35px rgba(0, 217, 194, 0.5);
  transform: translateY(-2px);
}

.form-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

/* ==========================================================================
   20. FOOTER (پاورقی)
   ========================================================================== */
footer {
  background: var(--footer-bg);
  padding-top: var(--section-pad-y);
  padding-bottom: clamp(36px, 4vw, 48px);
  border-top: 1px solid var(--footer-border);
}

/* Home: match #who / contact horizontal gutters */
body.page-home footer > .wrap {
  padding-left: 36px;
  padding-right: 36px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  width: 100%;
}

@media (max-width: 1024px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.foot-brand img {
  max-height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.foot-brand h3 {
  font-size: 18px;
  color: var(--footer-heading);
  line-height: 1.2;
}

.foot-desc {
  font-size: 13.5px;
  max-width: 320px;
  line-height: 1.8;
  color: var(--footer-muted);
  margin-bottom: 0;
}

.foot-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.foot-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--footer-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--footer-border);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.foot-social-link:hover {
  color: var(--cyan-primary);
  border-color: var(--border-active);
  background: rgba(0, 217, 194, 0.08);
  transform: translateY(-2px);
}

.foot-social-link svg {
  display: block;
}

footer h5 {
  font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--footer-heading);
}

footer ul li {
  margin-bottom: 12px;
}

footer ul li a {
  font-size: 14px;
  color: var(--footer-muted);
  transition: color .3s ease, transform .3s ease;
  display: inline-block;
}

footer ul li a:hover {
  color: var(--cyan-primary);
  transform: translateX(4px);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(36px, 5vw, 48px);
  padding-top: clamp(20px, 2.5vw, 26px);
  font-size: 12.5px;
  color: var(--footer-muted);
  font-family: var(--font-mono);
  border-top: 1px solid var(--footer-border);
}

@media (max-width: 640px) {
  footer {
    padding-top: clamp(56px, 14vw, 72px);
    padding-bottom: 32px;
  }

  .foot-grid {
    gap: 32px;
  }
}

.foot-legal {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35em 0.5em;
}

.foot-legal a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.foot-legal a:hover {
  color: var(--cyan-primary);
}

.foot-legal-sep {
  opacity: 0.55;
  user-select: none;
}

/* ==========================================================================
   21. SUB-PAGES & MISC COMPONENTS (صفحات داخلی و متفرقه)
   ========================================================================== */
.page-hero {
  padding: 160px 0 60px;
  background: var(--void);
  border-bottom: 1px solid var(--border-fine);
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 14px;
}

.page-hero p {
  max-width: 640px;
  font-size: 16px;
}

.bio-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-fine);
  border-radius: 18px;
  padding: 40px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
}

@media (max-width: 760px) {
  .bio-card {
    grid-template-columns: 1fr;
  }
}

.bio-photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy-soft);
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-name {
  font-size: 24px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.bio-role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ion);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-bottom: 16px;
}

.bio-body p {
  font-size: 15px;
  margin-bottom: 14px;
}

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

@media (max-width: 860px) {
  .sector-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .sector-grid {
    grid-template-columns: 1fr;
  }
}

.sector-tile {
  background: var(--navy-mid);
  border: 1px solid var(--border-fine);
  border-radius: 14px;
  padding: 22px 24px;
  font-size: 14.5px;
  color: var(--text-main);
  transition: .2s;
}

.sector-tile:hover {
  border-color: var(--border-active);
}

.num-list {
  counter-reset: numlist;
}

.num-list li {
  list-style: none;
  counter-increment: numlist;
  position: relative;
  padding-inline-start: 40px;
  margin-bottom: 18px;
  font-size: 15.5px;
  color: var(--muted);
}

.num-list li::before {
  content: counter(numlist);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ion-dim);
  color: var(--ion);
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ==========================================================================
   SITE LIGHT DEFAULT — home light only (dark: dark-theme.css on .dark-theme)
   ========================================================================== */

/* Global fixes & typography */
body.page-home:not(.dark-theme) .eyebrow,
body.page-home:not(.dark-theme) .eyebrow.on-light,
body.page-home:not(.dark-theme) .eyebrow.blue {
    text-shadow: none !important;
}

body.page-home:not(.dark-theme) .premium-eyebrow{
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 143, 128, 0.3) !important;
    color: var(--text-main) !important;
    box-shadow: 0 8px 25px rgba(0, 143, 128, 0.1);
}

body.page-home:not(.dark-theme) .link-arrow:hover{
    color: var(--blue-deep);
    text-shadow: none;
}

body.page-home:not(.dark-theme) .btn-ghost{
    background: rgba(255, 255, 255, 0.9);
    color: #0b162c;
    border: 1px solid rgba(11, 22, 44, 0.2);
}

body.page-home:not(.dark-theme) .btn-ghost:hover{
    background: rgba(0, 143, 128, 0.05);
    border-color: #008f80;
    color: #008f80;
}

/* ==========================================================================
   03. THEME TOGGLE BUTTON (دکمه تغییر تم)
   ========================================================================== */
body.page-home:not(.dark-theme) .theme-toggle-btn{
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* ==========================================================================
   04. LANGUAGE SWITCHER (انتخاب‌گر زبان)
   ========================================================================== */
body.page-home:not(.dark-theme) .lang-switcher {
    position: relative;
    display: inline-block;
    margin-right: 16px;
    z-index: 1000;
}

body.page-home:not(.dark-theme) .lang-toggle-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

body.page-home:not(.dark-theme) .lang-dropdown {
    position: absolute;
    top: 130%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 35px rgba(0, 10, 30, 0.12);
    padding: 8px 0;
}

body.page-home:not(.dark-theme) .lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.page-home:not(.dark-theme) .lang-option {
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

body.page-home:not(.dark-theme) .lang-option:hover,
body.page-home:not(.dark-theme) .lang-option.active{
    background: rgba(0, 168, 150, 0.05);
    color: var(--cyan-primary);
}

/* ==========================================================================
   05. HEADER & NAVIGATION (هدر و منو)
   ========================================================================== */
body.page-home:not(.dark-theme) .nav-inner{
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

body.page-home:not(.dark-theme) .nav-inner::before{
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 244, 248, 0.6) 100%);
}

body.page-home:not(.dark-theme) header.site.scrolled .nav-inner{
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

body.page-home:not(.dark-theme) .brand,
body.page-home:not(.dark-theme) nav.main>ul>li>a{
    color: var(--text-main);
    text-shadow: none;
}

body.page-home:not(.dark-theme) nav.main>ul>li>a:hover{
    color: var(--cyan-primary);
}

body.page-home:not(.dark-theme) header.site:not(.scrolled):not(.header--on-poster) > .wrap.nav-inner{
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px) saturate(1.45);
    -webkit-backdrop-filter: blur(24px) saturate(1.45);
    border: none;
    border-bottom: none;
    box-shadow: none;
}

body.page-home:not(.dark-theme) header.site.header--home.scrolled .nav-inner{
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

body.page-home:not(.dark-theme) header.site.header--home nav.main>ul>li>a{
    color: #000;
}

body.page-home:not(.dark-theme) header.site.header--home nav.main>ul>li>a:hover,
body.page-home:not(.dark-theme) header.site.header--home nav.main>ul>li>a:focus-visible{
    color: #000;
    font-weight: 500;
    background: none;
}

body.page-home:not(.dark-theme) header.site.header--home nav.main>ul>li>a.active{
    color: #000;
    font-weight: 500;
    background: none;
}

body.page-home:not(.dark-theme) header.site:not(.header--home) nav.main>ul>li>a:hover,
body.page-home:not(.dark-theme) header.site:not(.header--home) nav.main>ul>li>a.active{
    text-shadow: none;
}

body.page-home:not(.dark-theme) .dropdown{
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

body.page-home:not(.dark-theme) .dropdown a{
    color: var(--text-muted);
}

body.page-home:not(.dark-theme) .dropdown a:hover{
    background: rgba(0, 143, 128, 0.05);
    color: var(--cyan-primary);
}

body.page-home:not(.dark-theme) .nav-cta{
    background: var(--black-void);
    color: #f3f6f9 !important;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

body.page-home:not(.dark-theme) .nav-actions .nav-cta:hover,
body.page-home:not(.dark-theme) .nav-actions .theme-toggle-btn:hover,
body.page-home:not(.dark-theme) .nav-actions .lang-toggle-btn:hover,
body.page-home:not(.dark-theme) .nav-actions .nav-cta:focus-visible,
body.page-home:not(.dark-theme) .nav-actions .theme-toggle-btn:focus-visible,
body.page-home:not(.dark-theme) .nav-actions .lang-toggle-btn:focus-visible{
    background: var(--cyan-primary);
    color: var(--void) !important;
    border-color: transparent;
    box-shadow: 0 0 20px var(--ion-dim);
}

body.page-home:not(.dark-theme) .burger span{
    background: var(--text-main);
}

/* ==========================================================================
   06. HERO SECTION (بخش اصلی بالای صفحه) - LIGHT THEME
   ========================================================================== */
body.page-home:not(.dark-theme) .clean-hero{
    background-color: #f0f4f8;
    /* رنگ پس‌زمینه پلاتینی/روشن */
}

/* پرده محو برای لایت مود (سفید به بی‌رنگ) */
body.page-home:not(.dark-theme) .hero-veil{
    background: linear-gradient(90deg,
            rgba(240, 244, 248, 0.98) 0%,
            rgba(240, 244, 248, 0.85) 45%,
            rgba(240, 244, 248, 0.3) 70%,
            rgba(240, 244, 248, 0) 100%);
}

/* کلمات ظریف در لایت مود تیره می‌شوند تا خوانا باشند */
body.page-home:not(.dark-theme) .thin-text{
    color: #0f172a;
    /* سرمه‌ای تیره و شرکتی */
    font-weight: 500;
    /* کمی ضخیم‌تر برای خوانایی بهتر در روز */
}

/* عکس درون متن برای لایت مود روشن‌تر و آبی‌تر می‌شود */
body.page-home:not(.dark-theme) .masked-text{
    background-image: url('https://images.unsplash.com/photo-1579546929518-9e396f3cc809?q=80&w=1200&auto=format&fit=crop');
    filter: drop-shadow(0px 4px 15px rgba(0, 143, 128, 0.15));
    /* سایه ملایم فیروزه‌ای */
}

body.page-home:not(.dark-theme) .industrial-hero .hero-sub{
    color: var(--text-muted);
}

body.page-home:not(.dark-theme) .hero-sub__inner{
    border-bottom-color: rgba(15, 23, 42, 0.1);
    background: linear-gradient(90deg, rgba(0, 143, 128, 0.08) 0%, transparent 55%);
}

body.page-home:not(.dark-theme) .hero-sub__phrase{
    color: var(--text-main);
    text-shadow: none;
}

body.page-home:not(.dark-theme) .hero-sub__sep{
    color: #008f80;
    text-shadow: none;
}

body.page-home:not(.dark-theme) .hero-sub__accent{
    box-shadow: 0 0 12px rgba(0, 143, 128, 0.25);
}

body.page-home:not(.dark-theme) .saf-badge{
    background: rgba(0, 143, 128, 0.1) !important;
    border-color: rgba(0, 143, 128, 0.3) !important;
    color: #008f80 !important;
}

/* Index enterprise hero panel */
body.page-home:not(.dark-theme) .industrial-hero .hero-enterprise-eyebrow.premium-eyebrow{
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 143, 128, 0.3) !important;
    color: var(--text-main) !important;
    box-shadow: 0 8px 25px rgba(0, 143, 128, 0.1) !important;
}

body.page-home:not(.dark-theme) .industrial-hero .hero-pillars .gh-tag{
    color: #64748b;
}

body.page-home:not(.dark-theme) .industrial-hero .hero-pillars .gh-tag:not(:last-child)::after{
    background: rgba(0, 143, 128, 0.5);
}

body.page-home:not(.dark-theme) .industrial-hero .hero-pillars .gh-tag:hover{
    color: #008f80;
}

body.page-home:not(.dark-theme) .industrial-hero .hero-mega-title{
    margin-bottom: 0;
}

body.page-home:not(.dark-theme) .industrial-hero .hero-pillars{
    margin-top: clamp(2.25rem, 5.5vh, 3.75rem);
    padding-top: 0.35rem;
}

body.page-home:not(.dark-theme) .industrial-hero .hero-enterprise-actions .industrial-btn{
    color: #fff;
}

body.page-home:not(.dark-theme) .industrial-hero .hero-enterprise-actions .industrial-btn:hover{
    color: var(--black-void);
}

body.page-home:not(.dark-theme) .industrial-hero .hero-enterprise-actions .industrial-btn-ghost{
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.14);
    color: var(--text-main);
}

body.page-home:not(.dark-theme) .industrial-hero .hero-enterprise-actions .industrial-btn-ghost:hover{
    background: rgba(0, 143, 128, 0.1);
    border-color: rgba(0, 143, 128, 0.4);
    color: #008f80;
}

body.page-home:not(.dark-theme) .industrial-hero .hero-scroll{
    color: rgba(15, 23, 42, 0.38);
}

body.page-home:not(.dark-theme) .industrial-hero .hero-scroll .line{
    background: linear-gradient(90deg, transparent, rgba(0, 143, 128, 0.45));
}

/* لجند در لایت مود */
body.page-home:not(.dark-theme) .hero-legend{
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 10px 40px rgba(11, 22, 44, 0.05);
}

body.page-home:not(.dark-theme) .hero-legend .legend-row{
    color: #0b162c;
    font-weight: 500;
}

body.page-home:not(.dark-theme) .hero-legend .k{
    color: #526075;
}

body.page-home:not(.dark-theme) .hero-scroll{
    color: #526075;
}

body.page-home:not(.dark-theme) .hero-scroll .line{
    background: linear-gradient(90deg, #008f80, transparent);
}

/* رسپانسیو لایت مود */
@media (max-width: 1024px) {
    body.page-home:not(.dark-theme) .industrial-hero .hero-veil{
        background: linear-gradient(
            180deg,
            rgba(240, 244, 248, 0.98) 0%,
            rgba(240, 244, 248, 0.82) 42%,
            rgba(240, 244, 248, 0.15) 100%
        );
    }
}

/* ==========================================================================
   06. HERO SECTION - LIGHT THEME (INDUSTRIAL)
   ========================================================================== */
body.page-home:not(.dark-theme) .industrial-hero:not(.hero-carousel){
    background-color: #f0f4f8;
    background-image: url('assets/images/backgrounds/bbg.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* TEST: globe sits slightly under the headline (light theme only) */
body.page-home:not(.dark-theme) .industrial-hero .hero-canvas-container{
    right: auto;
    left: max(0px, calc((100vw - min(100vw, 1280px)) / 2 + 36px - 9.75rem));
    top: 64%;
    transform: translateY(-54%) translateX(-16%);
    width: min(52vw, 460px);
    height: min(82vh, 700px);
    z-index: 1;
    opacity: 0.68;
    filter: drop-shadow(0 24px 48px rgba(8, 127, 193, 0.06));
}

body.page-home:not(.dark-theme) .industrial-hero .hero-enterprise-panel{
    position: static;
}

@media (max-width: 640px) {
    body.page-home:not(.dark-theme) .industrial-hero .hero-canvas-container{
        left: 0;
        transform: translateY(-54%) translateX(-14%);
        width: min(70vw, 320px);
        height: min(60vh, 420px);
    }
}

body.page-home:not(.dark-theme) .industrial-hero .hero-canvas-container canvas{
    display: block;
}

/* Mega headline — solid black, larger (light theme test) */
body.page-home:not(.dark-theme) .industrial-hero .hero-mega-ammonia,
body.page-home:not(.dark-theme) .industrial-hero .saf-line-top,
body.page-home:not(.dark-theme) .industrial-hero .hero-mega-fuel{
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    animation: none !important;
}

body.page-home:not(.dark-theme) .industrial-hero .hero-mega-ammonia{
    font-size: clamp(56px, 10vw, 112px);
}

body.page-home:not(.dark-theme) .industrial-hero .hero-mega-fuel{
    font-size: clamp(38px, 6.8vw, 84px);
}

body.page-home:not(.dark-theme) .industrial-hero .hero-mega-headlines{
    width: 100%;
}

body.page-home:not(.dark-theme) .industrial-hero .hero-mega-fuel-row{
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 14px;
    max-width: 100%;
}

body.page-home:not(.dark-theme) .industrial-hero .hero-mega-fuel-row .hero-mega-saf{
    margin-top: 0;
    flex-shrink: 0;
}

body.page-home:not(.dark-theme) .industrial-hero .saf-line-top{
    align-self: center;
    width: 100%;
    max-width: 100%;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(30px, 8vw, 108px);
    letter-spacing: -0.02em;
}

body.page-home:not(.dark-theme) .industrial-hero .hero-legend{
    display: none !important;
}

body.page-home:not(.dark-theme) .industrial-hero .hero-content{
    position: relative;
}

body.page-home:not(.dark-theme) .industrial-hero .hero-text-col{
    position: static;
}

body.page-home:not(.dark-theme) .industrial-hero .hero-sub{
    position: absolute;
    right: 0;
    bottom: 5.25rem;
    left: auto;
    z-index: 6;
    margin: 0;
    width: auto;
    max-width: min(100%, 28rem);
    text-align: right;
}

body.page-home:not(.dark-theme) .industrial-hero .hero-sub__inner{
    justify-content: flex-end;
}

body.page-home:not(.dark-theme) .industrial-hero .hero-enterprise-actions{
    position: absolute;
    right: 0;
    left: auto;
    bottom: 1.25rem;
    z-index: 6;
    margin-top: 0 !important;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    body.page-home:not(.dark-theme) .industrial-hero .hero-sub,
body.page-home:not(.dark-theme) .industrial-hero .hero-enterprise-actions{
        position: static;
        max-width: 100%;
        text-align: left;
        margin-top: 1.5rem !important;
        justify-content: flex-start;
    }

    body.page-home:not(.dark-theme) .industrial-hero .hero-sub__inner{
        justify-content: flex-start;
    }

    body.page-home:not(.dark-theme) .industrial-hero .saf-line-top{
        font-size: clamp(18px, 5.5vw, 40px);
        white-space: normal;
        text-align: left;
        align-self: flex-start;
    }
}

/* پرده محو برای لایت مود — زودتر محو شود تا کره سه‌بعدی دیده شود */
body.page-home:not(.dark-theme) .industrial-hero .hero-veil{
    background: linear-gradient(
        90deg,
        rgba(240, 244, 248, 0.78) 0%,
        rgba(240, 244, 248, 0.55) 30%,
        rgba(240, 244, 248, 0.22) 52%,
        rgba(240, 244, 248, 0) 70%
    );
}

/* تایپوگرافی در روز */
body.page-home:not(.dark-theme) .solid-text{
    color: #0f172a;
    /* سرمه ای تیره (مشکی ملایم) */
}

body.page-home:not(.dark-theme) .thin-text{
    color: #475569;
    /* خاکستری فولادی */
    font-weight: 500;
}


body.page-home:not(.dark-theme) .saf-badge{
    color: #008f80 !important;
    background: rgba(0, 143, 128, 0.1) !important;
    border-color: rgba(0, 143, 128, 0.3) !important;
}

body.page-home:not(.dark-theme) .gh-tag{
    color: #087FC1;
    border-color: rgba(8, 127, 193, 0.3);
    background: rgba(8, 127, 193, 0.05);
}

body.page-home:not(.dark-theme) .industrial-btn-ghost{
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.2);
}

body.page-home:not(.dark-theme) .hero-legend{
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

body.page-home:not(.dark-theme) .hero-legend .legend-row{
    color: #0f172a;
}

body.page-home:not(.dark-theme) .hero-legend .k,
body.page-home:not(.dark-theme) .hero-scroll{
    color: #475569;
}

/* رسپانسیو لایت مود */
@media (max-width: 1024px) {
    body.page-home:not(.dark-theme) .hero-veil{
        background: linear-gradient(180deg, #f0f4f8 0%, rgba(240, 244, 248, 0.9) 50%, rgba(240, 244, 248, 0.2) 100%);
    }
}

/* ==========================================================================
   06. HERO SECTION (بخش اصلی بالای صفحه)
   ========================================================================== */
/* .hero {
    background-image: url('assets/images/backgrounds/bbg.jpeg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-color: #f0f4f8;
}

.hero-veil {
    background: linear-gradient(90deg,
            #ffffff 0%,
            rgba(255, 255, 255, 0.95) 45%,
            rgba(255, 255, 255, 0.4) 65%,
            rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.hero canvas {
    z-index: 0;
    mix-blend-mode: multiply;
    opacity: 0.85;
}

.gh-title {
    color: #0b162c;
    text-shadow: none;
}

.gh-title .gh-highlight {
    color: #526075;
}

.gh-subtitle {
    color: #008f80;
    text-shadow: none;
    font-weight: 700;
}

.gh-eyebrow {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.gh-pulse-dot {
    background-color: #008f80;
    box-shadow: 0 0 8px rgba(0, 143, 128, 0.5);
}

.gh-tag {
    background: rgba(255, 255, 255, 0.9);
    color: #0b162c;
    border: 1px solid rgba(15, 23, 42, 0.1);
    font-weight: 700;
}

.gh-connector {
    color: #008f80;
}

.gh-line {
    background: linear-gradient(to bottom, rgba(0, 143, 128, 0.4), transparent);
}

.gh-node .gh-line:last-child {
    background: linear-gradient(to top, rgba(0, 143, 128, 0.4), transparent);
}

.hero-legend {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 10px 40px rgba(11, 22, 44, 0.08);
}

.hero-legend .legend-row {
    color: #0b162c;
    font-weight: 500;
}

.hero-legend .k {
    color: #526075;
}

.hero-scroll {
    color: #526075;
}

.hero-scroll .line {
    background: linear-gradient(90deg, #008f80, transparent);
}

.ammonia-center {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 143, 128, 0.08) 50%, transparent 100%);
    color: var(--text-main);
} */

/* Focus Areas — home layout: css/home/home-focus.css (index only) */

/* Home — sectors showcase */
body.page-home:not(.dark-theme) .page-home .home-markets{
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
}

body.page-home:not(.dark-theme) .page-home .home-markets .hm-nav{
    border-left-color: rgba(15, 23, 42, 0.08);
}

body.page-home:not(.dark-theme) .page-home .home-markets .hm-display{
    background: #e2e8f0;
    border-color: rgba(15, 23, 42, 0.08);
}

body.page-home:not(.dark-theme) .page-home .home-markets .hm-panel-overlay{
    background: linear-gradient(0deg, rgba(11, 22, 44, 0.9) 0%, rgba(11, 22, 44, 0.2) 60%, transparent 100%);
}

@media (max-width: 1024px) {
    body.page-home:not(.dark-theme) .page-home .home-markets .hm-nav{
        border-bottom-color: rgba(15, 23, 42, 0.08);
    }
}

/* ==========================================================================
   10. STATS (بخش آمار)
   ========================================================================== */
body.page-home:not(.dark-theme) .stats{
    background: #ffffff !important;
    padding: 0 !important;
}

body.page-home:not(.dark-theme) .stats-grid{
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0 !important;
}

body.page-home:not(.dark-theme) .stat{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 80px 40px !important;
    border-right: 1px solid rgba(15, 23, 42, 0.1) !important;
}

body.page-home:not(.dark-theme) .stat:last-child{
    border-right: none !important;
}

body.page-home:not(.dark-theme) .stat::after{
    display: none !important;
}

body.page-home:not(.dark-theme) .stat b{
    color: #0b162c !important;
    font-size: clamp(48px, 6vw, 72px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1 !important;
    margin-bottom: 16px !important;
    animation: none !important;
    text-shadow: none !important;
    transform: none !important;
}

body.page-home:not(.dark-theme) .stat span{
    color: var(--cyan-primary) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    transform: none !important;
    transition: color 0.3s ease !important;
}

body.page-home:not(.dark-theme) .stat:hover b{
    color: var(--cyan-primary) !important;
}

body.page-home:not(.dark-theme) .stat:hover span{
    color: #0b162c !important;
}

@media (max-width: 980px) {
    body.page-home:not(.dark-theme) .stats-grid{
        grid-template-columns: repeat(2, 1fr) !important;
    }

    body.page-home:not(.dark-theme) .stat{
        border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
    }

    body.page-home:not(.dark-theme) .stat:nth-child(2){
        border-right: none !important;
    }

    body.page-home:not(.dark-theme) .stat:nth-child(3),
body.page-home:not(.dark-theme) .stat:nth-child(4){
        border-bottom: none !important;
    }
}

@media (max-width: 520px) {
    body.page-home:not(.dark-theme) .stats-grid{
        grid-template-columns: 1fr !important;
    }

    body.page-home:not(.dark-theme) .stat{
        border-right: none !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
        padding: 60px 20px !important;
    }

    body.page-home:not(.dark-theme) .stat:last-child{
        border-bottom: none !important;
    }
}

/* ==========================================================================
   11. ABOUT / WHO WE ARE (درباره ما)
   ========================================================================== */
body.page-home:not(.dark-theme) #who{
    background: #ffffff !important;
    padding: 0 !important;
    border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
}

body.page-home:not(.dark-theme) .who-grid{
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: stretch !important;
    gap: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
}

body.page-home:not(.dark-theme) .who-media{
    grid-column: 1 / 2 !important;
    grid-row: 1 !important;
    aspect-ratio: auto !important;
    min-height: 700px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-right: 1px solid rgba(15, 23, 42, 0.1) !important;
    margin: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Legacy class name: who-section video wrapper (not theme-specific) */
body.page-home:not(.dark-theme) .light-theme-video-wrap{
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
}

body.page-home:not(.dark-theme) .bg-video{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body.page-home:not(.dark-theme) .video-overlay{
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg, rgba(11, 22, 44, 0.9), rgba(11, 22, 44, 0.4)) !important;
    z-index: 2 !important;
}

body.page-home:not(.dark-theme) .play-btn{
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 3 !important;
    width: 88px !important;
    height: 88px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

body.page-home:not(.dark-theme) .play-btn svg{
    width: 32px !important;
    margin-left: 4px !important;
}

body.page-home:not(.dark-theme) .play-btn:hover{
    background: #ffffff !important;
    color: var(--cyan-primary) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

body.page-home:not(.dark-theme) .who-copy{
    grid-column: 2 / 3 !important;
    grid-row: 1 !important;
    align-self: stretch !important;
    min-height: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: clamp(48px, 7vh, 88px) clamp(24px, 10%, 88px) !important;
    margin: 0 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    text-align: left !important;
}

body.page-home:not(.dark-theme) .who-copy:hover{
    transform: none !important;
}

body.page-home:not(.dark-theme) .who-copy h2{
    color: #0b162c !important;
    font-size: clamp(36px, 4vw, 52px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    text-shadow: none !important;
    margin-bottom: 32px !important;
}

body.page-home:not(.dark-theme) .who-copy p{
    color: #475569 !important;
    font-size: 16.5px !important;
    line-height: 1.8 !important;
    margin-bottom: 24px !important;
    font-weight: 400 !important;
}

body.page-home:not(.dark-theme) .who-copy .link-arrow{
    display: inline-flex !important;
    align-items: center !important;
    color: var(--cyan-primary) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.1em !important;
    margin-top: 32px !important;
    padding-top: 24px !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    width: 100% !important;
    transition: color 0.3s ease !important;
}

body.page-home:not(.dark-theme) .who-copy .link-arrow:hover{
    color: #0b162c !important;
}

@media (max-width: 960px) {
    body.page-home:not(.dark-theme) .who-grid{
        grid-template-columns: 1fr !important;
    }

    body.page-home:not(.dark-theme) .who-media{
        grid-column: 1 / 2 !important;
        min-height: 450px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
    }

    body.page-home:not(.dark-theme) .who-copy{
        grid-column: 1 / 2 !important;
        grid-row: 2 !important;
        min-height: 0 !important;
        justify-content: flex-start !important;
        padding: 60px 24px !important;
    }
}

/* Who we are — shared 50/50 vertical balance (light + dark home) */
body.page-home #who .who-grid {
  align-items: stretch;
}

body.page-home #who .who-media,
body.page-home #who .who-copy {
  align-self: stretch;
}

body.page-home #who .who-copy {
  box-sizing: border-box;
  justify-content: center;
}

@media (max-width: 960px) {
  body.page-home #who .who-copy {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   12. HOME CONTACT & FOOTER (انتهای صفحه اصلی)
   ========================================================================== */
/* Contact: dark cinematic band (CSS vars flip to light in light theme) */
body.page-home .contact-sec{
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.page-home .contact-sec::before{
    filter: brightness(0.35) contrast(1.1);
}

body.page-home .contact-sec::after{
    background: linear-gradient(
        180deg,
        #050a14 0%,
        rgba(5, 10, 20, 0.2) 20%,
        rgba(5, 10, 20, 0.2) 80%,
        #050a14 100%
    );
}

body.page-home .contact-shell{
    background: rgba(14, 22, 38, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

body.page-home .contact-media{
    background: radial-gradient(circle at 30% 20%, rgba(0, 217, 194, 0.12), transparent 60%), #0b1626;
}

body.page-home .contact-media::after{
    background: linear-gradient(to right, rgba(2, 4, 7, 0.5) 0%, transparent 100%);
}

body.page-home .contact-media-inner h3{
    color: #fff;
}

body.page-home .contact-sec .cinfo-item{
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.page-home .contact-sec .cinfo-item h5{
    color: #94a3b8;
}

body.page-home .cinfo-offices .office-block p{
    color: var(--text-main);
}

body.page-home .contact-sec .cinfo-item p{
    color: #e2e8f0;
}

body.page-home .contact-sec .cinfo-item .ic{
    text-shadow: 0 0 10px rgba(0, 217, 194, 0.3);
}

body.page-home .contact-sec .contact-form{
    background: transparent;
}

body.page-home .contact-sec .field label{
    color: #94a3b8;
}

body.page-home .contact-sec .field input,
body.page-home .contact-sec .field select,
body.page-home .contact-sec .field textarea{
    background: rgba(2, 4, 7, 0.4);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.12);
}

body.page-home .contact-sec .field input:focus,
body.page-home .contact-sec .field select:focus,
body.page-home .contact-sec .field textarea:focus{
    background: rgba(2, 4, 7, 0.7);
    box-shadow: 0 0 0 3px rgba(0, 217, 194, 0.16);
}

body.page-home .contact-sec .form-note{
    color: #94a3b8;
}

body.page-home .contact-sec .link-arrow{
    color: var(--cyan-primary);
}