:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #0d0c13;
  color: #f5f2ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, #352357 0, transparent 35rem),
    #0d0c13;
}

main {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 2rem;
}

header { max-width: 800px; }

.brand {
  display: block;
  width: min(19rem, 70vw);
  margin-bottom: 2.25rem;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow {
  color: #60dfbe;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

header > p:last-child {
  max-width: 650px;
  color: #c9c1dc;
  font-size: 1.1rem;
  line-height: 1.6;
}

.demo {
  margin-top: 2.5rem;
  overflow: hidden;
  border: 1px solid #423858;
  border-radius: 18px;
  background: rgb(18 16 26 / 86%);
  box-shadow: 0 30px 80px rgb(0 0 0 / 35%);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 1rem;
  border-bottom: 1px solid #342d45;
}

button {
  padding: 0.65rem 0.9rem;
  border: 1px solid #75658f;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

button:hover, button:focus-visible { border-color: #8a72b5; }
button.active { border-color: #60dfbe; background: #173a34; }

canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: crosshair;
}

.status, footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.status {
  min-height: 3.25rem;
  padding: 1rem;
  border-top: 1px solid #342d45;
  color: #c9c1dc;
}

#metrics { color: #60dfbe; font-variant-numeric: tabular-nums; }

footer { padding: 1.5rem 0; }
a { color: #bda5ff; }

@media (max-width: 620px) {
  main { padding-top: 2rem; }
  .status, footer { flex-direction: column; }
}
