
/* ========================================
   1. تنظیمات پایه و متغیرها
======================================== */

:root {
  --gold: #c58d43;
  --purple: #21166f;
  --ink: #111018;
  --muted: #686777;
  --paper: #fbfaf8;
  --white: #ffffff;
  --line: #e9e6e1;
  --font-fa: "Vazirmatn", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

html,
body,
button,
input,
textarea,
select {
  font-family: var(--font-fa);
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.9;
  font-weight: 400;
}

main {
  flex: 1;
}

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

.wrap {
  width: min(1160px, 92%);
  margin: auto;
}


/* ========================================
   2. هدر و منوی اصلی
======================================== */

header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fbfaf8ed;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
}

/* فقط منوی داخل هدر */
.nav nav {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #454352;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav nav a {
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav nav a:hover,
.nav nav a:focus-visible,
.nav nav a:active,
.nav nav a.active {
  color: var(--gold);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 12px;
  background: var(--white);
  cursor: pointer;
}


/* ========================================
   3. دکمه‌ها
======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border-radius: 10px;
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  border: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn.gold {
  background: var(--gold);
  color: #17120b;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.gold:hover {
  background: #d49c50;
}


/* ========================================
   4. بخش اصلی صفحه خانه
======================================== */

.hero {
  padding: 62px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 38px;
}

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

.eyebrow,
.tag {
  display: inline-block;
  color: var(--purple);
  background: #21166f0d;
  border: 1px solid #21166f18;
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  font-size: clamp(38px, 5vw, 61px);
  line-height: 1.48;
  margin: 20px 0 15px;
  letter-spacing: -.7px;
  font-weight: 800;
}

h2 {
  font-size: clamp(27px, 3.4vw, 39px);
  line-height: 1.5;
  margin: 10px 0;
  font-weight: 700;
}

h3 {
  margin: 8px 0;
  font-size: 19px;
  font-weight: 700;
}

h1 span {
  color: var(--gold);
}

.lead {
  font-size: 16px;
  line-height: 2.05;
  color: var(--muted);
  max-width: 570px;
  margin: 0 0 26px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

.note-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px #c58d4320;
}


/* ========================================
   5. تصویر و بخش گرافیکی
======================================== */

.visual {
  min-height: 410px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  width: 100%;
}

.visual:before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #c58d431c 0%,
    #c58d4308 48%,
    transparent 70%
  );
  z-index: -1;
}

.orb {
  width: min(310px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #4939a4,
    var(--purple) 58%,
    #120d43
  );
  box-shadow: 0 30px 80px #21166f35, inset 0 0 35px #ffffff18;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f3c47f;
  font-size: 47px;
  font-weight: 800;
  position: relative;
  line-height: 1.4;
}

.orb small {
  font-size: 21px;
  color: var(--white);
  font-weight: 500;
}

.orb:after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid #ffffff45;
  border-radius: 50%;
}

.visual-ring {
  position: absolute;
  border: 1px solid #c58d4350;
  border-radius: 50%;
  transform: rotate(-25deg);
}

.ring-one {
  width: 390px;
  height: 250px;
}

.ring-two {
  width: 340px;
  height: 430px;
  transform: rotate(48deg);
  border-color: #21166f20;
}

.float {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px #17122b12;
  border-radius: 13px;
  padding: 12px 16px;
  font-size: 12px;
}

.float b {
  display: block;
  color: var(--purple);
  font-size: 14px;
}

.float.one {
  top: 42px;
  right: -4px;
}

.float.two {
  bottom: 42px;
  left: -4px;
}

/* بخش گرافیکی مستقل صفحه اصلی */
.visual-section {
  padding: 35px 0 75px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--paper) 0%,
    #f2efe9 100%
  );
}

.visual-section-inner {
  display: flex;
  justify-content: center;
}

.visual-section .visual {
  width: min(650px, 100%);
  min-height: 390px;
}


/* ========================================
   6. بخش راهکارها و کارت‌ها
======================================== */

.section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 35px;
}

.kicker {
  color: var(--gold);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.8;
}

.section-head p,
.muted {
  color: var(--muted);
}

.solution-grid,
.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.solution-card,
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px #21166f12;
}

.solution-card p,
.panel p {
  font-size: 13px;
  color: var(--muted);
}

.solution-card .number {
  color: var(--gold);
  font-size: 11px;
  direction: ltr;
  display: block;
}

.solution-link {
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
}


/* ========================================
   7. بخش دعوت به اقدام
======================================== */

.band {
  background: var(--ink);
  color: var(--white);
  padding: 58px 0;
}

.band-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.band p {
  color: #c5c2d0;
  max-width: 650px;
}

.band-kicker {
  color: #e1b879;
  font-size: 12px;
  font-weight: 700;
}


/* ========================================
   8. صفحات داخلی
======================================== */

.page-hero {
  padding: 65px 0 40px;
  text-align: center;
}

.page-hero p {
  max-width: 720px;
  margin: 10px auto;
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.feature-box {
  background: #f0ede8;
  border-radius: 18px;
  padding: 35px;
}

.feature-box strong {
  font-size: 38px;
  color: var(--purple);
}


/* ========================================
   9. فرم‌ها
======================================== */

form {
  display: grid;
  gap: 13px;
}

input,
textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  width: 100%;
}

textarea {
  min-height: 125px;
  resize: vertical;
}

label {
  font-size: 13px;
  font-weight: 700;
}


/* ========================================
   10. صفحه تماس با ما
======================================== */

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 850px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 230px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 35px #21166f0a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px #21166f16;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #21166f0d;
  color: var(--purple);
  font-size: 27px;
}

.contact-label {
  font-size: 13px;
  color: var(--muted);
}

.contact-card strong {
  font-size: 18px;
  color: var(--purple);
  direction: ltr;
}

.contact-action {
  margin-top: 7px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}


/* ========================================
   11. فوتر
======================================== */

footer {
  background: var(--ink);
  color: #d8d6df;
  padding: 24px 0;
}

.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}

.footer-brand {
  grid-column: 3;
  justify-self: end;
}

.footer-brand img {
  width: 48px;
  height: 48px;
}

/* فقط منوی فوتر */
.footer-nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 20px 24px;
  white-space: nowrap;
  font-size: 13px;
  color: #d8d6df;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-address {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  margin: 0;
  color: #d8d6df;
  font-size: 12px;
  line-height: 1.9;
  font-style: normal;
  text-align: center;
}

.foot small {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  color: #aaa7b5;
  font-size: 11px;
}


/* ========================================
   12. تنظیمات زبان چپ به راست
======================================== */

[dir="ltr"] body {
  text-align: left;
}

[dir="ltr"] .nav nav {
  direction: ltr;
}

[dir="ltr"] .hero-buttons {
  flex-direction: row;
}

[dir="ltr"] .float.one {
  right: auto;
  left: 0;
}

[dir="ltr"] .float.two {
  left: auto;
  right: 0;
}


/* ========================================
   13. منوی موبایل
======================================== */

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}


/* ========================================
   14. نمایشگرهای حداکثر 800 پیکسل
======================================== */

@media (max-width: 800px) {

  /* هدر موبایل */
  .nav {
    display: flex;
    justify-content: space-between;
    position: relative;
  }

  .brand {
    justify-self: auto;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    border-radius: 3px;
    background: var(--purple);
  }

  /* لایه تیره پشت منوی کشویی */
  .menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 6;
    background: rgba(17, 16, 24, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* منوی کشویی از سمت راست */
  .nav nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(320px, 86vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 88px 18px 28px;
    margin: 0;
    background: var(--white);
    border: 0;
    border-radius: 0;
    box-shadow: -12px 0 35px rgba(0, 0, 0, 0.12);
    z-index: 7;
    white-space: normal;
    overflow-y: auto;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
  }

  .nav.menu-open nav {
    transform: translateX(0);
    visibility: visible;
  }

  .nav nav a {
    display: block;
    width: 100%;
    padding: 13px 15px;
    border-radius: 9px;
    text-decoration: none;
  }

  .nav nav a:hover,
  .nav nav a:focus-visible,
  .nav nav a:active,
  .nav nav a.active {
    color: var(--gold);
    background: #c58d431c;
    outline: none;
  }

  /* دکمه منو بالاتر از پنل قرار می‌گیرد تا همیشه در دسترس باشد */
  .menu-toggle {
    position: relative;
    z-index: 8;
  }

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

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

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

  .menu-toggle span {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  /* چیدمان بخش‌های اصلی */
  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 62px 0 55px;
  }

  .hero .visual {
    min-height: 340px;
  }

  .visual {
    min-height: 340px;
  }

  .solution-grid,
  .three-grid {
    grid-template-columns: 1fr 1fr;
  }

  .band-row {
    align-items: flex-start;
    flex-direction: column;
  }

  /* فوتر موبایل */
  .foot {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand,
  .footer-address,
  .foot small {
    justify-self: auto;
  }

  .footer-address {
    max-width: 100%;
    text-align: center;
  }

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    gap: 12px 18px;
  }
}


/* ========================================
   15. نمایشگرهای حداکثر 540 پیکسل
======================================== */

@media (max-width: 540px) {

  .hero {
    padding: 48px 0 42px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero .visual,
  .visual {
    min-height: 285px;
  }

  .orb {
    width: 220px;
    font-size: 35px;
  }

  .orb small {
    font-size: 17px;
  }

  .visual-ring.ring-one {
    width: 285px;
    height: 190px;
  }

  .visual-ring.ring-two {
    width: 250px;
    height: 330px;
  }

  .float {
    padding: 9px 11px;
    font-size: 10px;
  }

  .float b {
    font-size: 12px;
  }

  .float.one {
    top: 18px;
    right: 0;
  }

  .float.two {
    bottom: 18px;
    left: 0;
  }

  /* هدر کوچک‌تر */
  .nav {
    height: 68px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .actions .btn {
    display: none;
  }

  /* کارت‌ها و بخش‌ها */
  .solution-grid,
  .three-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 55px 0;
  }

  /* صفحه تماس */
  .contact-options {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: 190px;
  }

  /* فوتر */
  .footer-nav {
    font-size: 12px;
  }
}


/* اصلاح نهایی لایه‌بندی منوی موبایل */

header.menu-active {
  z-index: 10001;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 16, 24, 0.65);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10000;
}

.menu-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 800px) {
  .nav nav {
    z-index: 10002;
  }

  .menu-toggle {
    position: relative;
    z-index: 10003;
  }
}



/* ========================================
   بخش پژوهش و تعامل انسان و ربات
======================================== */

.research-section {
  padding: 76px 0;
  background: linear-gradient(180deg, #f8f6f1 0%, #f1eee8 100%);
}

.research-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.research-copy {
  min-width: 0;
}

.research-copy h2 {
  margin: 12px 0 20px;
  color: var(--ink);
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.8;
}

.research-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 2.25;
  text-align: justify;
}

.research-image {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(33, 22, 111, 0.12);
}

.research-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 430px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 800px) {
  .research-section {
    padding: 58px 0;
  }

  .research-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .research-image {
    max-width: 620px;
    width: 100%;
    justify-self: center;
  }

  .research-image img {
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 540px) {
  .research-section {
    padding: 44px 0;
  }

  .research-copy h2 {
    font-size: 22px;
    line-height: 1.7;
  }

  .research-copy p {
    font-size: 13px;
    line-height: 2.15;
  }

  .research-image {
    border-radius: 15px;
  }
}


/* ========================================
   بخش پروژه‌های انجام‌شده آپان
======================================== */
.projects-section { background: var(--paper); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  justify-content: center;
  gap: 24px;
}
.project-card { min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:18px; background:var(--white); box-shadow:0 12px 34px rgba(17,16,24,.06); transition:transform .25s ease,box-shadow .25s ease; }
.project-card:hover { transform:translateY(-5px); box-shadow:0 18px 42px rgba(33,22,111,.12); }
.project-card-visual { min-height:175px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; background:radial-gradient(circle at 50% 45%,rgba(197,141,67,.28),transparent 34%),linear-gradient(135deg,#21166f,#111018); }
.project-card-visual::before,.project-card-visual::after { content:""; position:absolute; border:1px solid rgba(255,255,255,.16); border-radius:50%; width:190px; height:190px; }
.project-card-visual::after { width:135px; height:135px; }
.project-card-visual span { position:relative; z-index:1; color:var(--gold); font-size:42px; font-weight:800; letter-spacing:1px; }
.project-visual-two { background:radial-gradient(circle at 50% 45%,rgba(197,141,67,.24),transparent 34%),linear-gradient(135deg,#17152a,#33256f); }
.project-visual-three { background:radial-gradient(circle at 50% 45%,rgba(197,141,67,.22),transparent 34%),linear-gradient(135deg,#29213f,#111018); }
.project-visual-four { background:radial-gradient(circle at 50% 45%,rgba(197,141,67,.25),transparent 34%),linear-gradient(135deg,#21166f,#30213f); }
.project-card-body { padding:20px; }
.project-label { color:var(--muted); font-size:11px; }
.project-card-body h3 { margin:8px 0 18px; color:var(--ink); font-size:19px; }
.project-link { display:inline-flex; align-items:center; gap:8px; color:var(--gold); font-size:13px; font-weight:700; text-decoration:none; }
.project-link:hover { color:var(--purple); }
.project-detail-section { padding:76px 0; min-height:52vh; background:var(--paper); }
.project-detail-card { max-width:900px; margin:0 auto; padding:clamp(24px,5vw,48px); border:1px solid var(--line); border-radius:22px; background:var(--white); box-shadow:0 16px 44px rgba(17,16,24,.06); }
.project-detail-card .kicker { display:inline-block; margin-bottom:10px; }
.project-detail-card h1 { margin:0 0 18px; color:var(--ink); font-size:clamp(28px,4vw,40px); }
.project-detail-placeholder { margin:0; color:var(--muted); font-size:15px; line-height:2.2; }
.project-back-link { display:inline-flex; margin-top:28px; color:var(--gold); font-weight:700; text-decoration:none; }
@media (max-width:1000px) { .projects-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:540px) { .projects-grid { grid-template-columns:1fr; } .project-card-visual { min-height:155px; } .project-detail-section { padding:48px 0; } }

/* محتواهای توسعه‌یافته صفحات درباره و راهکارها */
.about-story { display:grid; grid-template-columns:1.5fr 1fr; gap:36px; align-items:start; }
.about-block h2 { margin:8px 0 18px; color:var(--ink); font-size:clamp(22px,3vw,32px); }
.about-block p, .about-story p { color:var(--muted); line-height:2.15; margin:0 0 14px; }
.about-facts { display:grid; gap:12px; }
.about-fact { border:1px solid var(--line); background:var(--white); border-radius:16px; padding:20px 22px; display:flex; flex-direction:column; gap:8px; }
.about-fact strong { color:var(--gold); font-size:24px; }
.about-fact span { color:var(--muted); font-size:13px; line-height:1.9; }
.about-section-alt, .solutions-alt { background:rgba(33,22,111,.035); }
.partner-list { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.partner-list span { padding:9px 14px; border:1px solid var(--line); border-radius:999px; background:var(--white); color:var(--muted); font-size:13px; }
.solutions-detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.solutions-detail-grid .panel ul { padding-right:18px; color:var(--muted); font-size:13px; line-height:2; }
.solutions-detail-grid .panel p, .solutions-alt .panel p { color:var(--muted); line-height:2.1; }
.project-detail-content { color:var(--muted); line-height:2.15; }
.project-detail-content .project-lead { color:var(--ink); font-size:17px; font-weight:600; margin:0 0 24px; }
.project-detail-content h2 { color:var(--ink); font-size:20px; margin:26px 0 10px; }
.project-benefits { padding-right:20px; line-height:2.2; }
.project-note { margin-top:24px; padding:14px 18px; border-right:3px solid var(--gold); background:var(--paper); border-radius:8px; font-size:13px; }
@media(max-width:900px) { .about-story { grid-template-columns:1fr; } .solutions-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .solutions-detail-grid { grid-template-columns:1fr; } .about-fact { padding:16px; } }


/* ========================================
   طراحی تکمیلی صفحه تماس با ما
======================================== */

.contact-section {
  padding-top: 28px;
}

.contact-section-heading {
  max-width: 650px;
  margin: 0 auto 34px;
  text-align: center;
}

.contact-section-heading .kicker {
  display: inline-block;
  margin-bottom: 8px;
}

.contact-section-heading h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(23px, 3vw, 30px);
}

.contact-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-page .contact-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-page .contact-card {
  position: relative;
  overflow: hidden;
  min-height: 218px;
  gap: 9px;
  padding: 27px 22px;
  border: 1px solid #e9e6e1;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #fbfaf8 100%);
  box-shadow: 0 10px 30px #21166f0a;
  text-align: center;
}

.contact-page .contact-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  content: "";
  opacity: 0;
  transition: opacity 0.2s ease;
}

.contact-page a.contact-card:hover::before {
  opacity: 1;
}

.contact-page .contact-card:hover {
  transform: translateY(-5px);
  border-color: #dfc49e;
  box-shadow: 0 18px 38px #21166f14;
}

.contact-page .contact-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 3px;
  border-radius: 18px;
  background: #c58d4314;
  color: var(--gold);
  font-size: 27px;
}

.contact-page .contact-icon--linkedin {
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -2px;
}

.contact-page .contact-label {
  font-size: 13px;
}

.contact-page .contact-card strong {
  max-width: 100%;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.contact-page .contact-action {
  margin-top: 4px;
  font-size: 12px;
}

.contact-page .contact-card--placeholder {
  cursor: default;
  border-style: dashed;
  background: #fbfaf8;
  box-shadow: none;
}

.contact-page .contact-card--placeholder strong {
  direction: rtl;
}

.contact-page .contact-card--placeholder .contact-icon {
  background: #21166f0d;
  color: var(--purple);
}

.contact-page .contact-card--placeholder .contact-action {
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 700px) {
  .contact-section {
    padding-top: 18px;
  }

  .contact-section-heading {
    margin-bottom: 25px;
  }

  .contact-page .contact-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .contact-page .contact-card {
    min-height: 190px;
  }
}


/* گرافیک اختصاصی صفحه تماس با آپان */
.contact-page .contact-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 18% 48%, #c58d4314 0, transparent 34%),
              radial-gradient(ellipse at 78% 20%, #21166f0d 0, transparent 38%),
              var(--paper);
}
.contact-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: center;
  gap: 28px;
}
.contact-hero-copy { position: relative; z-index: 2; }
.contact-hero-art {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.contact-hero-art::before {
  content: ""; position: absolute; width: 76%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #c58d4320 0, #21166f0c 48%, transparent 72%);
  filter: blur(8px); z-index: -1;
}
.contact-hero-art img {
  display: block; width: min(100%, 510px); max-height: 360px; object-fit: contain;
  mix-blend-mode: multiply; filter: drop-shadow(0 22px 28px #21166f18);
  animation: contact-float 7s ease-in-out infinite;
}
.contact-orbit {
  position: absolute; border: 1px solid #c58d4340; border-radius: 50%;
  pointer-events: none; z-index: -1;
}
.contact-orbit--one { width: 82%; height: 64%; transform: rotate(-17deg); }
.contact-orbit--two { width: 68%; height: 82%; transform: rotate(32deg); border-color: #21166f22; }
.contact-page .contact-section { position: relative; overflow: hidden; isolation: isolate; }
.contact-page .contact-section::before,
.contact-page .contact-section::after {
  content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  filter: blur(55px); opacity: .45; z-index: -1; pointer-events: none;
}
.contact-page .contact-section::before { background: #c58d4326; top: 120px; right: -130px; }
.contact-page .contact-section::after { background: #21166f18; bottom: 20px; left: -130px; }
.contact-page .contact-card { backdrop-filter: blur(8px); }
@keyframes contact-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 760px) {
  .contact-hero-layout { grid-template-columns: 1fr; gap: 0; }
  .contact-hero-copy { text-align: center; }
  .contact-hero-art { min-height: 230px; margin-top: -4px; }
  .contact-hero-art img { max-height: 250px; width: min(92%, 380px); }
}
@media (prefers-reduced-motion: reduce) { .contact-hero-art img { animation: none; } }


/* ========================================
   گرافیک تکمیلی پس‌زمینه و کارت‌های تماس
======================================== */

.contact-page {
  background:
    radial-gradient(circle at 8% 18%, rgba(197, 141, 67, .075), transparent 22rem),
    radial-gradient(circle at 94% 58%, rgba(33, 22, 111, .065), transparent 25rem),
    #fbfaf8;
}

.contact-page .contact-section {
  padding-top: 76px;
  padding-bottom: 92px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(197, 141, 67, .10), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(248,246,252,.78));
}

.contact-page .contact-section::before {
  width: 330px;
  height: 330px;
  top: 95px;
  right: -185px;
  background: rgba(197, 141, 67, .20);
  filter: blur(68px);
  opacity: .7;
}

.contact-page .contact-section::after {
  width: 360px;
  height: 360px;
  bottom: -80px;
  left: -195px;
  background: rgba(33, 22, 111, .16);
  filter: blur(72px);
  opacity: .7;
}

/* بافت نقطه‌ای و خطوط هندسی پس‌زمینه */
.contact-page .contact-section .wrap {
  position: relative;
  isolation: isolate;
}

.contact-page .contact-section .wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 20px -34px 10px;
  border-radius: 34px;
  opacity: .42;
  background-image:
    radial-gradient(rgba(33, 22, 111, .20) 1px, transparent 1.5px),
    linear-gradient(135deg, transparent 0 48%, rgba(197,141,67,.10) 48.15% 48.35%, transparent 48.5% 100%);
  background-size: 19px 19px, 100% 100%;
  mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent);
}

.contact-page .contact-section-heading {
  position: relative;
  max-width: 720px;
  margin: 0 auto 42px;
}

.contact-page .contact-section-heading::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
}

/* کارت‌ها با عمق شیشه‌ای و نقش‌های تزئینی */
.contact-page .contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 238px;
  border: 1px solid rgba(33, 22, 111, .11);
  border-radius: 23px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(250,248,253,.92));
  box-shadow:
    0 15px 38px rgba(33, 22, 111, .065),
    inset 0 1px 0 rgba(255,255,255,.95);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.contact-page .contact-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  top: -105px;
  left: -72px;
  border: 1px solid rgba(197, 141, 67, .28);
  border-radius: 50%;
  box-shadow:
    0 0 0 13px rgba(197,141,67,.045),
    0 0 0 27px rgba(197,141,67,.025);
  transition: transform .35s ease;
}

.contact-page .contact-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 125px;
  height: 125px;
  right: -58px;
  bottom: -72px;
  border-radius: 30px;
  transform: rotate(35deg);
  background: linear-gradient(135deg, rgba(33,22,111,.075), rgba(197,141,67,.10));
}

.contact-page .contact-card:hover {
  transform: translateY(-7px);
  border-color: rgba(197, 141, 67, .48);
  box-shadow:
    0 24px 52px rgba(33, 22, 111, .12),
    0 5px 18px rgba(197, 141, 67, .09);
}

.contact-page .contact-card:hover::before {
  transform: scale(1.12) translate(7px, 5px);
}

.contact-page .contact-card > * {
  position: relative;
  z-index: 1;
}

.contact-page .contact-icon {
  width: 62px;
  height: 62px;
  border-radius: 19px;
  color: var(--gold);
  background:
    radial-gradient(circle at 28% 22%, #fff 0, rgba(255,255,255,.7) 22%, transparent 48%),
    linear-gradient(145deg, rgba(197,141,67,.17), rgba(33,22,111,.09));
  box-shadow:
    0 8px 20px rgba(33,22,111,.07),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.contact-page .contact-card strong {
  text-shadow: 0 2px 12px rgba(33,22,111,.08);
}

.contact-page .contact-card:nth-child(2n) .contact-icon {
  color: var(--purple);
  background:
    radial-gradient(circle at 28% 22%, #fff 0, rgba(255,255,255,.7) 22%, transparent 48%),
    linear-gradient(145deg, rgba(33,22,111,.14), rgba(197,141,67,.10));
}

.contact-page .contact-card--placeholder {
  border-style: dashed;
  background:
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(246,244,250,.92));
}

.contact-page .contact-card--placeholder .contact-icon {
  color: #777184;
  background: linear-gradient(145deg, #eeeaf3, #f8f5ed);
}

@media (max-width: 700px) {
  .contact-page .contact-section {
    padding-top: 54px;
    padding-bottom: 62px;
  }

  .contact-page .contact-section .wrap::before {
    inset: 12px -10px 8px;
    border-radius: 24px;
    opacity: .25;
  }

  .contact-page .contact-card {
    min-height: 205px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page .contact-card,
  .contact-page .contact-card::before {
    transition: none;
  }
}


/* ========================================
   ارتقای گرافیکی صفحه اصلی آپان
======================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 78px;
  padding-bottom: 86px;
  background:
    radial-gradient(ellipse at 8% 12%, rgba(197,141,67,.13), transparent 30rem),
    radial-gradient(ellipse at 92% 80%, rgba(33,22,111,.10), transparent 34rem),
    linear-gradient(145deg, #fffdfa 0%, #f8f6fb 55%, #fbfaf8 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -260px;
  right: -120px;
  border: 1px solid rgba(197,141,67,.24);
  box-shadow: 0 0 0 22px rgba(197,141,67,.035), 0 0 0 46px rgba(33,22,111,.025);
}

.hero::after {
  width: 360px;
  height: 360px;
  bottom: -270px;
  left: 10%;
  border: 1px solid rgba(33,22,111,.16);
  box-shadow: 0 0 0 20px rgba(33,22,111,.025), 0 0 0 42px rgba(197,141,67,.035);
}

.hero .wrap {
  position: relative;
}

.hero-copy .eyebrow {
  color: var(--purple);
  border-color: rgba(197,141,67,.35);
  background: linear-gradient(120deg, rgba(197,141,67,.13), rgba(33,22,111,.055));
  box-shadow: 0 7px 20px rgba(33,22,111,.045);
}

.hero-copy h1 {
  text-shadow: 0 8px 28px rgba(33,22,111,.07);
}

.hero-copy h1 span {
  background: linear-gradient(90deg, #a66e2e, #d6a65e 48%, #8c5bba);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-visual {
  min-height: 430px;
  padding: 8px;
}

.home-visual-glow {
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,141,67,.24), rgba(33,22,111,.12) 45%, transparent 72%);
  filter: blur(24px);
  z-index: -1;
}

.home-visual-frame {
  position: relative;
  width: min(100%, 560px);
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(197,141,67,.35);
  background: #17102f;
  box-shadow: 0 28px 70px rgba(33,22,111,.22), 0 8px 24px rgba(197,141,67,.12);
  transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
}

.home-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 28%, transparent 72%, rgba(197,141,67,.13));
  mix-blend-mode: screen;
}

.home-visual-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.home-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(33,22,111,.13);
  color: var(--ink);
}

.home-float b,
.home-float small {
  display: block;
}

.home-float b {
  color: var(--purple);
  font-size: 13px;
}

.home-float small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.home-float-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(197,141,67,.14), 0 0 16px rgba(197,141,67,.4);
}

.home-float-one {
  top: 34px;
  right: -8px;
}

.home-float-two {
  bottom: 32px;
  left: -8px;
}

.home-research {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(197,141,67,.12), transparent 24rem),
    linear-gradient(145deg, #f7f4ee, #f2eff8);
}

.home-research .research-image {
  position: relative;
  border-radius: 24px;
  border-color: rgba(33,22,111,.12);
  box-shadow: 0 22px 50px rgba(33,22,111,.14);
}

.home-research .research-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: inherit;
  box-shadow: inset 0 0 45px rgba(33,22,111,.08);
}

.home-solutions {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 5% 80%, rgba(33,22,111,.075), transparent 28rem),
    radial-gradient(ellipse at 95% 12%, rgba(197,141,67,.10), transparent 26rem),
    #fbfaf8;
}

.home-solutions .section-head,
.home-projects .section-head {
  position: relative;
}

.home-solutions .section-head::after,
.home-projects .section-head::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
}

.home-solutions .solution-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(33,22,111,.11);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #f8f6fb);
  box-shadow: 0 14px 36px rgba(33,22,111,.065);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.home-solutions .solution-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 170px;
  height: 170px;
  top: -112px;
  left: -65px;
  border: 1px solid rgba(197,141,67,.28);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(197,141,67,.04), 0 0 0 28px rgba(33,22,111,.025);
}

.home-solutions .solution-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 90px;
  height: 90px;
  right: -48px;
  bottom: -55px;
  border-radius: 24px;
  transform: rotate(35deg);
  background: linear-gradient(135deg, rgba(197,141,67,.15), rgba(33,22,111,.08));
}

.home-solutions .solution-card:hover {
  transform: translateY(-7px);
  border-color: rgba(197,141,67,.48);
  box-shadow: 0 24px 48px rgba(33,22,111,.12);
}

.home-solutions .solution-card .number {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(197,141,67,.12);
  color: #9a682e;
}

.home-projects {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 50%, rgba(33,22,111,.075), transparent 30rem),
    linear-gradient(180deg, #f5f2f8, #fbfaf8);
}

.home-projects .project-card {
  border-color: rgba(33,22,111,.12);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(33,22,111,.075);
}

.home-projects .project-card-visual {
  min-height: 190px;
  background-size: cover;
}

.home-projects .project-card-visual::before,
.home-projects .project-card-visual::after {
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 0 30px rgba(197,141,67,.12);
}

.home-projects .project-card-body {
  background: linear-gradient(180deg, #fff, #fbf9fd);
}

@media (max-width: 800px) {
  .hero {
    padding-top: 52px;
    padding-bottom: 62px;
  }

  .home-visual {
    min-height: 300px;
    margin-top: 12px;
  }

  .home-visual-frame {
    width: min(100%, 560px);
    transform: none;
    border-radius: 22px;
  }

  .home-float-one { right: 0; top: 8px; }
  .home-float-two { left: 0; bottom: 8px; }
}

@media (max-width: 540px) {
  .home-visual { min-height: 245px; }
  .home-float { padding: 9px 11px; border-radius: 13px; }
  .home-float b { font-size: 11px; }
  .home-float small { font-size: 9px; }
  .home-float-one { top: 0; }
  .home-float-two { bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .home-solutions .solution-card,
  .home-projects .project-card { transition: none; }
}


/* ========================================
   کارت‌های سه‌بعدی و رنگی پروژه‌های آپان
======================================== */

.home-projects {
  background:
    radial-gradient(ellipse at 8% 15%, rgba(197,141,67,.14), transparent 25rem),
    radial-gradient(ellipse at 92% 80%, rgba(91,65,190,.13), transparent 28rem),
    linear-gradient(145deg, #f6f2fb 0%, #fbfaf8 48%, #f4efe8 100%);
}

.home-projects .projects-grid {
  perspective: 1400px;
  gap: 24px;
}

.home-projects .project-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 24px;
  background: linear-gradient(155deg, #fff, #f5f1fb);
  box-shadow:
    0 18px 38px rgba(33,22,111,.10),
    0 4px 12px rgba(197,141,67,.08),
    inset 0 1px 0 rgba(255,255,255,.95);
  transform: translateZ(0);
  transition: transform .38s cubic-bezier(.2,.75,.25,1), box-shadow .38s ease;
}

.home-projects .project-card:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow:
    0 30px 58px rgba(33,22,111,.18),
    0 10px 24px rgba(197,141,67,.13);
}

.home-projects .project-card-visual {
  min-height: 218px;
  isolation: isolate;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.30), transparent 24%),
    linear-gradient(135deg, #24146e 0%, #5737a6 48%, #c58d43 130%);
}

.home-projects .project-card-visual::before {
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow:
    0 0 0 13px rgba(255,255,255,.07),
    0 0 0 28px rgba(255,255,255,.045),
    0 0 35px rgba(255,255,255,.14);
  transform: rotateX(62deg) rotateZ(-22deg);
}

.home-projects .project-card-visual::after {
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255,255,255,.40);
  box-shadow: inset 0 0 24px rgba(255,255,255,.12), 0 0 24px rgba(255,255,255,.12);
  transform: rotateY(58deg) rotateX(18deg);
}

.home-projects .project-card-visual span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 27px;
  color: #fff;
  font-size: 35px;
  font-weight: 900;
  letter-spacing: 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,.38), rgba(255,255,255,.07)),
    linear-gradient(135deg, rgba(197,141,67,.72), rgba(33,22,111,.68));
  box-shadow:
    0 18px 28px rgba(13,8,48,.28),
    inset 0 2px 2px rgba(255,255,255,.5),
    inset 0 -8px 16px rgba(13,8,48,.15);
  backdrop-filter: blur(10px);
  transform: translateY(-2px) rotate(-8deg);
  text-shadow: 0 3px 12px rgba(13,8,48,.35);
  transition: transform .4s ease, box-shadow .4s ease;
}

.home-projects .project-card:hover .project-card-visual span {
  transform: translateY(-9px) rotate(0deg) scale(1.07);
  box-shadow:
    0 26px 38px rgba(13,8,48,.34),
    inset 0 2px 2px rgba(255,255,255,.55),
    inset 0 -8px 16px rgba(13,8,48,.15);
}

/* چهار ترکیب رنگ مستقل برای چهار پروژه */
.home-projects .project-visual-one {
  background:
    radial-gradient(circle at 72% 22%, rgba(255,210,130,.72), transparent 24%),
    radial-gradient(circle at 28% 82%, rgba(44,220,214,.35), transparent 36%),
    linear-gradient(135deg, #17104e 0%, #4430a1 54%, #c58d43 130%);
}

.home-projects .project-visual-two {
  background:
    radial-gradient(circle at 70% 25%, rgba(255,255,255,.48), transparent 23%),
    radial-gradient(circle at 25% 85%, rgba(82,211,255,.42), transparent 34%),
    linear-gradient(135deg, #102d63 0%, #286db1 55%, #6d4ac0 115%);
}

.home-projects .project-visual-three {
  background:
    radial-gradient(circle at 70% 24%, rgba(255,203,115,.65), transparent 25%),
    radial-gradient(circle at 25% 80%, rgba(255,89,151,.36), transparent 35%),
    linear-gradient(135deg, #4b164f 0%, #a43c81 55%, #e39a4c 125%);
}

.home-projects .project-visual-four {
  background:
    radial-gradient(circle at 72% 22%, rgba(126,255,215,.55), transparent 24%),
    radial-gradient(circle at 25% 82%, rgba(91,116,255,.48), transparent 36%),
    linear-gradient(135deg, #102c3d 0%, #245e83 52%, #6550b7 120%);
}

.home-projects .project-card-body {
  position: relative;
  padding: 22px 22px 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(197,141,67,.10), transparent 42%),
    linear-gradient(180deg, #fff 0%, #faf8fd 100%);
}

.home-projects .project-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(197,141,67,.20);
  border-radius: 99px;
  color: #93652f;
  background: rgba(197,141,67,.10);
  font-size: 10px;
  font-weight: 700;
}

.home-projects .project-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(197,141,67,.12);
}

.home-projects .project-card-body h3 {
  margin: 13px 0 18px;
  color: var(--purple);
  font-size: 20px;
}

.home-projects .project-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 5px;
  color: #a66f2e;
  font-weight: 800;
}

.home-projects .project-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  transition: width .25s ease;
}

.home-projects .project-link:hover::after {
  width: 100%;
}

@media (max-width: 800px) {
  .home-projects .projects-grid { gap: 18px; }
  .home-projects .project-card-visual { min-height: 195px; }
}

@media (max-width: 540px) {
  .home-projects .project-card-visual { min-height: 185px; }
  .home-projects .project-card-body { padding: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-projects .project-card,
  .home-projects .project-card-visual span,
  .home-projects .project-link::after { transition: none; }
}


/* ========================================
   گرافیک صفحات داخلی: درباره آپان و راهکارها
======================================== */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 64px 0 50px;
  background:
    radial-gradient(ellipse at 10% 15%, rgba(197,141,67,.13), transparent 26rem),
    radial-gradient(ellipse at 92% 80%, rgba(33,22,111,.12), transparent 28rem),
    linear-gradient(145deg, #fbfaf8, #f3f0f8 58%, #fbfaf8);
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.page-hero::before {
  width: 340px;
  height: 340px;
  top: -245px;
  right: -85px;
  border: 1px solid rgba(197,141,67,.30);
  box-shadow: 0 0 0 18px rgba(197,141,67,.045), 0 0 0 38px rgba(33,22,111,.025);
}

.page-hero::after {
  width: 260px;
  height: 260px;
  bottom: -210px;
  left: 8%;
  border: 1px solid rgba(33,22,111,.17);
  box-shadow: 0 0 0 16px rgba(33,22,111,.03), 0 0 0 32px rgba(197,141,67,.035);
}

.page-hero .wrap {
  position: relative;
}

.page-hero h1 {
  text-shadow: 0 7px 26px rgba(33,22,111,.08);
}

.page-hero .kicker {
  display: inline-flex;
  padding: 7px 13px;
  border: 1px solid rgba(197,141,67,.28);
  border-radius: 99px;
  background: rgba(197,141,67,.09);
}

.inner-hero-art {
  position: relative;
  width: min(100%, 900px);
  margin: 34px auto 0;
  isolation: isolate;
  perspective: 1200px;
}

.inner-hero-art img {
  display: block;
  width: 100%;
  max-height: 390px;
  object-fit: cover;
  border: 1px solid rgba(197,141,67,.38);
  border-radius: 28px;
  box-shadow: 0 26px 65px rgba(33,22,111,.19), 0 7px 22px rgba(197,141,67,.12);
  transform: rotateX(1deg);
}

.inner-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.13), transparent 28%, transparent 75%, rgba(197,141,67,.13));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

.art-orbit {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(197,141,67,.20);
}

.art-orbit-one {
  width: 190px;
  height: 70px;
  top: 12%;
  left: 7%;
  transform: rotate(-24deg);
}

.art-orbit-two {
  width: 240px;
  height: 86px;
  right: 6%;
  bottom: 12%;
  transform: rotate(22deg);
  border-color: rgba(197,141,67,.55);
}

.art-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, rgba(33,22,111,.82), rgba(94,60,160,.70));
  box-shadow: 0 12px 28px rgba(15,8,50,.25), inset 0 1px 0 rgba(255,255,255,.30);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 800;
}

.art-chip-one { top: -14px; right: 8%; }
.art-chip-two { bottom: -14px; left: 9%; background: linear-gradient(135deg, rgba(158,104,42,.92), rgba(197,141,67,.78)); }

.about-story {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(33,22,111,.09);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(197,141,67,.11), transparent 34%),
    linear-gradient(145deg, #fff, #f8f6fb);
  box-shadow: 0 18px 44px rgba(33,22,111,.07);
}

.about-story-copy {
  position: relative;
}

.about-facts-visual .about-fact {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(197,141,67,.22);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f6f2fb);
  box-shadow: 0 12px 28px rgba(33,22,111,.07), inset 0 1px 0 #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

.about-facts-visual .about-fact:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 36px rgba(33,22,111,.12);
}

.about-facts-visual .about-fact strong {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(197,141,67,.17), rgba(33,22,111,.08));
  text-shadow: 0 3px 14px rgba(33,22,111,.12);
}

.about-section-alt {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 8% 12%, rgba(197,141,67,.12), transparent 24rem),
    linear-gradient(145deg, #f3f0f8, #fbfaf8);
}

.about-section-alt .panel,
.about-block .panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(33,22,111,.11);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f7f4fb);
  box-shadow: 0 14px 34px rgba(33,22,111,.075);
  transition: transform .28s ease, box-shadow .28s ease;
}

.about-section-alt .panel::before,
.about-block .panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 135px;
  height: 135px;
  top: -90px;
  left: -48px;
  border: 1px solid rgba(197,141,67,.28);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(197,141,67,.045), 0 0 0 24px rgba(33,22,111,.025);
}

.about-section-alt .panel:hover,
.about-block .panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(33,22,111,.12);
}

.partner-list span {
  border: 1px solid rgba(197,141,67,.25);
  background: linear-gradient(135deg, rgba(197,141,67,.11), rgba(33,22,111,.045));
  box-shadow: 0 6px 15px rgba(33,22,111,.045);
}

/* صفحه محصولات و راهکارها */
.solutions-detail-grid,
.solutions-domain-grid {
  perspective: 1200px;
}

.solutions-detail-grid .panel,
.solutions-domain-grid .panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(33,22,111,.12);
  border-radius: 21px;
  background:
    radial-gradient(circle at 100% 0%, rgba(197,141,67,.12), transparent 45%),
    linear-gradient(145deg, #fff, #f6f3fa);
  box-shadow: 0 15px 34px rgba(33,22,111,.075), inset 0 1px 0 #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.solutions-detail-grid .panel::before,
.solutions-domain-grid .panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 145px;
  height: 145px;
  top: -92px;
  left: -55px;
  border: 1px solid rgba(197,141,67,.32);
  border-radius: 50%;
  box-shadow: 0 0 0 13px rgba(197,141,67,.045), 0 0 0 27px rgba(33,22,111,.025);
}

.solutions-detail-grid .panel::after,
.solutions-domain-grid .panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 90px;
  height: 90px;
  right: -42px;
  bottom: -55px;
  border-radius: 24px;
  transform: rotate(35deg);
  background: linear-gradient(135deg, rgba(197,141,67,.14), rgba(33,22,111,.08));
}

.solutions-detail-grid .panel:hover,
.solutions-domain-grid .panel:hover {
  transform: translateY(-7px) rotateX(1deg);
  border-color: rgba(197,141,67,.45);
  box-shadow: 0 24px 48px rgba(33,22,111,.13);
}

.solutions-detail-grid .panel h3,
.solutions-domain-grid .panel h3 {
  position: relative;
  padding-right: 18px;
  color: var(--purple);
}

.solutions-detail-grid .panel h3::before,
.solutions-domain-grid .panel h3::before {
  content: "";
  position: absolute;
  right: 0;
  top: .35em;
  width: 7px;
  height: 22px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--gold), #8c70c8);
  box-shadow: 0 0 12px rgba(197,141,67,.25);
}

.solutions-alt {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 90% 15%, rgba(33,22,111,.10), transparent 25rem),
    radial-gradient(ellipse at 8% 90%, rgba(197,141,67,.12), transparent 25rem),
    linear-gradient(145deg, #f4f0f8, #fbfaf8);
}

.solutions-alt .panel:nth-child(3n+1) {
  background: linear-gradient(145deg, #fff, #f3f0fb);
}
.solutions-alt .panel:nth-child(3n+2) {
  background: linear-gradient(145deg, #fff, #fdf4e9);
}
.solutions-alt .panel:nth-child(3n) {
  background: linear-gradient(145deg, #fff, #eef5fb);
}

.solutions-alt .panel a {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 9px;
  background: rgba(197,141,67,.12);
}

@media (max-width: 700px) {
  .page-hero { padding: 48px 0 38px; }
  .inner-hero-art { margin-top: 26px; }
  .inner-hero-art img { max-height: 260px; border-radius: 20px; }
  .art-orbit-one { width: 115px; height: 46px; }
  .art-orbit-two { width: 145px; height: 55px; }
  .art-chip { padding: 7px 10px; font-size: 10px; }
  .about-story { padding: 20px; border-radius: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .about-facts-visual .about-fact,
  .about-section-alt .panel,
  .about-block .panel,
  .solutions-detail-grid .panel,
  .solutions-domain-grid .panel { transition: none; }
}

/* LinkedIn Contact Card */

.contact-card--linkedin {
  text-decoration: none;
  cursor: pointer;
}

.contact-card--linkedin .contact-icon--linkedin {
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -2px;
  color: #0a66c2;
  background: rgba(10, 102, 194, .09);
}

.contact-card--linkedin:hover .contact-icon--linkedin {
  color: #fff;
  background: #0a66c2;
}
