/* RTL + Persian typography */
body {
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
}

[dir="rtl"] .list-inside {
  padding-right: 0;
}

/* Atmosphere: soft grid (gaming HUD, no glow) */
.sg-surface {
  background-color: #eef3f1;
  background-image:
    linear-gradient(rgba(11, 26, 23, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 26, 23, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.sg-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(20, 184, 166, 0.22), transparent 55%),
    linear-gradient(155deg, #0a3d36 0%, #0b1a17 55%, #082820 100%);
}

.sg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 240, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 240, 0, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  pointer-events: none;
}

.sg-hero > * {
  position: relative;
  z-index: 1;
}

/* Motion */
@keyframes sg-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sg-rise {
  animation: sg-rise 0.55s ease-out both;
}

.sg-rise-delay-1 { animation-delay: 0.08s; }
.sg-rise-delay-2 { animation-delay: 0.16s; }
.sg-rise-delay-3 { animation-delay: 0.24s; }

.sg-icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.sg-icon--lg {
  width: 1.75rem;
  height: 1.75rem;
}

.sg-icon svg {
  width: 100%;
  height: 100%;
}

.sg-cat:hover .sg-icon {
  color: #0d9488;
  transform: translateY(-2px);
}

.sg-cat .sg-icon {
  transition: transform 0.2s ease, color 0.2s ease;
}

.sg-btn {
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sg-btn:hover {
  transform: translateY(-1px);
}

.sg-btn:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .sg-rise,
  .sg-rise-delay-1,
  .sg-rise-delay-2,
  .sg-rise-delay-3 {
    animation: none;
  }

  .sg-btn:hover,
  .sg-cat:hover .sg-icon {
    transform: none;
  }
}
