:root {
  --navy: #0b1e3d;
  --ink: #122033;
  --ink-soft: #3c4d62;
  --paper: #ffffff;
  --line: #e3e8ee;
  --mint: #7ee0c8;
  color-scheme: light;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.wrap {
  width: min(880px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  background: var(--navy);
  color: #fff;
  border-top: 3px solid var(--mint);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
}

.brand-icon {
  display: block;
  width: 30px;
  height: 30px;
}

.brand-mark {
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-text {
  color: var(--mint);
  font-weight: 700;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}

.site-header nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.2rem 0;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--mint);
}

.site-header nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--mint);
}

.hero {
  padding: 4.25rem 0 0.5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero .eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 3px;
  background: var(--mint);
  flex: none;
}

h1 {
  max-width: 16em;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4.6vw, 3.05rem);
  font-weight: 700;
  line-height: 1.35;
}

.lead {
  max-width: 36rem;
  margin: 1.15rem 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.4rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-block;
  padding: 0.62rem 1.05rem;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: #16325f;
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--navy);
}

.button.secondary:hover {
  background: #f4f7fa;
  color: var(--navy);
}

.points {
  margin: 3.2rem 0 4.5rem;
  border-top: 1px solid var(--line);
}

.points article {
  display: grid;
  grid-template-columns: 3rem minmax(0, 38rem);
  column-gap: 0.85rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.index {
  margin: 0.15rem 0 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.points h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.6;
}

.points p {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
}

.page {
  width: min(40rem, 100%);
  padding: 3.2rem 0 4.2rem;
}

.page h1 {
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.page h1::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-top: 0.9rem;
  background: var(--mint);
}

.panel {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.panel h2 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.6;
}

.panel p,
.panel li {
  margin: 0;
  color: var(--ink-soft);
}

.panel ol,
.panel ul {
  margin: 0.35rem 0 0;
  padding: 0 1.15rem 0 0;
}

.panel ol {
  list-style: persian;
}

.panel li + li {
  margin-top: 0.4rem;
}

.panel .actions {
  margin-top: 1.1rem;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.5rem;
  min-height: 4.5rem;
}

.site-footer p {
  margin: 0;
}

.domain {
  color: var(--mint);
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2.6rem;
  }

  .points article {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .footer-inner {
    padding: 1.1rem 0;
  }
}
