:root {
  --primary: #7A0C1E;
  --accent: #F2C94C;
  --secondary: #C89B3C;
  --bg-black: #050303;
  --bg-maroon: #26050B;
  --text: #FFF7E7;
  --muted: #E8D9BA;
  --soft-gold: rgba(242, 201, 76, 0.18);
  --border-gold: rgba(242, 201, 76, 0.42);
  --shadow-gold: rgba(242, 201, 76, 0.22);
  --card-bg: rgba(18, 8, 9, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(122, 12, 30, 0.72), transparent 34rem),
    linear-gradient(135deg, var(--bg-black) 0%, var(--bg-maroon) 48%, #080404 100%);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(242, 201, 76, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 201, 76, 0.035) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 78%);
}

body::after {
  background:
    radial-gradient(circle at 18% 24%, rgba(242, 201, 76, 0.11), transparent 18rem),
    radial-gradient(circle at 82% 78%, rgba(200, 155, 60, 0.12), transparent 20rem);
  animation: ambientShift 16s ease-in-out infinite alternate;
}

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.background-glow {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 35%, rgba(122, 12, 30, 0.38), transparent 26rem),
    radial-gradient(circle at 70% 55%, rgba(242, 201, 76, 0.09), transparent 28rem);
  filter: blur(18px);
  animation: gradientDrift 18s cubic-bezier(0.45, 0, 0.2, 1) infinite alternate;
}

.maintenance-page {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 64px);
}

.maintenance-card {
  width: min(100%, 930px);
  padding: clamp(32px, 6vw, 72px) clamp(22px, 5vw, 72px);
  text-align: center;
  border: 1px solid var(--border-gold);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 247, 231, 0.055), transparent 36%),
    linear-gradient(180deg, rgba(122, 12, 30, 0.34), rgba(5, 3, 3, 0.84)),
    var(--card-bg);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 247, 231, 0.09),
    0 0 70px rgba(122, 12, 30, 0.34);
  backdrop-filter: blur(18px);
  animation: cardReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 18px;
  margin-bottom: 20px;
  border: 1px solid rgba(242, 201, 76, 0.36);
  border-radius: 999px;
  background: rgba(255, 247, 231, 0.055);
  box-shadow: inset 0 0 26px rgba(242, 201, 76, 0.07);
}

.logo-img[src="#"] {
  display: none;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo-text {
  color: var(--accent);
  font-size: clamp(0.92rem, 2vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.temple-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  color: var(--accent);
  font-size: clamp(2.8rem, 8vw, 4.2rem);
  border: 1px solid rgba(242, 201, 76, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(242, 201, 76, 0.16), transparent 68%),
    rgba(122, 12, 30, 0.28);
  box-shadow:
    0 0 40px rgba(242, 201, 76, 0.12),
    inset 0 0 28px rgba(242, 201, 76, 0.08);
  animation: templeFloat 5.8s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--secondary);
  font-size: clamp(0.76rem, 1.7vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(2.1rem, 6.6vw, 5.25rem);
  line-height: 1.05;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.46);
}

.royal-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(280px, 78%);
  height: 24px;
  margin: 28px auto 24px;
}

.royal-divider::before,
.royal-divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(242, 201, 76, 0.72));
}

.royal-divider::after {
  background: linear-gradient(90deg, rgba(242, 201, 76, 0.72), transparent);
}

.royal-divider span {
  width: 9px;
  height: 9px;
  margin: 0 14px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  background: var(--primary);
  box-shadow: 0 0 20px var(--shadow-gold);
}

.description {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 2.25vw, 1.2rem);
  line-height: 1.8;
  text-wrap: balance;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(108px, 1fr));
  gap: clamp(12px, 2vw, 20px);
  max-width: 640px;
  margin: clamp(34px, 6vw, 50px) auto;
}

.time-box {
  position: relative;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  overflow: hidden;
  border: 1px solid rgba(242, 201, 76, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 247, 231, 0.06), rgba(255, 247, 231, 0.018)),
    rgba(255, 247, 231, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 38px rgba(0, 0, 0, 0.24);
}

.time-box::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, transparent 20%, rgba(242, 201, 76, 0.09), transparent 78%);
  transform: translateX(-120%);
  animation: quietShine 8s ease-in-out infinite;
}

.time-box strong {
  position: relative;
  color: var(--accent);
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.time-box span {
  position: relative;
  margin-top: 10px;
  color: rgba(255, 247, 231, 0.76);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 30px;
  overflow: hidden;
  color: #210306;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(255, 247, 231, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--accent), var(--secondary));
  box-shadow:
    0 18px 42px rgba(242, 201, 76, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition: transform 260ms ease, box-shadow 260ms ease, filter 260ms ease;
}

.cta-button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.38), transparent 55%);
  transform: translateX(-130%);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button span,
.cta-button {
  position: relative;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-3px);
  filter: saturate(1.08);
  box-shadow:
    0 26px 58px rgba(242, 201, 76, 0.28),
    0 0 0 6px rgba(242, 201, 76, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cta-button:hover::before,
.cta-button:focus-visible::before {
  transform: translateX(130%);
}

.cta-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 5px;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes quietShine {
  0%,
  56% {
    transform: translateX(-120%);
  }
  74%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes gradientDrift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 1.5%, 0) scale(1.05);
  }
}

@keyframes ambientShift {
  from {
    opacity: 0.72;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (max-width: 700px) {
  .maintenance-page {
    min-height: 100svh;
    padding: 18px;
  }

  .maintenance-card {
    border-radius: 22px;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-box {
    min-height: 104px;
    border-radius: 16px;
  }

  .cta-button {
    width: 100%;
    max-width: 330px;
  }
}

@media (max-width: 420px) {
  .maintenance-card {
    padding-inline: 18px;
  }

  .logo-wrap {
    padding-inline: 14px;
  }

  .logo-text {
    letter-spacing: 0.04em;
  }

  .temple-icon {
    width: 74px;
    height: 74px;
  }

  .countdown {
    gap: 10px;
  }
}

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