:root {
  --bg: #07101f;
  --surface: #0d192c;
  --surface-2: #111f35;
  --text: #f6f8fc;
  --muted: #9ca9bd;
  --blue: #3282ff;
  --blue-light: #71adff;
  --border: rgba(255, 255, 255, .1);
  --green: #50d890;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 40%, rgba(47, 128, 255, .16), transparent 29rem),
    linear-gradient(145deg, #050c17 0%, var(--bg) 48%, #0a1729 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .26;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 72%, transparent);
}

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

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  background: linear-gradient(145deg, #3b8cff, #1756ba);
  box-shadow: 0 14px 34px rgba(47, 128, 255, .28);
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -.03em;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  font-size: .98rem;
}

.brand-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .78rem;
}

.header-link {
  padding: 10px 0;
  border-bottom: 1px solid rgba(113, 173, 255, .45);
  color: #dbe9ff;
  font-size: .9rem;
  font-weight: 700;
  transition: color .2s ease, border-color .2s ease;
}

.header-link:hover {
  color: #fff;
  border-color: #fff;
}

.maintenance {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, .97fr) minmax(430px, 1.03fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
  padding: 68px 0 82px;
}

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

.status-pill {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  padding: 7px 12px;
  border: 1px solid rgba(80, 216, 144, .2);
  border-radius: 999px;
  color: #b9eecf;
  background: rgba(80, 216, 144, .07);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-dot,
.footer-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(80, 216, 144, .1);
  animation: pulse 2.2s ease-in-out infinite;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--blue-light);
  font-size: .86rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  max-width: 670px;
  font-size: clamp(3.7rem, 7vw, 6.7rem);
  line-height: .94;
  letter-spacing: -.065em;
}

h1 span {
  display: block;
  color: var(--blue);
}

.intro {
  max-width: 590px;
  margin-top: 27px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 750;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

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

.button-primary {
  background: var(--blue);
  box-shadow: 0 13px 30px rgba(47, 128, 255, .22);
}

.button-primary:hover {
  background: #4a91ff;
}

.button-secondary {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .025);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, .36);
  background: rgba(255, 255, 255, .055);
}

.email-note {
  margin-top: 21px;
  color: #7f8da2;
  font-size: .82rem;
}

.email-note a {
  color: #b9c8dd;
  text-decoration: underline;
  text-decoration-color: rgba(185, 200, 221, .32);
  text-underline-offset: 4px;
}

.visual {
  min-height: 530px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.visual::before {
  width: 78%;
  aspect-ratio: 1;
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(83, 152, 255, .13);
  border-radius: 50%;
  box-shadow:
    0 0 0 62px rgba(83, 152, 255, .025),
    0 0 0 124px rgba(83, 152, 255, .018);
}

.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}

.orb-one {
  width: 145px;
  height: 145px;
  top: 2%;
  right: 2%;
  background: rgba(47, 128, 255, .1);
}

.orb-two {
  width: 95px;
  height: 95px;
  bottom: 3%;
  left: 5%;
  background: rgba(80, 216, 144, .07);
}

.code-card {
  width: min(100%, 510px);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(18, 34, 57, .96), rgba(8, 19, 35, .97));
  box-shadow: 0 40px 90px rgba(0, 0, 0, .43), inset 0 1px rgba(255, 255, 255, .04);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
}

.code-card-top {
  min-height: 58px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #8290a4;
  font-size: .72rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #344158;
}

.window-dots i:first-child { background: #ff6b6b; }
.window-dots i:nth-child(2) { background: #f7c75e; }
.window-dots i:last-child { background: #50d890; }

.code-status {
  justify-self: end;
  color: var(--green);
}

.code-lines {
  padding: 40px 25px 22px;
  color: #cdd8e8;
  font: .86rem/2.05 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.code-lines > div {
  display: flex;
  min-width: 0;
}

.line-number {
  width: 42px;
  flex: 0 0 auto;
  color: #46546a;
  user-select: none;
}

.code-lines code {
  white-space: nowrap;
}

.code-lines b {
  color: #75aaff;
  font-weight: 500;
}

.code-lines em {
  color: #85deb1;
  font-style: normal;
}

.code-spacer {
  min-height: 1.8em;
}

.progress-card {
  margin: 12px 25px 27px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: #b8c4d5;
  font-size: .72rem;
}

.progress-copy span:last-child {
  color: var(--blue-light);
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
}

.progress-track span {
  width: 72%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #236dff, #6ca9ff);
  box-shadow: 0 0 16px rgba(47, 128, 255, .58);
  animation: progress-glow 2.8s ease-in-out infinite;
}

.floating-tag {
  position: absolute;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  color: #c8d4e5;
  background: rgba(10, 23, 41, .9);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
  font-size: .72rem;
  font-weight: 700;
}

.floating-tag span {
  color: var(--blue-light);
}

.tag-design {
  top: 11%;
  right: -2%;
  animation: float 4s ease-in-out infinite;
}

.tag-build {
  bottom: 12%;
  left: -1%;
  animation: float 4s 1.2s ease-in-out infinite;
}

footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: #69788e;
  font-size: .76rem;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-status i {
  width: 6px;
  height: 6px;
  display: inline-block;
  box-shadow: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

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

@keyframes progress-glow {
  0%, 100% { opacity: .78; }
  50% { opacity: 1; }
}

@media (max-width: 900px) {
  .maintenance {
    grid-template-columns: 1fr;
    padding-top: 56px;
    text-align: center;
  }

  .maintenance-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .visual {
    width: min(100%, 620px);
    min-height: 500px;
    margin: 0 auto;
  }

  .code-card {
    transform: none;
    text-align: left;
  }
}

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

  .site-header {
    min-height: 82px;
  }

  .brand-mark {
    width: 43px;
    height: 43px;
  }

  .brand-copy span,
  .header-link {
    font-size: .72rem;
  }

  .maintenance {
    padding: 52px 0 64px;
  }

  h1 {
    font-size: clamp(3.15rem, 17vw, 4.7rem);
  }

  .intro {
    font-size: .98rem;
  }

  .actions,
  .button {
    width: 100%;
  }

  .visual {
    min-height: 410px;
  }

  .code-card-top {
    grid-template-columns: 1fr auto;
  }

  .code-card-top > span:nth-child(2) {
    display: none;
  }

  .code-lines {
    padding: 28px 14px 16px;
    font-size: clamp(.68rem, 3.25vw, .8rem);
  }

  .line-number {
    width: 32px;
  }

  .progress-card {
    margin: 8px 14px 20px;
  }

  .floating-tag {
    display: none;
  }

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

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