:root {
  --base: #1e1e2e;
  --mantle: #181825;
  --surface0: #313244;
  --surface2: #585b70;
  --overlay0: #6c7086;
  --text: #cdd6f4;
  --subtext0: #a6adc8;
  --subtext1: #bac2de;
  --lavender: #b4befe;
  --blue: #89b4fa;
  --green: #a6e3a1;
  --peach: #fab387;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--base);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(16px, 5vw, 24px);
}

main {
  max-width: 600px;
  width: 100%;
  padding: clamp(48px, 8vw, 80px) 0 clamp(40px, 6vw, 60px);
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--base);
  background: var(--peach);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.hero { margin-bottom: 16px; }

.hero .logo {
  height: clamp(40px, 8vw, 56px);
  width: auto;
}

.tagline {
  font-size: clamp(13px, 2.5vw, 15px);
  color: var(--subtext0);
  line-height: 1.6;
  margin-bottom: clamp(28px, 5vw, 40px);
}

.divider {
  height: 1px;
  background: var(--surface0);
  margin: clamp(24px, 4vw, 32px) 0;
}

h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--overlay0);
  margin-bottom: 16px;
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list li {
  font-size: clamp(12.5px, 2.3vw, 14px);
  color: var(--subtext1);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--surface2);
  font-weight: 600;
}

.list code { word-break: break-all; }

.flow-wrap { position: relative; }

.flow-wrap canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
  padding: 4px 0;
}

.flow-node {
  background: var(--mantle);
  border: 1px solid var(--surface0);
  border-radius: 6px;
  padding: 16px;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
  position: relative;
  z-index: 0;
}

.flow-node.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.flow-node.done { border-color: var(--green); }

.flow-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--overlay0);
  margin-bottom: 6px;
}

.flow-node.done .flow-label { color: var(--green); }

.flow-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.flow-node.done .flow-title { color: var(--green); }

.flow-desc {
  font-size: 11px;
  color: var(--overlay0);
  line-height: 1.4;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.fact {
  background: var(--mantle);
  border: 1px solid var(--surface0);
  border-radius: 4px;
  padding: clamp(12px, 2vw, 16px);
}

.fact-val {
  font-size: clamp(18px, 3vw, 20px);
  font-weight: 600;
  color: var(--green);
  margin-bottom: 4px;
}

.fact-label {
  font-size: 11px;
  color: var(--overlay0);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.install {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.install a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  transition: opacity 0.15s;
}

.install a:hover { opacity: 0.85; }
.install a img { flex-shrink: 0; }
.install .full { grid-column: 1 / -1; }
.btn-primary { background: var(--lavender); color: var(--base); }
.btn-primary.disabled { opacity: 0.4; pointer-events: none; cursor: default; }
.btn-secondary { background: var(--surface0); color: var(--subtext1); }

.scope {
  font-size: 12px;
  color: var(--surface2);
  line-height: 1.6;
}

footer {
  max-width: 600px;
  width: 100%;
  padding: 24px 0;
  border-top: 1px solid var(--surface0);
  font-size: 12px;
  color: var(--surface2);
}

@media (max-width: 480px) {
  .install { grid-template-columns: 1fr; }
  .install .full { grid-column: auto; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
}
