/* هوش پردازان سنجاقک — stylesheet: single file, no build step, kept deliberately small. */

@font-face {
  font-family: "Vazirmatn Var";
  src: url("../fonts/Vazirmatn-variable.woff2") format("woff2-variations"),
       url("../fonts/Vazirmatn-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #eef1f2;
  --text: #15191c;
  --text-muted: #55626a;
  --border: #e3e7e9;

  --dark-bg: #14181b;
  --dark-surface: #1d2226;
  --dark-surface-2: #262c30;
  --dark-text: #eef2f3;
  --dark-text-muted: #9aa7ac;
  --dark-border: #2d3338;

  --teal: #2dd4bf;
  --cyan: #22d3ee;
  --orange: #fb923c;
  --gradient-brand: linear-gradient(120deg, var(--teal) 0%, var(--cyan) 50%, var(--orange) 100%);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-md: 0 14px 34px -16px rgba(16, 24, 28, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(16, 24, 28, 0.28);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn Var", Tahoma, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  right: 12px;
  top: -48px;
  background: var(--text);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 248, 0.82);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}
.brand .brand-logo { width: 38px; height: 38px; flex-shrink: 0; }
.brand .brand-name-full { display: inline; }
.brand .brand-name-short { display: none; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset-inline: 12px;
    top: 80px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { text-align: center; padding: 14px 16px; }
  .nav-toggle { display: inline-flex; }
  .brand .brand-name-full { display: none; }
  .brand .brand-name-short { display: inline; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradient-brand); color: #0c1113; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--surface-2); }
.btn-on-dark { border-color: rgba(255,255,255,0.22); color: var(--dark-text); background: rgba(255,255,255,0.04); }
.btn-on-dark:hover { background: rgba(255,255,255,0.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1100px 460px at 80% -10%, rgba(45, 212, 191, 0.18), transparent 60%),
              radial-gradient(900px 420px at 10% 110%, rgba(251, 146, 60, 0.14), transparent 60%),
              var(--dark-bg);
  color: var(--dark-text);
  overflow: hidden;
}
.hero .container {
  padding-block: clamp(64px, 11vw, 120px) clamp(56px, 9vw, 96px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.35;
  margin: 0 0 20px;
  font-weight: 800;
}
.hero h1 .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  color: var(--dark-text-muted);
  font-size: 1.08rem;
  max-width: 54ch;
  margin: 0 0 32px;
}
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg {
  width: min(380px, 100%);
  filter: drop-shadow(0 30px 60px rgba(34, 211, 238, 0.18));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .btn-row { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art svg { width: 190px; }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(56px, 8vw, 100px); }
.section-tight { padding-block: clamp(40px, 6vw, 64px); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 52px); }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0e9b8a;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 14px; font-weight: 800; }
.section-head p { color: var(--text-muted); margin: 0; font-size: 1.02rem; }
.section-on-dark { background: var(--dark-bg); color: var(--dark-text); }
.section-on-dark .section-head p { color: var(--dark-text-muted); }
.section-on-dark .eyebrow { color: var(--teal); }
.section-alt { background: var(--surface-2); }

h1, h2, h3, h4 { font-family: inherit; }

/* ---------- Capability / service / project cards ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
}
@media (max-width: 980px) { .grid { --cols: 2; } }
@media (max-width: 620px) { .grid { --cols: 1; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; color: #0e9b8a; }
.card h3 { font-size: 1.08rem; margin: 0 0 10px; font-weight: 700; }
.card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.on-dark-card {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}
.on-dark-card h3 { color: var(--dark-text); }
.on-dark-card p { color: var(--dark-text-muted); }
.on-dark-card .card-icon { background: var(--dark-surface-2); }
.on-dark-card .card-icon svg { color: var(--teal); }
.on-dark-card .tag { background: var(--dark-surface-2); border-color: var(--dark-border); color: var(--dark-text-muted); }

/* ---------- Reveal-on-scroll (progressive enhancement) ---------- */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Why-us list ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item .icon-chip {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #0c1113;
}
.why-item .icon-chip svg { width: 22px; height: 22px; }
.why-item h3 { margin: 0 0 6px; font-size: 1rem; }
.why-item p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  background: var(--dark-bg);
  background: radial-gradient(800px 300px at 15% 0%, rgba(34, 211, 238, 0.16), transparent 60%),
              radial-gradient(700px 280px at 90% 100%, rgba(251, 146, 60, 0.14), transparent 60%),
              var(--dark-bg);
  color: var(--dark-text);
  padding: clamp(36px, 6vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.cta-band p { margin: 0; color: var(--dark-text-muted); max-width: 46ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-text-muted);
  margin-top: clamp(56px, 8vw, 96px);
}
.site-footer .container {
  padding-block: 48px 28px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--dark-text); font-weight: 700; margin-bottom: 14px; }
.footer-brand .brand-logo { width: 32px; height: 32px; }
.site-footer p { font-size: 0.92rem; max-width: 42ch; }
.site-footer h4 { color: var(--dark-text); font-size: 0.92rem; margin: 0 0 14px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--dark-text); }
.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-block: 18px;
  font-size: 0.82rem;
  text-align: center;
}
.footer-bottom .container { display: block; padding: 0; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding-block: clamp(52px, 9vw, 84px) clamp(40px, 6vw, 60px);
}
.page-hero .eyebrow { color: var(--teal); }
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 14px; font-weight: 800; }
.page-hero p { color: var(--dark-text-muted); max-width: 60ch; font-size: 1.02rem; margin: 0; }

/* ---------- Info cards (about page registration facts) ---------- */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.fact-card .fact-label { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.fact-card .fact-value { font-weight: 800; font-size: 1.05rem; }

.prose { max-width: 72ch; }
.prose p { color: var(--text-muted); margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.scope-list { display: grid; gap: 14px; }
.scope-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.scope-list li svg { width: 20px; height: 20px; flex-shrink: 0; color: #0e9b8a; margin-top: 2px; }
.scope-list li strong { color: var(--text); }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }

.address-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.address-card svg { width: 26px; height: 26px; color: #0e9b8a; flex-shrink: 0; margin-top: 2px; }
.address-card h3 { margin: 0 0 8px; font-size: 1rem; }
.address-card p { margin: 0; color: var(--text-muted); }

/* ---------- Services page ---------- */
.service-block {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding-block: 28px;
  border-top: 1px solid var(--border);
}
.service-block:first-of-type { border-top: none; }
.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 28px; height: 28px; color: #0e9b8a; }
.service-block h3 { margin: 0 0 8px; font-size: 1.15rem; }
.service-block p { margin: 0 0 14px; color: var(--text-muted); max-width: 70ch; }
@media (max-width: 560px) {
  .service-block { grid-template-columns: 1fr; }
}

/* ---------- Projects page ---------- */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-media {
  aspect-ratio: 16/10;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.project-media svg { width: 56%; max-width: 160px; opacity: 0.92; }
.project-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-body h3 { margin: 0; font-size: 1.05rem; }
.project-body .project-context { font-size: 0.82rem; color: #0e9b8a; font-weight: 700; }
.project-body p { margin: 0; color: var(--text-muted); font-size: 0.93rem; flex: 1; }

/* ---------- Contact section ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-card .icon-chip {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center; color: #0c1113; flex-shrink: 0;
}
.contact-card .icon-chip svg { width: 22px; height: 22px; }
.contact-card h3 { margin: 0 0 6px; font-size: 1rem; }
.contact-card p, .contact-card a { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.contact-card a.link { color: #0e9b8a; font-weight: 700; }
