@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-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f5f0;
  --surface: #fffefb;
  --ink: #1b1c18;
  --ink-soft: #45463f;
  --muted: #67685f;
  --line: #e5e1d8;
  --accent: #2e6b4f;
  --accent-deep: #22503a;
  --accent-soft: #e9f0e5;
  --amber: #a66a1f;
  --font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(90rem 44rem at 50% -16%, #fffdf8 0%, rgba(255, 253, 248, 0) 62%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(56rem 30rem at 50% -8%, rgba(46, 107, 79, 0.07), transparent 62%);
}

::selection {
  background: var(--accent);
  color: #fff;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1240px;
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(20px, 3.5vh, 32px) clamp(20px, 5vw, 48px) clamp(18px, 3.5vh, 28px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--surface);
  background: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(27, 28, 24, 0.18);
}

.brand-mark svg {
  width: 16px;
  height: 16px;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.brand:hover .brand-name { color: var(--accent-deep); }
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.build-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 251, 0.55);
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 500;
  white-space: nowrap;
}
.build-note::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  padding-block: clamp(48px, 9vh, 104px) clamp(38px, 7vh, 72px);
  text-align: center;
}

.title,
.subtitle,
.features {
  animation: rise 0.85s cubic-bezier(0.22, 0.61, 0.24, 1) backwards;
}
.title { animation-delay: 0.1s; }
.subtitle { animation-delay: 0.18s; }
.features { animation-delay: 0.3s; }

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

.title {
  margin: 0;
  font-size: clamp(4.25rem, 12.5vw, 8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.subtitle {
  max-width: 35rem;
  margin: clamp(20px, 3vh, 26px) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.16rem);
  font-weight: 400;
  line-height: 2;
  text-wrap: balance;
}

.subtitle mark {
  padding: 0.06em 0.32em 0.12em;
  border-radius: 0.4em;
  background: var(--accent-soft);
  color: var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.subtitle strong {
  color: var(--accent-deep);
  font-weight: 700;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: clamp(52px, 9vh, 88px) 0 0;
  padding: clamp(22px, 3vh, 28px) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.features li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding-inline: clamp(6px, 1.5vw, 14px);
  color: var(--ink-soft);
  font-size: clamp(0.72rem, 1.4vw, 0.78rem);
  font-weight: 500;
  white-space: nowrap;
}

.features li + li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 1px;
  height: 16px;
  background: var(--line);
  transform: translateY(-50%);
}

.features li svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.footer {
  width: 100%;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}
.footer p { margin: 0; }

@media (max-width: 700px) {
  .features {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
  .features li { padding-inline: 0; }
  .features li + li::before { display: none; }
}

@media (max-width: 640px) {
  .page { padding-block: 18px 16px; }
  .hero { padding-block: clamp(40px, 8vh, 64px) 34px; }
  .subtitle {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.95;
  }
  .features {
    margin-top: 44px;
    padding-top: 20px;
    row-gap: 13px;
  }
  .features li { font-size: 0.78rem; }
  .footer { font-size: 0.72rem; }
}

@media (max-width: 360px) {
  .build-note { font-size: 0.68rem; padding: 4px 9px; }
  .features li { font-size: 0.74rem; gap: 6px; }
  .features li svg { width: 15px; height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
