@font-face {
  font-family: 'berkeley';
  src: url('../font/berkeley.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'berkeley', monospace;
  background: #000;
  color: #aaa;
}

#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

main {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  gap: 0;
  padding: 3rem;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

header h1 svg {
  width: 6rem;
  height: 6rem;
  color: #1FD200;
  filter: drop-shadow(0 0 80px rgba(31, 210, 0, 0.4)) drop-shadow(0 0 180px rgba(31, 210, 0, 0.2)) drop-shadow(0 0 280px rgba(31, 210, 0, 0.1));
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 80px rgba(31, 210, 0, 0.3)) drop-shadow(0 0 180px rgba(31, 210, 0, 0.15)) drop-shadow(0 0 280px rgba(31, 210, 0, 0.08)); }
  to { filter: drop-shadow(0 0 100px rgba(31, 210, 0, 0.5)) drop-shadow(0 0 220px rgba(31, 210, 0, 0.25)) drop-shadow(0 0 320px rgba(31, 210, 0, 0.12)); }
}

header p {
  font-size: 1rem;
  color: #aaa;
  text-align: center;
}

section[aria-label="stats"] {
  padding: 2rem 0;
}

section[aria-label="stats"] dl {
  display: flex;
  justify-content: center;
  gap: 4rem;
}

section[aria-label="stats"] dl > div {
  text-align: center;
}

section[aria-label="stats"] dt {
  font-size: 0.75rem;
  color: #444;
  margin-bottom: 0.25rem;
  letter-spacing: 0.1em;
}

section[aria-label="stats"] dd {
  font-size: 2rem;
  font-weight: 700;
  color: #1FD200;
}

section[aria-label="comparison"] {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

section[aria-label="comparison"] table {
  border-collapse: collapse;
}

section[aria-label="comparison"] td {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  color: #444;
  border-bottom: 1px solid #444;
}

section[aria-label="comparison"] td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

section[aria-label="comparison"] tr[data-highlight] td {
  color: #1FD200;
  font-weight: 600;
}

section[aria-label="install"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 0;
}

section[aria-label="install"] figure {
  position: relative;
  border: 1px solid #444;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

section[aria-label="install"] pre {
  padding: 0.875rem 3rem 0.875rem 1.25rem;
}

section[aria-label="install"] code {
  font-family: 'berkeley', monospace;
  font-size: 0.9rem;
  color: #aaa;
}

section[aria-label="install"] figure button {
  position: absolute;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s;
}

section[aria-label="install"] figure button svg {
  width: 0.875rem;
  height: 0.875rem;
  color: #444;
}

section[aria-label="install"] figure button:hover svg {
  color: #aaa;
}

section[aria-label="install"] figure button svg[data-icon="check"] {
  display: none;
  color: #1FD200;
}

section[aria-label="install"] figure button[data-copied] svg[data-icon="copy"] {
  display: none;
}

section[aria-label="install"] figure button[data-copied] svg[data-icon="check"] {
  display: block;
}

section[aria-label="install"] > p {
  font-size: 0.75rem;
  color: #444;
}

section[aria-label="install"] > p a {
  color: #1FD200;
  text-decoration: none;
}

section[aria-label="install"] > p a:hover {
  text-decoration: underline;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
}

footer p {
  font-size: 0.75rem;
  color: #444;
}

footer p a {
  color: #444;
  text-decoration: none;
}

footer p a:hover {
  color: #1FD200;
}

footer a {
  color: #444;
  transition: color 0.15s;
}

footer a:hover {
  color: #1FD200;
}

footer svg {
  width: 1.5rem;
  height: 1.5rem;
}
