:root {
  --sand: #f3ebe0;
  --sand-deep: #e6d7c3;
  --ink: #1c2a2e;
  --ink-soft: #3d4f55;
  --teal: #0f6e6a;
  --teal-deep: #0a524f;
  --cream: #fffaf3;
  --line: rgba(28, 42, 46, 0.12);
  --shadow: 0 24px 60px rgba(28, 42, 46, 0.12);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Vazirmatn", "Tahoma", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-home {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.site-home__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 85% 15%, rgba(15, 110, 106, 0.28), transparent 55%),
    radial-gradient(900px 600px at 10% 85%, rgba(196, 140, 78, 0.22), transparent 50%),
    linear-gradient(155deg, #f7f1e8 0%, #e9dfd0 42%, #d9ece9 100%);
  animation: bgDrift 18s ease-in-out infinite alternate;
  z-index: 0;
}

.site-home__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 42, 46, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 42, 46, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}

.site-home__glow {
  position: absolute;
  width: 42vw;
  max-width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 243, 0.7), transparent 70%);
  filter: blur(8px);
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  animation: glowPulse 7s ease-in-out infinite;
}

.site-home__content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 1.1s ease forwards 0.15s;
}

.site-home__logo {
  width: clamp(72px, 14vw, 110px);
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(28, 42, 46, 0.12));
}

.site-home__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}

.site-home__brand span {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.55rem;
  color: var(--teal-deep);
  font-family: var(--font-body);
  font-weight: 600;
}

.site-home__tag {
  margin: 1.35rem auto 0;
  max-width: 28rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.site-home__status {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--teal-deep);
  border-bottom: 1px solid rgba(15, 110, 106, 0.35);
  padding-bottom: 0.2rem;
}

.site-home__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 110, 106, 0.28);
}

.btn--primary:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: rgba(255, 250, 243, 0.65);
  transform: translateY(-2px);
}

.site-home__foot {
  position: absolute;
  bottom: 1.1rem;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(28, 42, 46, 0.55);
}

/* Payment page */
.pay-page {
  min-height: 100vh;
  padding: 2rem 1.25rem 3rem;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(15, 110, 106, 0.16), transparent 55%),
    linear-gradient(180deg, #f7f1e8, #eef5f3);
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 1.5rem;
}

.pay-top {
  width: min(520px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pay-top a {
  text-decoration: none;
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 0.95rem;
}

.pay-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.pay-brand img {
  width: 42px;
  height: auto;
}

.pay-panel {
  width: min(520px, 100%);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.pay-panel h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 600;
}

.pay-panel > p {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.pay-note {
  background: rgba(15, 110, 106, 0.08);
  border: 1px solid rgba(15, 110, 106, 0.18);
  color: var(--teal-deep);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.pay-panel label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.pay-panel input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--ink);
}

.pay-panel input:focus {
  outline: 2px solid rgba(15, 110, 106, 0.35);
  border-color: transparent;
}

.pay-panel .btn {
  width: 100%;
  margin-top: 1.25rem;
  border-radius: 12px;
}

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bgDrift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.04) translate3d(-1.5%, 1%, 0); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.85; transform: translateX(-50%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .site-home__bg,
  .site-home__glow,
  .site-home__content {
    animation: none !important;
  }
  .site-home__content {
    opacity: 1;
    transform: none;
  }
}
