/* Lead X: a restrained, evidence-first visual layer across public and private UI. */
:root {
  --lx-night: #11172f;
  --lx-violet: #7d68de;
  --lx-mist: #f4f5fb;
  --lx-hairline: #e3e5f1;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 21, 43, .96);
  backdrop-filter: blur(18px);
}
.public-hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 74% 63%, rgba(122, 99, 219, .42), transparent 49%),
    radial-gradient(ellipse at 14% 10%, rgba(74, 76, 150, .22), transparent 48%),
    linear-gradient(128deg, #0d142b 4%, #192447 58%, #26244f 100%);
}
.public-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .38;
  background: repeating-linear-gradient(145deg, transparent 0 134px,
    rgba(216, 205, 255, .10) 135px, transparent 136px 270px);
  mask-image: linear-gradient(90deg, transparent 15%, #000 100%);
}
.public-kicker {
  box-shadow: inset 0 1px rgba(255, 255, 255, .16), 0 9px 25px rgba(5, 8, 31, .15);
}
.public-hero h1 { text-wrap: balance; }
.public-hero-visual { filter: drop-shadow(0 34px 50px rgba(5, 6, 30, .18)); }
.public-preview-shell { border-color: rgba(240, 236, 255, .88); }
.public-floating-card { border: 1px solid rgba(240, 235, 255, .95); }
.public-value-strip { border-block: 1px solid rgba(91, 74, 171, .10); }

.public-platform, .public-workflow, .public-vision, .public-pricing {
  position: relative;
  isolation: isolate;
}
.public-platform::before, .public-workflow::before,
.public-vision::before, .public-pricing::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(42vw, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(148, 125, 239, .13), transparent 68%);
  transform: translate3d(0, var(--ambient-drift, 0px), 0);
}
.public-platform::before, .public-vision::before { top: 4%; right: -12%; }
.public-workflow::before, .public-pricing::before { bottom: 1%; left: -15%; }
.public-platform > *, .public-workflow > *,
.public-vision > *, .public-pricing > * { position: relative; z-index: 1; }
.public-feature-card, .vision-card, .pricing-card { border-radius: 20px; }
.public-feature-card {
  border-color: #e0def0;
  box-shadow: 0 15px 42px rgba(32, 31, 86, .07);
}
.public-feature-number { letter-spacing: .16em; }
.public-feature-symbol { box-shadow: inset 0 1px rgba(255, 255, 255, .8); }
.vision-card { box-shadow: 0 16px 38px rgba(31, 29, 82, .075); }
.pricing-card-premium { box-shadow: 0 30px 66px rgba(30, 28, 81, .25); }

/* The first metric row is public intelligence; the second is private work. */
#appShell { background: var(--lx-mist); }
#appShell .topbar {
  position: sticky;
  top: 0;
  z-index: 9;
  background: rgba(252, 252, 255, .92);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(104, 99, 156, .10);
}
#appShell .workspace-view {
  background:
    radial-gradient(ellipse at 94% 4%, rgba(199, 190, 251, .15), transparent 34%),
    transparent;
}
#appShell .page-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(106, 101, 158, .15);
}
#appShell .page-heading h1 { letter-spacing: -.052em; }
#appShell .hero-banner {
  min-height: 226px;
  background:
    radial-gradient(circle at 80% 30%, rgba(154, 128, 255, .23), transparent 38%),
    linear-gradient(116deg, #171d3d 0%, #292e62 62%, #373471 100%);
  box-shadow: 0 24px 52px rgba(25, 27, 74, .18);
}
#appShell .hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(232, 225, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 225, 255, .05) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: linear-gradient(90deg, transparent 18%, #000);
}
#appShell .hero-banner > * { position: relative; z-index: 1; }
#appShell .stats { row-gap: 13px; margin-top: 24px; }
#appShell .metric-band-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 1px 0;
}
#appShell .metric-band-label-pipeline { margin-top: 18px; }
#appShell .metric-band-label span {
  color: #51459e;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .17em;
  white-space: nowrap;
}
#appShell .metric-band-label p {
  margin: 0;
  color: #606b87;
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}
#appShell .stats button[data-metric-view] {
  min-height: 134px;
  padding: 20px 21px;
  border-radius: 18px;
  border-color: #dfe1ee;
  background: #fff;
  box-shadow: 0 10px 29px rgba(31, 31, 83, .06);
}
#appShell .stats button[data-metric-view]::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #7567d2, #c6b9fa);
  opacity: .65;
}
#appShell .stats button[data-metric-view="all"],
#appShell .stats button[data-metric-view="qualified"] {
  background: linear-gradient(150deg, #fff, #f4f1ff);
  border-color: #d5cff3;
}
#appShell .stats button[data-metric-view="qualified"]::before,
#appShell .stats button[data-metric-view="remaining"]::before,
#appShell .stats button[data-metric-view="sent"]::before {
  background: linear-gradient(90deg, #394577, #8d84c6);
}
#appShell .stats button[data-metric-view] strong { letter-spacing: -.065em; }
#appShell .section-title { scroll-margin-top: 90px; }
#appShell .section-title h2 { letter-spacing: -.045em; }
#appShell .table-wrap {
  border-radius: 19px;
  border-color: #dcdfed;
  box-shadow: 0 17px 42px rgba(33, 34, 83, .07);
}
#appShell .table-wrap th { background: #fafaff; }
#appShell .table-wrap tbody tr:hover { background: #faf9ff; }
#appShell .government-discoveries {
  padding: clamp(19px, 2.8vw, 34px);
  border: 1px solid #e0e2ef;
  border-radius: 23px;
  background: linear-gradient(160deg, #fff, #fcfbff);
  box-shadow: 0 20px 50px rgba(33, 34, 83, .055);
  scroll-margin-top: 98px;
}
#appShell .government-card {
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 30, 80, .055);
}

@media (prefers-reduced-motion: no-preference) {
  .public-hero-copy, .public-hero-visual, .hero-signal-field,
  .public-floating-card { will-change: transform; }
  .public-hero-copy { transform: translate3d(0, var(--hero-copy-depth, 0px), 0); }
  .public-hero-visual { transform: translate3d(0, var(--hero-visual-depth, 0px), 0); }
  .hero-signal-field { transform: translate3d(0, var(--hero-signal-depth, 0px), 0); }
  .public-floating-card { transform: translate3d(0, var(--hero-float-depth, 0px), 0); }
}
@media (max-width: 950px) and (min-width: 651px) {
  #appShell .rail-link::after {
    content: attr(aria-label);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translate(-5px, -50%);
    padding: 9px 12px;
    border: 1px solid rgba(217, 211, 255, .22);
    border-radius: 9px;
    background: #22254b;
    color: #fff;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 750;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 12px 24px rgba(10, 12, 38, .22);
  }
  #appShell .rail-link:hover::after,
  #appShell .rail-link:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
}
@media (max-width: 700px) {
  #appShell .metric-band-label { display: block; }
  #appShell .metric-band-label p { margin-top: 5px; text-align: left; }
  #appShell .stats button[data-metric-view] { min-height: 122px; padding: 16px; }
  #appShell .government-discoveries { border-radius: 18px; }
  .public-platform::before, .public-workflow::before,
  .public-vision::before, .public-pricing::before { width: 75vw; }
}
@media (prefers-reduced-motion: reduce) {
  .public-hero-copy, .public-hero-visual, .hero-signal-field,
  .public-floating-card, .public-platform::before, .public-workflow::before,
  .public-vision::before, .public-pricing::before { transform: none !important; animation: none !important; }
}
