/* Pre-scan landing hero */

.landing-hero.hero--split {
  display: block;
  grid-template-columns: unset;
  width: 100%;
}

.landing-hero {
  padding: 1.5rem 0 2.75rem;
  width: 100%;
}

.landing-hero__grid {
  width: 100%;
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.landing-hero__intro {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 960px) {
  .landing-hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 400px);
    grid-template-rows: auto 1fr;
    gap: 1rem 2.5rem;
    align-items: start;
  }

  .landing-hero__intro {
    grid-column: 1;
    grid-row: 1;
    gap: 1rem;
  }

  .landing-hero__story {
    grid-column: 1;
    grid-row: 2;
  }

  .landing-hero__cta {
    grid-column: 2;
    grid-row: 1 / -1;
    position: sticky;
    top: 5.5rem;
    align-self: start;
  }
}

.landing-hero__story {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.landing-hero .hero-badge {
  margin-bottom: 0;
}

.landing-hero h1 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  line-height: 1.15;
}

.landing-hero .hero-lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.landing-hero .hero-lead strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* Tactical map preview — map dominant, legend stacked in narrow right column */
@media (max-width: 559px) {
  .hero-visual__copy {
    max-width: none;
  }

  .hero-legend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: none;
  }

  .hero-legend-chip {
    flex: none;
  }

  .radar-map-wrap--hero {
    height: 16.5rem;
    min-height: 16.5rem;
  }
}

.hero-visual {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(155deg, rgba(12, 18, 28, 0.95), rgba(6, 9, 14, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 560px) {
  .hero-visual {
    grid-template-columns: minmax(0, 1fr) minmax(8.75rem, 10.25rem);
    gap: 0.85rem 1rem;
    align-items: stretch;
  }
}

@media (min-width: 960px) {
  .hero-visual {
    flex: 1 1 auto;
    min-height: 20rem;
    grid-template-columns: minmax(0, 1.72fr) minmax(9.5rem, 11rem);
    gap: 1rem 1.15rem;
    padding: 1.15rem 1.2rem;
  }
}

.hero-visual__map-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  min-height: 0;
}

@media (min-width: 560px) {
  .hero-visual__map-wrap {
    min-height: 16.5rem;
  }
}

@media (min-width: 960px) {
  .hero-visual__map-wrap {
    min-height: 18.5rem;
  }
}

.hero-visual__label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-visual__map-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 3px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.35), rgba(52, 211, 153, 0.12) 45%, rgba(0, 229, 255, 0.2));
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.25),
    0 14px 42px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(0, 229, 255, 0.1);
}

.hero-visual__map-stage::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 7px;
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.radar-map-wrap--hero {
  position: relative;
  z-index: 1;
  height: 15rem;
  min-height: 15rem;
  border: none;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: inset 0 0 24px rgba(15, 23, 42, 0.15);
}

@media (min-width: 560px) {
  .radar-map-wrap--hero {
    flex: 1;
    height: 100%;
    min-height: 15.5rem;
  }
}

@media (min-width: 960px) {
  .radar-map-wrap--hero {
    min-height: 17.5rem;
  }
}

#hero-tactical-map {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  background: #dce4ec;
  z-index: 1;
  filter: saturate(1.08) contrast(1.04);
}

#hero-tactical-map .leaflet-control-attribution {
  font-size: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
}

.radar-map-wrap--scanning #hero-tactical-map {
  filter: saturate(0.85) brightness(0.92);
}

.hero-visual__map-wrap:has(.radar-map-wrap--scanning) .hero-visual__label {
  color: var(--cyan);
}

.hero-visual__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.14);
  background:
    linear-gradient(165deg, rgba(0, 229, 255, 0.07) 0%, transparent 55%),
    rgba(6, 10, 16, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-visual__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero-visual__live {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.55);
  animation: heroLivePulse 2s ease-in-out infinite;
}

@keyframes heroLivePulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.45);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 0 0 5px rgba(0, 229, 255, 0);
  }
}

.hero-visual__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.25;
}

.hero-legend-grid {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  flex: 1;
}

@media (min-width: 560px) {
  .hero-legend-grid {
    justify-content: space-between;
    min-height: 0;
  }
}

.hero-legend-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.45rem;
  border-radius: 7px;
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(0, 0, 0, 0.22);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-legend-chip:hover {
  transform: translateY(-1px);
}

.hero-legend-chip__swatch {
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 3px;
  box-shadow: 0 0 10px currentColor;
}

.hero-legend-chip__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.hero-legend-chip__label {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-legend-chip__rank {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  line-height: 1.2;
}

.hero-legend-chip--pin {
  border-color: rgba(0, 229, 255, 0.28);
  background: rgba(0, 229, 255, 0.08);
}

.hero-legend-chip--pin:hover {
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.15);
}

.hero-legend-chip--pin .hero-legend-chip__swatch {
  color: var(--cyan);
  background: var(--cyan);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  width: 0.55rem;
  height: 0.55rem;
}

.hero-legend-chip--top {
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(16, 185, 129, 0.1);
}

.hero-legend-chip--top:hover {
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.12);
}

.hero-legend-chip--top .hero-legend-chip__swatch {
  color: #34d399;
  background: #34d399;
}

.hero-legend-chip--mid {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(245, 158, 11, 0.08);
}

.hero-legend-chip--mid:hover {
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.1);
}

.hero-legend-chip--mid .hero-legend-chip__swatch {
  color: #fbbf24;
  background: #fbbf24;
}

.hero-legend-chip--low {
  border-color: rgba(248, 113, 113, 0.22);
  background: rgba(239, 68, 68, 0.08);
}

.hero-legend-chip--low:hover {
  box-shadow: 0 4px 16px rgba(248, 113, 113, 0.1);
}

.hero-legend-chip--low .hero-legend-chip__swatch {
  color: #f87171;
  background: #f87171;
}

.hero-steps {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .hero-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }
}

@media (min-width: 960px) {
  .hero-steps {
    margin-top: auto;
    flex-shrink: 0;
  }
}

.hero-steps__item {
  padding: 0.7rem 0.8rem;
  background: var(--black-panel);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
}

.hero-steps__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--black-stealth);
  background: var(--cyan);
  border-radius: 4px;
}

.hero-steps__title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}

.hero-steps__desc {
  display: block;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--text-muted);
}

/* CTA column — match story height on desktop */
.landing-hero__cta {
  min-width: 0;
  width: 100%;
}

@media (min-width: 960px) {
  .landing-hero__cta {
    display: flex;
    align-self: stretch;
  }

  .landing-hero__cta .audit-panel--landing {
    position: static;
    top: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .landing-hero__cta .audit-panel-lead {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .landing-hero__cta .audit-form--landing {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .landing-hero__cta .audit-form--landing .btn-primary {
    margin-top: auto;
  }
}

.audit-panel--landing {
  padding: 1.25rem 1.35rem 1.15rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transform: none;
  overflow: hidden;
}

.audit-panel--landing::before {
  opacity: 0.25;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.12), transparent 42%);
}

.audit-panel__header {
  margin-bottom: 0.95rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.audit-panel--landing .audit-panel-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text-primary);
}

.audit-panel__subtitle {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.audit-form__group {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.audit-form__group + .audit-form__group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.audit-form__group legend {
  padding: 0;
  margin-bottom: 0.1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.audit-form--landing {
  gap: 0;
}

.audit-form--landing .field-row--pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
}

@media (max-width: 520px) {
  .audit-form--landing .field-row--pair {
    grid-template-columns: 1fr;
  }
}

.audit-form--landing .field {
  min-width: 0;
}

.audit-form--landing .field--compact {
  margin-top: 0.15rem;
}

.audit-form--landing .field label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-secondary);
}

.audit-form--landing .field input {
  font-size: 0.9375rem;
  padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  min-height: 2.6rem;
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem;
}

.audit-form--landing .field.field--highlight {
  animation: fieldHighlight 1.2s ease 2;
}

.audit-form--landing .field.field--highlight input {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.25);
}

@keyframes fieldHighlight {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

.audit-panel--landing .audit-chain-hint {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.audit-panel--landing .btn-primary {
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem 1.15rem;
  min-height: 2.75rem;
}

.audit-panel--landing .audit-note {
  margin-top: 0.65rem;
  font-size: 0.7rem;
  text-align: left;
  line-height: 1.4;
  color: var(--text-muted);
}

.audit-panel-scan--landing {
  padding: 1rem 0 0;
}

.audit-panel-scan--landing .audit-panel-scan__label {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.dev-test-account-hint--landing {
  margin-top: 0.65rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--text-muted);
  border: none;
  background: rgba(0, 229, 255, 0.04);
  border-radius: 6px;
}

.dev-test-account-hint--landing code {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--cyan-dim);
}

.landing-hero--scanning .landing-hero__story {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.landing-hero--scanning .landing-hero__cta {
  position: relative;
  z-index: 1;
}

.audit-panel--busy.audit-panel--landing {
  min-height: 16rem;
}

.audit-panel--busy .audit-panel-scan--landing {
  padding: 0.25rem 0 0;
}

.audit-panel--busy .audit-panel-scan__label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.audit-panel--busy .command-center-progress {
  margin: 0;
  padding: 1rem 1.1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
}

.audit-panel--busy .command-center-progress__title {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-secondary);
}

.audit-panel--busy .recon-status {
  margin-top: 0.75rem;
  text-align: left;
}

/* ── CRO landing form (2-step) ─────────────────────────────────── */

.audit-form--cro {
  gap: 0.85rem;
}

.audit-form--cro .field--hero {
  margin: 0;
}

.audit-form--cro .field--hero label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.audit-form--cro .field--hero input {
  font-size: 1.0625rem;
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  min-height: 3.1rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(0, 0, 0, 0.35);
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.audit-form--cro .field--hero input:focus {
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
  outline: none;
}

.btn-primary--hero {
  width: 100%;
  margin-top: 0.35rem;
  padding: 1rem 1.25rem;
  min-height: 3.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 10px;
  border: none;
  color: #041018;
  background: linear-gradient(135deg, #00f0ff 0%, #34d399 100%);
  box-shadow:
    0 4px 24px rgba(0, 240, 255, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.btn-primary--hero:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 8px 32px rgba(0, 240, 255, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.btn-primary--hero:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.audit-note--positive {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.audit-panel__header--compact {
  margin-bottom: 0.75rem;
  padding-bottom: 0;
  border-bottom: none;
}

.audit-email-eyebrow {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.audit-locating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 10rem;
  padding: 2rem 1rem;
}

.audit-locating__spinner {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--cyan);
  animation: auditSpin 0.75s linear infinite;
}

@keyframes auditSpin {
  to { transform: rotate(360deg); }
}

.audit-locating__text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.audit-back-btn {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
}

.audit-form-status {
  margin-top: 0.65rem;
  text-align: center;
}

.audit-step[hidden] {
  display: none !important;
}

/* Hero auto-demo */
.hero-visual--demo .hero-visual__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
}

.hero-visual--demo .hero-visual__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-muted);
}

/* Social proof band */
.social-proof-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.06), rgba(52, 211, 153, 0.04));
}

.social-proof-band__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.social-proof-band__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.social-proof-band__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  white-space: nowrap;
}

.social-proof-band__link:hover {
  text-decoration: underline;
}

@media (max-width: 959px) {
  .social-proof-band {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

/* Sample demo section */
.landing-sample {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.landing-sample__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  background: linear-gradient(135deg, rgba(12, 18, 28, 0.92), rgba(6, 12, 20, 0.96));
}

.landing-sample__copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.landing-sample h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.landing-sample__lead {
  margin: 0 0 1rem;
  max-width: 32rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.landing-sample__quote {
  margin: 0;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(0, 229, 255, 0.35);
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.landing-sample__quote p {
  margin: 0 0 0.35rem;
}

.landing-sample__quote cite {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.landing-sample__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  flex-shrink: 0;
}

.landing-sample__hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .social-proof-band {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media (min-width: 960px) {
  .landing-hero__cta .audit-panel--landing {
    padding: 1.5rem 1.5rem 1.35rem;
  }

  .audit-form--cro .field--hero input {
    min-height: 3.25rem;
  }
}
