:root {
  color-scheme: dark;
  --bg: #171717;
  --surface: #202020;
  --surface-raised: #282827;
  --line: #3a3937;
  --text: #f7f6f3;
  --muted: #aaa7a0;
  --accent: #f28a22;
  --accent-strong: #ff9b38;
  --danger: #ff8a7a;
  font-family: "Aptos", "Segoe UI Variable", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px);
  background-size: 32px 32px;
}

button, a { font: inherit; }

.site-header {
  padding: max(18px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 14px max(22px, env(safe-area-inset-left));
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 720;
  font-size: 1.05rem;
}

.brand img { display: block; }

main {
  display: grid;
  place-items: center;
  padding: 32px 22px 56px;
}

.handoff {
  width: min(100%, 520px);
  text-align: center;
}

.signal {
  position: relative;
  width: 184px;
  aspect-ratio: 1;
  margin: 0 auto 36px;
  display: grid;
  place-items: center;
}

.signal img {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .28));
}

.signal__orbit {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.signal__orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  aspect-ratio: 1;
  top: 50%;
  left: -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(242, 138, 34, .72);
}

.signal__orbit--outer { animation: orbit 4.8s linear infinite; }
.signal__orbit--inner { inset: 25px; animation: orbit 3.6s linear infinite reverse; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.message {
  max-width: 410px;
  min-height: 3em;
  margin: 20px auto 0;
  color: var(--muted);
  line-height: 1.55;
}

.actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible { outline: 3px solid rgba(242, 138, 34, .35); outline-offset: 3px; }
.button--primary { color: #17120c; background: var(--accent); }
.button--primary:hover { background: var(--accent-strong); }
.button--secondary { color: var(--text); background: var(--surface-raised); border-color: var(--line); }

.error {
  margin: 24px auto 0;
  padding: 14px 16px;
  border-left: 3px solid var(--danger);
  color: var(--danger);
  background: var(--surface);
  text-align: left;
  line-height: 1.45;
}

footer {
  padding: 16px max(22px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  color: #77746e;
  text-align: center;
  font-size: .78rem;
}

[hidden] { display: none !important; }

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

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

@media (max-height: 620px) {
  main { padding-top: 12px; }
  .signal { width: 128px; margin-bottom: 20px; }
  .signal img { width: 58px; height: 58px; }
}
