:root {
  --ink: #0b1220;
  --ink-soft: #152033;
  --fog: #e8eef4;
  --paper: #f4f7fa;
  --muted: #5b6b7c;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --sand: #d6c4a8;
  --line: rgba(232, 238, 244, 0.14);
  --font: "Vazirmatn", "Tahoma", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

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

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Hero (one composition, full-bleed) —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--fog);
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(20, 184, 166, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(214, 196, 168, 0.12), transparent 50%),
    linear-gradient(155deg, #071018 0%, #0b1220 42%, #132033 100%);
}

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

@media (max-width: 720px) {
  .hero-visual {
    opacity: 0.45;
  }
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  animation: rise 0.9s ease both;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark span {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: linear-gradient(145deg, var(--teal-bright), var(--teal));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-link {
  color: rgba(232, 238, 244, 0.82);
  font-size: 0.95rem;
  border: 1px solid rgba(232, 238, 244, 0.22);
  padding: 0.55rem 1.1rem;
  border-radius: 0.65rem;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.topbar-link.subtle {
  border-color: transparent;
}

.topbar-link.subtle:hover {
  border-color: rgba(232, 238, 244, 0.28);
}

.topbar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 238, 244, 0.4);
  color: #fff;
}

.hero-body {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0 3.5rem;
  max-width: 38rem;
}

.hero-brand {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #fff;
  animation: rise 1s 0.1s ease both;
}

.hero-brand em {
  font-style: normal;
  color: var(--teal-bright);
}

.hero-lead {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  color: rgba(232, 238, 244, 0.95);
  animation: rise 1s 0.2s ease both;
}

.hero-sub {
  margin: 0 0 1.75rem;
  font-size: 1.02rem;
  color: rgba(232, 238, 244, 0.72);
  max-width: 28rem;
  animation: rise 1s 0.3s ease both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 1s 0.4s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: 0.7rem;
  background: var(--teal-bright);
  color: #042f2e;
  font-weight: 700;
  font-size: 0.98rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  background: #2dd4bf;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(20, 184, 166, 0.7);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(232, 238, 244, 0.28);
  color: var(--fog);
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(232, 238, 244, 0.5);
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.flow {
  display: grid;
  gap: 0;
  border-top: 1px solid #d7e0ea;
}

.flow-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid #d7e0ea;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.flow-item.is-in {
  opacity: 1;
  transform: none;
}

.flow-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.flow-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.flow-item p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.band {
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.06), transparent 40%),
    var(--ink);
  color: var(--fog);
  padding: 5rem 0;
}

.band .section-head h2 {
  color: #fff;
}

.band .section-head p {
  color: rgba(232, 238, 244, 0.7);
}

.module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.module-list li.is-in {
  opacity: 1;
  transform: none;
}

.module-list li span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(232, 238, 244, 0.62);
}

.closing {
  text-align: center;
  padding: 5.5rem 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(20, 184, 166, 0.12), transparent 55%),
    var(--paper);
}

.closing h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.closing > .wrap > p {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  color: var(--muted);
}

.contact-block {
  margin: 0 auto;
  max-width: 28rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid #d7e0ea;
  border-radius: 1rem;
  background: #fff;
}

.contact-person {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-role {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-phone {
  display: inline-block;
  margin: 1rem 0 1.35rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--teal);
  transition: color 0.2s ease;
}

.contact-phone:hover {
  color: #0f766e;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 0.7rem;
  border: 1px solid #c9d5e1;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover {
  background: #f4f7fa;
  border-color: #9eb0c2;
}

.closing .btn-primary {
  color: #042f2e;
}

.footer-contact {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.footer-contact a {
  color: var(--teal);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid #d7e0ea;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 1.75rem);
  }

  .hero-body {
    padding-bottom: 3rem;
    max-width: none;
  }

  .module-list {
    grid-template-columns: 1fr;
  }

  .flow-item {
    grid-template-columns: 3rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .flow-item,
  .module-list li {
    opacity: 1;
    transform: none;
  }
}
