:root {
  --ink: #101312;
  --muted: #5d6661;
  --paper: #f5f7f2;
  --panel: #ffffff;
  --line: #dce3dd;
  --green: #1a7f5a;
  --blue: #255f8f;
  --amber: #b76e26;
  --shadow: 0 18px 60px rgb(16 19 18 / 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgb(16 19 18 / 0.035) 1px, transparent 1px),
    linear-gradient(rgb(16 19 18 / 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 780;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(16 19 18 / 0.14);
}

.topbar-actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button,
.icon-link {
  min-height: 40px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font: inherit;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
}

.button.ghost,
.icon-link {
  background: rgb(255 255 255 / 0.72);
  color: var(--ink);
}

.button:focus-visible,
.icon-link:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(37 95 143 / 0.28);
  outline-offset: 3px;
}

.icon-link {
  width: 42px;
  display: inline-grid;
  place-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
  margin-top: 58px;
}

.headline {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 24px;
}

.kicker,
.card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.env-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgb(26 127 90 / 0.12);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 20px;
  font-size: 86px;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.56;
}

.headline p {
  max-width: 620px;
  font-size: 19px;
}

.status-panel,
.console-card,
.route-rail article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.86);
  box-shadow: var(--shadow);
}

.status-panel {
  align-self: center;
  padding: 18px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.status-row span {
  color: var(--muted);
}

.status-row strong {
  text-align: right;
}

.status-panel .button {
  width: 100%;
  margin-top: 18px;
}

.route-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.route-rail::before {
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  top: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--amber));
}

.route-rail article {
  position: relative;
  padding: 20px;
}

.step-index {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 38px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--panel);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr) minmax(260px, 0.9fr);
  gap: 14px;
  margin-top: 14px;
}

.console-card {
  padding: 22px;
}

.install-card {
  display: grid;
  gap: 16px;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid #202523;
  border-radius: 8px;
  background: #151917;
  color: #dff8ec;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  line-height: 1.5;
}

.result {
  min-height: 20px;
  margin: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.route-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.route-list div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.route-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

dt {
  color: var(--muted);
}

dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 720;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .workspace,
  .console-grid,
  .route-rail {
    grid-template-columns: 1fr;
  }

  .headline {
    min-height: auto;
    padding: 40px 0 10px;
  }

  h1 {
    font-size: 64px;
  }

  .route-rail::before {
    display: none;
  }

  .step-index {
    margin-bottom: 20px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 12px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    justify-content: flex-end;
  }

  h1 {
    font-size: 42px;
  }

  .headline p {
    font-size: 16px;
  }

  .route-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .card-actions {
    align-items: stretch;
  }

  .card-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .icon-link,
  .route-rail article,
  .console-card {
    transition:
      transform 160ms ease,
      box-shadow 160ms ease,
      border-color 160ms ease;
  }

  .button:hover,
  .icon-link:hover {
    transform: translateY(-1px);
  }

  .route-rail article:hover,
  .console-card:hover {
    border-color: rgb(37 95 143 / 0.4);
    box-shadow: 0 22px 70px rgb(16 19 18 / 0.1);
  }
}
