:root {
  --bg: #0b0d10;
  --text: #e9ebee;
  --muted: #949aa3;
  --line: rgba(233, 235, 238, .14);
  --accent: #9fd6c8;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

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

html, body { background: var(--bg); color: var(--text); }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* background dot field */
#field { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.shade {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 15% 85%, rgba(11, 13, 16, .92) 20%, rgba(11, 13, 16, 0) 70%);
}

/* layout */
.page {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 40px;
  max-width: 1440px;
  margin: 0 auto;
}

header { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.mark { font-weight: 600; letter-spacing: -0.01em; }
.status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; }

main { display: flex; align-items: flex-end; padding: 48px 0 64px; }
.lead { max-width: 640px; }

h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.lead p {
  margin-top: 22px;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

/* actions */
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.cta {
  display: inline-block;
  font-size: 15px; font-weight: 600;
  color: var(--bg); background: var(--text);
  border-radius: 999px;
  padding: 14px 26px;
  transition: background .25s, transform .1s;
}
.cta:hover { background: var(--accent); }
.cta:active { transform: scale(.98); }

.copy {
  font: inherit; font-size: 15px; color: var(--text);
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  display: inline-flex; align-items: baseline; gap: 10px;
}
.copy .hint { font-size: 12px; color: var(--muted); transition: color .2s; }
.copy:hover .hint, .copy.done .hint { color: var(--accent); }

footer {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line);
}

/* 404 */
.lead .back { margin-top: 36px; }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .lead > * { animation: rise 1s var(--ease) both; }
  .lead > :nth-child(2) { animation-delay: .1s; }
  .lead > :nth-child(3) { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
}

@media (max-width: 720px) {
  .page { padding: 0 20px; }
  header { height: 64px; }
  main { padding: 32px 0 48px; }
  footer { font-size: 12px; }
}
