
:root {
  /* Colours */
  --bg: #FAF8F4;
  --panel: #F7F6F1;
  --border: #E5E2DB;
  --ink: #122735;
  --ink-soft: #1C3040;
  --muted: #4F595B;
  --muted-2: #8A8F86;
  --green: #336C4A;
  --green-dark: #244F37;
  --green-tint: #EAF1EC;
  --white: #FFFFFF;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Type */
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --edge: 24px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 420ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 1ms; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--green);
}

.section-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 var(--space-4) 0;
}

.section-desc {
  color: var(--muted);
  
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}

/* =========================================================================
   Navigation
   ========================================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--space-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}
.brand svg { flex: 0 0 auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 13px; height: 13px; flex: 0 0 auto; }
.btn-outline {
  border-color: var(--border);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-solid {
  background: var(--green);
  color: var(--white);
}
.btn-solid:hover { background: var(--green-dark); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  padding: var(--space-8) 0 var(--space-7);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: var(--space-7);
  align-items: center;
}
.hero-copy h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.12;
  color: var(--ink);
  margin: 10px 0 16px;
}
.hero-copy .lede {
  font-weight: 700;
  color: var(--green-dark);
  font-size: 15px;
  margin: 0 0 18px;
}
.hero-copy p.body {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 16px;
  max-width: 440px;
}
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-media img {
  width: 100%;
  max-width: 620px;
  height: auto;
  object-fit: contain;
}

/* =========================================================================
   Generic section shell
   ========================================================================= */
.section {
  padding: var(--space-8) 0;
  /*border-top: 1px solid var(--border);*/
}

/* =========================================================================
   Section 3 — Modular Guard stack, configured per room
   ========================================================================= */
.modular-grid {
  display: grid;
  grid-template-columns: minmax(300px, 600px) 1fr;
  gap: var(--space-7);
  align-items: start;
}
.modular-copy .section-desc {  margin-bottom: var(--space-5); }

.feature-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.feature-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: var(--space-4) var(--space-2);
  text-align: center;
}
.feature-item svg {
  width: 54px;
  height: 54px;
  color: var(--green);
  margin: 0 auto 10px;
  display: block;
}
.feature-item strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 700;
}
.feature-item span {
  display: block;
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 2px;
}

.overview-visual {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.overview-visual .cutaway-img {
  width: 100%;
  height: auto;
  max-width: 260px;
  flex: 0 0 auto;
}
.overview-labels {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.overview-labels li {
  display: grid;
  grid-template-columns: 60px 12px 1fr;
  align-items: center;
  gap: var(--space-3);
}
.overview-labels .dash {
  border-top: 1px dashed var(--muted-2);
  height: 0;
}
.overview-labels .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}
.overview-labels li[data-dim="true"] .dot { background: #6B7178; }
.overview-labels .label strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 700;
}
.overview-labels .label span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 1px;
}

/* =========================================================================
   Section 4 — Guard Stack, stage by stage (interactive sticky scroll)
   ========================================================================= */
.stage-section { padding-bottom: 0; }
.stage-heading { margin-bottom: var(--space-5); }

.stage-layout {
  display: grid;
  grid-template-columns: minmax(300px, 460px) 1fr;
  gap: var(--space-7);
  align-items: start;
}

.stage-steps {
  display: flex;
  flex-direction: column;
}
.stage-step {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: var(--space-6) 0;
}
.stage-step:first-child { padding-top: var(--space-2); }
.stage-step:last-child { min-height: 60vh; }

.stage-card {
  opacity: 0.32;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  max-width: 420px;
}
.stage-step.is-active .stage-card {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .stage-card { transform: none; }
}

.stage-num {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 10px;
  display: block;
}
.stage-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 30px;
  color: var(--ink);
  margin: 0 0 14px;
}
.stage-card p.desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 20px;
}
.stage-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 16px;
}
.stage-service-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 4px;
}
.stage-service-value {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.stage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--white);
}
.pill.pill-confirmed { color: var(--green-dark); border-color: #C9DACE; background: var(--green-tint); }
.pill.pill-eval { color: #8A6A2A; border-color: #E7D9B8; background: #FBF3E4; }
.pill.pill-proto { color: #6B5AA6; border-color: #DAD3EF; background: #F2EFFA; }

/* Sticky visual */
.stage-visual-outer {
  position: sticky;
  top: 108px;
  align-self: start;
  display: flex;
  justify-content: center;
  padding-top: var(--space-2);
}
.stage-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
}
.stage-visual img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}
.stage-hotspots {
  position: absolute;
  inset: 0;
}
.hotspot {
  position: absolute;
  width: 15.6%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  border: 2.5px solid transparent;
  box-shadow: 0 0 0 0 rgba(51, 108, 74, 0);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
}
.hotspot:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.hotspot.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 6px rgba(51, 108, 74, 0.10), 0 0 22px rgba(51, 108, 74, 0.22);
  transform: translate(-50%, -50%) scale(1.045);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hotspot.is-active { transform: translate(-50%, -50%) scale(1); }
}

.stage-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: var(--space-5);
}
.stage-progress .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.stage-progress .dot.is-active {
  background: var(--green);
  transform: scale(1.3);
}

/* Mobile stage nav (tap to jump) */
.stage-mobile-nav {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  margin: var(--space-5) 0 var(--space-2);
}
.stage-mobile-nav button {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
}
.stage-mobile-nav button.is-active {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-tint);
}

/* =========================================================================
   Section 5 — Airflow pathway
   ========================================================================= */
.airflow-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}
.airflow-steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: start;
  gap: 4px;
}
.airflow-step {
  text-align: center;
  padding: 0 4px;
  position: relative;
}
.airflow-step .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.airflow-step .icon-circle svg { width: 18px; height: 18px; color: var(--green); }
.airflow-step strong {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--ink);
  text-transform: uppercase;
}
.airflow-step p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.4;
}
.airflow-arrow {
  position: absolute;
  top: 20px;
  right: -4px;
  color: var(--muted-2);
  transform: translateX(50%);
}
.airflow-arrow svg { width: 14px; height: 14px; }

/* =========================================================================
   Section 6 — Designed to be maintained, not discarded
   ========================================================================= */
.maintain-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: var(--space-7);
  align-items: center;
}
.maintain-copy h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.28;
  color: var(--ink);
  margin: 0 0 14px;
  text-transform: none;
  letter-spacing: 0;
}
.maintain-copy p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
  max-width: 380px;
}
.maintain-media img { width: 100%; height: auto; }

/* =========================================================================
   Section 7 — CTA
   ========================================================================= */
.cta-section { padding: var(--space-8) 0 var(--space-9); }
.cta-inner { max-width: 620px; }
.cta-inner h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}
.cta-inner p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 24px;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-buttons .btn { padding: 12px 22px; font-size: 13.5px; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-6) 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.site-footer .brand { font-size: 12px; }
.footer-meta {
  font-size: 11.5px;
  color: var(--muted-2);
}
.footer-links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  font-size: 12px;
  color: var(--muted);
}
.footer-links a:hover { color: var(--green); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .hero .wrap,
  .modular-grid,
  .maintain-grid {
    grid-template-columns: 1fr;
  }
  .hero-media { order: -1; }
  .overview-visual { flex-direction: column; }
  .overview-labels { width: 100%; }
  .airflow-steps { grid-template-columns: repeat(4, 1fr); row-gap: 22px; }
  .airflow-arrow { display: none; }
}

@media (max-width: 850px) {
  .stage-layout { grid-template-columns: 1fr; }
  .stage-visual-outer {
    position: static;
    top: auto;
    order: -1;
    margin-bottom: var(--space-5);
  }
  .stage-step {
    min-height: 0;
    padding: var(--space-4) 0;
  }
  .stage-card { opacity: 1; transform: none; }
  .stage-mobile-nav { display: flex; }
  .stage-progress { display: none; }
}

@media (max-width: 620px) {
  .nav-links { display: none; }
  .hero-copy h1 { font-size: 34px; }
  .feature-trio { grid-template-columns: 1fr; }
  .airflow-steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  :root { --edge: 16px; }
  .site-nav .wrap { height: auto; padding: 12px var(--edge); flex-wrap: wrap; gap: 10px; }
  .brand { font-size: 12px; letter-spacing: 1px; }
  .brand svg { width: 15px; height: 15px; }
  .site-nav .btn { padding: 8px 12px; font-size: 12px; }
  .hero { padding: var(--space-6) 0 var(--space-6); }
}
/* وضعیت اولیه قبل از ظاهر شدن با اسکرول */
.hero-text .scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

/* حالتی که در دید اسکرول قرار می‌گیرد */
.hero-text .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* فاصله استاندارد بین پاراگراف‌ها به جای استفاده از <br/> */
.hero-text .body + .body {
  margin-top: 1.25rem;
}
