:root {
  --ink: #f3f0e8;
  --muted: #a7aaa4;
  --dim: #72766f;
  --line: rgba(243, 240, 232, 0.14);
  --surface: #0b0d0c;
  --acid: #d8ff5f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.maintenance-page {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--surface);
  background-size: 64px 64px;
}

.maintenance-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.12;
  background-image: repeating-radial-gradient(
    circle at 20% 30%,
    rgba(255, 255, 255, 0.16) 0,
    rgba(255, 255, 255, 0.16) 0.5px,
    transparent 0.8px,
    transparent 4px
  );
  background-size: 8px 8px;
  mix-blend-mode: soft-light;
}

.ambient {
  position: absolute;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  z-index: -1;
  animation: ambient-drift 14s ease-in-out infinite alternate;
}

.ambient-one {
  background: var(--acid);
  right: -16rem;
  top: -18rem;
}

.ambient-two {
  width: 28rem;
  height: 28rem;
  background: #60d394;
  left: -18rem;
  bottom: -16rem;
  animation-delay: -7s;
}

.site-header,
.site-footer {
  width: min(100%, 90rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  height: 7.25rem;
  border-bottom: 1px solid var(--line);
  animation: fade-down 0.7s 0.05s both cubic-bezier(0.22, 1, 0.36, 1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 640;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 255, 95, 0.7);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px rgba(216, 255, 95, 0.8);
}

.brand-mark::before {
  transform: translate(-0.42rem, 0.26rem) scale(0.7);
}

.brand-mark::after {
  transform: translate(0.38rem, 0.34rem) scale(0.48);
}

.brand-mark span {
  transform: translate(0.05rem, -0.4rem);
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.58rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.025);
  color: #c8cbc4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 0 rgba(216, 255, 95, 0.6);
  animation: status-pulse 2.2s ease-out infinite;
}

.hero {
  width: min(100%, 90rem);
  min-height: calc(100svh - 14.5rem);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 7.5rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  animation: reveal-up 0.8s 0.2s both cubic-bezier(0.22, 1, 0.36, 1);
}

.eyebrow span {
  color: var(--acid);
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(4rem, 7.4vw, 7.8rem);
  line-height: 0.89;
  letter-spacing: -0.075em;
  font-weight: 520;
  text-wrap: balance;
  animation: reveal-up 0.9s 0.3s both cubic-bezier(0.22, 1, 0.36, 1);
}

.accent-line {
  display: block;
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.065em;
}

.intro {
  max-width: 34rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  letter-spacing: -0.015em;
  animation: reveal-up 0.9s 0.4s both cubic-bezier(0.22, 1, 0.36, 1);
}

.return-card {
  max-width: 34rem;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  padding: 1.35rem 0 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 1.25rem;
  border-top: 1px solid var(--line);
  animation: reveal-up 0.9s 0.5s both cubic-bezier(0.22, 1, 0.36, 1);
}

.return-card > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.return-label,
.working-label {
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.return-card strong {
  font-size: 0.96rem;
  font-weight: 540;
}

.progress-track {
  height: 2px;
  margin-bottom: 0.42rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--acid);
  box-shadow: 0 0 12px rgba(216, 255, 95, 0.8);
  animation: progress 2.8s ease-in-out infinite;
}

.working-label {
  margin-bottom: 0.05rem;
  white-space: nowrap;
}

.visual {
  width: min(100%, 35rem);
  aspect-ratio: 1;
  justify-self: center;
  position: relative;
  display: grid;
  place-items: center;
  animation: visual-enter 1.15s 0.25s both cubic-bezier(0.16, 1, 0.3, 1);
}

.visual::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 255, 95, 0.08), transparent 65%);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(243, 240, 232, 0.16);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: rgba(243, 240, 232, 0.45);
}

.orbit::before {
  top: 12%;
  left: 21%;
}

.orbit::after {
  right: 5%;
  bottom: 31%;
}

.orbit-outer {
  inset: 3%;
  animation: orbit-spin 26s linear infinite;
}

.orbit-inner {
  inset: 18%;
  border-color: rgba(216, 255, 95, 0.18);
  animation: orbit-spin-reverse 18s linear infinite;
}

.satellite {
  position: absolute;
  top: 50%;
  left: 100%;
  display: block;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 20px rgba(216, 255, 95, 0.55);
}

.satellite-small {
  width: 0.65rem;
  height: 0.65rem;
  transform: translate(-50%, -50%);
}

.satellite-large {
  width: 1rem;
  height: 1rem;
  transform: translate(-50%, -50%);
  background: var(--ink);
  box-shadow: 0 0 24px rgba(243, 240, 232, 0.36);
}

.core {
  position: relative;
  width: 43%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.core-halo {
  position: absolute;
  inset: -14%;
  border: 1px solid rgba(216, 255, 95, 0.3);
  border-radius: 50%;
  box-shadow:
    0 0 55px rgba(216, 255, 95, 0.12),
    inset 0 0 30px rgba(216, 255, 95, 0.05);
  animation: halo-breathe 3.6s ease-in-out infinite;
}

.core-disc {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 27%, rgba(255, 255, 255, 0.65), transparent 3%),
    radial-gradient(circle at 38% 32%, #efffb9, #c7f549 44%, #7ca71d 100%);
  box-shadow:
    0 0 80px rgba(216, 255, 95, 0.18),
    inset -20px -28px 50px rgba(35, 57, 2, 0.32);
  animation: core-float 5s ease-in-out infinite;
}

.core-shine {
  position: absolute;
  width: 120%;
  height: 35%;
  top: -5%;
  left: -45%;
  transform: rotate(-35deg);
  background: rgba(255, 255, 255, 0.25);
  filter: blur(8px);
}

.tool-line {
  position: absolute;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgba(25, 34, 6, 0.65);
}

.tool-line-one {
  width: 28%;
  left: 31%;
  top: 44%;
  transform: rotate(38deg);
}

.tool-line-two {
  width: 25%;
  right: 29%;
  top: 54%;
  transform: rotate(-42deg);
}

.tool-dot {
  position: absolute;
  width: 9%;
  aspect-ratio: 1;
  left: 45%;
  top: 45%;
  border: 2px solid rgba(25, 34, 6, 0.7);
  border-radius: 50%;
}

.spark {
  position: absolute;
  color: var(--acid);
  font-family: Georgia, serif;
  text-shadow: 0 0 16px rgba(216, 255, 95, 0.7);
  animation: twinkle 2.6s ease-in-out infinite;
}

.spark-one {
  top: 12%;
  right: 22%;
  font-size: 1.1rem;
}

.spark-two {
  left: 10%;
  bottom: 21%;
  font-size: 0.8rem;
  animation-delay: -1.2s;
}

.spark-three {
  right: 8%;
  bottom: 12%;
  font-size: 2rem;
  animation-delay: -0.7s;
}

.visual-note {
  position: absolute;
  right: 1%;
  bottom: 12%;
  min-width: 14rem;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(12, 15, 12, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  animation: note-float 4.5s ease-in-out infinite;
}

.visual-note span {
  color: var(--acid);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.visual-note strong {
  font-size: 0.76rem;
  font-weight: 480;
  color: #d7d9d3;
}

.site-footer {
  min-height: 7.25rem;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fade-up 0.7s 0.75s both ease-out;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-meta span {
  color: var(--acid);
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-0.8rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes visual-enter {
  from { opacity: 0; transform: scale(0.86) rotate(-3deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 255, 95, 0.55); }
  55%, 100% { box-shadow: 0 0 0 0.5rem rgba(216, 255, 95, 0); }
}

@keyframes progress {
  0% { transform: translateX(-110%); }
  55%, 100% { transform: translateX(270%); }
}

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

@keyframes orbit-spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes halo-breathe {
  50% { transform: scale(1.07); opacity: 0.66; }
}

@keyframes core-float {
  50% { transform: translateY(-0.7rem) rotate(2deg); }
}

@keyframes note-float {
  50% { transform: translateY(-0.55rem); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0); }
  50% { opacity: 1; transform: scale(1.18) rotate(20deg); }
}

@keyframes ambient-drift {
  to { transform: translate(4rem, 2rem) scale(1.12); }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 0 3rem;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(4rem, 14vw, 7rem);
  }

  .visual {
    width: min(85vw, 32rem);
    margin-top: -1rem;
  }
}

@media (max-width: 560px) {
  .maintenance-page {
    padding-inline: 1.2rem;
    background-size: 44px 44px;
  }

  .site-header {
    height: 5.5rem;
  }

  .status-pill {
    padding: 0.52rem;
    font-size: 0;
    gap: 0;
  }

  .status-dot {
    width: 0.5rem;
    height: 0.5rem;
  }

  .hero {
    padding-top: 3.25rem;
    gap: 2rem;
  }

  .eyebrow {
    margin-bottom: 1.5rem;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5.2rem);
  }

  .intro {
    margin-top: 1.5rem;
    font-size: 1rem;
  }

  .return-card {
    margin-top: 2.5rem;
    grid-template-columns: auto 1fr;
  }

  .working-label {
    display: none;
  }

  .visual {
    width: min(94vw, 27rem);
  }

  .visual-note {
    right: 0;
    bottom: 8%;
    min-width: 12.5rem;
  }

  .site-footer {
    min-height: 6rem;
    justify-content: center;
  }

  .footer-meta {
    display: none;
  }
}

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