:root {
  --ink: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.72);
  --faint: rgba(245, 247, 251, 0.46);
  --line: rgba(255, 255, 255, 0.22);
  --panel: rgba(11, 19, 32, 0.26);
  --panel-strong: rgba(11, 19, 32, 0.38);
  --glow: rgba(155, 201, 255, 0.42);
  --gold: #f3c68b;
  --blue: #8fc9ff;
  --font: "DM Sans", -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans/dm-sans-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans/dm-sans-latin-ext.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    linear-gradient(180deg, rgba(6, 13, 25, 0.28), rgba(6, 13, 25, 0.74)),
    linear-gradient(140deg, rgba(15, 31, 57, 0.8), rgba(76, 61, 104, 0.5) 48%, rgba(208, 145, 116, 0.2)),
    url("/assets/background-poster.jpg") center / cover fixed;
  overflow-x: hidden;
}

.background-video {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.4px 1.4px at 21% 34%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 38% 14%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 57% 22%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 72% 33%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.6px 1.6px at 86% 16%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 91% 42%, rgba(255, 255, 255, 0.55), transparent);
  opacity: 0.75;
}

body::after {
  background:
    radial-gradient(70% 56% at 50% 42%, rgba(143, 201, 255, 0.18), transparent 60%),
    linear-gradient(180deg, transparent 54%, rgba(245, 198, 139, 0.16));
  mix-blend-mode: screen;
}

a {
  color: inherit;
}

.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 96px;
}

.brand {
  text-align: center;
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.45);
  transition: opacity 200ms ease, transform 200ms ease;
}

body.modal-open .brand {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
}

.brand h1 {
  margin: 0 0 0.5rem;
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  user-select: none;
  animation: hero-title-in 0.7s ease-out 0.25s both;
}

.brand p {
  margin: 0 0 3rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-style: italic;
  letter-spacing: 0;
  user-select: none;
  animation: hero-subtitle-in 0.6s ease-out 0.4s both;
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  color: white;
  font: 500 1.125rem/1.75rem var(--font);
  letter-spacing: 0;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 300ms ease;
  animation: hero-cta-in 0.7s ease-out 0.6s both;
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1), 0 4px 6px -4px rgba(255, 255, 255, 0.1);
}

.modal[hidden],
.modal-step[hidden] {
  display: none;
}

.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.68);
  animation: modal-fade 0.2s ease both;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  background: rgba(18, 24, 32, 0.78);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px);
  animation: modal-panel-in 0.2s ease-out both;
}

.modal-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.5), rgba(96, 165, 250, 0.7), rgba(56, 189, 248, 0.5));
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  border: 0;
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  transition: color 200ms ease, transform 200ms ease;
}

.close-button:hover {
  color: rgba(255, 255, 255, 0.85);
  transform: scale(1.1);
}

.close-button:active {
  transform: scale(0.9);
}

.close-button svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.modal-heading {
  padding-right: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-heading h2 {
  margin: 0 0 0.5rem;
  color: white;
  font-family: var(--font);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: 0;
  animation: modal-heading-in 0.3s ease-out 0.05s both;
}

.modal-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.45;
  animation: modal-heading-in 0.3s ease-out 0.1s both;
}

.modal-step {
  animation: step-in 0.2s ease both;
}

.options-step {
  display: grid;
  gap: 0.75rem;
}

.option-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  color: white;
  text-align: left;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 200ms ease;
}

.option-card:hover {
  background: rgba(255, 255, 255, 0.17);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.option-card strong {
  display: block;
  margin-bottom: 0.25rem;
  color: white;
  font-family: var(--font);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  letter-spacing: 0;
}

.option-card small {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.option-arrow {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  line-height: 1;
}

.github-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.7);
}

.install-step {
  display: grid;
  gap: 1rem;
}

.back-button {
  justify-self: start;
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
  font: 400 0.875rem/1.25rem var(--font);
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 200ms ease;
}

.back-button::before {
  content: "\2190";
  display: inline-block;
  margin-right: 0.25rem;
}

.back-button:hover {
  color: white;
}

.install-step label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

textarea {
  min-width: 0;
  width: 100%;
  height: 58px;
  padding: 14px;
  color: var(--ink);
  font: 12px/1.35 var(--mono);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  background: rgba(4, 9, 18, 0.5);
  outline: none;
  resize: none;
  overflow: hidden;
}

.copy-button {
  position: relative;
  min-height: 46px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  color: white;
  font: 500 1rem/1.25rem var(--font);
  letter-spacing: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 200ms ease;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px) scale(1.02);
}

.copy-button:active {
  transform: scale(0.98);
}

.copy-button.is-copying::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 1s linear infinite;
}

.copy-status {
  min-height: 1.25rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
}

.meta {
  position: fixed;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  display: flex;
  gap: 18px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.meta a {
  text-decoration: none;
}

.meta a:hover {
  color: white;
}

@keyframes hero-title-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-subtitle-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-cta-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-panel-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal-heading-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 920px) {
  body {
    background-attachment: scroll;
  }
}

@media (min-width: 640px) {
  .modal-panel {
    padding: 2rem;
  }

  .modal-heading p {
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .shell {
    padding: 52px 20px 92px;
  }

  .brand p {
    margin-bottom: 3rem;
  }

  .modal {
    align-items: flex-end;
  }

  .modal-panel {
    border-radius: 1.25rem;
  }

  textarea,
  .copy-button {
    width: 100%;
  }

  .meta {
    bottom: 18px;
  }
}
