:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --surface: #111318;
  --text: #f4f5f7;
  --muted: #9da3ae;
  --line: #242832;
  --accent: #a7f3d0;
  --accent-strong: #5ee6b0;
  --placeholder: #f4d06f;
  --max-width: 74rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 18%, rgba(94, 230, 176, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 0.16rem solid var(--accent);
  outline-offset: 0.25rem;
  border-radius: 0.2rem;
}

.page-shell {
  width: min(100% - 2rem, var(--max-width));
  min-height: 100vh;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

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

.site-header {
  min-height: 5.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--surface);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.platforms,
.back-link {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero {
  align-self: center;
  max-width: 58rem;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  max-width: 70ch;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.intro {
  margin: 2rem 0 0;
  max-width: 41rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.3vw, 1.4rem);
  line-height: 1.6;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 2rem 0 0;
  color: var(--text);
  font-size: 0.92rem;
}

.status-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 0.32rem rgba(94, 230, 176, 0.1);
}

.placeholder {
  color: var(--placeholder);
}

.site-footer {
  min-height: 5.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.legal-shell {
  grid-template-rows: auto 1fr auto;
}

.legal-content {
  width: min(100%, 48rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.legal-content h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.95;
}

.legal-content h2 {
  margin: 4rem 0 1rem;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.legal-content p {
  color: var(--muted);
  line-height: 1.75;
}

.legal-list {
  margin: 3rem 0 0;
  border-top: 1px solid var(--line);
}

.legal-list > div {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) minmax(0, 1.6fr);
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.legal-list dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.legal-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.legal-note {
  margin-top: 3rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(244, 208, 111, 0.28);
  border-radius: 0.6rem;
  background: rgba(244, 208, 111, 0.05);
  color: #d8c98d !important;
  font-size: 0.85rem;
}

@media (max-width: 38rem) {
  .site-header,
  .site-footer {
    align-items: flex-start;
  }

  .site-footer {
    padding-block: 1.35rem;
    flex-direction: column;
  }

  .legal-list > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
