/**
 * Public landing page — hero + dashboard mockup only (templates/landing.html).
 * Image: ../homepage-highrise.jpg relative to this file in static/css/.
 */

.vs-landing-hero.hero-section {
  position: relative;
  isolation: isolate;
  padding: clamp(5rem, 11vw, 7.75rem) 0 clamp(4rem, 8vw, 6rem);
  color: #fff;
  background-color: #04112d;
  background-image:
    linear-gradient(90deg, rgba(4, 17, 45, 0.94), rgba(8, 35, 90, 0.82)),
    url("../homepage-highrise.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.vs-landing-hero.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 80% 60% at 70% 40%,
    rgba(8, 35, 90, 0.15) 0%,
    transparent 55%
  );
}

.vs-landing-hero.hero-section > .container {
  position: relative;
  z-index: 1;
}

.vs-landing-hero .hero-badge {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
}

.vs-landing-hero .hero-title {
  font-size: clamp(2.15rem, 5.2vw, 3.65rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  max-width: 17ch;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.5);
}

.vs-landing-hero .hero-title .hero-title-line {
  display: block;
  font-weight: 800;
}

.vs-landing-hero .hero-title .hero-title-accent {
  display: block;
  margin-top: 0.2em;
  font-weight: 700;
  color: rgba(219, 234, 254, 0.96);
  letter-spacing: -0.02em;
}

.vs-landing-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.68;
  max-width: 38rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.vs-landing-hero .hero-cta {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  align-items: center;
}

.vs-landing-hero .hero-cta .btn {
  margin: 0;
  font-weight: 700;
  padding-inline: 1.35rem;
}

.vs-landing-hero .hero-utility-links {
  margin-top: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 500;
}

.vs-landing-hero .hero-utility-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.vs-landing-hero .hero-utility-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Dashboard mockup — analytical, restrained palette */
.vs-landing-hero .dashboard-card {
  background: rgba(248, 251, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  padding: 1rem 1rem 1.1rem;
  box-shadow:
    0 2px 4px rgba(4, 17, 45, 0.06),
    0 22px 48px rgba(4, 17, 45, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  max-width: 520px;
  margin-left: auto;
}

.vs-landing-hero .dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 8px rgba(4, 17, 45, 0.08),
    0 26px 54px rgba(4, 17, 45, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.vs-landing-hero .dashboard-card h5 {
  color: #0b1f4d;
  margin-bottom: 0.85rem;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vs-landing-hero .kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.vs-landing-hero .kpi-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.58rem;
}

.vs-landing-hero .kpi-label {
  display: block;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.28rem;
}

.vs-landing-hero .kpi-value {
  font-size: 1.28rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.vs-landing-hero .kpi-value.health-value {
  color: #1d4ed8;
}

.vs-landing-hero .kpi-value.cpi-value {
  color: #1e40af;
}

.vs-landing-hero .kpi-value.spi-value {
  color: #475569;
}

.vs-landing-hero .health-bar-wrap {
  margin: 0.75rem 0 0.85rem;
  background: #e8eef7;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  overflow: hidden;
  height: 10px;
}

.vs-landing-hero .health-bar {
  width: 82%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.vs-landing-hero .mini-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.76rem;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.vs-landing-hero .mini-table th,
.vs-landing-hero .mini-table td {
  padding: 0.42rem 0.48rem;
  border-bottom: 1px solid #eef2f7;
  color: #1e293b;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

.vs-landing-hero .mini-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f8fafc;
  font-weight: 700;
}

.vs-landing-hero .mini-table tr:last-child td {
  border-bottom: none;
}

.vs-landing-hero .risk-high {
  color: #b91c1c;
  font-weight: 700;
}

.vs-landing-hero .risk-medium {
  color: #475569;
  font-weight: 700;
}

.vs-landing-hero .risk-low {
  color: #166534;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .vs-landing-hero.hero-section {
    padding: 5rem 0 3.5rem;
    background-position: center top;
  }

  .vs-landing-hero .hero-title {
    max-width: none;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  }

  .vs-landing-hero .hero-title,
  .vs-landing-hero .hero-subtitle,
  .vs-landing-hero .hero-badge {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .vs-landing-hero .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .vs-landing-hero .hero-cta,
  .vs-landing-hero .hero-utility-links {
    justify-content: center;
    text-align: center;
  }

  .vs-landing-hero .hero-cta .btn {
    width: 100%;
    max-width: 320px;
  }

  .vs-landing-hero .col-lg-7 {
    text-align: center;
  }

  .vs-landing-hero .dashboard-card {
    margin-top: 0.75rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .vs-landing-hero.hero-section {
    background-position: 52% center;
  }
}
