:root {
  --bg: #030611;
  --panel: rgba(8, 15, 34, 0.82);
  --panel-strong: #0a1228;
  --line: rgba(96, 165, 250, 0.18);
  --blue: #2f8cff;
  --cyan: #35d9ff;
  --blue-soft: #78b8ff;
  --white: #f5f9ff;
  --muted: #91a0bb;
  --success: #34e6a1;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 14%, rgba(47, 140, 255, 0.12), transparent 28%),
    radial-gradient(circle at 86% 78%, rgba(53, 217, 255, 0.08), transparent 26%),
    linear-gradient(145deg, #02040b 0%, #050a19 48%, #030611 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(47, 140, 255, 0.035) 45%, transparent 68%);
  transform: translateX(-100%);
  animation: pageSweep 9s linear infinite;
}

.noise,
.grid,
.orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  z-index: 2;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.grid {
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(67, 140, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 140, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
}

.orb {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.orb-one {
  top: -120px;
  left: -100px;
  background: var(--blue);
}

.orb-two {
  inset: auto -120px -130px auto;
  background: var(--cyan);
}

.page-shell {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(47, 140, 255, 0.2), rgba(5, 10, 25, 0.8));
  box-shadow: inset 0 0 18px rgba(47, 140, 255, 0.08), 0 8px 30px rgba(0, 92, 255, 0.16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 1.5px;
}

.brand-copy strong span {
  color: var(--blue);
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(52, 230, 161, 0.15);
  border-radius: 999px;
  color: #b6c7db;
  background: rgba(8, 17, 32, 0.58);
  font-size: 12px;
  letter-spacing: 0.4px;
  backdrop-filter: blur(16px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(52, 230, 161, 0.08), 0 0 13px rgba(52, 230, 161, 0.7);
  animation: pulse 2s ease-in-out infinite;
}

.maintenance-card {
  position: relative;
  flex: 1;
  min-height: 610px;
  margin: 10px 0 36px;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(400px, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(8, 15, 34, 0.97), rgba(3, 8, 22, 0.91)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
}

.maintenance-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(53, 217, 255, 0.45), transparent 25%, transparent 70%, rgba(47, 140, 255, 0.25));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.card-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  top: -210px;
  right: -140px;
  border-radius: 50%;
  background: rgba(47, 140, 255, 0.15);
  filter: blur(110px);
}

.visual-panel {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at center, rgba(47, 140, 255, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(11, 22, 49, 0.55), rgba(4, 9, 22, 0.22));
}

.visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 5px, rgba(47, 140, 255, 0.018) 6px);
}

.tech-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(68, 164, 255, 0.25);
}

.ring-one {
  width: 318px;
  height: 318px;
  border-style: dashed;
  animation: spin 28s linear infinite;
}

.ring-two {
  width: 245px;
  height: 245px;
  border-color: rgba(53, 217, 255, 0.2);
  box-shadow: inset 0 0 40px rgba(47, 140, 255, 0.04);
  animation: spinReverse 19s linear infinite;
}

.ring-three {
  width: 170px;
  height: 170px;
  border-width: 2px;
  border-color: rgba(47, 140, 255, 0.22);
  box-shadow: 0 0 34px rgba(47, 140, 255, 0.09);
}

.ring-one::before,
.ring-two::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 8%;
  left: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.core {
  position: relative;
  z-index: 2;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 217, 255, 0.45);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(23, 58, 113, 0.75), rgba(4, 11, 28, 0.9));
  box-shadow:
    0 0 0 10px rgba(47, 140, 255, 0.025),
    0 0 65px rgba(47, 140, 255, 0.24),
    inset 0 0 25px rgba(53, 217, 255, 0.1);
  transform: rotate(45deg);
  animation: coreFloat 5s ease-in-out infinite;
}

.core svg {
  width: 76px;
  transform: rotate(-45deg);
}

.core path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(53, 217, 255, 0.65));
}

.floating-code {
  position: absolute;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(53, 217, 255, 0.12);
  border-radius: 8px;
  color: rgba(133, 211, 255, 0.55);
  background: rgba(3, 10, 25, 0.62);
  font: 9px/1.3 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.6px;
  backdrop-filter: blur(8px);
}

.code-a {
  top: 25%;
  left: 8%;
  animation: drift 5s ease-in-out infinite;
}

.code-b {
  right: 7%;
  bottom: 23%;
  animation: drift 6s ease-in-out infinite reverse;
}

.content-panel {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 66px clamp(38px, 5vw, 72px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.eyebrow span {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -2.7px;
}

h1 em {
  color: transparent;
  background: linear-gradient(90deg, var(--blue-soft), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
  text-shadow: 0 0 35px rgba(47, 140, 255, 0.18);
}

.description {
  max-width: 610px;
  margin: 25px 0 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.progress-block {
  max-width: 610px;
  margin-bottom: 28px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  color: #bbc7d9;
  font-size: 12px;
}

.progress-copy strong {
  color: var(--cyan);
}

.progress-track {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.3);
}

.progress-track span {
  display: block;
  width: 76%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #276aff, var(--cyan));
  box-shadow: 0 0 16px rgba(53, 217, 255, 0.45);
  transition: width 700ms ease;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 610px;
}

.info-grid article {
  display: flex;
  gap: 12px;
  min-height: 90px;
  padding: 16px;
  border: 1px solid rgba(96, 165, 250, 0.12);
  border-radius: 16px;
  background: rgba(11, 21, 44, 0.48);
}

.info-icon {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 217, 255, 0.18);
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(47, 140, 255, 0.09);
  font-size: 13px;
}

.info-grid strong,
.info-grid small {
  display: block;
}

.info-grid strong {
  margin-bottom: 5px;
  color: #e7f1ff;
  font-size: 12px;
}

.info-grid small {
  color: #7788a4;
  font-size: 10px;
  line-height: 1.5;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 0 20px;
  border-radius: 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-button {
  color: #03101d;
  border: 0;
  background: linear-gradient(95deg, var(--blue-soft), var(--cyan));
  box-shadow: 0 12px 30px rgba(53, 217, 255, 0.16);
  text-decoration: none;
}

.primary-button b {
  font-size: 17px;
}

.secondary-button {
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: #c2cee0;
  background: rgba(8, 17, 36, 0.72);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  box-shadow: 0 15px 38px rgba(53, 217, 255, 0.24);
}

.secondary-button:hover {
  border-color: rgba(53, 217, 255, 0.36);
  background: rgba(14, 29, 59, 0.78);
}

footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #67758d;
  font-size: 10px;
  letter-spacing: 0.45px;
}

.secure-note {
  display: flex;
  align-items: center;
  gap: 7px;
}

.secure-note span {
  color: var(--success);
  text-shadow: 0 0 10px rgba(52, 230, 161, 0.6);
}

.security-toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  width: min(330px, calc(100% - 48px));
  display: grid;
  gap: 4px;
  padding: 15px 17px;
  border: 1px solid rgba(53, 217, 255, 0.25);
  border-radius: 14px;
  background: rgba(5, 12, 28, 0.94);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.security-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.security-toast strong {
  color: var(--cyan);
  font-size: 12px;
}

.security-toast span {
  color: #95a4bb;
  font-size: 10px;
}

.noscript-warning {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  color: white;
  background: #050816;
  text-align: center;
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes coreFloat {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translate(-6px, -6px); }
}

@keyframes drift {
  0%, 100% { transform: translateY(0); opacity: 0.38; }
  50% { transform: translateY(-10px); opacity: 0.75; }
}

@keyframes pageSweep {
  0% { transform: translateX(-120%); }
  38%, 100% { transform: translateX(120%); }
}

@media (max-width: 900px) {
  .maintenance-card {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .content-panel {
    padding: 48px clamp(25px, 7vw, 48px) 54px;
  }

  h1 {
    letter-spacing: -2px;
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    min-height: 94px;
  }

  .brand-copy small {
    display: none;
  }

  .system-status {
    padding: 9px 11px;
    font-size: 9px;
  }

  .maintenance-card {
    min-height: auto;
    margin-top: 0;
    border-radius: 22px;
  }

  .visual-panel {
    min-height: 290px;
  }

  .ring-one { width: 248px; height: 248px; }
  .ring-two { width: 195px; height: 195px; }
  .ring-three { width: 138px; height: 138px; }
  .core { width: 94px; height: 94px; border-radius: 25px; }
  .core svg { width: 60px; }
  .floating-code { display: none; }

  .content-panel {
    padding: 38px 23px 40px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 48px);
    letter-spacing: -1.8px;
  }

  .description {
    font-size: 13px;
    line-height: 1.7;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  footer {
    padding: 20px 0 25px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

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