@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-variable.woff2") format("woff2-variations"),
       url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #0b2d4c;
  --navy-2: #082338;
  --blue: #1d4fbf;
  --green: #22a34a;
  --orange: #e07020;
  --muted: #5c6d7e;
  --font: Vazirmatn, Tahoma, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

button, input { font-family: inherit; }
button { border: 0; background: none; cursor: pointer; }

.bg {
  position: fixed;
  inset: 0;
  background:
    url("../assets/images/hero.jpg") right center / cover no-repeat;
  z-index: 0;
  transform: scale(1.04);
  animation: bgDrift 18s ease-in-out infinite alternate;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.82) 42%, rgba(255,255,255,.45) 72%, rgba(255,255,255,.28) 100%);
}

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

.stage {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  align-self: flex-end; /* در RTL = سمت چپ فیزیکی */
  width: min(720px, calc(100% - 48px));
  margin: 48px auto 40px clamp(20px, 5vw, 64px);
  text-align: right;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 163, 74, .12);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 163, 74, .5);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 163, 74, .45); }
  70% { box-shadow: 0 0 0 10px rgba(34, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 163, 74, 0); }
}

.stage h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 10px;
}

.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.k-g { color: var(--green); }
.k-b { color: var(--blue); }
.k-o { color: var(--orange); }
.k-sep { color: var(--navy); }

.lead {
  color: var(--muted);
  font-size: clamp(14px, 2vw, 16px);
  max-width: 520px;
  margin-bottom: 8px;
}

.en {
  color: #8a97a6;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 28px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 88px));
  gap: 10px;
  margin-bottom: 26px;
}

.tick {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(11, 45, 76, .08);
  border-radius: 16px;
  padding: 14px 8px 12px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(11, 45, 76, .08);
  backdrop-filter: blur(8px);
}

.tick b {
  display: block;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.tick span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
}

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 12px 22px 12px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(11, 45, 76, .22);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.call-btn:hover {
  background: #071e34;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(11, 45, 76, .28);
}

.call-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.call-ico svg { width: 20px; height: 20px; }

.call-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.35;
}

.call-txt strong {
  font-size: 14.5px;
  font-weight: 800;
}

.call-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  opacity: .82;
  font-family: Arial, Helvetica, sans-serif;
}

.foot {
  position: relative;
  z-index: 4;
  padding: 18px clamp(16px, 4vw, 40px) 24px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .8s cubic-bezier(.22, 1, .36, 1),
    transform .8s cubic-bezier(.22, 1, .36, 1);
}
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .4s; }
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .stage {
    margin: 36px auto 32px 14px;
    width: calc(100% - 28px);
    align-items: stretch;
    align-self: flex-end;
  }
  .countdown {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }
  .call-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
  }
  .call-txt { align-items: center; }
  .call-num { font-size: 12.5px; }
  .bg { opacity: .55; }
  .veil {
    background: rgba(255, 255, 255, .72);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg { animation: none; }
  .badge::before { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
