/* =========================================================
   CYBERPUNK MAINTENANCE PAGE
   No external images, fonts, or libraries required
   ========================================================= */

:root {
  --background: #030608;
  --background-secondary: #071014;
  --panel: rgba(7, 16, 20, 0.94);
  --panel-border: rgba(58, 255, 174, 0.25);

  --green: #3affae;
  --green-bright: #7dffd0;
  --green-dark: #087a56;
  --green-muted: rgba(58, 255, 174, 0.12);

  --blue: #38bdf8;
  --cyan: #52f7ff;

  --text: #edfdf7;
  --text-muted: #9bb3aa;
  --text-dark: #07110d;

  --dog-main: #c8894f;
  --dog-light: #eab77a;
  --dog-dark: #6f3f25;
  --dog-nose: #111718;

  --computer: #17252a;
  --computer-light: #2c4046;
  --computer-dark: #091114;

  --shadow-green: 0 0 25px rgba(58, 255, 174, 0.24);
  --shadow-cyan: 0 0 30px rgba(82, 247, 255, 0.16);
}

/* =========================================================
   RESET
   ========================================================= */

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

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(
      circle at 50% 15%,
      rgba(14, 92, 68, 0.22),
      transparent 35%
    ),
    radial-gradient(
      circle at 85% 75%,
      rgba(13, 71, 90, 0.16),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      var(--background) 0%,
      #061014 50%,
      #020405 100%
    );
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* =========================================================
   BACKGROUND EFFECTS
   ========================================================= */

.cyber-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(
      rgba(58, 255, 174, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(58, 255, 174, 0.08) 1px,
      transparent 1px
    );
  background-size: 48px 48px;
  mask-image:
    linear-gradient(
      to bottom,
      transparent,
      black 18%,
      black 82%,
      transparent
    );
}

.cyber-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 49.8%,
      rgba(58, 255, 174, 0.12) 50%,
      transparent 50.2%
    ),
    linear-gradient(
      transparent 49.8%,
      rgba(58, 255, 174, 0.12) 50%,
      transparent 50.2%
    );
  background-size: 240px 240px;
}

.scanline-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.06;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.12) 4px
    );
}

/* =========================================================
   PAGE LAYOUT
   ========================================================= */

.maintenance-page {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.maintenance-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 40px;
  align-items: center;
  width: min(1100px, 100%);
  min-height: 590px;
  padding: 64px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background:
    linear-gradient(
      145deg,
      rgba(10, 24, 28, 0.97),
      rgba(3, 9, 11, 0.98)
    );
  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    var(--shadow-green);
  backdrop-filter: blur(16px);
}

.maintenance-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  width: 76%;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--green),
      transparent
    );
  box-shadow: 0 0 24px var(--green);
}

.maintenance-card::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -180px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(58, 255, 174, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(58, 255, 174, 0.025),
    0 0 0 110px rgba(58, 255, 174, 0.015);
}

.status-label {
  position: absolute;
  top: 25px;
  left: 30px;
  z-index: 4;
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--green-bright);
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow:
    0 0 0 5px rgba(58, 255, 174, 0.08),
    0 0 13px var(--green);
  animation: statusPulse 1.8s ease-in-out infinite;
}

/* =========================================================
   COPY
   ========================================================= */

.maintenance-copy {
  position: relative;
  z-index: 3;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h1 span {
  display: block;
  color: transparent;
  background:
    linear-gradient(
      90deg,
      var(--green),
      var(--cyan)
    );
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 14px rgba(58, 255, 174, 0.16));
}

.message {
  max-width: 590px;
  margin: 28px 0 30px;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.75;
}

.system-status {
  max-width: 520px;
  padding: 17px 19px;
  border: 1px solid rgba(58, 255, 174, 0.16);
  border-radius: 14px;
  background: rgba(58, 255, 174, 0.035);
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.status-name {
  color: var(--text-muted);
}

.status-value {
  color: var(--green-bright);
  text-align: right;
}

.status-progress {
  position: relative;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.status-progress span {
  position: absolute;
  inset: 0;
  width: 36%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--green),
      var(--cyan),
      transparent
    );
  box-shadow: 0 0 12px var(--green);
  animation: progressScan 2.8s ease-in-out infinite;
}

.footer-note {
  margin: 18px 0 0;
  color: rgba(155, 179, 170, 0.62);
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
}

/* =========================================================
   ILLUSTRATION CONTAINER
   ========================================================= */

.illustration {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 380px;
  transform: translateY(18px);
}

.floor-shadow {
  position: absolute;
  right: 4%;
  bottom: 10px;
  width: 92%;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  filter: blur(11px);
}

/* =========================================================
   COMPUTER
   ========================================================= */

.computer {
  position: absolute;
  top: 36px;
  left: 3%;
  width: 245px;
  height: 300px;
}

.monitor {
  position: absolute;
  top: 0;
  left: 0;
  width: 215px;
  height: 160px;
  padding: 10px;
  border: 2px solid var(--computer-light);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      #22363c,
      var(--computer-dark)
    );
  box-shadow:
    0 17px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.09);
  transform: rotate(-2deg);
}

.monitor::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff5d5d;
  box-shadow: 0 0 9px rgba(255, 93, 93, 0.8);
}

.monitor-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(58, 255, 174, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(
      155deg,
      #071113,
      #020606
    );
}

.monitor-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 4px,
      rgba(58, 255, 174, 0.07) 5px
    );
}

.screen-glow {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 120px;
  height: 80px;
  border-radius: 50%;
  background: rgba(58, 255, 174, 0.08);
  filter: blur(28px);
  transform: translate(-50%, -50%);
}

.screen-message {
  position: absolute;
  top: 43px;
  left: 50%;
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--green);
  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  transform: translateX(-50%);
}

.warning-icon {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(58, 255, 174, 0.25);
}

.screen-lines {
  position: absolute;
  top: 82px;
  left: 50%;
  display: grid;
  gap: 8px;
  width: 100px;
  transform: translateX(-50%);
}

.screen-lines span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(58, 255, 174, 0.15);
}

.screen-lines span:nth-child(2) {
  width: 72%;
}

.screen-lines span:nth-child(3) {
  width: 46%;
}

.monitor-neck {
  position: absolute;
  top: 156px;
  left: 86px;
  width: 43px;
  height: 51px;
  background:
    linear-gradient(
      90deg,
      var(--computer-dark),
      var(--computer-light),
      var(--computer-dark)
    );
}

.monitor-base {
  position: absolute;
  top: 196px;
  left: 52px;
  width: 118px;
  height: 20px;
  border-radius: 50% 50% 10px 10px;
  background:
    linear-gradient(
      to bottom,
      var(--computer-light),
      var(--computer-dark)
    );
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   CABLE AND PLUG
   ========================================================= */

.computer-cable {
  position: absolute;
  top: 127px;
  left: 190px;
  width: 150px;
  height: 160px;
}

.cable-section {
  position: absolute;
  display: block;
  border: 5px solid #111b1e;
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
}

.cable-one {
  top: 0;
  left: -2px;
  width: 58px;
  height: 68px;
  transform: rotate(18deg);
}

.cable-two {
  top: 45px;
  left: 29px;
  width: 72px;
  height: 85px;
  transform: rotate(43deg);
}

.cable-three {
  top: 96px;
  left: 82px;
  width: 46px;
  height: 58px;
  transform: rotate(69deg);
}

.plug {
  position: absolute;
  top: 131px;
  left: 124px;
  width: 29px;
  height: 19px;
  border-radius: 5px;
  background:
    linear-gradient(
      to bottom,
      #27383d,
      #0b1113
    );
  transform: rotate(15deg);
  box-shadow: 0 5px 9px rgba(0, 0, 0, 0.35);
}

.plug-prong {
  position: absolute;
  right: -9px;
  width: 11px;
  height: 3px;
  border-radius: 2px;
  background: #89989a;
}

.prong-one {
  top: 4px;
}

.prong-two {
  bottom: 4px;
}

/* =========================================================
   DOG
   ========================================================= */

.dog {
  position: absolute;
  right: 1%;
  bottom: 19px;
  width: 205px;
  height: 295px;
  animation: dogBreathe 3.4s ease-in-out infinite;
}

.dog-body {
  position: absolute;
  right: 42px;
  bottom: 43px;
  width: 108px;
  height: 145px;
  border-radius: 52% 48% 40% 42%;
  background:
    linear-gradient(
      120deg,
      var(--dog-light),
      var(--dog-main) 50%,
      #9b5c34
    );
  box-shadow:
    inset -9px -8px 0 rgba(71, 34, 18, 0.12),
    0 18px 24px rgba(0, 0, 0, 0.24);
}

.dog-chest {
  position: absolute;
  top: 18px;
  left: 19px;
  width: 55px;
  height: 95px;
  border-radius: 50%;
  background: rgba(255, 225, 184, 0.62);
  transform: rotate(8deg);
}

.dog-head {
  position: absolute;
  top: 38px;
  right: 32px;
  z-index: 4;
  width: 129px;
  height: 116px;
}

.dog-face {
  position: absolute;
  inset: 8px 8px 0;
  z-index: 2;
  border-radius: 48% 48% 44% 44%;
  background:
    linear-gradient(
      145deg,
      var(--dog-light),
      var(--dog-main) 55%,
      #9c5a32
    );
  box-shadow:
    inset -7px -6px 0 rgba(71, 34, 18, 0.12),
    0 12px 20px rgba(0, 0, 0, 0.2);
}

.dog-ear {
  position: absolute;
  top: 0;
  z-index: 1;
  width: 48px;
  height: 83px;
  background:
    linear-gradient(
      to bottom,
      var(--dog-main),
      var(--dog-dark)
    );
}

.dog-ear::after {
  content: "";
  position: absolute;
  inset: 13px 11px;
  border-radius: inherit;
  background: rgba(91, 43, 30, 0.38);
}

.dog-ear-left {
  left: -5px;
  border-radius: 80% 25% 55% 55%;
  transform: rotate(18deg);
}

.dog-ear-right {
  right: -5px;
  border-radius: 25% 80% 55% 55%;
  transform: rotate(-18deg);
}

.dog-eye {
  position: absolute;
  top: 38px;
  z-index: 3;
  width: 10px;
  height: 13px;
  border-radius: 50%;
  background: #101516;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.55);
}

.dog-eye-left {
  left: 30px;
}

.dog-eye-right {
  right: 30px;
}

.dog-muzzle {
  position: absolute;
  top: 55px;
  left: 50%;
  z-index: 3;
  width: 62px;
  height: 47px;
  border-radius: 50%;
  background: #f0c48e;
  transform: translateX(-50%);
}

.dog-nose {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 24px;
  height: 17px;
  border-radius: 55% 55% 70% 70%;
  background:
    radial-gradient(
      circle at 35% 25%,
      #4f5a5c,
      var(--dog-nose) 40%
    );
  transform: translateX(-50%);
}

.dog-mouth {
  position: absolute;
  top: 23px;
  left: 50%;
  width: 24px;
  height: 13px;
  border-bottom: 2px solid #6c3b2a;
  border-radius: 50%;
  transform: translateX(-50%);
}

.dog-collar {
  position: absolute;
  top: 145px;
  right: 54px;
  z-index: 5;
  width: 88px;
  height: 13px;
  border-radius: 999px;
  background:
    linear-gradient(
      to bottom,
      var(--green-bright),
      var(--green-dark)
    );
  box-shadow: 0 0 10px rgba(58, 255, 174, 0.38);
}

.collar-tag {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 17px;
  height: 19px;
  border: 2px solid #91fff0;
  border-radius: 50% 50% 55% 55%;
  background: #0d766a;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(82, 247, 255, 0.36);
}

.dog-leg {
  position: absolute;
  bottom: 20px;
  z-index: 5;
  width: 42px;
  height: 87px;
  border-radius: 45% 45% 30% 30%;
  background:
    linear-gradient(
      100deg,
      var(--dog-light),
      var(--dog-main)
    );
}

.dog-leg-left {
  right: 105px;
  transform: rotate(4deg);
}

.dog-leg-right {
  right: 50px;
  transform: rotate(-3deg);
}

.dog-paw {
  position: absolute;
  bottom: -5px;
  left: -6px;
  width: 54px;
  height: 25px;
  border-radius: 60% 60% 38% 38%;
  background: var(--dog-light);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.22);
}

.dog-tail {
  position: absolute;
  right: 8px;
  bottom: 55px;
  z-index: 0;
  width: 85px;
  height: 47px;
  border: 18px solid var(--dog-main);
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-21deg);
  transform-origin: left center;
  animation: tailWag 1.7s ease-in-out infinite;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes statusPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes progressScan {
  0% {
    left: -40%;
  }

  55%,
  100% {
    left: 105%;
  }
}

@keyframes dogBreathe {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes tailWag {
  0%,
  100% {
    transform: rotate(-28deg);
  }

  50% {
    transform: rotate(-8deg);
  }
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 900px) {
  .maintenance-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 75px 35px 42px;
    text-align: center;
  }

  .maintenance-copy {
    order: 1;
  }

  .illustration {
    order: 2;
    width: min(470px, 100%);
    min-height: 360px;
    margin: 0 auto;
  }

  .message,
  .system-status {
    margin-right: auto;
    margin-left: auto;
  }

  .system-status {
    text-align: left;
  }

  h1 {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .maintenance-page {
    padding: 14px;
  }

  .maintenance-card {
    min-height: calc(100vh - 28px);
    padding: 78px 20px 32px;
    border-radius: 20px;
  }

  .status-label {
    top: 24px;
    left: 20px;
    font-size: 0.62rem;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .message {
    margin-top: 22px;
    font-size: 0.98rem;
  }

  .status-row {
    flex-direction: column;
    gap: 5px;
  }

  .status-value {
    text-align: left;
  }

  .illustration {
    min-height: 310px;
    transform: scale(0.86);
    transform-origin: top center;
  }

  .computer {
    left: -12px;
  }

  .dog {
    right: -8px;
  }
}

/* =========================================================
   ACCESSIBILITY: REDUCED MOTION
   ========================================================= */

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