:root {
  color-scheme: dark;
  --bg1: #4b6cb7;
  --bg2: #182848;
  --gray: #999;
  --ink: #fff;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --muted: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 30px 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
}

p,
h1,
h2 {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

code {
  color: var(--ink);
  font-family: var(--mono);
}

.contract code {
  padding: 2px;
  background: var(--bg2);
}

.home-page {
  display: grid;
  place-items: center;
  padding: clamp(0.85rem, 3vw, 1.5rem);
  text-align: center;
}

.home-main {
  width: 100%;
  max-width: 560px;
  display: grid;
  justify-items: center;
  gap: clamp(0.7rem, 2vh, 1rem);
}

.home-main > h1 {
  font-size: clamp(4.5rem, 18vw, 7.5rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: 0.06em;
}

.tagline,
.contract {
  color: var(--muted);
}

.tagline {
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  line-height: 1.2;
}

.tagline strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 1.05em;
  font-weight: 700;
}

.contract {
  max-width: 470px;
  display: grid;
  gap: 0.55rem;
  font-size: clamp(0.8rem, 2.8vw, 0.9rem);
  font-weight: 300;
  line-height: 1;
}

.info-panels {
  width: min(520px, 100%);
  display: grid;
  gap: 0.55rem;
}

.info-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
  text-align: left;
}

.info-heading {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.install-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.install-command {
  overflow-x: auto;
  font-size: clamp(0.78rem, 3vw, 0.9rem);
  line-height: 1.55;
  white-space: nowrap;
  cursor: text;
  user-select: all;
}

.prompt {
  color: var(--muted);
}

.copy-button {
  min-width: 4.5rem;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: var(--ink);
  font: 600 0.75rem/1 var(--mono);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.copy-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.terminal-demo-image {
  display: block;
  width: 100%;
  height: auto;
}

footer {
  padding: 0 0.5rem;
  color: var(--gray);
  font-size: 0.72rem;
  line-height: 1.4;
}

.not-found-page {
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.not-found-page h1 {
  font-size: clamp(4rem, 20vw, 9rem);
  line-height: 1;
}

.not-found-page p {
  margin-top: 1rem;
  color: var(--muted);
}

@media (max-height: 760px) {
  .home-page {
    place-items: start center;
    padding-block: 0.65rem;
  }

  .home-main {
    gap: 0.6rem;
  }

  .home-main > h1 {
    font-size: 4.25rem;
    line-height: 1;
  }

  .contract {
    gap: 0.4rem;
    font-size: 0.78rem;
  }
}
