@font-face {
  font-family: "IRANYekan";
  src: url("fonts/IRANYekanX-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("fonts/IRANYekanX-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("fonts/IRANYekanX-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #182028;
  --muted: #5c6670;
  --line: #d8dde3;
  --paper: #eef1f4;
  --surface: #fbfcfd;
  --accent: #245b4a;
  --accent-hover: #1b4638;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IRANYekan", Tahoma, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(36, 91, 74, 0.08), transparent 55%),
    radial-gradient(900px 420px at -10% 100%, rgba(24, 32, 40, 0.05), transparent 50%),
    var(--paper);
  line-height: 1.7;
}

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

.wrap {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.4rem 0 0.2rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  animation: rise 0.55s ease both;
}

.brand strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}

.hero {
  padding: 2.4rem 0 1.8rem;
  animation: rise 0.65s ease 0.05s both;
}

.hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 3.4vw, 2.05rem);
  font-weight: 700;
  line-height: 1.35;
  max-width: 16ch;
}

.hero p {
  margin: 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
}

.products {
  padding: 0.4rem 0 2.5rem;
  animation: rise 0.7s ease 0.12s both;
}

.product {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  transition: background-color 0.2s ease, padding-right 0.2s ease;
}

.product:last-child {
  border-bottom: 1px solid var(--line);
}

.product:hover {
  background: rgba(255, 255, 255, 0.55);
  padding-right: 0.35rem;
}

.product h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.product p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.price {
  font-weight: 500;
  font-size: 0.98rem;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-ghost:hover {
  background: rgba(36, 91, 74, 0.08);
  color: var(--accent-hover);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.panel {
  margin: 1.5rem 0 2.5rem;
  padding: 1.35rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  animation: rise 0.55s ease both;
}

.panel h1 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
}

.meta {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.98rem;
}

.meta li:last-child {
  border-bottom: 0;
}

.meta .label {
  color: var(--muted);
}

.note {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  padding: 1.5rem 0 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  animation: rise 0.75s ease 0.18s both;
}

.site-footer .rows {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.site-footer a {
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  border-bottom-color: currentColor;
}

.pay-wait {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem;
}

.pay-wait h1 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
}

.pay-wait p {
  margin: 0;
  color: var(--muted);
}

.spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 1.1rem;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .product {
    grid-template-columns: 1fr;
  }

  .actions {
    justify-content: stretch;
  }

  .actions .btn {
    flex: 1;
  }

  .hero h1 {
    max-width: none;
  }
}
