/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0F1115;
  --surface: #161A21;
  --surface-2: #1C212B;
  --primary: #2F5D9F;
  --primary-light: #5680E9;
  --accent: #F2C94C;
  --text: #F5F6F8;
  --text-dim: #9AA3B2;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(15, 17, 21, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  width: min(1120px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.nav-links a { transition: color 0.25s; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 600;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn-small { padding: 9px 22px; font-size: 0.9rem; }
.btn-primary {
  background: var(--accent);
  color: #14161B;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(242, 201, 76, 0.35);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(15, 17, 21, 0.55), rgba(15, 17, 21, 0.75) 60%, var(--bg));
}
.hero-glow {
  position: absolute;
  z-index: 1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.32;
  pointer-events: none;
}
.hero-glow-yellow {
  background: var(--accent);
  top: -160px;
  inset-inline-start: -120px;
}
.hero-glow-blue {
  background: var(--primary-light);
  bottom: -160px;
  inset-inline-end: -120px;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 92%);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-block: auto;
}
.hero-logo {
  width: 150px;
  margin-bottom: 26px;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.5));
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(242, 201, 76, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(242, 201, 76, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(242, 201, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 201, 76, 0); }
}
.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 40px;
}
.accent {
  background: linear-gradient(120deg, var(--accent), #FFE08A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ---------- Store buttons ---------- */
.download-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.45;
}
.store-text small {
  font-size: 0.72rem;
  color: var(--text-dim);
}
.store-text strong {
  font-size: 1.02rem;
  font-weight: 600;
}
.store-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}
.store-primary {
  background: var(--accent);
  border-color: transparent;
  color: #14161B;
}
.store-primary .store-text small { color: rgba(20, 22, 27, 0.65); }
.store-primary:hover {
  background: #F7D465;
  box-shadow: 0 12px 36px rgba(242, 201, 76, 0.35);
}

/* ---------- Scroll hint ---------- */
.scroll-hint {
  position: absolute;
  bottom: 26px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}
.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 7px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
  position: relative;
}
.section-alt {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(47, 93, 159, 0.14), transparent),
    var(--surface);
}
.section-tag {
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 64px;
}
.section-lead {
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-dim);
  max-width: 560px;
  margin: -44px auto 64px;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.feature-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 201, 76, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 27px; height: 27px; }
.icon-yellow {
  background: rgba(242, 201, 76, 0.12);
  color: var(--accent);
}
.icon-blue {
  background: rgba(86, 128, 233, 0.14);
  color: var(--primary-light);
}
.feature-card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ---------- Showcase (phones) ---------- */
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 34px;
  flex-wrap: wrap;
}
.phone {
  text-align: center;
}
.phone-frame {
  width: 250px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  padding: 9px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.phone-frame img {
  border-radius: 28px;
  width: 100%;
}
.phone:hover .phone-frame {
  transform: translateY(-10px);
  box-shadow:
    0 44px 90px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(242, 201, 76, 0.08),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.05);
}
.phone-center .phone-frame {
  width: 285px;
  border-color: rgba(242, 201, 76, 0.35);
  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.6),
    0 0 70px rgba(242, 201, 76, 0.1),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.05);
}
.phone-caption {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ---------- Steps ---------- */
.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.step {
  flex: 1 1 240px;
  max-width: 300px;
  text-align: center;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 26px;
}
.step-num {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #14161B;
  background: linear-gradient(135deg, var(--accent), #E9B92E);
  box-shadow: 0 8px 24px rgba(242, 201, 76, 0.3);
}
.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.9rem;
  color: var(--text-dim);
}
.step-line {
  align-self: center;
  width: 48px;
  height: 2px;
  background: linear-gradient(to left, rgba(242, 201, 76, 0.5), rgba(86, 128, 233, 0.5));
  border-radius: 2px;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 130px 0;
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 93, 159, 0.22), transparent 65%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-icon {
  width: 84px;
  border-radius: 22px;
  margin-bottom: 30px;
  box-shadow: 0 18px 50px rgba(242, 201, 76, 0.25);
}
.cta h2 {
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 42px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.enamad {
  display: inline-flex;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.enamad img {
  height: 60px;
  width: auto;
}
.enamad:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .phones { gap: 22px; }
  .phone-frame { width: 200px; padding: 7px; }
  .phone-center .phone-frame { width: 225px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .section { padding: 80px 0; }
  .section-title { margin-bottom: 44px; }
  .phones { gap: 26px; }
  .phone-frame { width: 220px; }
  .phone-center .phone-frame { width: 240px; }
  .step-line { display: none; }
  .download-row { flex-direction: column; align-items: stretch; width: min(320px, 100%); margin-inline: auto; }
  .store-btn { justify-content: center; }
  .hero-logo { width: 120px; }
  .footer-inner { justify-content: center; text-align: center; }
}
