/* Landing page only — does not affect the app shell. */

.landing {
  padding: 1.25rem 0 4.5rem;
  animation: landing-fade 0.45s ease;
}

@keyframes landing-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-hero {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.landing__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.landing__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
}

.landing__lead {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.landing .btn--primary {
  background: var(--accent);
  color: #04140f;
  border-color: transparent;
}

.landing .btn--primary:hover {
  filter: brightness(1.06);
}

.landing .btn--primary:focus-visible,
.landing .btn--ghost:focus-visible,
.landing-node:focus-visible,
.landing-signal-row:focus-visible,
.landing-text-arrow:focus-visible,
.landing-final__arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.landing-hero__actions .btn {
  min-width: 10rem;
  padding: 0.68rem 1.25rem;
  font-size: 1.05em;
}

#landing-how {
  scroll-margin-top: 5rem;
}

.landing-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.landing-section {
  margin: 5.25rem auto 0;
  max-width: 1080px;
}

.landing-section--system {
  margin-top: 2.75rem;
}

.landing-section__head {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.landing-section__head--center {
  text-align: center;
}

.landing-section__head--after-graphic {
  margin-top: 1.75rem;
  margin-bottom: 0;
}

.landing-section__copy {
  margin: 0.55rem 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}

.landing-section__copy--after-graphic {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.85rem;
  padding: 0 1.25rem;
  text-align: center;
  text-wrap: pretty;
}

.landing-section__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.landing-section__head--center .landing-section__copy {
  margin-left: auto;
  margin-right: auto;
  max-width: 38rem;
}

.landing-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.landing-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Filing constellation —— */
.landing-constellation {
  position: relative;
  max-width: 1030px;
  margin: 0 auto;
  padding: 0.75rem 0 0.35rem;
}

.landing-constellation__field {
  position: absolute;
  inset: 0.35rem 0.5rem 2.5rem;
  border-radius: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(560px 260px at 50% 78%, rgba(62, 230, 176, 0.1), transparent 70%);
  background-size: 28px 28px, 28px 28px, auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.landing-constellation__lines {
  position: absolute;
  inset: 0 0 2.4rem;
  width: 100%;
  height: calc(100% - 2.4rem);
  pointer-events: none;
  overflow: visible;
}

.landing-constellation__path {
  fill: none;
  stroke: rgba(62, 230, 176, 0.34);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke 0.2s ease;
}

.landing-constellation__flow {
  fill: none;
  stroke: rgba(62, 230, 176, 0.55);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 18;
  stroke-dashoffset: 0;
  opacity: 0;
}

.landing-constellation.is-drawn .landing-constellation__path {
  animation: landing-draw-line 0.95s ease forwards;
}

.landing-constellation.is-drawn .landing-constellation__path[data-from="stocks"] {
  animation-delay: 0.05s;
}
.landing-constellation.is-drawn .landing-constellation__path[data-from="institutions"] {
  animation-delay: 0.12s;
}
.landing-constellation.is-drawn .landing-constellation__path[data-from="insiders"] {
  animation-delay: 0.19s;
}
.landing-constellation.is-drawn .landing-constellation__path[data-from="congress"] {
  animation-delay: 0.26s;
}
.landing-constellation.is-drawn .landing-constellation__path[data-from="sector"] {
  animation-delay: 0.33s;
}

.landing-constellation.is-flowing .landing-constellation__flow {
  opacity: 1;
  animation: landing-flow 1.8s linear infinite;
}

.landing-constellation.is-flowing .landing-constellation__flow:nth-child(2) {
  animation-delay: 0.2s;
}
.landing-constellation.is-flowing .landing-constellation__flow:nth-child(3) {
  animation-delay: 0.4s;
}
.landing-constellation.is-flowing .landing-constellation__flow:nth-child(4) {
  animation-delay: 0.55s;
}
.landing-constellation.is-flowing .landing-constellation__flow:nth-child(5) {
  animation-delay: 0.7s;
}

@keyframes landing-draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes landing-flow {
  to {
    stroke-dashoffset: -48;
  }
}

.landing-constellation__map {
  position: relative;
  height: clamp(21rem, 44vw, 25.75rem);
}

.landing-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 11.75rem;
  padding: 1.05rem 1.15rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(10, 12, 16, 0.92);
  color: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  z-index: 2;
}

.landing-node:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(14, 16, 22, 0.98);
  transform: translate(-50%, calc(-50% - 3px));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.landing-node__source {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.landing-node__label {
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
}

.landing-node--stocks {
  left: 12%;
  top: 38%;
}
.landing-node--institutions {
  left: 31%;
  top: 28%;
}
.landing-node--insiders {
  left: 50%;
  top: 22%;
}
.landing-node--congress {
  left: 69%;
  top: 28%;
}
.landing-node--sector {
  left: 88%;
  top: 38%;
}

.landing-node--hub {
  left: 50%;
  top: 76%;
  min-width: 15.5rem;
  padding: 1.25rem 1.45rem 1.3rem;
  border-color: rgba(62, 230, 176, 0.42);
  background:
    radial-gradient(200px 90px at 50% 0%, rgba(62, 230, 176, 0.16), transparent 70%),
    rgba(8, 12, 14, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(62, 230, 176, 0.08);
  overflow: visible;
}

.landing-node--hub .landing-node__label {
  font-size: 1.4rem;
}

.landing-node__pulse {
  position: absolute;
  inset: -10px;
  border-radius: 18px;
  border: 1px solid rgba(62, 230, 176, 0.35);
  pointer-events: none;
  animation: landing-hub-pulse 2.4s ease-out infinite;
}

@keyframes landing-hub-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.96);
  }
  70% {
    opacity: 0;
    transform: scale(1.08);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

.landing-node--hub:hover {
  border-color: rgba(62, 230, 176, 0.62);
}

.landing-constellation.is-active-stocks .landing-constellation__path[data-from="stocks"],
.landing-constellation.is-active-institutions .landing-constellation__path[data-from="institutions"],
.landing-constellation.is-active-insiders .landing-constellation__path[data-from="insiders"],
.landing-constellation.is-active-congress .landing-constellation__path[data-from="congress"],
.landing-constellation.is-active-sector .landing-constellation__path[data-from="sector"],
.landing-constellation.is-active-hub .landing-constellation__path {
  stroke: rgba(62, 230, 176, 0.95);
  stroke-width: 2.2;
  marker-end: url(#landing-arrow-hot);
}

.landing-constellation__hint {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
}

/* —— Signal explainers —— */
.landing-signal-list {
  max-width: 40rem;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  margin: 0;
  padding: 1.05rem 0.1rem;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.landing-signal-row:hover .landing-signal-row__title,
.landing-signal-row:hover .landing-signal-row__go {
  color: var(--accent);
}

.landing-signal-row__main {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.landing-signal-row__title {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.15s ease;
}

.landing-signal-row__flow {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

.landing-signal-row__go {
  flex-shrink: 0;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.15s ease, transform 0.15s ease;
}

.landing-signal-row:hover .landing-signal-row__go {
  transform: translateX(3px);
}

.landing-signal-more {
  max-width: 40rem;
  margin: 1rem auto 0;
  display: flex;
  justify-content: flex-end;
}

.landing-text-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}

.landing-text-arrow span {
  font-size: 1.05rem;
  transition: transform 0.15s ease;
}

.landing-text-arrow:hover span {
  transform: translateX(4px);
}

/* —— How it works —— */
.landing-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.landing-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  position: relative;
}

.landing-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.85rem;
  right: -1rem;
  width: 1px;
  height: 1.7rem;
  background: rgba(255, 255, 255, 0.1);
}

.landing-step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
}

.landing-step h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.landing-step p {
  margin: 0;
  max-width: 16rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.landing-how__strip {
  margin: 1.75rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42);
}

/* —— Final CTA —— */
.landing-final {
  margin-top: 4.5rem;
  padding: 3rem 1.5rem 2.6rem;
  text-align: center;
  border: 1px solid rgba(62, 230, 176, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(700px 240px at 50% 0%, rgba(62, 230, 176, 0.12), transparent 70%),
    rgba(8, 8, 10, 0.55);
}

.landing-final h2 {
  margin: 0 0 1.35rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.landing-final__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  height: 2.85rem;
  margin: 0;
  padding: 0 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.landing-final__arrow:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.landing__footnote {
  max-width: 34rem;
  margin: 2.25rem auto 0;
  text-align: center;
}

/* Compact constellation for tablets + phone landscape — keep the graphic */
@media (max-width: 1100px) {
  .landing-node {
    min-width: 8.75rem;
    padding: 0.88rem 0.95rem 0.92rem;
  }

  .landing-node__source {
    font-size: 0.64rem;
  }

  .landing-node__label {
    font-size: 1.02rem;
  }

  .landing-node--hub {
    min-width: 11.5rem;
    padding: 1.05rem 1.2rem 1.1rem;
  }

  .landing-node--hub .landing-node__label {
    font-size: 1.22rem;
  }
}

@media (max-width: 900px) {
  .landing-constellation__map {
    height: clamp(18.5rem, 46vw, 23rem);
  }

  .landing-node {
    min-width: 7.6rem;
    padding: 0.78rem 0.82rem 0.82rem;
    gap: 0.22rem;
  }

  .landing-node__source {
    font-size: 0.6rem;
  }

  .landing-node__label {
    font-size: 0.92rem;
  }

  .landing-node--stocks {
    left: 13%;
    top: 36%;
  }
  .landing-node--institutions {
    left: 31%;
    top: 27%;
  }
  .landing-node--insiders {
    left: 50%;
    top: 21%;
  }
  .landing-node--congress {
    left: 69%;
    top: 27%;
  }
  .landing-node--sector {
    left: 87%;
    top: 36%;
  }

  .landing-node--hub {
    min-width: 10rem;
    padding: 0.95rem 1.1rem;
    top: 78%;
  }

  .landing-node--hub .landing-node__label {
    font-size: 1.12rem;
  }

  .landing-steps {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .landing-step:not(:last-child)::after {
    display: none;
  }
}

/* Short landscape (phones tilted) — keep graphic, compress height */
@media (max-width: 1000px) and (max-height: 520px) {
  .landing-constellation {
    padding-top: 0.25rem;
  }

  .landing-constellation__map {
    height: clamp(15.5rem, 68vh, 18.5rem);
  }

  .landing-constellation__field {
    inset: 0.15rem 0.35rem 2rem;
  }

  .landing-constellation__lines {
    inset: 0 0 1.9rem;
    height: calc(100% - 1.9rem);
  }

  .landing-node {
    min-width: 6.8rem;
    padding: 0.58rem 0.7rem 0.62rem;
  }

  .landing-node__label {
    font-size: 0.84rem;
  }

  .landing-node--hub {
    min-width: 8.8rem;
    padding: 0.72rem 0.9rem;
    top: 80%;
  }

  .landing-node--hub .landing-node__label {
    font-size: 1rem;
  }

  .landing-node__pulse {
    inset: -6px;
  }
}

/* Narrow phone portrait only — stacked fallback */
@media (max-width: 599px) {
  .landing-constellation__lines {
    display: none;
  }

  .landing-constellation__field {
    display: none;
  }

  .landing-constellation__map {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.15rem 0 0.25rem;
  }

  .landing-node {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none;
    width: 100%;
    min-width: 0;
    padding: 1.05rem 1.2rem 1.1rem;
  }

  .landing-node__source {
    font-size: 0.7rem;
  }

  .landing-node__label {
    font-size: 1.18rem;
  }

  .landing-node:hover {
    transform: translateY(-2px);
  }

  .landing-node--hub {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
    min-width: 0;
    padding: 1.25rem 1.45rem 1.3rem;
  }

  .landing-node--hub .landing-node__label {
    font-size: 1.4rem;
  }
}

@media (max-width: 720px) {
  .landing-hero,
  .landing-section__head--center,
  .landing-final,
  .landing-constellation__hint {
    text-align: center;
  }

  .landing-hero {
    margin-bottom: 0.85rem;
  }

  .landing-section--system {
    margin-top: 1.5rem;
  }

  .landing-hero__actions {
    justify-content: center;
  }

  .landing-signal-more {
    justify-content: flex-start;
  }

  .landing-section__head--after-graphic {
    margin-top: 1.35rem;
  }

  .landing-section__copy--after-graphic {
    max-width: none;
    margin-top: 0.55rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .landing__footnote {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing,
  .landing-reveal,
  .landing-node,
  .landing-signal-row,
  .landing-text-arrow span,
  .landing-final__arrow,
  .landing-constellation__path,
  .landing-constellation__flow,
  .landing-node__pulse {
    animation: none !important;
    transition: none;
    transform: none;
    opacity: 1;
  }

  .landing-constellation__path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .landing-constellation__flow {
    opacity: 0;
  }

  .landing-node:hover,
  .landing-final__arrow:hover {
    transform: none;
  }
}
