:root {
  --ink: #071d19;
  --ink-soft: #102b25;
  --green: #176b58;
  --lime: #c8f55f;
  --paper: #f5f7f1;
  --muted: #65756f;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

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

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

.maintenance-page {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
  padding: 0 clamp(24px, 6vw, 88px);
}

.maintenance-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(7, 29, 25, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 29, 25, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

.ambient-one {
  width: clamp(380px, 52vw, 800px);
  aspect-ratio: 1;
  top: -35%;
  right: -15%;
  background: radial-gradient(circle, rgba(200, 245, 95, 0.22), rgba(200, 245, 95, 0) 68%);
}

.ambient-two {
  width: clamp(320px, 45vw, 680px);
  aspect-ratio: 1;
  bottom: -42%;
  left: -14%;
  background: radial-gradient(circle, rgba(23, 107, 88, 0.15), rgba(23, 107, 88, 0) 70%);
}

.maintenance-header,
.maintenance-footer {
  width: min(100%, 1180px);
  margin-inline: auto;
}

.maintenance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
}

.portal-link {
  border: 1px solid rgba(7, 29, 25, 0.15);
  border-radius: 10px;
  padding: 11px 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 750;
  transition: border-color 0.2s, background 0.2s;
}

.portal-link:hover {
  border-color: rgba(23, 107, 88, 0.42);
  background: white;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  letter-spacing: -0.5px;
}

.brand strong {
  font-weight: 760;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--lime);
  background: var(--ink);
  box-shadow: 0 10px 28px rgba(7, 29, 25, 0.15);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.brand-mark svg path:last-child {
  opacity: 0.8;
  stroke-width: 1.3;
}

.maintenance-content {
  width: min(100%, 980px);
  align-self: center;
  margin: 0 auto;
  padding: 72px 0 96px;
  text-align: center;
  animation: enter 0.8s ease-out both;
}

.status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(23, 107, 88, 0.18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(200, 245, 95, 0.23);
  animation: pulse 2s ease-in-out infinite;
}

h1 {
  margin: 35px 0 28px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: clamp(-5.5px, -0.055em, -2.5px);
  font-weight: 790;
}

h1 em {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.maintenance-content p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}

.maintenance-content .soon {
  margin-top: 14px;
  color: var(--ink-soft);
  font-weight: 720;
}

.maintenance-footer {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(7, 29, 25, 0.1);
  color: var(--muted);
  font-size: 12px;
}

.maintenance-footer a {
  color: var(--green);
  font-weight: 700;
  transition: color 0.2s;
}

.maintenance-footer a:hover {
  color: var(--ink);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 640px) {
  .maintenance-page {
    padding-inline: 20px;
  }

  .maintenance-header {
    min-height: 84px;
  }

  .maintenance-content {
    padding: 56px 0 72px;
  }

  h1 {
    margin-top: 28px;
    font-size: clamp(44px, 14vw, 68px);
  }

  .maintenance-content p {
    font-size: 15px;
  }

  .maintenance-footer {
    min-height: 74px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .maintenance-content,
  .status span {
    animation: none;
  }
}
