.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  line-height: 1.38;
  background: linear-gradient(135deg, #0f172a 25%, #c13584 70%, #fd1d1d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.status-text {
  font-size: 0.875rem;
  min-height: 1.5rem;
  margin-bottom: 2rem;
  color: #e1306c;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.status-text.show {
  opacity: 1;
}

.status-text.error {
  color: #dc2626;
}

/* Terminal Wrapper & Window Header */
.terminal-wrapper {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 14px;
  margin: 2.5rem auto 4.5rem;
  max-width: 920px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  text-align: left;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}

.terminal-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.terminal-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.terminal-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dots .dot.red { background: #ff5f57; }
.terminal-dots .dot.yellow { background: #febc2e; }
.terminal-dots .dot.green { background: #28c840; }

.terminal-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #8b949e;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-expand-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c9d1d9;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-expand-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.terminal-expand-btn svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Terminal Body & Expansion Container */
.terminal-body-container {
  position: relative;
  max-height: 180px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-body-container.expanded {
  max-height: 600px;
  overflow-y: auto;
}

.terminal-body {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #e6edf3;
  padding: 1.25rem 1.5rem;
  margin: 0;
  white-space: pre;
  overflow-x: auto;
}

.terminal-body code {
  font-family: inherit;
}

/* Bottom Fade Overlay for Collapsed Code */
.terminal-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to bottom, rgba(13, 17, 23, 0), rgba(13, 17, 23, 0.95));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.terminal-fade-overlay.hidden {
  opacity: 0;
}

.terminal-body-container::-webkit-scrollbar,
.terminal-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.terminal-body-container::-webkit-scrollbar-track,
.terminal-body::-webkit-scrollbar-track {
  background: #0d1117;
}

.terminal-body-container::-webkit-scrollbar-thumb,
.terminal-body::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 4px;
}

/* Steps & Badges */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: #0f172a;
}

.usage-section {
  max-width: 820px;
  margin: 0 auto 3rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: #ffffff;
  padding: 1.6rem 1.75rem;
  border-radius: 14px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.08);
}

.step-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #833ab4 0%, #e1306c 50%, #fd1d1d 100%);
  font-weight: 700;
  color: white;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

.step-content {
  flex: 1;
}

.step-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.step-body {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

.badge-copy-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 2px;
}

.badge-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: #c13584;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85em;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.badge-copy:hover {
  background: #e1306c;
  color: white;
  border-color: #e1306c;
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.35);
}

.badge-copy:active {
  transform: scale(0.95);
}

.badge-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  z-index: 20;
}

.badge-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0f172a;
}

.badge-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.callout {
  margin-top: 2rem;
  margin-bottom: 3.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(225, 48, 108, 0.05);
  border-left: 4px solid #e1306c;
  border-radius: 8px;
  color: #9f1239;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.05);
}

.security-section {
  max-width: 820px;
  margin: 0 auto 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .step-card {
    padding: 1.25rem;
  }
}
