/* Homepage hero quality pass: fewer choices, clearer routes, tighter mobile first screen */
body {
  --home-panel-glow: rgba(70, 224, 122, 0.11);
  --home-panel-wash: rgba(70, 224, 122, 0.045);
}

.hero {
  margin-top: 20px;
  margin-bottom: 30px;
  box-shadow:
    0 0 50px rgba(70, 224, 122, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 38px rgba(70, 224, 122, 0.04);
}

.hero:before {
  content: "● ● ●    niftytoolshub: ~/start";
}

.hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 34px;
  align-items: stretch;
}

.kickers {
  margin-bottom: 14px;
}

.pill {
  border-color: rgba(70, 224, 122, 0.18);
  background: rgba(4, 10, 5, 0.76);
}

.hero .sub {
  max-width: 720px;
  color: rgba(223, 234, 223, 0.76);
}

.hero-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) repeat(2, minmax(170px, 0.85fr));
  gap: 10px;
  max-width: 760px;
}

.hero-actions .btn,
.hero-actions .ghost {
  min-height: 48px;
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.hero-actions .btn:hover,
.hero-actions .ghost:hover {
  transform: translateY(-1px);
}

.hero-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--mut);
  font-size: 12px;
}

.hero-secondary a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(70, 224, 122, 0.14);
  border-radius: 999px;
  background: rgba(3, 8, 4, 0.62);
  padding: 0 11px;
}

.hero-secondary a:hover,
.hero-secondary a:focus-visible {
  color: var(--grn);
  border-color: rgba(70, 224, 122, 0.42);
  outline: none;
}

.hero-proof {
  max-width: 760px;
  margin-top: 18px;
}

.hero-proof .metric {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: rgba(70, 224, 122, 0.16);
  background:
    linear-gradient(180deg, rgba(13, 19, 13, 0.94), rgba(5, 9, 5, 0.96)),
    radial-gradient(140px 80px at 80% 0%, rgba(99, 230, 255, 0.08), transparent 70%);
}

.hero-proof .metric b {
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1;
}

.hero-proof .metric span {
  line-height: 1.28;
}

.radar {
  min-height: 430px;
  border-color: rgba(70, 224, 122, 0.22);
  background:
    radial-gradient(circle at 51% 49%, rgba(70, 224, 122, 0.15), transparent 36%),
    radial-gradient(circle at 70% 22%, rgba(99, 230, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(8, 17, 9, 0.97), rgba(3, 7, 4, 0.99));
  box-shadow:
    0 0 34px rgba(70, 224, 122, 0.08),
    inset 0 0 42px rgba(70, 224, 122, 0.045);
}

.radar:before {
  content: "live.signal.stack";
}

.radar-copy {
  position: absolute;
  top: 52px;
  left: 18px;
  right: 18px;
  z-index: 3;
  pointer-events: none;
}

.radar-copy span {
  display: block;
  color: var(--grn);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.radar-copy b {
  display: block;
  max-width: 300px;
  margin-top: 4px;
  color: var(--txt);
  font-size: 18px;
  line-height: 1.18;
}

.ring {
  width: min(70%, 350px);
}

.rain,
.ring,
.sweep,
.blip,
.status-lines {
  z-index: 2;
}

.status-lines {
  z-index: 4;
}

#featured .section-head h2:before,
#systems .section-head h2:before {
  color: var(--grn);
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature {
  min-height: 188px;
  padding: 18px;
}

.feature .open {
  bottom: 16px;
  left: 18px;
}

.feature .status {
  max-width: calc(100% - 34px);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero.wrap {
    width: calc(100% - 20px) !important;
    margin: 10px auto 16px !important;
    border-radius: 14px !important;
  }

  .hero:before {
    height: 34px;
    font-size: 10px;
    letter-spacing: 0.03em;
    content: "● ● ●    niftytoolshub: ~/start";
  }

  .hero-grid {
    padding: 52px 12px 14px !important;
    gap: 14px !important;
  }

  .kickers {
    gap: 6px;
    margin-bottom: 10px;
  }

  .pill {
    padding: 5px 7px;
    font-size: 10px;
  }

  .hero .sub {
    margin-bottom: 14px;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .hero-actions {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .hero-actions .btn,
  .hero-actions .ghost {
    width: 100%;
    min-height: 48px !important;
    border-radius: 12px;
    font-size: 14px;
  }

  .hero-secondary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 8px;
  }

  .hero-secondary a {
    justify-content: center;
    min-height: 40px;
    padding: 0 7px;
    border-radius: 10px;
    font-size: 10px;
    text-align: center;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin-top: 12px;
  }

  .hero-proof .metric {
    min-height: 66px;
    padding: 8px;
    border-radius: 10px;
  }

  .hero-proof .metric b {
    font-size: 18px;
  }

  .hero-proof .metric span {
    font-size: 9px;
  }

  .radar {
    min-height: 292px !important;
    border-radius: 13px !important;
  }

  .radar-copy {
    top: 46px;
    left: 14px;
    right: 14px;
  }

  .radar-copy b {
    max-width: 230px;
    font-size: 15px;
  }

  .status-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    left: 10px;
    right: 10px;
    bottom: 10px;
    gap: 6px;
  }

  .status-lines span {
    padding: 6px;
    font-size: 9px;
  }

  .feature-grid {
    grid-template-columns: 1fr !important;
  }

  .feature {
    min-height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions .btn,
  .hero-actions .ghost {
    transition: none;
  }

  .hero-actions .btn:hover,
  .hero-actions .ghost:hover {
    transform: none;
  }
}


/* Homepage IA simplification pass */
.nt-journeys:not(.nt-journey-compact) {
  display: none !important;
}

.hero {
  margin-top: 28px;
}

.hero .sub {
  max-width: 650px;
}

.feature-grid .feature:nth-child(n+7) {
  display: none;
}

.nt-library-handoff {
  margin-top: 30px;
}

.nt-handoff-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(70,224,122,.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13,20,13,.92), rgba(4,8,4,.96));
  padding: 22px;
}

.nt-handoff-grid h2 {
  margin: 12px 0 8px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
  text-transform: uppercase;
}

.nt-handoff-grid p {
  margin: 0;
  max-width: 720px;
  color: var(--mut);
}

.nt-handoff-links {
  justify-content: flex-end;
}

.nt-handoff-links a:first-child {
  color: var(--grn);
  border-color: rgba(70,224,122,.45);
}

@media (max-width: 760px) {
  .hero {
    margin-top: 12px;
  }

  .feature-grid .feature:nth-child(n+5) {
    display: none;
  }

  .nt-handoff-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .nt-handoff-links {
    justify-content: flex-start;
  }

  .nt-handoff-links a {
    width: 100%;
    min-height: 42px;
    justify-content: center;
  }
}


/* Homepage hierarchy repair: one primary CTA, no clipped routes */
.hero-grid > :first-child { min-width: 0; }

.hero h1 {
  max-width: 760px;
}

.hero-actions {
  grid-template-columns: minmax(220px, 1fr) minmax(190px, .74fr) !important;
  max-width: 620px !important;
}

.hero-actions .btn,
.hero-actions .ghost {
  min-width: 0;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.hero-route-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 680px;
  margin-top: 10px;
}

.hero-route-strip a {
  min-width: 0;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(70,224,122,.16);
  border-radius: 8px;
  background: rgba(3,8,4,.62);
  padding: 10px 12px;
}

.hero-route-strip span {
  color: var(--grn);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero-route-strip b {
  color: var(--txt);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.hero-route-strip a:hover,
.hero-route-strip a:focus-visible {
  border-color: rgba(70,224,122,.46);
  color: var(--grn);
  outline: none;
}

@media (min-width: 981px) and (max-width: 1260px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr) !important;
    gap: 22px !important;
  }

  .hero h1 {
    font-size: clamp(40px, 4.6vw, 64px);
  }

  .hero-actions,
  .hero-route-strip,
  .hero-proof {
    max-width: 100% !important;
  }
}

@media (max-width: 760px) {
  .hero-route-strip {
    grid-template-columns: 1fr !important;
  }

  .hero-secondary,
  .hero-proof {
    display: none !important;
  }
}


/* Hero no-clip emergency guard */
.hero-grid > :first-child { min-width: 0 !important; }
.hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  max-width: 620px !important;
}
.hero-actions .btn,
.hero-actions .ghost {
  flex: 1 1 220px !important;
  min-width: 0 !important;
  white-space: normal !important;
  text-align: center !important;
  overflow-wrap: anywhere !important;
}
@media (min-width: 981px) {
  .hero-grid {
    grid-template-columns: minmax(0, .92fr) minmax(360px, .84fr) !important;
  }
}


/* Homepage decision hierarchy pass */
.nt-home-paths {
  margin-top: 34px;
}

.nt-home-path-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 16px;
}

.nt-home-path-head h2 {
  margin: 8px 0 0;
}

.nt-home-path-head p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

.nt-home-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(70, 224, 122, 0.22);
  background: linear-gradient(180deg, rgba(29, 86, 51, 0.16), rgba(1, 7, 3, 0.62));
}

.nt-home-path-card {
  min-height: 176px;
  padding: 22px;
  border-right: 1px solid rgba(70, 224, 122, 0.18);
  color: var(--fg);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nt-home-path-card:last-child {
  border-right: 0;
}

.nt-home-path-card span {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.nt-home-path-card h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
}

.nt-home-path-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.nt-home-path-card b {
  margin-top: auto;
  color: var(--accent);
}

.nt-home-path-card.is-primary {
  background: rgba(70, 224, 122, 0.07);
  box-shadow: inset 0 0 0 1px rgba(70, 224, 122, 0.38);
}

.nt-home-path-card:hover {
  background: rgba(70, 224, 122, 0.1);
}

.hero-route-strip a {
  min-height: 48px;
}

#featured {
  margin-top: 42px;
}

@media (max-width: 820px) {
  .nt-home-path-head,
  .nt-home-path-grid {
    grid-template-columns: 1fr;
  }

  .nt-home-path-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(70, 224, 122, 0.18);
  }

  .nt-home-path-card:last-child {
    border-bottom: 0;
  }

  .hero-secondary,
  .hero-proof {
    display: none;
  }
}
