/* ==========================================================================
   VADEX — گروه اتوماسیون دیدار
   Static, dependency-free stylesheet with a glass design in light and dark modes.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #e8f1fb;
  --bg-soft: rgba(255, 255, 255, 0.32);
  --surface: rgba(255, 255, 255, 0.52);
  --surface-2: rgba(255, 255, 255, 0.36);
  --surface-3: rgba(255, 255, 255, 0.22);
  --text: #071621;
  --text-soft: #1b3344;
  --muted: #405a6b;
  --border: rgba(255, 255, 255, 0.62);
  --border-strong: rgba(255, 255, 255, 0.88);
  --accent: #0d7f75;
  --accent-2: #0369a1;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(13, 148, 136, 0.14);
  --accent-soft-2: rgba(3, 105, 161, 0.12);
  --shadow: 0 24px 64px rgba(30, 64, 175, 0.16);
  --shadow-soft: 0 12px 36px rgba(30, 64, 175, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --gutter: 20px;
  --container: 1180px;
  --font: "Vazirmatn", "IRANSansX", "Segoe UI", Tahoma, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #061019;
  --bg-soft: rgba(10, 22, 34, 0.55);
  --surface: rgba(15, 29, 43, 0.56);
  --surface-2: rgba(18, 36, 52, 0.44);
  --surface-3: rgba(22, 43, 62, 0.32);
  --text: #eaf4fb;
  --text-soft: #cfdeea;
  --muted: #9db0c0;
  --border: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(255, 255, 255, 0.24);
  --accent: #5eead4;
  --accent-2: #38bdf8;
  --accent-contrast: #052e2b;
  --accent-soft: rgba(94, 234, 212, 0.12);
  --accent-soft-2: rgba(56, 189, 248, 0.12);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.32);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 700px at 88% -8%, rgba(14, 165, 233, 0.28), transparent 62%),
    radial-gradient(900px 700px at 4% 104%, rgba(20, 184, 166, 0.24), transparent 60%),
    linear-gradient(165deg, #f2f8ff 0%, #e9f2fb 48%, #ecf8f6 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

html[data-theme="dark"] body {
  background-image:
    radial-gradient(1100px 760px at 88% -8%, rgba(56, 189, 248, 0.2), transparent 62%),
    radial-gradient(900px 720px at 4% 104%, rgba(94, 234, 212, 0.14), transparent 60%),
    radial-gradient(700px 500px at 50% 45%, rgba(14, 116, 144, 0.12), transparent 65%),
    linear-gradient(165deg, #061019 0%, #08131d 48%, #071018 100%);
}

body::selection,
body *::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

img,
svg,
video {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
dl {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  letter-spacing: -0.012em;
  font-weight: 800;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Glass ambience
   -------------------------------------------------------------------------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  display: block;
}

.ambient span {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: drift 24s var(--ease) infinite alternate;
}

html[data-theme="dark"] .ambient span {
  opacity: 0.3;
  filter: blur(110px);
}

.ambient span:nth-child(1) {
  background: #7dd3fc;
  inset-block-start: -22vmax;
  inset-inline-end: -12vmax;
}

.ambient span:nth-child(2) {
  background: #99f6e4;
  inset-block-end: -26vmax;
  inset-inline-start: -14vmax;
  animation-delay: -8s;
}

.ambient span:nth-child(3) {
  background: #c7d2fe;
  inline-size: 38vmax;
  block-size: 38vmax;
  inset-block-start: 28%;
  inset-inline-start: 18%;
  opacity: 0.55;
  animation-delay: -14s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vmax, 3vmax, 0) scale(1.12); }
}

/* RTL body copy: right aligned, justified once a paragraph runs long. */
p,
li {
  text-align: justify;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 90;
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  border-radius: 12px;
}

html[data-theme="dark"] .brand {
  padding: 5px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.brand-mark {
  width: 42px;
  height: 42px;
  color: var(--accent);
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 8px rgba(15, 23, 42, 0.08));
}

html[data-theme="dark"] .brand-logo {
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}

.site-footer .brand-logo {
  height: 56px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.25s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 16px;
  inset-block-end: 7px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--accent);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.theme-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.theme-switch button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.theme-switch button[aria-pressed="true"] {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.nav-toggle:hover span {
  background: var(--accent);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Typography & shared elements
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow::before {
  content: "";
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 2;
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 10px 28px var(--accent-soft);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px var(--accent-soft);
}

.btn-ghost {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-light {
  background: #ffffff;
  color: #0b1720;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.text-link span {
  transition: transform 0.2s var(--ease);
}

.text-link:hover span {
  transform: translateX(-4px);
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section-sm {
  padding-block: clamp(40px, 6vw, 68px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-block-end: clamp(26px, 4vw, 42px);
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.section-head p {
  max-width: 58ch;
  margin-block-start: 10px;
  color: var(--muted);
}

.section-head .text-link {
  flex: 0 0 auto;
  margin-block-end: 4px;
}

.page-hero {
  padding-block: clamp(44px, 7vw, 82px) clamp(32px, 5vw, 56px);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 40px;
}

.page-hero h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.6rem);
}

.page-hero p {
  max-width: 62ch;
  margin-block-start: 16px;
  color: var(--muted);
  font-size: 1.04rem;
}

.page-hero-aside {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-size: 0.92rem;
}


/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(44px, 7vw, 88px) clamp(48px, 7vw, 84px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(36px, 6vw, 76px);
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.4rem, 5.6vw, 4.45rem);
  letter-spacing: -0.025em;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero .lead {
  max-width: 54ch;
  margin-block-start: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-block-start: 30px;
  padding-block-start: 22px;
  border-block-start: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  inline-size: 20px;
  block-size: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  padding-inline-start: clamp(0px, 2vw, 22px);
}

.hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 34px;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(4, 16, 24, 0.56));
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


.hero-card {
  position: absolute;
  z-index: 2;
  max-width: 250px;
  padding: 17px 19px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

html[data-theme="light"] .hero-card,
html[data-theme="dark"] .hero-card {
  background: var(--surface);
}

.hero-card strong {
  display: block;
  margin-block-end: 3px;
  color: var(--text);
  font-size: 0.95rem;
}

.hero-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.75;
}

.hero-card-top {
  inset-block-start: 22px;
  inset-inline-start: -18px;
}

.hero-card-bottom {
  inset-block-end: 24px;
  inset-inline-end: -16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--border);
}

.stat {
  padding: 24px 22px;
  background: var(--surface);
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
}

.stat span {
  display: block;
  margin-block-start: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}


/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}


.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-media--contain {
  padding: 14px;
}

.card-media--contain img {
  object-fit: contain;
  border-radius: 10px;
}

.card-media--portrait {
  aspect-ratio: 4 / 3;
  padding: 10px;
  background: var(--surface-2);
}

.card-media--portrait img {
  object-fit: contain;
}

.media-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 55%),
    linear-gradient(145deg, var(--surface-2), var(--surface-3));
  color: var(--accent);
}

.media-placeholder svg {
  width: 56px;
  height: 56px;
  opacity: 0.85;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.card-body h3 {
  font-size: 1.08rem;
}

.card-body p {
  margin-block-start: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.card-body .text-link {
  margin-block-start: auto;
  padding-block-start: 16px;
}

.card-kicker {
  margin-block-end: 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.service-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}


.icon-box {
  display: inline-grid;
  place-items: center;
  inline-size: 46px;
  block-size: 46px;
  margin-block-end: 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon-box svg {
  width: 23px;
  height: 23px;
}

.service-card h3 {
  font-size: 1.05rem;
}

.service-card p {
  margin-block-start: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.service-card .text-link {
  margin-block-start: 16px;
}

/* --------------------------------------------------------------------------
   Split / feature rows
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-3);
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-media--contain {
  padding: 12px;
}

.split-media--contain img {
  object-fit: contain;
  aspect-ratio: 4 / 3;
}


.split-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.split-copy p {
  margin-block-start: 14px;
  color: var(--muted);
}

.split-copy .btn {
  margin-block-start: 24px;
}

/* --------------------------------------------------------------------------
   Feature / spec lists
   -------------------------------------------------------------------------- */

.feature-list {
  display: grid;
  gap: 10px;
  margin-block-start: 22px;
}

.feature-list li {
  position: relative;
  padding-inline-start: 26px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  inset-block-start: 0.78em;
  inset-inline-start: 2px;
  inline-size: 8px;
  block-size: 8px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}


.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-block-start: 22px;
}

.mini-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}


.mini-card strong {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
}

.mini-card span {
  display: block;
  margin-block-start: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Product detail sections
   -------------------------------------------------------------------------- */

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: clamp(30px, 5vw, 46px);
}

.anchor-nav a {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.anchor-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.product-block {
  padding-block: clamp(34px, 5vw, 54px);
  border-block-start: 1px solid var(--border);
  scroll-margin-top: 100px;
}

.product-block:first-of-type {
  border-block-start: 0;
  padding-block-start: 0;
}

.product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 22px;
}

.product-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
}

.product-head .pill {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: transparent;
}

.product-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-block-start: 22px;
}

.screenshot-strip button {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-3);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.screenshot-strip button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.screenshot-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Quote / CTA
   -------------------------------------------------------------------------- */

.quote-band {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 8% 15%, var(--accent-soft), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.quote-band blockquote {
  max-width: 62ch;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 2;
}

.quote-band cite {
  display: block;
  margin-block-start: 16px;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
}


.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5.5vw, 60px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.24), transparent 28%),
    radial-gradient(circle at 6% 92%, rgba(255, 255, 255, 0.15), transparent 34%),
    linear-gradient(135deg, #0b4f4a, #0f766e 48%, #075985);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(8, 63, 58, 0.26);
}

.cta-band h2 {
  max-width: 22ch;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
}

.cta-band p {
  max-width: 62ch;
  margin-block-start: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 24px;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-3);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.3s var(--ease);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(3, 15, 22, 0.52));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.gallery-item span {
  position: absolute;
  z-index: 2;
  inset-block-end: 12px;
  inset-inline-start: 14px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item:hover::after,
.gallery-item:hover span,
.gallery-item:focus-visible::after,
.gallery-item:focus-visible span {
  opacity: 1;
}

.gallery-item:hover span,
.gallery-item:focus-visible span {
  transform: translateY(0);
}

.catalog-grid .gallery-item img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 8px;
  background: var(--surface-2);
}

.catalog-grid .gallery-item span {
  inset-block-end: 14px;
}

/* Lightbox */
.lightbox {
  width: min(1680px, calc(100vw - 24px));
  max-width: none;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: #0b1219;
  color: #fff;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

.lightbox::backdrop {
  background: rgba(2, 8, 14, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  background: #05090d;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.lightbox-actions {
  display: flex;
  gap: 6px;
}

.lightbox-actions button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 1.1rem;
}

.lightbox-actions button:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}


.contact-card .icon-box {
  flex: 0 0 auto;
  margin: 0;
}

.contact-card h2 {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 700;
}

.contact-card p,
.contact-card a {
  display: block;
  margin-block-start: 4px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.8;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-card small {
  display: block;
  margin-block-start: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.contact-note {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, var(--accent-soft), transparent 62%),
    var(--surface);
}


.contact-note h2 {
  font-size: 1.25rem;
}

.contact-note p {
  margin-block-start: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   About / values
   -------------------------------------------------------------------------- */

.values {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.value {
  padding: 16px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-align: center;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.value span {
  display: block;
  margin-block-start: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
}


.timeline {
  display: grid;
  gap: 14px;
  margin-block-start: 24px;
}

.timeline li {
  position: relative;
  padding-inline-start: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  inset-block-start: 0.72em;
  inset-inline-start: 4px;
  inline-size: 10px;
  block-size: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--surface);
}

.timeline strong {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  margin-block-start: clamp(56px, 8vw, 96px);
  border-block-start: 1px solid var(--border);
  background:
    linear-gradient(180deg, var(--surface-3), transparent 45%),
    var(--bg-soft);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 32%, var(--accent-2) 68%, transparent);
  opacity: 0.6;
}


.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-block: clamp(38px, 5vw, 58px);
}

.footer-brand p {
  max-width: 36ch;
  margin-block-start: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-col h2 {
  position: relative;
  margin-block-end: 18px;
  padding-block-end: 10px;
  color: var(--text);
  font-size: 0.86rem;
}

.footer-col h2::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.footer-col ul {
  display: grid;
  gap: 8px;
}

.footer-col a,
.footer-col address {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.9;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-contact .contact-ico {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--accent);
}

.footer-contact .c-label {
  color: var(--text-soft);
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  padding-block: 20px 28px;
  border-block-start: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-bottom p {
  line-height: 1.8;
}

.footer-legal p {
  margin: 0;
}

.footer-legal p + p {
  margin-block-start: 4px;
  font-size: 0.74rem;
  opacity: 0.88;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}

.footer-credit a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-credit a:hover {
  color: var(--accent-2);
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1040px) {
  .site-nav a {
    padding-inline: 10px;
    font-size: 0.86rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 18px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset-block-start: 78px;
    inset-inline: 12px;
    z-index: 80;
    display: grid;
    gap: 2px;
    max-height: calc(100vh - 98px);
    overflow-y: auto;
    padding: 12px;
    border: 0;
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }


  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 46px;
    padding-inline: 18px;
    border-radius: 999px;
    font-size: 0.95rem;
  }

  .brand-text small {
    display: none;
  }

  .hero-grid,
  .page-hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .hero-visual {
    max-width: 540px;
    margin-inline: auto;
    padding: 0;
    width: 100%;
  }

  .hero-card-top {
    inset-inline-start: 10px;
  }

  .hero-card-bottom {
    inset-inline-end: 10px;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .page-hero-aside {
    max-width: 520px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid .gallery-item:nth-child(5n + 1) img,
  .gallery-grid .gallery-item:nth-child(7n + 4) img {
    aspect-ratio: 4 / 3;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-grid,
  .screenshot-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    display: block;
  }

  .section-head .text-link {
    margin-block-start: 12px;
  }

  .hero-card {
    max-width: 210px;
    padding: 13px 15px;
  }

  .hero-card strong {
    font-size: 0.85rem;
  }

  .hero-card span {
    font-size: 0.72rem;
  }

  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-brand {
    order: -1;
  }

  .btn {
    min-height: 46px;
  }
}

@media (max-width: 460px) {
  .header-inner {
    min-height: 70px;
    gap: 10px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-logo {
    height: 40px;
  }

  .brand-text strong {
    font-size: 0.95rem;
    letter-spacing: 0.15em;
  }

  .theme-switch button {
    width: 29px;
    height: 29px;
    font-size: 0.88rem;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .site-nav {
    inset-block-start: 70px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero-card-top {
    display: none;
  }

  .hero-card-bottom {
    inset-block-end: 12px;
    inset-inline-end: 12px;
  }

  .card-body,
  .service-card {
    padding: 18px;
  }

  .gallery-grid {
    gap: 10px;
  }

  .gallery-item {
    border-radius: 14px;
  }

  .cta-actions .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .stats .stat {
    padding: 18px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* --------------------------------------------------------------------------
   Glass surfaces (shared)
   -------------------------------------------------------------------------- */

.card,
.service-card,
.stat,
.quote-band,
.contact-card,
.contact-note,
.page-hero-aside,
.mini-card,
.value,
.hero-card,
.theme-switch,
.anchor-nav a,
.screenshot-strip button,
.site-footer,
.site-nav {
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  backdrop-filter: blur(22px) saturate(155%);
}

.card,
.service-card,
.stat,
.quote-band,
.contact-card,
.contact-note,
.page-hero-aside,
.site-footer {
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .quote-band,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .contact-note,
html[data-theme="dark"] .page-hero-aside,
html[data-theme="dark"] .site-footer {
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Placeholder used until a real product photo is supplied. */
.product-placeholder {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 32px;
  min-height: 280px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, var(--accent-soft), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-soft);
  text-align: center;
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  backdrop-filter: blur(22px) saturate(155%);
}

.product-placeholder svg {
  width: 58px;
  height: 58px;
  color: var(--accent);
}

.product-placeholder strong {
  font-size: 1.05rem;
}

.product-placeholder span {
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.82rem;
}

.catalog-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-block-end: 22px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.86rem;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}




/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.error-box {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(34px, 6vw, 64px) clamp(22px, 5vw, 56px);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  backdrop-filter: blur(22px) saturate(155%);
}

html[data-theme="dark"] .error-box {
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.error-code {
  margin: 0;
  font-size: clamp(4.2rem, 13vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-box p {
  text-align: center;
}

.error-box p:not(.error-code):not(.eyebrow) {
  max-width: 54ch;
  margin-inline: auto;
  color: var(--muted);
}

.error-box h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-block-start: 26px;
}

.quote-band {
  width: 100%;
  box-sizing: border-box;
}

.quote-band blockquote.quote-full {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: justify;
  text-justify: inter-word;
  line-height: 2;          /* فاصله خطوط برای خوانایی متن فارسی */
  word-spacing: -0.5px;    /* جلوگیری از کشیدگی بیش از حد کلمات */
}

.quote-band cite {
  display: block;
  width: 100%;
  text-align: left;        /* یا right بسته به طراحی شما */
  margin-top: 1rem;
}