/* =========================================================
   Hamrahtel Group — main stylesheet
   Tokens come straight from the Figma variables.
   ========================================================= */

@font-face { font-family: "IRANYekan"; src: url("../fonts/IRANYekanLightFaNum.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "IRANYekan"; src: url("../fonts/IRANYekanRegularFaNum.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IRANYekan"; src: url("../fonts/IRANYekanMediumFaNum.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IRANYekan"; src: url("../fonts/IRANYekanBoldFaNum.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IRANYekan"; src: url("../fonts/IRANYekanExtraBoldFaNum.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  /* colors */
  --java: #00979d;
  --java-dark: #003537;          /* Button Hover State */
  --orange: #f29100;
  --black: #0f172b;
  --blue: #325fec;
  --white: #fff;
  --black-4s: #f5f6f7;           /* Black 4 - Solid */
  --black-16s: #d9dadd;          /* Black 16 - Solid */
  --black-4: rgba(15, 23, 43, .04);
  --black-8: rgba(15, 23, 43, .08);
  --black-16: rgba(15, 23, 43, .16);
  --black-24: rgba(15, 23, 43, .24);
  --black-48: rgba(15, 23, 43, .48);
  --white-4: rgba(255, 255, 255, .04);
  --white-8: rgba(255, 255, 255, .08);
  --white-16: rgba(255, 255, 255, .16);
  --white-24: rgba(255, 255, 255, .24);
  --white-32: rgba(255, 255, 255, .32);
  --white-48: rgba(255, 255, 255, .48);
  --white-72: rgba(255, 255, 255, .72);
  --white-80: rgba(255, 255, 255, .8);
  --java-8: rgba(0, 151, 157, .08);
  --java-16: rgba(0, 151, 157, .16);
  --java-24: rgba(0, 151, 157, .24);
  --java-32: rgba(0, 151, 157, .32);

  /* layout */
  --page-max: 1728px;
  --gutter: clamp(16px, 4.63vw, 80px);
  --sec-py: clamp(48px, 4.17vw, 72px);
  --lh-normal: 1.72;             /* Figma "normal" line-height for IRANYekan */
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* hero scale: 1px at the 1728 design, shrinks with the viewport width (banner keeps its ratio) */
  --hu: min(1px, calc((100vw - 32px) / 1696));

  /* rounded hexagon (pointy top) used as a mask */
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48.4974 54.7624' preserveAspectRatio='none'%3E%3Cpath d='M22.2487 0.535898C23.4863 -0.178633 25.0111 -0.178633 26.2487 0.535899L46.4974 12.2265C47.735 12.941 48.4974 14.2615 48.4974 15.6906V39.0718C48.4974 40.5009 47.735 41.8214 46.4974 42.5359L26.2487 54.2265C25.0111 54.941 23.4863 54.941 22.2487 54.2265L2 42.5359C0.762395 41.8214 0 40.5009 0 39.0718V15.6906C0 14.2615 0.762396 12.941 2 12.2265L22.2487 0.535898Z'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IRANYekan", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: -100px; right: 16px; z-index: 100; padding: 12px 20px; background: var(--black); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec-py); }

/* ---------- section heading ---------- */
.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sec-head--g16 { gap: 16px; }
.sec-head--center { align-items: center; text-align: center; margin-bottom: 48px; }
.sec-title { font-size: 32px; font-weight: 700; line-height: var(--lh-normal); color: var(--black); }
.sec-line { display: block; width: 80px; height: 4px; border-radius: 120px; background: linear-gradient(to right, rgba(242, 145, 0, 0), var(--orange)); }
.sec-sub { font-size: 18px; line-height: 32px; letter-spacing: -.252px; color: var(--black-48); }
.sec-head--light .sec-title { color: #fff; }
.sec-head--light .sec-sub { color: var(--white-80); max-width: 940px; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 48px; }

/* ---------- hexagon building blocks ---------- */
/* hex icon frame (80 / 56) */
.hex-ic { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s, 80px); height: var(--s, 80px); color: var(--black); transition: color .3s var(--ease), filter .3s var(--ease); }
.hex-ic--80 { --s: 80px; }
.hex-ic--56 { --s: 56px; }
.hex-ic__bg { position: absolute; width: 86.6%; height: 98%; fill: #fff; stroke: var(--black-16s); stroke-width: .7; transition: fill .3s var(--ease), stroke .3s var(--ease); overflow: visible; }
.hex-ic__ic { position: relative; }
.hex-ic--white .hex-ic__bg { fill: #fff; stroke: none; }
.hex-ic--white { color: var(--java); }
.hex-ic--link { color: var(--black); transition: transform .3s var(--ease); }
.hex-ic--link:hover { transform: translateY(-3px); }
.hex-ic--link:hover .hex-ic__bg { fill: var(--java); }
.hex-ic--link:hover { color: #fff; }

/* hex button (40 / 56) */
.hex-btn { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s, 40px); height: var(--s, 40px); color: var(--black); transition: color .3s var(--ease); }
.hex-btn--40 { --s: 40px; }
.hex-btn--56 { --s: 56px; }
.hex-btn__bg { position: absolute; width: 86.6%; height: 97%; fill: var(--black-8); transition: fill .3s var(--ease); }
.hex-btn__ic { position: relative; transition: transform .3s var(--ease); }
.hex-btn.is-java { color: var(--java); }
.hex-btn.is-java .hex-btn__bg { fill: var(--java-24); }
.hex-btn--solid { color: #fff; }
.hex-btn--solid .hex-btn__bg { fill: var(--java); }
.hex-btn--solid:hover .hex-btn__bg { fill: var(--java-dark); }

/* "more" link: text + hex arrow (icon sits on the left) */
.more-link { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 16px; font-size: 20px; font-weight: 500; line-height: 22px; color: var(--black); transition: color .3s var(--ease); }
.more-link.is-active, a.more-link:hover, .pj-card:hover .more-link { color: var(--java); }
.more-link.is-active .hex-btn, a.more-link:hover .hex-btn, .pj-card:hover .more-link .hex-btn { color: var(--java); }
.more-link.is-active .hex-btn__bg, a.more-link:hover .hex-btn__bg, .pj-card:hover .more-link .hex-btn__bg { fill: var(--java-24); }
a.more-link:hover .hex-btn__ic, .pj-card:hover .hex-btn__ic, .sol-card:hover .hex-btn__ic { transform: translateX(-3px); }
.more-link--center { display: flex; width: max-content; margin: 48px auto 0; }

/* white pill button */
.btn-white { display: inline-flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 16px; height: 56px; min-width: 204px; padding: 8px 16px; border-radius: 12px; background: #fff; color: var(--java); font-size: 20px; font-weight: 500; line-height: 22px; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(15, 23, 43, .24); }
.btn-white:hover .hex-btn__ic { transform: translateX(-3px); }

/* slider nav hexagons */
.slider-nav { display: flex; gap: 12px; flex: none; }
.nav-hex { position: relative; display: grid; place-items: center; width: 56px; height: 56px; color: var(--java); transition: color .3s var(--ease); }
.nav-hex__bg { position: absolute; width: 86.6%; height: 97.8%; fill: transparent; stroke: var(--java); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .3s var(--ease); overflow: visible; }
.nav-hex__ic { position: relative; }
.nav-hex--solid, .nav-hex:hover { color: #fff; }
.nav-hex--solid .nav-hex__bg, .nav-hex:hover .nav-hex__bg { fill: var(--java); }
.nav-hex--solid:hover .nav-hex__bg { fill: var(--java-dark); stroke: var(--java-dark); }
.nav-hex.swiper-button-disabled { opacity: .4; pointer-events: none; }

/* badge + meta row (news / blog) */
.badge { display: inline-flex; align-items: center; height: 40px; padding: 8px 16px; border-radius: 120px; background: var(--black-8); color: var(--black-48); font-size: 16px; line-height: 20px; letter-spacing: -.16px; white-space: nowrap; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.meta time { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; line-height: 20px; letter-spacing: -.16px; color: var(--black-24); white-space: nowrap; }
.meta--light .badge { background: var(--white-32); color: #fff; }
.meta--light time { color: var(--white-48); }

/* hex node: glass outer hex + white inner hex with a logo (projects badge, network) */
.hexnode { position: relative; display: grid; place-items: center; width: var(--s); height: var(--s); }
.hexnode::before { content: ""; position: absolute; width: calc(var(--s) * .866); height: calc(var(--s) * .98); background: var(--white-16); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); -webkit-mask: var(--hex) center / 100% 100% no-repeat; mask: var(--hex) center / 100% 100% no-repeat; }
.hexnode__core { position: relative; display: grid; place-items: center; width: calc(var(--s) * .745); height: calc(var(--s) * .845); filter: drop-shadow(0 4px 2px rgba(15, 23, 43, .16)) drop-shadow(0 8px 8px rgba(15, 23, 43, .24)) drop-shadow(0 16px 16px rgba(15, 23, 43, .32)); }
.hexnode__core::before { content: ""; position: absolute; inset: 0; background: #fff; -webkit-mask: var(--hex) center / 100% 100% no-repeat; mask: var(--hex) center / 100% 100% no-repeat; }
.hexnode__core img { position: relative; width: var(--lw); height: var(--lh); object-fit: contain; }

/* =========================================================
   Header / navbar (floats over the hero)
   ========================================================= */
.site-header { position: absolute; z-index: 50; top: calc(16px + 24 * var(--hu)); inset-inline: calc(16px + 64 * var(--hu)); }
.navbar {
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 80px; padding: 20px 32px;
  border: 1px solid var(--white-48); border-radius: 12px;
  box-shadow: 0 8px 32px var(--black-8);
  color: #fff;
  transition: box-shadow .35s var(--ease);
}
/* شیشه مات روی لایه جدا: backdrop-filter روی خود .navbar جای المان‌های fixed داخلش (کشوی موبایل) را خراب می‌کرد */
.navbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--black-16);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: background .35s var(--ease);
}
.navbar__start { display: flex; align-items: center; gap: 48px; min-width: 0; }
.navbar__logo img { width: 128px; height: 34px; }
.navbar__end { display: flex; align-items: center; gap: 16px; }
.nav-list { display: flex; align-items: center; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 18px; font-weight: 500; line-height: 22px; color: #fff; white-space: nowrap; transition: opacity .25s var(--ease); }
.nav-link__caret { transition: transform .25s var(--ease); }
.nav-link:hover { opacity: .8; }
.nav-link:hover .nav-link__caret { transform: rotate(180deg); }
.nav-link--lang { padding-inline: 0 12px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: inherit; transition: background .25s var(--ease); }
.icon-btn:hover { background: var(--white-16); }
.navbar__toggle, .navbar__drawer-head { display: none; }

/* stuck state after scrolling past the hero */
.site-header.is-stuck { position: fixed; top: 12px; animation: header-in .45s var(--ease); }
.site-header.is-stuck .navbar { box-shadow: 0 12px 40px rgba(15, 23, 43, .24); }
.site-header.is-stuck .navbar::before { background: rgba(0, 53, 55, .86); }
@keyframes header-in { from { transform: translateY(-120%); } to { transform: none; } }

.search-bar { display: flex; align-items: center; gap: 12px; margin-top: 8px; height: 64px; padding: 0 20px; border-radius: 12px; background: #fff; color: var(--black); box-shadow: 0 16px 40px var(--black-24); animation: fade-down .3s var(--ease); }
.search-bar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 18px; }
.search-bar .icon-btn:hover { background: var(--black-8); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* زیر هدر (z 50) تا کشوی منو که داخل هدر است روی آن بماند */
.nav-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(15, 23, 43, .5); animation: fade-in .3s var(--ease); }
@keyframes fade-in { from { opacity: 0; } }

/* =========================================================
   زیرمنو و مگامنو (دسکتاپ ≥۱۲۸۰)
   ========================================================= */
.nav-item { position: relative; }
.nav-item.has-mega { position: static; }                /* مگامنو هم‌عرض .navbar باز می‌شود */
.has-sub.is-open > .nav-link .nav-link__caret { transform: rotate(180deg); }
.has-sub.is-open > .nav-link { opacity: 1; }

.sub {
  position: absolute; z-index: 10; color: var(--black); text-align: right;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* پل نامرئی بین آیتم و منو تا هاور قطع نشود */
.sub::before { content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 32px; }

/* --- منوی ساده --- */
.sub--simple { top: calc(100% + 29px); right: 0; min-width: 248px; padding: 10px; border-radius: 12px; background: #fff; box-shadow: 0 24px 48px -12px rgba(15, 23, 43, .28), 0 0 0 1px var(--black-8); }
.sub--simple::after { content: ""; position: absolute; top: -6px; right: 28px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-radius: 2px 0 0 0; }
.sub__list { display: flex; flex-direction: column; gap: 2px; }
.sub__list a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; font-size: 16px; font-weight: 500; line-height: 22px; color: var(--black); transition: background .2s var(--ease), color .2s var(--ease); }
.sub__list a::before { content: ""; flex: none; width: 9px; height: 10px; background: var(--black-16s); -webkit-mask: var(--hex) center / 100% 100% no-repeat; mask: var(--hex) center / 100% 100% no-repeat; transition: background .2s var(--ease); }
.sub__list a::after { content: ""; width: 16px; height: 16px; margin-inline-start: auto; background: currentColor; opacity: 0; transform: translateX(6px); transition: opacity .2s var(--ease), transform .2s var(--ease); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10 13.78C9.87 13.78 9.75 13.73 9.65 13.63L5.3 9.29C4.59 8.58 4.59 7.42 5.3 6.71L9.65 2.37C9.84 2.17 10.16 2.17 10.35 2.37C10.55 2.56 10.55 2.88 10.35 3.07L6.01 7.42C5.69 7.74 5.69 8.26 6.01 8.58L10.35 12.93C10.55 13.12 10.55 13.44 10.35 13.63C10.25 13.73 10.13 13.78 10 13.78Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10 13.78C9.87 13.78 9.75 13.73 9.65 13.63L5.3 9.29C4.59 8.58 4.59 7.42 5.3 6.71L9.65 2.37C9.84 2.17 10.16 2.17 10.35 2.37C10.55 2.56 10.55 2.88 10.35 3.07L6.01 7.42C5.69 7.74 5.69 8.26 6.01 8.58L10.35 12.93C10.55 13.12 10.55 13.44 10.35 13.63C10.25 13.73 10.13 13.78 10 13.78Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.sub__list a:hover, .sub__list a:focus-visible { background: var(--java-8); color: var(--java); }
.sub__list a:hover::before, .sub__list a:focus-visible::before { background: var(--java); }
.sub__list a:hover::after, .sub__list a:focus-visible::after { opacity: 1; transform: none; }

/* --- مگامنو --- */
.mega { top: calc(100% + 10px); left: 0; right: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; border-radius: 12px; background: #fff; box-shadow: 0 32px 64px -16px rgba(15, 23, 43, .32), 0 0 0 1px var(--black-8); }
.mega::before { height: 40px; }
.mega__eyebrow { margin-bottom: 12px; padding-inline: 14px; font-size: 14px; line-height: 20px; color: var(--black-48); }
.mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mega-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; border: 1px solid transparent; transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.mega-item__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mega-item__text b { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; line-height: 26px; }
.mega-item__text small { font-size: 14px; line-height: 22px; color: var(--black-48); }
.mega-item:hover, .mega-item:focus-visible { background: linear-gradient(260.92deg, #fff 0%, #ebf7f7 100%); border-color: var(--java-16); }
.mega-item:hover .hex-ic, .mega-item:focus-visible .hex-ic { color: #fff; filter: drop-shadow(0 8px 12px var(--java-32)); }
.mega-item:hover .hex-ic__bg, .mega-item:focus-visible .hex-ic__bg { fill: var(--java); stroke: var(--java); }

/* آیتم راهکار با زیرصفحه‌ها (چیپ) */
.mega-item__link { font-size: 18px; font-weight: 700; line-height: 26px; color: var(--black); transition: color .2s var(--ease); }
.mega-item__link:hover { color: var(--java); }
.mega-item__link::after { content: ""; position: absolute; inset: 0; }   /* کل کارت قابل کلیک؛ چیپ‌ها روی آن */
li > .mega-item { position: relative; }
.mega-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.mega-chips a { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 120px; background: var(--black-4s); font-size: 13px; line-height: 26px; color: var(--black-48); transition: background .2s var(--ease), color .2s var(--ease); }
.mega-chips a:hover, .mega-chips a:focus-visible { background: var(--java); color: #fff; }


/* مگامنوی ستونی (تلسا / شبکه ما): هر ستون = یک صفحه + بخش‌های داخلی آن */
.mega-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
.mega-col { display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.mega-col__head { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 12px; font-size: 18px; font-weight: 700; line-height: 26px; transition: background .25s var(--ease), color .25s var(--ease); }
.mega-col__head .hex-ic { --s: 48px; }
.mega-col__head .hex-ic__ic { width: 22px; height: 22px; }
.mega-col__head:hover, .mega-col__head:focus-visible { background: var(--java-8); color: var(--java); }
.mega-col__head:hover .hex-ic, .mega-col__head:focus-visible .hex-ic { color: #fff; filter: drop-shadow(0 8px 12px var(--java-32)); }
.mega-col__head:hover .hex-ic__bg, .mega-col__head:focus-visible .hex-ic__bg { fill: var(--java); stroke: var(--java); }
.mega-col__list { display: flex; flex-direction: column; gap: 2px; padding-inline-start: 66px; }
.mega-col__list li { display: flex; flex-direction: column; }
.mega-col__list a { position: relative; display: inline-flex; align-self: flex-start; padding: 5px 0; font-size: 15px; line-height: 22px; color: var(--black-48); transition: color .2s var(--ease), transform .2s var(--ease); }
.mega-col__list a::before { content: ""; position: absolute; right: -14px; top: 50%; width: 6px; height: 7px; margin-top: -3.5px; background: var(--black-16s); -webkit-mask: var(--hex) center / 100% 100% no-repeat; mask: var(--hex) center / 100% 100% no-repeat; transition: background .2s var(--ease); }
.mega-col__list a:hover, .mega-col__list a:focus-visible { color: var(--java); transform: translateX(-4px); }
.mega-col__list a:hover::before, .mega-col__list a:focus-visible::before { background: var(--java); }
.mega-col__note { margin-top: -2px; font-size: 13px; line-height: 20px; color: var(--black-24); }
.mega-cols--3 .mega-col__list { padding-inline-start: 62px; }

/* مگامنوی کسب‌وکار ما: چهار کارت تصویری */
.mega--biz { display: block; }
.biz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.biz-card { display: flex; flex-direction: column; height: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--black-8); background: #fff; transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.biz-card__media { position: relative; display: grid; place-items: center; height: 170px; background: linear-gradient(225deg, rgba(0, 151, 157, .06), rgba(0, 151, 157, .28)); overflow: hidden; }
.biz-card__media img { max-width: 78%; max-height: 136px; width: auto; height: auto; object-fit: contain; transition: transform .6s var(--ease); }
.biz-card__media--cover img { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: cover; }
.biz-card__media--icon { background: linear-gradient(160deg, var(--java) 0%, var(--java-dark) 100%); }
.biz-card__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.biz-card__body b { font-size: 20px; font-weight: 700; line-height: 28px; transition: color .25s var(--ease); }
.biz-card__body small { font-size: 14px; line-height: 22px; color: var(--black-48); }
.biz-card:hover, .biz-card:focus-visible { border-color: var(--java-24); box-shadow: 0 20px 40px -24px var(--java-32); transform: translateY(-4px); }
.biz-card:hover .biz-card__media img { transform: scale(1.06); }
.biz-card:hover b { color: var(--java); }

/* منوی ساده با آیکون؛ آخرین منو از سمت چپ باز می‌شود تا از نوار بیرون نزند */
.sub__list--icons a::before { display: none; }
.sub__list--icons svg { flex: none; color: var(--java); }
.sub--end { right: auto; left: 0; }
.sub--end::after { right: auto; left: 28px; }


/* هفت آیتم منو باید در نوار جا شوند */
@media (max-width: 1599px) {
  .navbar__start { gap: 28px; }
  .nav-link { gap: 6px; padding: 8px 9px; font-size: 18px; }
  .biz-card__media { height: 140px; }
}
@media (max-width: 1439px) {
  .navbar { padding-inline: 24px; }
  .navbar__start { gap: 20px; }
  .nav-link { gap: 4px; padding: 8px 7px; font-size: 16px; }
  .nav-link--lang { padding-inline: 0 8px; }
  .navbar__end { gap: 8px; }
  .mega { padding: 20px; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 16px 16px 0; background: #fff; container-type: inline-size; }
/* each slide is one plain banner image (1696×956 design, exported @2x); only the menu and controls are HTML */
/* desktop: fills the monitor height (controls always visible); tablets keep the banner ratio */
.hero__box { position: relative; height: calc(100vh - 16px); height: calc(100svh - 16px); min-height: 560px; border-radius: 12px; background: var(--java); overflow: hidden; isolation: isolate; }
@media (max-width: 991px) { .hero__box { height: min(956px, calc(100cqw * 956 / 1680)); min-height: 0; } }
.hero-swiper { position: absolute; inset: 0; width: 100%; min-width: 0; }
.hero-slide { display: block; height: 100%; }
.hero-slide picture, .hero-slide img { display: block; width: 100%; height: 100%; }
.hero-slide img { object-fit: contain; object-position: center; }

.hero-ctrl { position: absolute; z-index: 5; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px 8px 0 0; background: #fff; }
.hero-ctrl__btn { display: grid; place-items: center; width: 32px; height: 32px; color: var(--java); transition: transform .25s var(--ease), opacity .25s; }
.hero-ctrl__btn:hover { opacity: .75; }
.hero-next:hover { transform: translateX(-3px); }
.hero-prev:hover { transform: translateX(3px); }
.hero-ctrl__dots { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 8px; background: var(--java-8); }
.hero-ctrl__dots .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 !important; border-radius: 8px; background: var(--java-32); opacity: 1; transition: width .45s var(--ease), background .3s; }
.hero-ctrl__dots .swiper-pagination-bullet-active { width: 72px; background: var(--java); }

/* =========================================================
   Solutions
   ========================================================= */
.sol-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.sol-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px; border: 1px solid var(--black-16s); border-radius: 12px; background: #fff;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.sol-card .hex-ic { margin-bottom: 48px; }
.sol-card__title { font-size: 24px; font-weight: 700; line-height: var(--lh-normal); margin-bottom: 16px; }
.sol-card__text { height: 96px; margin-bottom: 32px; font-size: 18px; line-height: 32px; letter-spacing: -.252px; color: var(--black-48); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* active look = design's highlighted card; follows the pointer */
.sol-card:hover, .sol-grid:not(:hover) .sol-card.is-active { background: linear-gradient(260.92deg, #fff 0%, #ebf7f7 100%); border-color: var(--java-16); }
.sol-card:hover .hex-ic, .sol-grid:not(:hover) .sol-card.is-active .hex-ic { color: #fff; filter: drop-shadow(0 12px 16px var(--java-32)); }
.sol-card:hover .hex-ic__bg, .sol-grid:not(:hover) .sol-card.is-active .hex-ic__bg { fill: var(--java); stroke: var(--java); }
.sol-card:hover .more-link, .sol-grid:not(:hover) .sol-card.is-active .more-link { color: var(--java); }
.sol-card:hover .more-link .hex-btn, .sol-grid:not(:hover) .sol-card.is-active .more-link .hex-btn { color: var(--java); }
.sol-card:hover .more-link .hex-btn__bg, .sol-grid:not(:hover) .sol-card.is-active .more-link .hex-btn__bg { fill: var(--java-24); }
.sol-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px var(--java-32); }

/* =========================================================
   Projects
   ========================================================= */
.projects { background: var(--black-4s); }
.projects-swiper { overflow: hidden; }
.projects-swiper .swiper-slide { height: auto; }
.pj-card { display: flex; align-items: center; gap: 32px; height: 100%; padding: 32px; border-radius: 8px; background: #fff; transition: box-shadow .35s var(--ease); }
.pj-card:hover { box-shadow: 0 24px 48px -28px var(--black-24); }
.pj-thumb { position: relative; flex: none; width: 293px; height: 338px; }
.pj-thumb__hex { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(225deg, rgba(0, 151, 157, .08), var(--java)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292.717 335.525' preserveAspectRatio='none'%3E%3Cpath d='M142.358 1.0718C144.833 -0.357265 147.883 -0.357267 150.358 1.0718L288.717 80.953C291.192 82.3821 292.717 85.0231 292.717 87.8812V247.644C292.717 250.502 291.192 253.143 288.717 254.572L150.358 334.453C147.883 335.882 144.833 335.882 142.358 334.453L4 254.572C1.5248 253.143 0 250.502 0 247.644V87.8812C0 85.0231 1.52479 82.3821 4 80.953L142.358 1.0718Z'/%3E%3C/svg%3E") center / 292.7px 335.5px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292.717 335.525' preserveAspectRatio='none'%3E%3Cpath d='M142.358 1.0718C144.833 -0.357265 147.883 -0.357267 150.358 1.0718L288.717 80.953C291.192 82.3821 292.717 85.0231 292.717 87.8812V247.644C292.717 250.502 291.192 253.143 288.717 254.572L150.358 334.453C147.883 335.882 144.833 335.882 142.358 334.453L4 254.572C1.5248 253.143 0 250.502 0 247.644V87.8812C0 85.0231 1.52479 82.3821 4 80.953L142.358 1.0718Z'/%3E%3C/svg%3E") center / 292.7px 335.5px no-repeat; }
.pj-thumb__photo, .pj-thumb__deco { z-index: 1; }
.pj-thumb__glow { position: absolute; z-index: 2; pointer-events: none; left: 50%; top: 168px; width: 492px; max-width: none; height: 492px; transform: translateX(-50%); transition: transform .6s var(--ease); }
.pj-thumb__photo { position: absolute; left: 50%; top: 50%; width: auto; height: auto; max-width: 270px; max-height: 204px; transform: translate(-50%, -50%); transition: transform .6s var(--ease); }
.pj-thumb__deco { position: absolute; left: 102px; top: 29px; width: 90px; height: 48px; animation: bob 2.4s ease-in-out infinite alternate; }
.pj-card:hover .pj-thumb__photo { transform: translate(-50%, -52%) scale(1.05); }
.pj-card:hover .pj-thumb__glow { transform: translateX(-50%) translateY(-6px); }
@keyframes bob { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
.pj-badge { --s: 72px; position: absolute; left: 50%; top: calc(50% + 108px); transform: translate(-50%, -50%); }
.pj-badge .hexnode__core { --lw: 32px; --lh: 32px; }
.pj-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.pj-card__title { font-size: 20px; font-weight: 500; line-height: 22px; margin-bottom: -20px; }
.pj-card__text { font-size: 18px; line-height: 32px; letter-spacing: -.252px; color: var(--black-48); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================================
   Big numbers
   ========================================================= */
.numbers { overflow: hidden; }
.numbers .sec-head { margin-bottom: 48px; }
.numbers__stage { position: relative; height: 224px; margin-bottom: 48px; }
.numbers__lines { position: absolute; left: 0; top: calc(50% + 8px); width: 100%; height: 270px; transform: translateY(-50%); overflow: visible; }
.numbers__pulse { fill: none; stroke: var(--java); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 60 940; animation: pulse-run 6s linear infinite; opacity: .55; }
.numbers__pulse--b { animation-direction: reverse; animation-delay: -3s; }
@keyframes pulse-run { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
.numbers__logo { position: absolute; left: 50%; top: 0; width: 258px; max-width: none; height: 286px; transform: translate(-50%, -15.6px); }

/* ---- scroll intro (JS adds .is-scrolly on desktop when the section fits the screen) ----
   The section gets extra height and .numbers__pin sticks to the viewport.
   1) logo alone  2) zoom into the teal mark until the screen is teal
   3) a white hexagon opens from the centre (clip-path set by JS)  4) .is-revealed plays the Figma layout in */
.numbers__intro { display: none; }
.numbers.is-scrolly { padding-block: 0; overflow: visible; }
.numbers.is-scrolly .numbers__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.numbers.is-scrolly .numbers__intro { display: block; position: absolute; inset: 0; z-index: 5; background: #fff; pointer-events: none; }
.numbers.is-scrolly .numbers__intro.is-done { visibility: hidden; }
.intro__logo { position: absolute; left: 50%; top: 50%; width: 258px; height: 286px; margin: -143px 0 0 -129px; transform-origin: 128.5px 141px; /* centre of the mark's middle teal block → grows symmetrically */ filter: drop-shadow(0 16px 16px rgba(15, 23, 43, .32)); }
.intro__logo.is-zooming { filter: none; }
.intro__logo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.intro__teal { position: absolute; inset: 0; background: var(--java); opacity: 0; }

/* content choreography: hidden while the intro runs, then plays in (reverses when scrolling back up) */
.numbers.is-scrolly [data-reveal] { opacity: 1; transform: none; transition: none; }

/* title: word by word — rises with a 3D tilt out of a blur (words are wrapped in .w by JS) */
.numbers.is-scrolly .sec-title { perspective: 600px; }
.numbers.is-scrolly .sec-title .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.7em) rotateX(-75deg); transform-origin: 50% 100%;
  transition: opacity .6s var(--ease), filter .7s var(--ease), transform .9s cubic-bezier(.2, 1.25, .35, 1); transition-delay: calc(var(--i) * 70ms); }
.numbers.is-scrolly .sec-line { transform: scaleX(0); transform-origin: right; transition: transform .8s var(--ease) .45s; }
.numbers.is-scrolly .sec-sub { opacity: 0; filter: blur(8px); transform: translateY(10px); transition: opacity .7s var(--ease) .55s, filter .8s var(--ease) .55s, transform .8s var(--ease) .55s; }
.numbers.is-scrolly.is-revealed .sec-title .w { opacity: 1; filter: none; transform: none; }
.numbers.is-scrolly.is-revealed .sec-line { transform: none; }
.numbers.is-scrolly.is-revealed .sec-sub { opacity: 1; filter: none; transform: none; }

/* logo + lines */
.numbers.is-scrolly .numbers__logo { opacity: 0; transform: translate(-50%, -15.6px) scale(.7); transition: opacity .7s var(--ease) .15s, transform .9s cubic-bezier(.2, 1.25, .35, 1) .15s; }
.numbers.is-scrolly .numbers__lines { clip-path: inset(0 50% 0 50%); transition: clip-path 1.1s var(--ease) .35s; }
.numbers.is-scrolly.is-revealed .numbers__logo { opacity: 1; transform: translate(-50%, -15.6px); }
.numbers.is-scrolly.is-revealed .numbers__lines { clip-path: inset(0 0 0 0); }

/* cards: stand up in 3D one after another (right → left), then a light sweeps across and the number pops */
.numbers.is-scrolly .num-grid { perspective: 1400px; }
.numbers.is-scrolly .num-card { --d: calc(.6s + var(--ci) * .12s); position: relative; overflow: hidden; opacity: 0; transform: translateY(90px) rotateX(-58deg) scale(.9); transform-origin: 50% 100%;
  transition: opacity .6s var(--ease), transform 1.05s cubic-bezier(.2, 1.25, .35, 1); }
.numbers.is-scrolly .num-card:nth-child(1) { --ci: 0; }
.numbers.is-scrolly .num-card:nth-child(2) { --ci: 1; }
.numbers.is-scrolly .num-card:nth-child(3) { --ci: 2; }
.numbers.is-scrolly .num-card:nth-child(4) { --ci: 3; }
.numbers.is-scrolly .num-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .85) 48%, rgba(0, 151, 157, .12) 52%, transparent 70%); transform: translateX(110%); }
.numbers.is-scrolly .num-card__value { opacity: 0; transform: scale(.8); transition: opacity .5s var(--ease), transform .7s cubic-bezier(.2, 1.4, .35, 1); }
.numbers.is-scrolly .num-card__text { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.numbers.is-scrolly.is-revealed .num-card { opacity: 1; transform: none; transition-delay: var(--d); }
.numbers.is-scrolly.is-revealed .num-card::after { animation: card-shine 1.1s var(--ease) calc(var(--d) + .55s) both; }
.numbers.is-scrolly.is-revealed .num-card__value { opacity: 1; transform: none; transition-delay: calc(var(--d) + .3s); }
.numbers.is-scrolly.is-revealed .num-card__text { opacity: 1; transform: none; transition-delay: calc(var(--d) + .45s); }
@keyframes card-shine { from { transform: translateX(110%); } to { transform: translateX(-110%); } }
.num-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.num-card { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px; border-radius: 8px; background: linear-gradient(45.1deg, #ebf7f7 0%, #fff 100%); text-align: center; }
.num-card__value { font-size: 40px; font-weight: 700; line-height: var(--lh-normal); color: var(--java); }
.num-card__value em { font-style: normal; color: var(--orange); }
.num-card__text { font-size: 20px; font-weight: 500; line-height: 32px; color: var(--black-48); }

/* =========================================================
   Network (dark)
   ========================================================= */
.network { background: linear-gradient(119.9deg, var(--java-dark) 0%, var(--black) 100%); overflow: hidden; }
.net-fit { position: relative; }
.net-stage { position: relative; width: 1236px; height: 600px; margin-inline: auto; transform-origin: top center; }
[data-fit] > .net-stage { position: absolute; top: 0; left: 50%; margin: 0; transform: translateX(-50%) scale(var(--fit, 1)); }
.net-art { position: absolute; left: 50%; top: 0; width: 524px; height: 600px; transform: translateX(-50%); }
.net-art__hex { position: absolute; left: -32px; top: -16px; width: 588px; max-width: none; height: 664px; }
.net-art__lines { position: absolute; left: 50px; top: 79px; width: 422px; height: 430px; opacity: .48; }
.net-node { position: absolute; left: var(--x); top: var(--y); animation: float-node 3.6s ease-in-out var(--d, 0s) infinite alternate; }
.net-node .hexnode__core { transition: transform .35s var(--ease); }
.net-node:hover .hexnode__core { transform: scale(1.15); }
@keyframes float-node { from { translate: 0 -3px; } to { translate: 0 3px; } }
.net-tags { position: absolute; top: 160px; width: 378px; height: 280px; }
.net-tags--start { right: 0; }
.net-tags--end { left: 0; }
.net-tag { position: absolute; top: calc(var(--ty) * 104px); display: flex; align-items: center; width: 306px; height: 72px; padding: 16px 32px; border-radius: 8px; font-size: 24px; font-weight: 700; line-height: var(--lh-normal); color: #fff; white-space: nowrap; }
.net-tags--start .net-tag { right: calc((1 - var(--tx)) * 72px); justify-content: flex-start; background: linear-gradient(242.7deg, rgba(255, 255, 255, .72) 22.4%, rgba(255, 255, 255, 0) 71%); }
.net-tags--end .net-tag { left: calc((1 - var(--tx)) * 72px); justify-content: flex-end; background: linear-gradient(117.3deg, rgba(255, 255, 255, .72) 22.4%, rgba(255, 255, 255, 0) 71%); }

/* =========================================================
   Tabs (companies / news)
   ========================================================= */
.tabs { position: relative; flex: none; max-width: 100%; }
.tabs__glass { position: absolute; top: 50%; right: -12px; width: 290px; height: 88px; transform: translateY(-50%); background: url("../img/companies/glass.svg") center / 100% 100% no-repeat; pointer-events: none; }
.tabs__bar { position: relative; display: flex; gap: 4px; padding: 8px; border-radius: 120px; background: #fff; filter: drop-shadow(0 8px 12px var(--black-4)); overflow-x: auto; scrollbar-width: none; }
.tabs__bar::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; padding: 12px 24px; border-radius: 120px; font-size: 17px; font-weight: 500; line-height: 22px; color: var(--black-48); white-space: nowrap; transition: color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease); }
.tab:hover { color: var(--black); }
.tab.is-active { color: var(--java); background: var(--java-8); box-shadow: inset 0 0 0 2px var(--java); }
.tab.is-active::before { content: ""; position: absolute; left: 50%; top: 2px; transform: translateX(-50%); border: 6px solid transparent; border-top: 8px solid var(--java); border-bottom: 0; }

/* =========================================================
   Companies
   ========================================================= */
.companies { background: var(--black-4s); border-bottom: 1px solid var(--black-8); }
.co-panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  padding: 72px 80px; border-radius: 12px; background: var(--java); color: #fff;
}
.co-panel::before, .co-panel::after { content: ""; position: absolute; z-index: -1; width: 928px; height: 600px; border-radius: 50%; pointer-events: none; filter: blur(120px); }
.co-panel::before { left: 0; top: -276px; background: var(--blue); mix-blend-mode: hard-light; opacity: .55; }
.co-panel::after { left: 1248px; top: -38px; background: #33e0e6; mix-blend-mode: screen; opacity: .25; }
.co-panel.is-active { animation: panel-in .5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.co-panel__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 680px; max-width: 100%; }
.co-panel__title { font-size: 32px; font-weight: 700; line-height: var(--lh-normal); }
.co-panel__text { font-size: 18px; line-height: 32px; letter-spacing: -.252px; color: var(--white-80); }
.co-panel__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.co-panel__list li { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 20px; letter-spacing: -.16px; color: var(--white-80); }
.co-panel__list li::before { content: ""; flex: none; width: 10.4px; height: 11.4px; background: var(--white-80); -webkit-mask: var(--hex) center / 100% 100% no-repeat; mask: var(--hex) center / 100% 100% no-repeat; }
.co-panel__art { position: relative; flex: none; width: 594px; height: 418px; }
.co-panel__art img { position: absolute; left: 0; top: -9.4px; width: 714px; max-width: none; height: auto; }
.companies .more-link--center, .news .more-link--center, .blog .more-link--center { margin-top: 48px; }

/* =========================================================
   News
   ========================================================= */
.news { background: var(--black-4s); }
.news-panel { display: flex; gap: 32px; }
.news-panel.is-active { animation: panel-in .5s var(--ease); }
.news-feature { position: relative; flex: 1; min-width: 0; min-height: 514px; border-radius: 8px; overflow: hidden; isolation: isolate; color: #fff; }
.news-feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.news-feature:hover .news-feature__img { transform: scale(1.04); }
.news-feature__body { position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; gap: 12px; padding: 32px; }
.news-feature__body::before { content: ""; position: absolute; inset: -40px 0 0; z-index: -1; background: linear-gradient(to bottom, rgba(15, 23, 43, 0), rgba(15, 23, 43, .45)); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); -webkit-mask: linear-gradient(to bottom, transparent, #000 40px); mask: linear-gradient(to bottom, transparent, #000 40px); }
.news-feature__title { font-size: 24px; font-weight: 700; line-height: var(--lh-normal); }
.news-feature__text { font-size: 18px; line-height: 32px; letter-spacing: -.252px; color: var(--white-80); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list { display: flex; flex-direction: column; gap: 32px; width: 768px; flex: none; }
.news-item { display: flex; align-items: center; gap: 24px; }
.news-item__img { flex: none; width: 280px; height: 150px; border-radius: 8px; object-fit: cover; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.news-item:hover .news-item__img { transform: scale(1.03); box-shadow: 0 16px 32px -16px var(--black-48); }
.news-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.news-item__title { font-size: 20px; font-weight: 700; line-height: 32px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .25s var(--ease); }   /* تا ۲ خط؛ عنوان کامل دیده شود */
.news-item:hover .news-item__title { color: var(--java); }

/* =========================================================
   Blog
   ========================================================= */
.blog-swiper { overflow: hidden; }
.post-card { display: flex; flex-direction: column; gap: 16px; }
.post-card__img { width: 100%; height: 348px; border-radius: 8px; object-fit: cover; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.post-card:hover .post-card__img { transform: translateY(-4px); box-shadow: 0 24px 40px -24px var(--black-48); }
.post-card__body { display: flex; flex-direction: column; gap: 12px; padding-inline: 20px; }
.post-card__title { min-height: 68px; font-size: 22px; font-weight: 700; line-height: 34px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .25s var(--ease); }   /* تا ۲ خط، ارتفاع ثابت تا کارت‌ها هم‌قد بمانند */
.post-card:hover .post-card__title { color: var(--java); }
.post-card__text { height: 64px; font-size: 18px; line-height: 32px; letter-spacing: -.252px; color: var(--black-48); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================================
   Collaboration CTA
   ========================================================= */
.cta-card { position: relative; height: 338px; border-radius: 12px; background: linear-gradient(to right, var(--java-dark), var(--java)); }
.cta-card__bg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.cta-card__dots { position: absolute; right: 561px; top: 50%; width: 298px; height: 554px; max-width: none; transform: translateY(-50%); mix-blend-mode: soft-light; }
.cta-card__content { position: absolute; top: 50%; right: 48px; transform: translateY(-50%); display: flex; align-items: center; gap: 80px; color: #fff; }
.cta-card__text { display: flex; flex-direction: column; gap: 12px; }
.cta-card__title { font-size: 32px; font-weight: 700; line-height: var(--lh-normal); }
.cta-card__desc { font-size: 18px; line-height: 32px; letter-spacing: -.252px; color: var(--white-80); }
.cta-card .btn-white { min-width: 0; }
.cta-card__media { position: absolute; left: 0; top: -21px; width: 680px; height: 380px; }
.cta-card__glass { position: absolute; left: 210px; top: calc(50% - 1px); width: 502px; height: 280px; max-width: none; transform: translateY(-50%); }
.cta-card__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 680 380' preserveAspectRatio='none'%3E%3Cpath d='M12 0H578Q582 0 584 4L676 186Q678 190 676 194L584 376Q582 380 578 380H12Q0 380 0 368V12Q0 0 12 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 680 380' preserveAspectRatio='none'%3E%3Cpath d='M12 0H578Q582 0 584 4L676 186Q678 190 676 194L584 376Q582 380 578 380H12Q0 380 0 368V12Q0 0 12 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--black); color: #fff; }
.site-footer::before, .site-footer::after { content: ""; position: absolute; z-index: -1; width: 928px; height: 600px; border-radius: 50%; background: var(--java); filter: blur(160px); pointer-events: none; }
.site-footer::before { left: -240px; top: -538px; opacity: .9; }
.site-footer::after { left: 1264px; top: -300px; opacity: .35; mix-blend-mode: plus-lighter; }
.site-footer__inner { display: flex; flex-direction: column; gap: 72px; padding-block: 72px; }
.footer-about { display: flex; flex-direction: column; align-items: flex-start; gap: 48px; }
.footer-about__logo img { width: 164px; height: 44px; }
.footer-about__row { display: flex; align-items: center; justify-content: space-between; gap: 32px; width: 100%; }
.footer-about__text { max-width: 680px; font-size: 18px; line-height: 32px; letter-spacing: -.252px; color: var(--white-80); }
.newsletter { position: relative; display: flex; align-items: center; gap: 8px; }
.newsletter__field { display: flex; align-items: center; gap: 8px; width: 300px; height: 56px; padding: 16px; border: 1px solid var(--white-24); border-radius: 8px; background: var(--white-8); color: var(--white-72); transition: border-color .25s var(--ease), background .25s var(--ease); }
.newsletter__field:focus-within { border-color: var(--java); background: var(--white-16); }
.newsletter__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font-size: 16px; letter-spacing: -.16px; }
.newsletter__field input::placeholder { color: var(--white-72); }
.newsletter__msg { position: absolute; top: 100%; right: 0; margin-top: 8px; font-size: 14px; color: #5fe0c0; }
.footer-links { display: flex; gap: 48px; padding: 48px; border-radius: 8px; background: var(--white-4); }   /* ۶ ستون طبق نقشه سایت */
.footer-col { flex: 1; min-width: 0; }
.footer-col__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; font-size: 20px; font-weight: 700; line-height: var(--lh-normal); color: #fff; text-align: right; white-space: nowrap; cursor: default; }
.footer-col__line { display: block; width: 48px; height: 4px; border-radius: 120px; background: linear-gradient(to right, rgba(242, 145, 0, 0), var(--orange)); }
.footer-col__list { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 32px; line-height: 20px; }
.footer-col__list li { display: flex; }
.footer-col__list a { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; line-height: 20px; letter-spacing: -.16px; color: var(--white-48); transition: color .25s var(--ease); }
.footer-col__list a::after { content: ""; width: 16px; height: 16px; background: currentColor; opacity: 0; transform: translateX(6px); transition: opacity .25s var(--ease), transform .25s var(--ease); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10 13.78C9.87 13.78 9.75 13.73 9.65 13.63L5.3 9.29C4.59 8.58 4.59 7.42 5.3 6.71L9.65 2.37C9.84 2.17 10.16 2.17 10.35 2.37C10.55 2.56 10.55 2.88 10.35 3.07L6.01 7.42C5.69 7.74 5.69 8.26 6.01 8.58L10.35 12.93C10.55 13.12 10.55 13.44 10.35 13.63C10.25 13.73 10.13 13.78 10 13.78Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10 13.78C9.87 13.78 9.75 13.73 9.65 13.63L5.3 9.29C4.59 8.58 4.59 7.42 5.3 6.71L9.65 2.37C9.84 2.17 10.16 2.17 10.35 2.37C10.55 2.56 10.55 2.88 10.35 3.07L6.01 7.42C5.69 7.74 5.69 8.26 6.01 8.58L10.35 12.93C10.55 13.12 10.55 13.44 10.35 13.63C10.25 13.73 10.13 13.78 10 13.78Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.footer-col__list a:hover { color: #fff; }
.footer-col__list a:hover::after { opacity: 1; transform: none; }
.footer-contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.contact-list { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-item__text { display: flex; flex-direction: column; gap: 12px; white-space: nowrap; }
.contact-item__text small { font-size: 16px; line-height: 20px; letter-spacing: -.16px; color: var(--white-48); }
.contact-item__text > a, .contact-item__text > span { font-size: 20px; font-weight: 500; line-height: 22px; color: #fff; transition: color .25s; }
.contact-item__text > a:hover { color: #5fd3d7; }
.contact-item__text > a[dir="ltr"] { text-align: right; }
.social { display: flex; gap: 12px; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.sol-grid > [data-reveal]:nth-child(2), .num-grid > [data-reveal]:nth-child(2) { transition-delay: .08s; }
.sol-grid > [data-reveal]:nth-child(3), .num-grid > [data-reveal]:nth-child(3) { transition-delay: .16s; }
.sol-grid > [data-reveal]:nth-child(4), .num-grid > [data-reveal]:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1599px) {
  .num-card { padding: 28px 20px; }
  .num-card__value { font-size: 32px; }
  .footer-links { gap: 24px; padding: 40px; }
  .footer-col__head { font-size: 18px; }
  .co-panel { padding: 56px; }
  .co-panel__art { zoom: .85; }
  .cta-card__media { zoom: .8; }
  .cta-card__content { gap: 48px; }
}

@media (max-width: 1439px) {
  .sol-grid { gap: 24px; }
  .sol-card { padding: 28px 20px; }
  .pj-card { padding: 24px; gap: 24px; }
  .pj-thumb { zoom: .82; }
  .news-list { width: 56%; }
  .news-item__img { width: 220px; height: 130px; }
  .num-card { padding: 28px 20px; }
  .num-card__value { font-size: 30px; }
  .cta-card__media { zoom: .64; }
  .cta-card__content { gap: 32px; }
  .footer-links { gap: 20px; padding: 40px 28px; }
  .footer-col__head { font-size: 17px; }
  .num-card__text { font-size: 18px; line-height: 30px; }
  .co-panel__art { zoom: .72; }
}

@media (max-width: 1279px) {
  .navbar__toggle { display: inline-grid; }
  .navbar__nav {
    position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: min(340px, 86vw);
    display: flex; flex-direction: column; gap: 16px; padding: 20px;
    background: var(--java-dark); box-shadow: -24px 0 48px rgba(15, 23, 43, .32);
    transform: translateX(105%); transition: transform .4s var(--ease); visibility: hidden;
  }
  .navbar__nav.is-open { transform: none; visibility: visible; }
  .navbar__drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--white-16); }
  .nav-list { flex-direction: column; align-items: stretch; }
  /* فقط آیتم‌های داخل کشو؛ دکمه زبان (FA) در نوار همان شکل دسکتاپ می‌ماند */
  .nav-list .nav-link { justify-content: space-between; width: 100%; padding: 14px 8px; border-bottom: 1px solid var(--white-8); }
  .nav-link:hover .nav-link__caret { transform: none; }
  .navbar__nav { overflow-y: auto; overscroll-behavior: contain; }

  /* زیرمنوها در کشو: آکاردئون */
  .nav-item, .nav-item.has-mega { position: static; }
  .sub, .has-sub.is-open > .sub {
    position: static; opacity: 1; visibility: visible; transform: none; transition: max-height .4s var(--ease);
    max-height: 0; overflow: hidden; color: #fff;
  }
  .has-sub.is-open > .sub { max-height: 1400px; }
  .sub::before, .sub--simple::after { display: none; }
  .sub--simple, .mega { min-width: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .has-sub.is-open > .nav-link { border-bottom-color: transparent; color: #5fd3d7; }
  .sub__list { padding: 4px 0 12px; }
  .sub__list a { padding: 11px 12px; font-size: 16px; color: var(--white-80); }
  .sub__list a::before { background: var(--white-24); }
  .sub__list a:hover, .sub__list a:focus-visible { background: var(--white-8); color: #fff; }
  .sub__list a:hover::before { background: #5fd3d7; }

  .mega, .mega--cols, .mega--biz { display: flex; flex-direction: column; gap: 12px; }
  .mega > :last-child { margin-bottom: 16px; }   /* فاصله پایین داخل محتوا تا در حالت بسته ارتفاع صفر بماند */
  .mega__eyebrow { display: none; }
  .mega__grid { grid-template-columns: 1fr; gap: 2px; }
  .mega-item { gap: 12px; padding: 10px 8px; }
  .mega-item .hex-ic { --s: 44px; color: var(--java); }
  .mega-item .hex-ic svg.hex-ic__ic { width: 20px; height: 20px; }
  .mega-item .hex-ic__bg { stroke: none; }
  .mega-item__text b { font-size: 16px; line-height: 24px; color: #fff; }
  .mega-item__text small { font-size: 13px; line-height: 20px; color: var(--white-48); }
  .mega-item:hover, .mega-item:focus-visible { background: var(--white-8); border-color: transparent; }

  .mega-item__link { font-size: 16px; line-height: 24px; color: #fff; }
  .mega-chips a { background: var(--white-8); color: var(--white-80); }

  /* ستون‌ها در کشو: سرصفحه + زیرلینک‌ها زیر هم */
  .mega-cols, .mega-cols--3 { grid-template-columns: 1fr; gap: 6px; }
  .mega-col { gap: 2px; padding: 0; }
  .mega-col__head { padding: 6px 4px; font-size: 16px; line-height: 24px; color: #fff; }
  .mega-col__head .hex-ic { --s: 40px; color: var(--java); }
  .mega-col__head .hex-ic__bg { stroke: none; }
  .mega-col__head .hex-ic__ic { width: 18px; height: 18px; }
  .mega-col__head:hover, .mega-col__head:focus-visible { background: var(--white-8); color: #fff; }
  .mega-col__list, .mega-cols--3 .mega-col__list { padding: 0 52px 8px 0; }
  .mega-col__list a { color: var(--white-72); font-size: 15px; }
  .mega-col__list a::before { background: var(--white-24); }
  .mega-col__list a:hover, .mega-col__list a:focus-visible { color: #fff; }
  .mega-col__note { color: var(--white-48); }

  .biz-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .biz-card { border-color: var(--white-8); background: var(--white-4); }
  .biz-card__media { height: 96px; }
  .biz-card__media img { max-height: 80px; }
  .biz-card__media .hex-ic { --s: 56px; }
  .biz-card__media .hex-ic__ic { width: 28px; height: 28px; }
  .biz-card__body { padding: 10px 12px 12px; }
  .biz-card__body b { font-size: 16px; line-height: 24px; color: #fff; }
  .biz-card__body small { display: none; }
  .biz-card:hover b { color: #5fd3d7; }
  .sub__list--icons svg { color: #5fd3d7; }
  .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
  .co-panel { flex-direction: column-reverse; align-items: stretch; padding: 48px; }
  .co-panel__body { width: 100%; }
  .co-panel__art { align-self: center; zoom: .8; }
  .news-panel { flex-direction: column; }
  .news-list { width: 100%; }
  .news-feature { min-height: 420px; }
  .cta-card { height: auto; padding: 32px; background: linear-gradient(to bottom, var(--java-dark), var(--java)); }
  .cta-card__content { position: static; transform: none; flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta-card__media { position: relative; top: auto; width: 100%; height: auto; aspect-ratio: 680 / 380; margin-top: 32px; zoom: 1; }
  .cta-card__glass { display: none; }
  .cta-card__dots { right: -60px; }
  .cta-card__media { max-width: 680px; }
  .footer-contact { flex-direction: column; align-items: flex-start; }
  .companies .sec-row, .news .sec-row { flex-direction: column; align-items: stretch; }
  .sec-row .tabs { align-self: flex-start; }
  .tabs__glass { display: none; }
}

@media (max-width: 991px) {
  .sec-row { flex-direction: column; align-items: stretch; }
  .sec-row .slider-nav { align-self: flex-end; }
  .sec-row .tabs { align-self: stretch; }
  .tabs__glass { display: none; }
  .tabs__bar { width: max-content; max-width: 100%; }
  .pj-card { flex-direction: column; align-items: stretch; }
  .pj-thumb { align-self: center; zoom: 1; }
  .footer-about__row { flex-direction: column; align-items: stretch; }
  .newsletter__field { flex: 1; width: auto; }
  .contact-list { flex-direction: column; align-items: flex-start; }

}

@media (max-width: 767px) {
  .sec-title { font-size: 24px; }
  .sec-sub { font-size: 16px; line-height: 28px; }
  .sec-head--center { margin-bottom: 32px; }
  .sec-row { margin-bottom: 32px; }
  .more-link, .btn-white { font-size: 18px; }

  .site-header { top: 24px; inset-inline: 24px; }
  .navbar { height: 64px; padding: 12px 16px; }
  .navbar__logo img { width: 104px; height: auto; }
  .navbar__end { gap: 4px; }
  .nav-link--lang { font-size: 16px; }

  /* hero: banner sits below the header on phones, controls under it */
  .hero__box { height: auto; padding: 100px 12px 64px; }
  .hero-swiper { position: relative; inset: auto; border-radius: 8px; }
  .hero-slide, .hero-slide picture, .hero-slide img { height: auto; }
  .hero-ctrl { padding: 8px 10px; gap: 8px; }
  .hero-ctrl__dots .swiper-pagination-bullet-active { width: 40px; }

  .sol-grid { grid-template-columns: 1fr; gap: 16px; }
  .sol-card .hex-ic { margin-bottom: 24px; }
  .sol-card__text { height: auto; }

  .pj-card { padding: 20px; }
  .pj-card__title { font-size: 18px; }
  .pj-card__text { font-size: 16px; line-height: 28px; }

  .numbers__stage { height: 160px; margin-bottom: 32px; }
  .numbers__logo { width: 184px; height: 204px; transform: translate(-50%, -11px); }
  .numbers__lines { height: 200px; }
  .num-grid { grid-template-columns: 1fr; gap: 12px; }
  .num-card { padding: 24px; }
  .num-card__value { font-size: 30px; }

  .net-tags { display: none; }

  .co-panel { padding: 28px 20px; }
  .co-panel__title { font-size: 24px; }
  .co-panel__text { font-size: 16px; line-height: 28px; }
  .co-panel__art { zoom: .5; }
  .tab { padding: 10px 16px; font-size: 15px; }

  .news-feature { min-height: 300px; }
  .news-feature__body { padding: 20px; }
  .news-feature__title { font-size: 20px; }
  .news-feature__text { font-size: 15px; line-height: 26px; }
  .news-item { flex-direction: column; align-items: stretch; gap: 12px; }
  .news-item__img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .news-item__title { font-size: 18px; line-height: 28px; }
  .news-list { gap: 24px; }

  .post-card__img { height: auto; aspect-ratio: 501 / 348; }
  .post-card__body { padding-inline: 4px; }
  .post-card__title { min-height: 60px; font-size: 20px; line-height: 30px; }

  .cta-card { padding: 28px 20px; }
  .cta-card__title { font-size: 24px; }

  .site-footer__inner { gap: 40px; padding-block: 48px; }
  .footer-links { display: flex; flex-direction: column; gap: 0; padding: 8px 20px; }
  .footer-col { border-bottom: 1px solid var(--white-8); }
  .footer-col:last-child { border-bottom: 0; }
  .footer-col__head { flex-direction: row; align-items: center; justify-content: space-between; padding: 18px 0; font-size: 18px; cursor: pointer; }
  .footer-col__head::after { content: ""; width: 16px; height: 16px; background: currentColor; transition: transform .3s var(--ease); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.2C7.53 11.2 7.07 11.02 6.71 10.67L2.37 6.32C2.17 6.13 2.17 5.81 2.37 5.61C2.56 5.42 2.88 5.42 3.07 5.61L7.42 9.96C7.74 10.28 8.26 10.28 8.58 9.96L12.93 5.61C13.12 5.42 13.44 5.42 13.63 5.61C13.83 5.81 13.83 6.13 13.63 6.32L9.29 10.67C8.93 11.02 8.47 11.2 8 11.2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.2C7.53 11.2 7.07 11.02 6.71 10.67L2.37 6.32C2.17 6.13 2.17 5.81 2.37 5.61C2.56 5.42 2.88 5.42 3.07 5.61L7.42 9.96C7.74 10.28 8.26 10.28 8.58 9.96L12.93 5.61C13.12 5.42 13.44 5.42 13.63 5.61C13.83 5.81 13.83 6.13 13.63 6.32L9.29 10.67C8.93 11.02 8.47 11.2 8 11.2Z'/%3E%3C/svg%3E") center / contain no-repeat; }
  .footer-col__head[aria-expanded="true"]::after { transform: rotate(180deg); }
  .footer-col__line { display: none; }
  .footer-col__list { margin: 0; max-height: 0; overflow: hidden; gap: 14px; transition: max-height .35s var(--ease), padding .35s var(--ease); }
  .footer-col__head[aria-expanded="true"] + .footer-col__list { max-height: 320px; padding-bottom: 18px; }
  .newsletter { flex-direction: row; }
  .contact-item__text > a, .contact-item__text > span { font-size: 16px; white-space: normal; }
  .contact-item__text { white-space: normal; }
}
