@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
  --flash-primary: #378ADD;
  --flash-secondary: #7F77DD;
  --flash-bg: #0F1117;
  --flash-surface: #1A1D27;
  --flash-border: #2E3247;
  --flash-text: #E8EAF0;
  --flash-text-secondary: #8B8FA8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--flash-bg);
  color: var(--flash-text);
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ─── گلوهای پس‌زمینه‌ی متحرک ─── */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

.bg-glow-1 {
  width: 480px;
  height: 480px;
  background: var(--flash-primary);
  top: -120px;
  right: -100px;
  animation: floatGlow 9s ease-in-out infinite;
}

.bg-glow-2 {
  width: 420px;
  height: 420px;
  background: var(--flash-secondary);
  bottom: -100px;
  left: -100px;
  animation: floatGlow 11s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.1); }
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 40px;
}

h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.badge-pill {
  display: inline-block;
  background: rgba(99, 153, 34, 0.15);
  color: #8fd14f;
  border: 1px solid rgba(99, 153, 34, 0.35);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out both;
}

.hero-logo {
  max-width: 220px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 24px rgba(55, 138, 221, 0.35));
  animation: fadeInUp 0.6s ease-out 0.1s both, logoPulse 4s ease-in-out 1s infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(55, 138, 221, 0.35)); }
  50% { filter: drop-shadow(0 0 40px rgba(127, 119, 221, 0.55)); }
}

.tagline {
  color: var(--flash-text-secondary);
  font-size: 18px;
  max-width: 480px;
  margin: 12px 0 36px;
  line-height: 1.8;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--flash-primary), var(--flash-secondary));
  background-size: 200% 200%;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 40px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(55, 138, 221, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeInUp 0.6s ease-out 0.3s both, gradientShift 6s ease infinite;
}

.download-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(55, 138, 221, 0.5);
}

.download-btn svg {
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ─── mockup گرید بازی (بدون عکس واقعی) ─── */
.mock-screen {
  margin-top: 48px;
  width: 280px;
  background: var(--flash-surface);
  border: 1px solid var(--flash-border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.7s ease-out 0.4s both, floatScreen 5s ease-in-out 1.2s infinite;
}

@keyframes floatScreen {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mock-screen-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flash-border);
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mock-tile {
  aspect-ratio: 1;
  border-radius: 10px;
  animation: tileBlink 3.2s ease-in-out infinite;
}

.mock-tile-a { background: var(--flash-primary); animation-delay: 0s; }
.mock-tile-b { background: var(--flash-border); animation-delay: 0.2s; }
.mock-tile-c { background: var(--flash-secondary); animation-delay: 0.4s; }
.mock-tile-d { background: var(--flash-border); animation-delay: 0.6s; }
.mock-tile-e { background: var(--flash-secondary); animation-delay: 0.8s; }
.mock-tile-f { background: var(--flash-primary); animation-delay: 1s; }

@keyframes tileBlink {
  0%, 70%, 100% { opacity: 1; transform: scale(1); }
  78% { opacity: 0.55; transform: scale(0.93); }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin-top: 56px;
  width: 100%;
}

.feature-card {
  background: var(--flash-surface);
  border: 1px solid var(--flash-border);
  border-radius: 16px;
  padding: 28px 20px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  animation: fadeInUp 0.6s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.5s; }
.feature-card:nth-child(2) { animation-delay: 0.6s; }
.feature-card:nth-child(3) { animation-delay: 0.7s; }

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--flash-primary);
  box-shadow: 0 14px 32px rgba(55, 138, 221, 0.2);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-title {
  font-weight: 700;
  font-size: 17px;
  color: var(--flash-primary);
  margin-bottom: 10px;
}

.feature-desc {
  color: var(--flash-text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 20px;
  color: var(--flash-text-secondary);
  font-size: 13px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .mock-screen { width: 100%; max-width: 280px; }
}
