/* =========================================================
   components.css — nav, buttons (with clean shimmer),
                    badges, cards, terminal, install,
                    dependency callouts, footer
   ========================================================= */

/* =========================================================
   NAV
   ========================================================= */
nav.primary {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 0;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(8, 8, 10, 0.78);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease;
}
nav.primary.scrolled {
  background: rgba(8, 8, 10, 0.92);
  border-bottom-color: var(--yellow-line);
}
nav.primary::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0.5;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 13px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(245, 197, 24, 0.30),
    0 0 22px rgba(245, 197, 24, 0.40);
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, var(--bg) 50%);
  opacity: 0.85;
}
.brand-mark span { position: relative; z-index: 1; }
.brand-text {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-text .slash {
  color: var(--yellow);
  font-style: italic;
  margin: 0 1px;
  text-shadow: 0 0 12px var(--yellow-glow);
}

/* nav center */
.nav-center { display: flex; gap: 28px; }
.nav-center a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-center a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1px;
  width: 0;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow-glow);
  transition: width 0.25s ease;
}
.nav-center a:hover {
  color: var(--ink);
  text-shadow: 0 0 12px var(--yellow-glow);
}
.nav-center a:hover::after { width: 100%; }

/* nav right */
.nav-right { display: flex; align-items: center; gap: 14px; }

/* total downloads chip */
.dl-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(245, 197, 24, 0.04);
  box-shadow: 0 0 18px rgba(245, 197, 24, 0.10);
}
.dl-chip .dl-num {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.dl-chip .dl-label {
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-3);
}
.dl-chip .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow-glow);
}

@media (max-width: 880px) {
  .nav-center { display: none; }
  .dl-chip .dl-label { display: none; }
}
@media (max-width: 520px) {
  .dl-chip { display: none; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.18s ease,
    box-shadow 0.25s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.btn-lg { font-size: 15px; padding: 13px 22px; }

.btn-yellow {
  background: var(--yellow);
  color: #15110A;
  border-color: var(--yellow-bright);
  box-shadow:
    0 0 0 1px rgba(245, 197, 24, 0.35),
    0 0 26px rgba(245, 197, 24, 0.40),
    0 8px 20px -10px rgba(245, 197, 24, 0.55);
}
.btn-yellow:hover {
  transform: translateY(-1px);
  background: var(--yellow-bright);
  box-shadow:
    0 0 0 1px rgba(245, 197, 24, 0.55),
    0 0 50px rgba(245, 197, 24, 0.55),
    0 14px 30px -10px rgba(245, 197, 24, 0.7);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(245, 197, 24, 0.08);
  border-color: var(--yellow);
  color: var(--ink);
  box-shadow: 0 0 22px rgba(245, 197, 24, 0.25);
}

.btn-outline-y {
  background: transparent;
  color: var(--yellow);
  border-color: var(--yellow-line);
}
.btn-outline-y:hover {
  background: var(--yellow-soft);
  border-color: var(--yellow);
  box-shadow: 0 0 24px rgba(245, 197, 24, 0.25);
}

.btn-discord {
  background: #5865F2;
  color: #fff;
  border-color: #7983F5;
  box-shadow:
    0 0 0 1px rgba(88, 101, 242, 0.30),
    0 0 22px rgba(88, 101, 242, 0.30);
}
.btn-discord:hover {
  background: #6772F4;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(88, 101, 242, 0.50),
    0 0 36px rgba(88, 101, 242, 0.55);
}

/* =========================================================
   SHIMMER  — clean diagonal shine
   add the .shine class to any element you want a hover sweep
   on; add .shine-auto for a continuous ambient sweep
   ========================================================= */
.shine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.shine > * { position: relative; z-index: 1; }

.shine::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -75%;
  width: 45%;
  height: 220%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0)   0%,
    rgba(255, 255, 255, 0)   38%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0)   62%,
    rgba(255, 255, 255, 0)  100%
  );
  transform: rotate(20deg);
  pointer-events: none;
  z-index: 0;
  transition: left 0.85s cubic-bezier(.22, .61, .36, 1);
}
.shine:hover::before {
  left: 130%;
}

/* primary CTA — continuous ambient sweep, slightly stronger */
.shine-auto::before {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0)   0%,
    rgba(255, 255, 255, 0)   40%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0)   60%,
    rgba(255, 255, 255, 0)  100%
  );
  animation: shine-sweep 5.5s cubic-bezier(.4, 0, .2, 1) infinite;
  transition: none;
}
@keyframes shine-sweep {
  0%   { left: -75%; }
  18%  { left: 130%; }
  100% { left: 130%; }
}

/* =========================================================
   BADGES / TAGS / PILLS
   ========================================================= */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--yellow-line);
  background: var(--yellow-soft);
  color: var(--yellow);
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.15);
}
.tag.subtle {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-2);
  box-shadow: none;
}
.tag.solid {
  background: var(--yellow);
  color: #15110A;
  border-color: var(--yellow-bright);
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.40);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 6px var(--yellow-glow);
}

/* status with pulsing dot */
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
}
.status .ldot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green-glow), 0 0 10px var(--green-glow);
  animation: ldot-pulse 2.4s infinite;
}
@keyframes ldot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6), 0 0 10px var(--green-glow); }
  70%  { box-shadow: 0 0 0 9px rgba(74,222,128,0),   0 0 10px rgba(74,222,128,0.3); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0),     0 0 10px var(--green-glow); }
}
.status .num { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* "latest" chip — bambooclient-style */
.latest-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--yellow);
  color: #15110A;
  box-shadow: 0 0 22px rgba(245, 197, 24, 0.45);
}
.latest-chip::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #15110A;
}

/* =========================================================
   MODULE CARDS
   ========================================================= */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.mod-grid.feature-row {
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}
.mod-grid.three-up {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px) {
  .mod-grid,
  .mod-grid.three-up { grid-template-columns: 1fr; }
}

.mod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(24, 24, 32, 0.85), rgba(15, 15, 19, 0.95));
  border: 1px solid var(--line);
  color: var(--ink);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  transition:
    transform 0.4s cubic-bezier(.2,.7,.2,1),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
}
/* radial cursor-follow glow */
.mod-card .cursor-glow {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--cx, 100%) var(--cy, 0%),
    rgba(245, 197, 24, 0.18),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
/* subtle top sheen */
.mod-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%);
  pointer-events: none;
  z-index: 0;
}
.mod-card:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
  box-shadow:
    0 0 0 1px rgba(245, 197, 24, 0.20),
    0 0 40px rgba(245, 197, 24, 0.20),
    0 22px 50px -22px rgba(0,0,0,0.7);
}
.mod-card:hover .cursor-glow { opacity: 1; }
.mod-card > *:not(.cursor-glow) { position: relative; z-index: 1; }

/* featured (Krypton) variant */
.mod-card.is-feature {
  min-height: 380px;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 197, 24, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(28, 24, 12, 0.92), rgba(16, 14, 8, 0.96));
  border-color: rgba(245, 197, 24, 0.28);
  box-shadow:
    0 0 0 1px rgba(245, 197, 24, 0.10),
    0 0 60px rgba(245, 197, 24, 0.15);
}
.mod-card.is-feature:hover {
  border-color: var(--yellow);
  box-shadow:
    0 0 0 1px rgba(245, 197, 24, 0.30),
    0 0 80px rgba(245, 197, 24, 0.30),
    0 22px 50px -22px rgba(0,0,0,0.7);
}
.mod-card.is-feature .mod-name {
  font-size: 38px;
}
.mod-card.is-feature .mod-desc {
  font-size: 15.5px;
}

.mod-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.mod-head .head-tags {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mod-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.mod-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
}
.mod-icon svg {
  position: relative;
  z-index: 1;
  color: currentColor;
}
.mod-card:hover .mod-icon {
  background: var(--yellow-soft);
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 24px rgba(245, 197, 24, 0.35);
}
.mod-card.is-feature .mod-icon {
  background: var(--yellow);
  border-color: var(--yellow-bright);
  color: #15110A;
  box-shadow: 0 0 30px rgba(245, 197, 24, 0.55);
}
.mod-card.is-feature:hover .mod-icon {
  background: var(--yellow-bright);
  color: #15110A;
}

.mod-name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.mod-name .ver {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 8px;
  letter-spacing: 0.02em;
}

.mod-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 22px;
  flex: 1;
}

.mod-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.mod-features li {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
}
.mod-card.is-feature .mod-features li {
  border-color: var(--yellow-line);
  background: var(--yellow-soft);
  color: var(--yellow);
}

/* sha-256 row (bamboo-style) */
.sha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  padding: 8px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  margin-bottom: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sha-row .sha-label {
  color: var(--yellow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.sha-row .sha-val {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mod-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}
.mod-meta {
  display: flex;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
  flex-wrap: wrap;
}
.mod-meta span { display: inline-flex; align-items: center; gap: 6px; }
.mod-meta .ok {
  color: var(--green);
  font-size: 9px;
  text-shadow: 0 0 6px var(--green-glow);
}
.mod-meta .dl-cnt {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.mod-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: gap 0.2s, color 0.2s, text-shadow 0.2s;
}
.mod-cta::after { content: '→'; }
.mod-card:hover .mod-cta {
  gap: 10px;
  color: var(--yellow);
  text-shadow: 0 0 12px var(--yellow-glow);
}

/* =========================================================
   PANEL CHROME  (shared by hero preview)
   ========================================================= */
.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.30);
}
.term-bar .dots { display: flex; gap: 6px; }
.term-bar .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-hi);
}
.term-bar .dots span:nth-child(1) { background: #FF5F56; }
.term-bar .dots span:nth-child(2) { background: var(--yellow); }
.term-bar .dots span:nth-child(3) { background: var(--green); }
.term-bar .term-title {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-left: 6px;
}
.term-bar .term-status {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   KRYPTON LIVE PREVIEW PANEL  (hero visual)
   ========================================================= */
.preview {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(22, 22, 28, 0.94), rgba(10, 10, 14, 0.97));
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(245, 197, 24, 0.12),
    0 0 60px rgba(245, 197, 24, 0.18);
}

.preview-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050507;
  isolation: isolate;
}

.preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 1.1s cubic-bezier(.4, 0, .2, 1),
    transform 8s cubic-bezier(.4, 0, .2, 1);
  filter: saturate(1.05) contrast(1.04);
  pointer-events: none;
  will-change: opacity, transform;
}
.preview-img.is-active {
  opacity: 1;
  transform: scale(1);
}

/* subtle scanlines overlay over the image */
.preview-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.55;
  z-index: 2;
}

/* edge vignette to blend with panel */
.preview-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(5, 5, 7, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.35) 0%, transparent 22%, transparent 70%, rgba(5, 5, 7, 0.55) 100%);
  z-index: 3;
}

/* faux client tag in top-left of the preview */
.preview-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(245, 197, 24, 0.35);
  backdrop-filter: blur(6px);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.preview-hud .hud-tag {
  color: var(--yellow);
  text-shadow: 0 0 8px var(--yellow-glow);
  font-weight: 700;
}
.preview-hud .hud-meta {
  color: var(--ink-3);
}

/* "live · 01 / 06" frame meta in bottom-left */
.preview-meta {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.preview-meta .rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: rec-pulse 1.6s ease-in-out infinite;
}
.preview-meta .rec-text {
  color: var(--green);
  text-transform: uppercase;
}
.preview-meta .rec-sep { color: var(--line-strong); }
.preview-meta .rec-frame { color: var(--ink-2); }
@keyframes rec-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}

/* navigation dots in bottom-right */
.preview-dots {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.preview-dots .pdot {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  padding: 0;
  transition: background 0.25s ease, width 0.35s ease;
}
.preview-dots .pdot:hover { background: rgba(255, 255, 255, 0.45); }
.preview-dots .pdot.is-active {
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow-glow);
  width: 18px;
  border-radius: 999px;
}

/* shrink hud chrome on small screens */
@media (max-width: 720px) {
  .preview { max-width: 100%; }
  .preview-hud,
  .preview-meta,
  .preview-dots { font-size: 9.5px; padding: 5px 8px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .preview-img { transition: opacity 0.4s ease; transform: none !important; }
  .preview-meta .rec-dot { animation: none; }
}

/* =========================================================
   STATS TICKER
   ========================================================= */
.ticker {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--bg) 0%, transparent 6%, transparent 94%, var(--bg) 100%),
    rgba(245, 197, 24, 0.02);
  padding: 18px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: ticker-roll 38s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.ticker-item .v {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ticker-item .sep {
  color: var(--yellow);
  text-shadow: 0 0 8px var(--yellow-glow);
}
@keyframes ticker-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   INSTALL STEPS
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(22, 22, 28, 0.7), rgba(10, 10, 14, 0.85));
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--yellow), transparent);
  box-shadow: 0 0 12px var(--yellow-glow);
  transition: width 0.6s ease;
}
.step.is-visible::before { width: 60%; }
.step:hover {
  border-color: var(--yellow-line);
  box-shadow: 0 0 28px rgba(245, 197, 24, 0.12);
}
.step .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--yellow);
  margin-bottom: 14px;
}
.step h4 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.step p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* =========================================================
   DEPENDENCY CALLOUTS  (bambooclient-style)
   ========================================================= */
.deps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
@media (max-width: 880px) { .deps { grid-template-columns: 1fr; } }

.dep {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(22, 22, 28, 0.7), rgba(10, 10, 14, 0.85));
  backdrop-filter: blur(8px);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.18s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.dep:hover {
  transform: translateY(-2px);
  border-color: var(--yellow);
  box-shadow: 0 0 28px rgba(245, 197, 24, 0.20);
}
.dep .dep-ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-line);
  color: var(--yellow);
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.18);
}
.dep.discord .dep-ico {
  background: rgba(88, 101, 242, 0.10);
  border-color: rgba(88, 101, 242, 0.35);
  color: #8B95F5;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.20);
}
.dep .dep-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dep .dep-name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.dep .dep-meta {
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.dep .dep-meta .req {
  color: var(--yellow);
  font-weight: 600;
}
.dep .dep-arrow {
  margin-left: auto;
  color: var(--ink-3);
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.dep:hover .dep-arrow {
  color: var(--yellow);
  transform: translateX(3px);
}

/* compat pill row */
.compat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(0, 0, 0, 0.25);
}
.compat-row .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 12px;
}

/* =========================================================
   DISCLAIMER PANEL  (caution-tape style)
   ========================================================= */
.disclaimer {
  position: relative;
  margin-top: 56px;
  padding: 26px 28px 26px 36px;
  border: 1px solid var(--yellow-line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(40, 32, 8, 0.55), rgba(20, 16, 5, 0.7));
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: 0 0 28px rgba(245, 197, 24, 0.10);
  overflow: hidden;
}
/* caution stripe */
.disclaimer::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 8px,
    #15110A 8px 16px
  );
}
.disclaimer .ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-line);
  color: var(--yellow);
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.20);
}
.disclaimer h4 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--ink);
}
.disclaimer p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  position: relative;
  margin-top: 40px;
  padding: 48px 0 32px;
  border-top: 1px solid var(--line-strong);
}
footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 2px;
  background: var(--yellow);
  box-shadow: 0 0 16px var(--yellow-glow), 0 0 32px var(--yellow-glow);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-left .copy {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}
.footer-right {
  display: flex;
  gap: 22px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.footer-right a {
  color: var(--ink-3);
  transition: color 0.2s, text-shadow 0.2s;
}
.footer-right a:hover {
  color: var(--yellow);
  text-shadow: 0 0 12px var(--yellow-glow);
}
.footer-build {
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-line);
  color: var(--yellow);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.18);
}

.footer-disclaimer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-3);
  text-align: center;
}

@media (max-width: 720px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
