/* ── Custom tweaks on top of Tailwind ── */

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #e5e7eb;
}
.section-sub {
  margin-top: 0.75rem;
  color: #9ca3af;
  font-size: 1.05rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Sticky-nav background once scrolled */
#nav.scrolled {
  background: rgba(12, 13, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: #262932;
}
.nav-link.active { color: #38bdf8; }

/* Hero ambient glow */
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 70rem;
  height: 40rem;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Pipeline node */
.pipe-node {
  cursor: pointer;
  border: 1px solid #262932;
  background: #1a1c22;
  border-radius: 0.9rem;
  padding: 1rem 0.75rem;
  text-align: center;
  transition: all 0.2s ease;
}
.pipe-node:hover { border-color: #38bdf8; transform: translateY(-2px); }
.pipe-node.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 0 1px #38bdf8 inset;
}

/* Wizard rail item */
.wiz-step {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  color: #9ca3af;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.wiz-step:hover { background: #1a1c22; }
.wiz-step.active {
  background: #1a1c22;
  border-color: #38bdf8;
  color: #e5e7eb;
}
.wiz-step .num {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: #262932;
  color: #9ca3af;
  flex-shrink: 0;
}
.wiz-step.active .num,
.wiz-step.done .num { background: #38bdf8; color: #0c0d11; }

/* Code block + copy */
.code {
  position: relative;
  background: #0c0d11;
  border: 1px solid #262932;
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.85rem;
  color: #cbd5e1;
  overflow-x: auto;
}
.copy-btn {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid #262932;
  background: #1a1c22;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s ease;
}
.copy-btn:hover { color: #38bdf8; border-color: #38bdf8; }

/* Accordion */
.acc-item { border: 1px solid #262932; border-radius: 0.9rem; background: #1a1c22; overflow: hidden; }
.acc-head { width: 100%; text-align: left; padding: 1.1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; font-weight: 600; color: #e5e7eb; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.acc-body > div { padding: 0 1.25rem 1.2rem; color: #9ca3af; line-height: 1.65; }
.acc-item.open .acc-chev { transform: rotate(180deg); }
.acc-chev { transition: transform 0.3s ease; color: #38bdf8; }

/* Screenshot frame + placeholder fallback */
.shot {
  position: relative;
  border: 1px solid #262932;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #0c0d11;
}
.shot img { display: block; width: 100%; height: auto; }
.shot-cap {
  font-size: 0.75rem;
  color: #9ca3af;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid #262932;
  background: #131419;
}
.shot-ph { display: none; }
.shot.missing img,
.shot.missing .shot-cap { display: none; }
.shot.missing {
  background: repeating-linear-gradient(45deg, #0c0d11, #0c0d11 12px, #101117 12px, #101117 24px);
  border-style: dashed;
}
.shot.missing .shot-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 2.75rem 1.25rem;
  min-height: 210px;
  color: #9ca3af;
}
.shot.missing .shot-ph svg { color: #38bdf8; opacity: 0.8; margin-bottom: 0.25rem; }

/* Card hover */
.lift { transition: transform 0.2s ease, border-color 0.2s ease; }
.lift:hover { transform: translateY(-3px); border-color: #38bdf8; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0c0d11; }
::-webkit-scrollbar-thumb { background: #262932; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #38bdf8; }
