:root {
  --purple-950: #261041;
  --purple-900: #35145e;
  --purple-800: #492080;
  --purple-700: #5c2aa0;
  --purple-600: #7440bc;
  --lavender-100: #efe8fc;
  --ink: #251d31;
  --muted: #6d6578;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--purple-950);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--purple-950);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.maintenance-page {
  min-height: 100svh;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 12%, rgba(153, 100, 221, .42), transparent 31%),
    radial-gradient(circle at 88% 85%, rgba(118, 52, 184, .38), transparent 30%),
    linear-gradient(135deg, #2d124d 0%, #421970 48%, #2c104d 100%);
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .45;
  pointer-events: none;
}

.ambient-one {
  width: 26rem;
  height: 26rem;
  top: -16rem;
  right: 3%;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 0 0 4rem rgba(255, 255, 255, .018), 0 0 0 8rem rgba(255, 255, 255, .012);
}

.ambient-two {
  width: 18rem;
  height: 18rem;
  left: -11rem;
  bottom: -6rem;
  background: rgba(130, 71, 190, .23);
  box-shadow: 0 0 5rem rgba(154, 92, 220, .28);
}

.dot-grid {
  position: absolute;
  width: 10rem;
  height: 10rem;
  right: 5%;
  top: 8%;
  opacity: .18;
  background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px);
  background-size: 15px 15px;
  mask-image: linear-gradient(to bottom left, black, transparent 75%);
}

.maintenance-card {
  max-width: 1140px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 2rem;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2rem 6rem rgba(18, 5, 34, .42), 0 .25rem 1rem rgba(19, 5, 35, .12);
  animation: card-in .85s cubic-bezier(.2, .75, .25, 1) both;
}

.content-panel {
  min-height: 690px;
  padding: clamp(2rem, 4vw, 4.25rem);
}

.brand-logo {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 1.25rem;
  box-shadow: 0 .75rem 2rem rgba(84, 38, 147, .18);
}

.content-copy {
  max-width: 600px;
  padding: 2.25rem 0;
}

.status-pill {
  margin-bottom: 1.3rem;
  padding: .55rem .85rem;
  border: 1px solid #e0d2f5;
  border-radius: 999px;
  color: var(--purple-700);
  background: #f7f3fd;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.status-pulse {
  position: relative;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #7d42c4;
}

.status-pulse::after {
  content: "";
  position: absolute;
  inset: -.3rem;
  border: 1px solid #7d42c4;
  border-radius: inherit;
  animation: pulse 1.8s ease-out infinite;
}

h1 {
  max-width: 610px;
  margin: 0 0 1.35rem;
  color: var(--purple-900);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .98;
}

.lead-copy {
  max-width: 585px;
  margin-bottom: 1rem;
  color: #493f55;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
}

.body-copy,
.closing-copy {
  max-width: 585px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.7;
}

.closing-copy strong {
  color: var(--purple-700);
  font-weight: 700;
}

.page-footer {
  padding-top: 1.35rem;
  border-top: 1px solid #ece8ef;
  color: #8a8391;
  font-size: .78rem;
}

.secure-note svg {
  fill: #846b9e;
}

.visual-panel {
  position: relative;
  min-height: 690px;
  flex-direction: column;
  overflow: hidden;
  padding: 2rem;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 36%, rgba(207, 172, 255, .2), transparent 29%),
    linear-gradient(150deg, #6735aa 0%, #4b2083 53%, #36145f 100%);
}

.visual-panel::before,
.visual-panel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}

.visual-panel::before {
  width: 32rem;
  height: 32rem;
  top: -19rem;
  right: -19rem;
}

.visual-panel::after {
  width: 24rem;
  height: 24rem;
  bottom: -16rem;
  left: -15rem;
}

.maintenance-visual {
  position: relative;
  width: min(21rem, 75vw);
  aspect-ratio: 1;
  margin-top: -1rem;
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  animation: rotate 14s linear infinite;
}

.orbit-inner {
  inset: 13%;
  border-style: dashed;
  border-color: rgba(255, 255, 255, .28);
  animation-duration: 9s;
  animation-direction: reverse;
}

.orbit-dot {
  position: absolute;
  top: 12%;
  right: 12%;
  width: .72rem;
  height: .72rem;
  border: 3px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 1rem #e4ccff;
}

.orbit-inner .orbit-dot {
  top: auto;
  right: auto;
  bottom: 5%;
  left: 25%;
  width: .5rem;
  height: .5rem;
}

.core-glow {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: rgba(223, 202, 255, .15);
  box-shadow: 0 0 4rem rgba(224, 197, 255, .26);
  animation: breathe 3.6s ease-in-out infinite;
}

.tool-card {
  position: absolute;
  inset: 33%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 28%;
  background: linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3), 0 1.4rem 3rem rgba(20, 2, 41, .35);
  backdrop-filter: blur(10px);
  transform: rotate(-6deg);
  animation: float 4.5s ease-in-out infinite;
}

.tool-icon {
  width: 58%;
  filter: drop-shadow(0 .5rem .6rem rgba(34, 7, 61, .25));
}

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .13);
  box-shadow: 0 .8rem 2rem rgba(27, 3, 51, .22);
  backdrop-filter: blur(8px);
}

.chip-one {
  top: 21%;
  left: 3%;
  width: 4.25rem;
  height: 2.1rem;
  gap: .28rem;
  border-radius: 999px;
  animation: float 4s .5s ease-in-out infinite;
}

.chip-one span {
  width: .36rem;
  height: .36rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  animation: loading 1.3s ease-in-out infinite;
}

.chip-one span:nth-child(2) { animation-delay: .16s; }
.chip-one span:nth-child(3) { animation-delay: .32s; }

.chip-two {
  right: 2%;
  bottom: 22%;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  animation: float 5s 1s ease-in-out infinite;
}

.chip-two svg {
  width: 1.6rem;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark {
  position: absolute;
  color: rgba(255, 255, 255, .78);
  animation: twinkle 2.4s ease-in-out infinite;
}

.spark-one { top: 10%; right: 26%; font-size: 1.2rem; }
.spark-two { left: 21%; bottom: 10%; font-size: .75rem; animation-delay: .9s; }

.visual-caption {
  position: relative;
  z-index: 1;
  margin: 2.35rem 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.55;
  text-align: center;
}

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

@keyframes pulse {
  0% { opacity: .85; transform: scale(.35); }
  75%, 100% { opacity: 0; transform: scale(1.55); }
}

@keyframes rotate { to { transform: rotate(360deg); } }

@keyframes breathe {
  0%, 100% { opacity: .7; transform: scale(.95); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
}

@keyframes loading {
  0%, 65%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(.75) rotate(0); }
  50% { opacity: 1; transform: scale(1.2) rotate(18deg); }
}

@media (max-width: 991.98px) {
  .maintenance-card { max-width: 720px; }
  .visual-panel { min-height: 330px; }
  .maintenance-visual { width: min(16rem, 68vw); margin: -1rem 0 -1.5rem; }
  .visual-caption { position: absolute; right: 2rem; bottom: 1.75rem; margin: 0; text-align: right; }
  .content-panel { min-height: auto; }
}

@media (min-width: 992px) {
  .visual-panel {
    height: 100%;
  }
}

@media (max-width: 575.98px) {
  .maintenance-page { background: linear-gradient(150deg, #2e114f 0%, #42186f 100%); }
  .container { padding-right: .75rem; padding-left: .75rem; }
  .maintenance-card { border-radius: 1.4rem; }
  .content-panel { padding: 1.5rem; }
  .brand-logo { width: 82px; height: 82px; border-radius: 1rem; }
  .content-copy { padding: 1.8rem 0 2rem; }
  .status-pill { margin-bottom: 1rem; font-size: .65rem; }
  h1 { margin-bottom: 1.15rem; font-size: clamp(2.3rem, 11.5vw, 3rem); }
  .lead-copy { font-size: 1.04rem; line-height: 1.48; }
  .body-copy, .closing-copy { font-size: .91rem; line-height: 1.6; }
  .page-footer { align-items: flex-start !important; flex-direction: column; }
  .visual-panel { min-height: 265px; padding: 1rem; }
  .maintenance-visual { width: 13.5rem; margin: -1rem auto -2rem; transform: translateY(-.5rem); }
  .visual-caption { right: 1.25rem; bottom: 1.15rem; font-size: .72rem; }
}

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