:root {
  color-scheme: dark;
  --ink: #f7fbf6;
  --muted: #c8d6cf;
  --green: #48f0a4;
  --blue: #6bc8ff;
  --coal: #07130f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--coal);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-rendering: geometricPrecision;
}

body { overflow-x: hidden; }

.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 76%, rgba(72, 240, 164, 0.18), transparent 28%),
    radial-gradient(circle at 50% 12%, rgba(107, 200, 255, 0.13), transparent 24%),
    #07130f;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  row-gap: clamp(34px, 6vh, 64px);
  padding: 128px clamp(18px, 4vw, 64px) 76px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(1.12);
  opacity: 0.56;
  transform: scale(1.04);
}

.shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 19, 15, 0.46) 0%, rgba(7, 19, 15, 0.66) 54%, rgba(7, 19, 15, 0.9) 100%),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.06), transparent 44%);
}

.brand {
  position: relative;
  z-index: 2;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  font-size: 46px;
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.brand img {
  width: clamp(64px, 7vw, 88px);
  height: clamp(64px, 7vw, 88px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  margin-inline: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e7fff3;
  border: 1px solid rgba(72, 240, 164, 0.32);
  background: rgba(4, 20, 14, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 38px rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 760;
  font-size: 14px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.72); }
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(72, 240, 164, 0.9);
  animation: statusBlink 2.4s ease-in-out infinite;
}

h1 {
  margin: 0 auto;
  max-width: 920px;
  font-size: 108px;
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.38);
}

.hero-content p {
  margin: 26px auto 0;
  max-width: 610px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.58;
}

.install-panel {
  width: min(920px, 100%);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(230px, 0.75fr);
  gap: 14px;
  align-items: stretch;
}

.command-block {
  min-width: 0;
}

.command-row {
  width: 100%;
  font: inherit;
  text-align: inherit;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid rgba(72, 240, 164, 0.24);
  border-radius: 16px;
  background: rgba(5, 18, 14, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.terminal-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #b9ffd9;
  background: rgba(72, 240, 164, 0.1);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 800;
  font-size: 16px;
}

.command-row code {
  min-width: 0;
  color: #b9ffd9;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.command-row:hover,
.command-row:focus-visible,
.command-row.copied {
  border-color: rgba(72, 240, 164, 0.52);
  background: rgba(8, 30, 21, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(72, 240, 164, 0.14), 0 20px 54px rgba(15, 230, 142, 0.12);
  transform: translateY(-1px);
}

.command-row:focus-visible {
  outline: none;
}

.copy-toast {
  position: fixed;
  z-index: 10;
  pointer-events: none;
  padding: 7px 10px;
  border: 1px solid rgba(72, 240, 164, 0.38);
  border-radius: 999px;
  color: #06120d;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, -135%) scale(0.94);
  transition: opacity 160ms ease, transform 160ms ease;
}

.copy-toast.visible {
  opacity: 1;
  transform: translate(-50%, -155%) scale(1);
}
.command-label {
  margin-top: 14px;
  color: rgba(200, 214, 207, 0.62);
  font-size: 15px;
}

.command-label.error { color: #ffb6a8; }

.howto {
  min-height: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(107, 200, 255, 0.2);
  border-radius: 16px;
  background: rgba(4, 15, 22, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 46px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  text-align: left;
}

.howto-title {
  color: #e7fff3;
  font-size: 14px;
  font-weight: 850;
}

.howto ol {
  margin: 10px 0 0;
  padding-left: 20px;
  color: rgba(216, 230, 223, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.howto li + li { margin-top: 5px; }

@media (max-width: 1100px) {
  h1 { font-size: 84px; }
  .brand { font-size: 38px; }
  .hero-content p { font-size: 17px; }
  .command-row code { font-size: 13px; }
}

@media (max-width: 760px) {
  h1 { font-size: 60px; }
  .brand { font-size: 30px; }
  .hero-content p { font-size: 16px; }
  .command-row code { font-size: 12px; }
  .hero { padding: 132px 18px 58px; }
  .brand { gap: 12px; }
  .status-pill { margin-bottom: 20px; }
  .install-panel {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }
  .command-row { gap: 8px; padding: 8px; }
  .terminal-icon { width: 36px; height: 36px; font-size: 15px; }
  .howto { text-align: center; }
  .howto ol {
    display: inline-block;
    text-align: left;
  }
}

@media (min-width: 761px) and (max-height: 700px) {
  .hero {
    align-content: start;
    padding-top: 34px;
    row-gap: 28px;
  }

  h1 {
    font-size: 92px;
  }
}

@media (max-width: 620px) {
  h1 { font-size: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
