:root {
  color-scheme: dark;
  --bg: #07111f;
  --line: #334563;
  --text: #f4f7fb;
  --muted: #a6afbc;
  --accent: #bcead0;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(7, 17, 31, 0) 0 34%, rgba(7, 17, 31, 0.16) 72%),
    linear-gradient(180deg, rgba(7, 17, 31, 0.08), rgba(7, 17, 31, 0.32));
  content: "";
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

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

.preview {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: grid;
  width: 100vw;
  height: 100svh;
  margin: 0;
  place-items: center;
  overflow: hidden;
  border: 0;
  background: #06100c;
  pointer-events: none;
}

.preview video {
  position: relative;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100svh;
  max-width: none;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: brightness(.9) saturate(.96) contrast(1.04);
  opacity: .94;
}

main {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  flex-direction: column;
  padding: 32px 0 34px;
  text-align: center;
}

.hero {
  margin: auto 0;
  padding: 78px 0 52px;
}

h1 {
  margin: 0;
  font-size: clamp(56px, 12vw, 92px);
  font-weight: 650;
  letter-spacing: -.065em;
  line-height: .95;
  text-shadow: 0 8px 38px rgba(0, 0, 0, 0.78);
}

.github {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 22, 39, .68);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .2);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.github:hover {
  border-color: #52627b;
  color: var(--text);
  transform: translateY(-1px);
}

.github svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.intro {
  max-width: 540px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.install {
  margin-top: 38px;
  text-align: left;
}

.install-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.install-command {
  position: relative;
  display: grid;
  min-height: 64px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 22, 39, 0.72);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
}

.prompt {
  color: var(--accent);
  font: 700 13px/1 var(--mono);
}

code {
  min-width: 0;
  overflow: hidden;
  color: #e0e8f4;
  font: 500 12px/1.5 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-command button {
  min-width: 58px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1b2230;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease;
}

.install-command button:hover {
  border-color: #52627b;
  transform: translateY(-1px);
}

.hint {
  margin: 11px 0 0;
  color: #6f7a8c;
  font-size: 11px;
  text-align: center;
}

footer {
  color: #6f7a8c;
  font-size: 11px;
  text-align: center;
}

footer a {
  color: var(--muted);
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  main {
    padding-top: 20px;
  }

  .hero {
    padding-top: 72px;
  }

  h1 {
    font-size: clamp(56px, 23vw, 88px);
  }

  code {
    font-size: 10px;
  }

  .preview video {
    filter: brightness(.84) saturate(.92) contrast(1.03);
    opacity: .92;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview video {
    display: none;
  }

}
