/* ============================================================
   VAULT RENOVATION - top tier pass (PREVIEW ONLY, not launched)
   Makes the library feel massive, vetted, and premium.
   ============================================================ */

/* ---------- 1. Hero creed line: values, not numbers ---------- */
.vault-creed {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  margin: 2.6rem auto 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #b9b9c9;
}
.vault-creed i {
  width: 4px;
  height: 4px;
  background: #f09a39;
  transform: rotate(45deg);
  flex: none;
}
.vault-stats { display: none; }

/* ---------- 2. Vault Originals: flagship shelf above the library ---------- */
.vault-originals {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 1rem;
}
.vo-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #f09a39;
  margin-bottom: 0.6rem;
}
.vo-head {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: 0.03em;
  color: #e8e8ee;
  margin: 0 0 0.4rem;
}
.vo-sub {
  color: #9898a8;
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 0 2.2rem;
}
.vo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: transparent;
}
.vo-card { outline: 1px solid rgba(240, 154, 57, 0.14); }
.vo-card {
  position: relative;
  background: #0a0a11;
  padding: 1.9rem 1.6rem 1.7rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease;
  overflow: hidden;
}
.vo-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #f09a39, #e06d10);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}
.vo-card:hover { background: #0e0e16; }
.vo-card:hover::before { transform: scaleY(1); }
.vo-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f09a39;
  margin-bottom: 0.9rem;
}
.vo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: #e8e8ee;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}
.vo-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #9898a8;
  flex: 1;
}
.vo-cta {
  margin-top: 1.1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f09a39;
}
.vo-card:hover .vo-cta { color: #f6ac55; }

/* ---------- 3. Vetted mark on every tool card ---------- */
.tool-card { position: relative; }
.vetted-mark {
  position: absolute;
  top: 0.85rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(240, 154, 57, 0.75);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.vetted-mark svg { width: 10px; height: 10px; }
.tool-card:hover .vetted-mark { opacity: 1; transform: translateY(0); }

/* ---------- 4. Numbered section titles: library feels cataloged ---------- */
.tool-section .section-title {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.section-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(240, 154, 57, 0.55);
  -webkit-text-fill-color: rgba(240, 154, 57, 0.55);
  background: none !important;
}

/* ---------- 5. Library anchor heading above the grid ---------- */
.library-head {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.library-head .lh-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: 0.04em;
  color: #e8e8ee;
}
.library-head .lh-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #9898a8;
}
.library-head .lh-count b { color: #f09a39; font-weight: 600; }

/* ---------- 6. Card richness: subtle depth upgrade ---------- */
.tool-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}
.tool-card:hover {
  border-color: rgba(240, 154, 57, 0.4) !important;
}

@media (max-width: 640px) {
  .vault-stats { flex-direction: column; }
  .vault-stat { border-right: none; border-bottom: 1px solid rgba(240, 154, 57, 0.18); }
  .vault-stat:last-child { border-bottom: none; }
}

/* ---------- 7. Kill per-category count chips ---------- */
.section-count { display: none !important; }

/* ---------- 8. Hero Omerta live scan ---------- */
.omerta-demo { margin: 2.2rem auto 0; max-width: 620px; text-align: center; }
.od-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: #d9d9e2;
  margin-bottom: 0.9rem;
}
.od-form {
  display: flex; align-items: center; gap: 0.75rem;
  border: 1px solid rgba(240, 154, 57, 0.45);
  background: rgba(5, 5, 8, 0.85);
  padding: 0.9rem 1.1rem;
  box-shadow: 0 0 0 rgba(240,154,57,0);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.od-form:focus-within {
  border-color: #f09a39;
  box-shadow: 0 0 32px rgba(240, 154, 57, 0.22);
}
.od-prompt { color: #f09a39; font-size: 0.9rem; animation: odBlink 1.4s steps(1) infinite; }
@keyframes odBlink { 50% { opacity: 0.25; } }
.od-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #e8e8ee; font-family: 'JetBrains Mono', monospace; font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.od-input::placeholder { color: #6a6a78; }
.od-btn {
  background: #f09a39; color: #0a0a11; border: none; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.24em; padding: 0.55rem 1.1rem;
  transition: background 0.2s ease;
}
.od-btn:hover { background: #f6ac55; }
.od-cap {
  margin-top: 0.85rem; font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.12em; white-space: nowrap; text-transform: uppercase; color: #b9b9c9;
}
.od-cap b, .od-cap strong { color: #f09a39; font-weight: 600; }
@media (max-width: 640px) { .od-form { flex-wrap: wrap; } .od-btn { width: 100%; } }

/* ---------- 9. Motion: the site breathes now ---------- */
/* hero entrance, staggered */
@keyframes rvRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.brand-mark, .site-header .brand, .site-header .tagline, .hero-proof,
.vault-creed, .omerta-demo { animation: rvRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.site-header .brand { animation-delay: 0.12s; }
.site-header .tagline { animation-delay: 0.26s; }
.hero-proof { animation-delay: 0.38s; }
.vault-creed { animation-delay: 0.5s; }
.omerta-demo { animation-delay: 0.62s; }

/* slow copper sheen sweeping the wordmark */
.site-header .brand {
  position: relative;
  background: linear-gradient(110deg, #f2f2f6 40%, #f09a39 50%, #f2f2f6 60%);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rvRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.12s both, rvSheen 9s ease-in-out 2s infinite;
}
@keyframes rvSheen { 0% { background-position: 120% 0; } 45%, 100% { background-position: -120% 0; } }

/* blueprint grid + slow radar sweep behind hero */
.site-header { position: relative; overflow: hidden; }
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(240,154,57,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,154,57,0.09) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 90% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
  animation: rvGridDrift 26s linear infinite;
}
@keyframes rvGridDrift { from { background-position: 0 0, 0 0; } to { background-position: 52px 52px, 52px 52px; } }
.site-header::after {
  content: '';
  position: absolute; left: 50%; top: -12%;
  width: 720px; height: 720px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(240,154,57,0.16) 28deg, transparent 60deg);
  -webkit-mask-image: radial-gradient(circle, transparent 26%, #000 30%, #000 62%, transparent 70%);
  mask-image: radial-gradient(circle, transparent 26%, #000 30%, #000 62%, transparent 70%);
  pointer-events: none;
  animation: rvSweep 16s linear infinite;
}
@keyframes rvSweep { to { transform: translateX(-50%) rotate(360deg); } }

/* scan button: low pulse so the eye finds it */
.od-btn { animation: rvPulse 3.2s ease-in-out 2.5s infinite; }
@keyframes rvPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,154,57,0.0); }
  50% { box-shadow: 0 0 22px 2px rgba(240,154,57,0.4); }
}

/* cards + sections reveal on scroll */
.rv-motion .tool-card, .rv-motion .flagship-tile, .rv-motion .utility-tile,
.rv-motion .support-tile, .rv-motion .som-item {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.rv-inview { opacity: 1 !important; transform: translateY(0) !important; }

@media (prefers-reduced-motion: reduce) {
  .brand-mark, .site-header .brand, .site-header .tagline, .hero-proof,
  .vault-creed, .omerta-demo, .od-btn, .site-header::before { animation: none !important; }
  .tool-card, .flagship-tile, .utility-tile, .support-tile, .som-item { opacity: 1; transform: none; }
}

/* ---------- 10. Inline Omerta live scan panel ---------- */
.od-live {
  margin-top: 1.1rem; text-align: left;
  border: 1px solid rgba(240,154,57,0.35);
  background: rgba(4,4,7,0.92);
  padding: 1.1rem 1.2rem 1rem;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22,1,0.36,1), opacity 0.4s ease;
}
.od-live.open { max-height: 460px; opacity: 1; }
.odl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.7rem; }
.odl-title { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.22em; color: #d9d9e2; }
.odl-title b { color: #f09a39; font-weight: 600; }
.odl-dots i {
  display: inline-block; width: 5px; height: 5px; margin-left: 4px;
  background: #f09a39; transform: rotate(45deg); animation: odlBlink 1.2s infinite;
}
.odl-dots i:nth-child(2) { animation-delay: 0.2s; } .odl-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes odlBlink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
.odl-bar { height: 3px; background: rgba(240,154,57,0.15); margin-bottom: 0.6rem; }
.odl-fill { height: 100%; width: 0; background: linear-gradient(90deg, #e06d10, #f09a39); transition: width 0.4s ease; }
.odl-meta {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 0.66rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: #9898a8; margin-bottom: 0.7rem;
}
.odl-hits { color: #f09a39; }
.odl-finding {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.6rem; margin-bottom: 0.35rem;
  background: rgba(240,154,57,0.07); border-left: 2px solid #f09a39;
  font-family: 'JetBrains Mono', monospace; font-size: 0.74rem;
  animation: rvRise 0.45s cubic-bezier(0.22,1,0.36,1) both;
}
.odl-check { color: #f09a39; font-weight: 700; }
.odl-src { color: #e8e8ee; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odl-link { color: #f09a39; text-decoration: none; letter-spacing: 0.1em; }
.odl-link:hover { color: #f6ac55; }
.odl-foot { margin-top: 0.9rem; text-align: center; }
.odl-report {
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: #f09a39; text-decoration: none;
  border: 1px solid rgba(240,154,57,0.45); padding: 0.6rem 1.2rem; display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}
.odl-report:hover { background: #f09a39; color: #0a0a11; }

/* ---------- 11. Capability ticker ---------- */
.cap-ticker {
  margin: 2.2rem auto 0; max-width: 900px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.cap-track { display: flex; align-items: center; width: max-content; animation: capScroll 36s linear infinite; }
.cap-ticker:hover .cap-track { animation-play-state: paused; }
.cap-track span {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: #b9b9c9; white-space: nowrap;
}
.cap-track i { width: 4px; height: 4px; background: #f09a39; transform: rotate(45deg); margin: 0 1.6rem; flex: none; }
@keyframes capScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cap-track { animation: none; } }
