/* Arsam Trade — standalone maintenance page (no WordPress, no external CDN) */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #03172f;
  --navy-900: #061d3b;
  --navy-800: #0a274b;
  --gold-500: #d7a53c;
  --gold-400: #e7b64d;
  --gold-300: #f0c86a;
  --text-muted: rgba(255, 255, 255, 0.72);
  --font: "Vazirmatn", Tahoma, Arial, sans-serif;
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: var(--font);
  color: #fff;
  background: var(--navy-950);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.maintenance {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  isolation: isolate;
}

.maintenance__bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(215, 165, 60, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 80%, rgba(15, 49, 88, 0.6) 0%, transparent 50%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
}

.maintenance__grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(215, 165, 60, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 165, 60, 0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
  animation: grid-drift 28s linear infinite;
}

@keyframes grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}

.maintenance__orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.maintenance__orb--1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -60px;
  background: rgba(215, 165, 60, 0.12);
  animation: orb-float 8s ease-in-out infinite;
}

.maintenance__orb--2 {
  width: 280px;
  height: 280px;
  bottom: -60px;
  left: -40px;
  background: rgba(10, 39, 75, 0.8);
  animation: orb-float 10s ease-in-out infinite reverse;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.05); }
}

.maintenance__card {
  width: min(100%, 520px);
  text-align: center;
  padding: 48px 36px 40px;
  border-radius: 20px;
  border: 1px solid rgba(215, 165, 60, 0.22);
  background: rgba(6, 29, 59, 0.72);
  backdrop-filter: blur(16px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: card-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.maintenance__logo-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
}

.maintenance__logo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(215, 165, 60, 0.35);
  animation: ring-pulse 2.4s ease-in-out infinite;
}

.maintenance__logo-ring--2 {
  inset: -16px;
  border-color: rgba(215, 165, 60, 0.15);
  animation-delay: 0.6s;
}

@keyframes ring-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

.maintenance__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(75%) sepia(39%) saturate(792%) hue-rotate(357deg) brightness(96%) contrast(91%);
  animation: logo-glow 3s ease-in-out infinite;
}

@keyframes logo-glow {
  0%, 100% {
    filter: brightness(0) saturate(100%) invert(75%) sepia(39%) saturate(792%) hue-rotate(357deg) brightness(96%) contrast(91%);
    transform: scale(1);
  }
  50% {
    filter: brightness(0) saturate(100%) invert(82%) sepia(45%) saturate(900%) hue-rotate(357deg) brightness(105%) contrast(95%);
    transform: scale(1.03);
  }
}

.maintenance__brand-fa {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
  animation: fade-up 0.8s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.maintenance__brand-en {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: var(--gold-400);
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fade-up 0.8s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.maintenance__divider {
  width: 64px;
  height: 2px;
  margin: 0 auto 28px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  animation: fade-up 0.8s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.maintenance__title {
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 700;
  line-height: 1.65;
  margin-bottom: 14px;
  animation: fade-up 0.8s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.maintenance__text {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-muted);
  margin-bottom: 32px;
  animation: fade-up 0.8s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.maintenance__progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 24px;
  animation: fade-up 0.8s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.maintenance__progress-bar {
  height: 100%;
  width: 35%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300), var(--gold-500));
  background-size: 200% 100%;
  animation: progress-slide 2.2s ease-in-out infinite;
}

@keyframes progress-slide {
  0% {
    transform: translateX(-120%);
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    transform: translateX(380%);
    background-position: 0% 50%;
  }
}

.maintenance__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  animation: fade-up 0.8s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.maintenance__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  animation: dot-bounce 1.4s ease-in-out infinite;
}

.maintenance__dot:nth-child(2) { animation-delay: 0.2s; }
.maintenance__dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 80%, 100% {
    transform: scale(0.65);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.maintenance__contact {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  animation: fade-up 0.8s 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.maintenance__contact a {
  color: var(--gold-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

.maintenance__domain {
  font-weight: 600;
  letter-spacing: 0.3px;
}

.maintenance__contact-sep {
  margin-inline: 10px;
  opacity: 0.35;
}

.maintenance__contact a:hover {
  color: var(--gold-300);
}

.maintenance__footer {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.3px;
}

@media (max-width: 480px) {
  .maintenance__card {
    padding: 36px 24px 32px;
  }

  .maintenance__logo-wrap {
    width: 84px;
    height: 84px;
    margin-bottom: 22px;
  }

  .maintenance__logo {
    width: 60px;
    height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
