@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@500;600&display=swap');

:root {
  --ink: #071b2d;
  --ink-soft: #102c43;
  --paper: #f4f7f8;
  --paper-blue: #e8eff2;
  --white: #ffffff;
  --signal: #ffb000;
  --signal-bright: #ffc33a;
  --line: rgba(7, 27, 45, 0.14);
  --display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --body: 'Manrope', Arial, sans-serif;
  --utility: 'DM Mono', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(7, 27, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 27, 45, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 52px 52px;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.maintenance-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  padding: 30px clamp(24px, 5vw, 78px) 24px;
}

.maintenance-shell::before {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 42%;
  content: '';
  background: var(--ink);
}

.route-map {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(55vw, 820px);
  height: 100%;
  overflow: hidden;
  color: var(--signal);
  opacity: 0.88;
  pointer-events: none;
}

.route-map svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(720px, 110%);
  transform: translate(-52%, -50%);
}

.route {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
}

.route--outer {
  stroke-width: 1.5;
  stroke-dasharray: 3 11;
}

.route--inner {
  stroke-width: 0.8;
  opacity: 0.4;
}

.route-point {
  fill: var(--ink);
  stroke: currentColor;
  stroke-width: 3;
}

.route-point--one {
  animation: route-pulse 3.2s ease-in-out infinite;
}

.route-point--two {
  animation: route-pulse 3.2s 0.8s ease-in-out infinite;
}

.route-point--three {
  animation: route-pulse 3.2s 1.6s ease-in-out infinite;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand {
  display: inline-flex;
  max-width: min(280px, 50vw);
  text-decoration: none;
}

.brand__logo-wrap {
  display: inline-flex;
  align-items: center;
}

.brand__logo-wrap.has-logo {
  position: relative;
  width: 250px;
  height: 72px;
  overflow: hidden;
}

.brand__logo {
  display: none;
  position: absolute;
  top: 56%;
  left: 0;
  width: 250px;
  max-width: none;
  height: auto;
  transform: translateY(-50%);
}

.brand__logo-wrap.has-logo .brand__logo {
  display: block;
}

.brand__logo-wrap.has-logo .brand__fallback {
  display: none;
}

.brand__fallback {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.brand__fallback svg {
  width: 36px;
  height: 36px;
  fill: var(--signal);
}

.service-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-family: var(--utility);
  font-size: 0.69rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.service-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal-bright);
  box-shadow: 0 0 0 5px rgba(255, 176, 0, 0.14);
  animation: status-blink 2.4s ease-in-out infinite;
}

.hero {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(50px, 9vw, 150px);
  width: 100%;
  max-width: 1400px;
  margin: 40px auto;
}

.hero__content {
  width: min(100%, 680px);
  padding: 36px 0;
}

.eyebrow {
  margin: 0 0 24px;
  color: #476174;
  font-family: var(--utility);
  font-size: clamp(0.67rem, 1vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(4rem, 8.2vw, 8.4rem);
  font-weight: 600;
  letter-spacing: -0.072em;
  line-height: 0.83;
}

.hero__copy {
  max-width: 560px;
  margin: 34px 0 38px;
  color: #405668;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.75;
}

.email-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  min-width: 210px;
  padding: 17px 18px 17px 21px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.email-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 180ms ease;
}

.email-button:hover {
  background: var(--signal);
  color: var(--ink);
  transform: translateY(-2px);
}

.email-button:hover svg {
  transform: translate(2px, -2px);
}

.email-button:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.signal-card {
  justify-self: center;
  width: min(100%, 430px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 27, 45, 0.76);
  color: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.signal-card__topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--utility);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-card__code {
  color: var(--signal-bright);
}

.signal-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.55;
  overflow: hidden;
}

.signal-card__visual::before,
.signal-card__visual::after {
  position: absolute;
  width: 100%;
  height: 1px;
  content: '';
  background: rgba(255, 255, 255, 0.08);
}

.signal-card__visual::after {
  width: 1px;
  height: 100%;
}

.signal-card__ring,
.signal-card__core {
  position: absolute;
  border-radius: 50%;
}

.signal-card__ring {
  border: 1px solid rgba(255, 176, 0, 0.46);
}

.signal-card__ring--one {
  width: 136px;
  height: 136px;
  animation: radar 3s ease-out infinite;
}

.signal-card__ring--two {
  width: 68px;
  height: 68px;
  animation: radar 3s 1.5s ease-out infinite;
}

.signal-card__core {
  width: 10px;
  height: 10px;
  background: var(--signal);
  box-shadow: 0 0 22px var(--signal);
}

.signal-card__message {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 19px 4px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.signal-card__pulse {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--signal);
}

.signal-card__message strong,
.signal-card__message span {
  display: block;
}

.signal-card__message strong {
  margin-bottom: 5px;
  font-size: 0.88rem;
  font-weight: 600;
}

.signal-card__message div > span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
}

.site-footer {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #637685;
  font-family: var(--utility);
  font-size: 0.64rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.site-footer > span:last-child {
  color: rgba(255, 255, 255, 0.55);
}

@keyframes radar {
  0% {
    opacity: 0;
    transform: scale(0.45);
  }
  35% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes route-pulse {
  0%, 100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--signal));
  }
}

@keyframes status-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (max-width: 920px) {
  .maintenance-shell {
    padding: 24px;
  }

  .maintenance-shell::before {
    top: auto;
    width: 100%;
    height: 36%;
  }

  .route-map {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 42%;
  }

  .site-header {
    align-items: flex-start;
  }

  .service-status {
    padding: 10px 12px;
    background: var(--ink);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    margin: 46px auto 60px;
  }

  .hero__content {
    padding: 10px 0;
  }

  .signal-card {
    justify-self: end;
    width: min(88%, 430px);
  }

  .site-footer {
    border-color: rgba(255, 255, 255, 0.18);
  }

  .site-footer > span:first-child {
    color: rgba(255, 255, 255, 0.7);
  }
}

@media (max-width: 560px) {
  .maintenance-shell::before {
    height: 31%;
  }

  .brand__logo-wrap.has-logo {
    width: 190px;
    height: 58px;
  }

  .brand__logo-wrap.has-logo .brand__logo {
    width: 190px;
  }

  .brand__fallback span {
    display: none;
  }

  .service-status {
    max-width: 160px;
    font-size: 0.57rem;
    line-height: 1.35;
  }

  h1 {
    font-size: clamp(3.5rem, 19vw, 5rem);
  }

  .hero__copy {
    margin-top: 28px;
    line-height: 1.65;
  }

  .email-button {
    width: 100%;
  }

  .signal-card {
    width: 100%;
  }

  .site-footer {
    gap: 20px;
  }

  .site-footer > span:last-child {
    text-align: right;
  }
}

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