/* Shoulder - CLI Install & Download Page
   ========================================================================== */

/* Accent palette */
.page-cli {
  --purple: #7c5cfc;
  --teal: #00d4aa;
}

/* Subtle grid background (same as homepage) */
.page-cli::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.cli-hero {
  padding: 56px 0 0;
  margin-bottom: 48px;
  position: relative;
}

.cli-hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 16px 0 14px;
  letter-spacing: -0.035em;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #f0ecff 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cli-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
  max-width: 640px;
  line-height: 1.6;
}

.cli-version-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(124, 92, 252, 0.12);
  color: #b4a0ff;
  border: 1px solid rgba(124, 92, 252, 0.25);
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ==========================================================================
   Trust strip (horizontal chips below hero)
   ========================================================================== */

.cli-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.cli-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(57, 217, 138, 0.04);
  border: 1px solid rgba(57, 217, 138, 0.12);
  border-radius: 8px;
  text-decoration: none;
}

.cli-trust-chip svg {
  color: var(--good);
  flex-shrink: 0;
}

.cli-trust-chip-link {
  cursor: pointer;
  transition: all 0.15s;
  color: var(--info);
  background: rgba(100, 181, 255, 0.04);
  border-color: rgba(100, 181, 255, 0.12);
}

.cli-trust-chip-link svg {
  color: var(--info);
}

.cli-trust-chip-link:hover {
  background: rgba(100, 181, 255, 0.08);
  border-color: rgba(100, 181, 255, 0.25);
}

/* ==========================================================================
   Two-column install grid
   ========================================================================== */

.cli-install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

/* Panel shared */
.cli-panel {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Colored top accent bar */
.cli-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.cli-panel-npm::before {
  background: var(--teal);
}

.cli-panel-binary::before {
  background: var(--purple);
}

/* Panel label row */
.cli-panel-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}

.cli-panel-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
  white-space: nowrap;
}

.tag-npm {
  color: var(--teal);
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.2);
}

.tag-binary {
  color: #b4a0ff;
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(124, 92, 252, 0.2);
}

.cli-panel-hint {
  color: var(--muted2);
  font-size: 0.8rem;
  margin: 16px 0 0;
  line-height: 1.5;
}

.cli-panel-hint a {
  color: var(--info);
  text-decoration: none;
}

.cli-panel-hint a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Command box (shared)
   ========================================================================== */

.cli-cmd-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--mono);
}

.cli-cmd-box.compact {
  padding: 12px 16px;
}

.cli-prompt {
  color: var(--teal);
  font-weight: 700;
  user-select: none;
}

.cli-cmd-box code {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--text);
}

.cli-cmd-box.compact code {
  font-size: 0.85rem;
}

.cli-cmd-box .copy-btn {
  font-size: 0.65rem;
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}

.cli-cmd-box .copy-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* ==========================================================================
   Platform selector
   ========================================================================== */

.cli-platform-row {
  margin-bottom: 16px;
}

.platform-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 11px 42px 11px 16px;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--text);
  background-color: rgba(0, 0, 0, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.platform-select:hover {
  border-color: rgba(124, 92, 252, 0.4);
}

.platform-select:focus {
  outline: none;
  border-color: rgba(124, 92, 252, 0.6);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.12);
}

.platform-select option {
  background: #1a1a2e;
  color: var(--text);
}

/* ==========================================================================
   Download button
   ========================================================================== */

.cli-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: rgba(124, 92, 252, 0.15);
  border: 1px solid rgba(124, 92, 252, 0.35);
  border-radius: 10px;
  color: #e0d6ff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
}

.cli-download-btn:hover {
  background: rgba(124, 92, 252, 0.25);
  border-color: rgba(124, 92, 252, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.15);
}

.cli-download-btn:active {
  transform: translateY(0);
}

.cli-download-btn svg {
  flex-shrink: 0;
}

/* ==========================================================================
   Code signing attestation
   ========================================================================== */

.cli-signing-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 14px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  margin-bottom: 16px;
}

.cli-signing-info[hidden] {
  display: none;
}

.cli-signing-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.cli-signing-detail {
  font-size: 0.8rem;
  font-weight: 600;
  color: #86efac;
}

/* ==========================================================================
   Verify block (SHA + command)
   ========================================================================== */

.cli-verify-block {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.cli-verify-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border2);
}

.cli-verify-row:last-child {
  border-bottom: none;
}

.cli-verify-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted2);
  min-width: 56px;
  flex-shrink: 0;
}

.cli-verify-hash,
.cli-verify-cmd {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
  line-height: 1.4;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cli-verify-cmd {
  white-space: nowrap;
  overflow-x: auto;
}

.cli-verify-block .copy-btn {
  font-size: 0.6rem;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--muted2);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}

.cli-verify-block .copy-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* ==========================================================================
   Quick start
   ========================================================================== */

.cli-quickstart {
  margin-bottom: 64px;
}

.cli-quickstart h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 24px;
  color: #fff;
  letter-spacing: -0.02em;
}

.cli-quickstart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cli-qs-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 20px;
}

.cli-qs-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cli-qs-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(124, 92, 252, 0.12);
  color: #b4a0ff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cli-qs-label {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .cli-install-grid {
    grid-template-columns: 1fr;
  }

  .cli-quickstart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cli-hero {
    padding: 36px 0 0;
    margin-bottom: 32px;
  }

  .cli-hero-content h1 {
    font-size: 1.8rem;
  }

  .cli-subtitle {
    font-size: 0.95rem;
  }

  .cli-trust-strip {
    gap: 8px;
  }

  .cli-trust-chip {
    font-size: 0.72rem;
    padding: 6px 10px;
  }

  .cli-panel {
    padding: 24px;
  }

  .cli-verify-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .cli-hero-content h1 {
    font-size: 1.4rem;
  }

  .cli-panel {
    padding: 20px;
    border-radius: 12px;
  }

  .cli-cmd-box {
    padding: 10px 12px;
  }

  .cli-cmd-box code {
    font-size: 0.8rem;
  }

  .cli-qs-card {
    padding: 16px;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .cli-download-btn {
    transition: none;
  }
}
