:root {
  --ink: #0e0c0a;
  --paper: #f3ead8;
  --paper-dim: #cbbd9f;
  --gold: #d4a84b;
  --gold-bright: #f0d58a;
  --gold-deep: #9a7420;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--paper);
  background: var(--ink);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: hero-drift 20s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, rgba(8, 6, 4, 0.35), rgba(8, 6, 4, 0.82) 70%),
    linear-gradient(180deg, rgba(8, 6, 4, 0.45) 0%, rgba(8, 6, 4, 0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0;
  text-align: center;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: 'Noto Naskh Arabic', 'Vazirmatn', Tahoma, sans-serif;
  font-size: clamp(3.1rem, 8.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  background: linear-gradient(120deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.headline {
  margin: 0 0 0.75rem;
  font-family: 'Noto Naskh Arabic', 'Vazirmatn', Tahoma, sans-serif;
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--paper);
}

.lead {
  margin: 0 auto 1.6rem;
  max-width: 32ch;
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--paper-dim);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #1a140a;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fff0c2, var(--gold-bright) 50%, var(--gold));
}

.btn-ghost {
  border-color: rgba(240, 213, 138, 0.45);
  color: var(--gold-bright);
  background: rgba(14, 12, 10, 0.28);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--gold-bright);
  background: rgba(212, 168, 75, 0.12);
}

.meta {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 34rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(240, 213, 138, 0.22);
}

.meta > div {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
}

.meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(240, 213, 138, 0.72);
  font-weight: 500;
}

.meta dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--paper);
}

.meta a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(240, 213, 138, 0.35);
}

.meta a:hover {
  text-decoration-color: var(--gold-bright);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(1%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; transform: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover { transform: none; }
}

@media (max-width: 640px) {
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1 1 auto; }
  .meta {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}
