/* Front page only. The photo behind it is shared with the login pages and
   lives in backdrop.css; what is left here is the front page's own layout. */
@import url("backdrop.css");

/* The bars would otherwise sit as solid blocks over the photo. */
.navbar,
footer {
  background-color: rgba(15, 17, 20, 0.55) !important;
  backdrop-filter: blur(6px);
}

.landing-brand {
  color: #f8f9fa;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.landing-brand:hover {
  color: #ffffff;
}

/* style.css gives <main> flex: 1 so it fills the window on the app pages. Here
   there is more of the page under it, and a stretched <main> would push it far
   down — so it sizes to its content and the footer keeps its own mt-auto. */
main {
  flex: 0 0 auto;
}

/* --- the hero ------------------------------------------------------------- */

.landing-hero {
  padding-top: clamp(3.5rem, 12vh, 7rem);
  padding-bottom: 2.5rem;
}

/* Text over a photograph needs a line length and a little weight behind it. */
.landing-measure {
  max-width: 46rem;
}

.landing-hero h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 0.15rem 1.5rem rgba(0, 0, 0, 0.55);
}

.landing-hero .lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #e9ecef;
  text-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 0.5);
}

.landing-hero .text-body-secondary {
  color: #c3c9d0 !important;
}

/* --- the line between the hero and the panels ----------------------------- */

.landing-tagline {
  padding-bottom: 2.5rem;
}

.landing-tagline .lead {
  display: inline-block;
  max-width: 44rem;
  padding: 0.35rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #dee2e6;
  font-size: 1.05rem;
}

/* --- the three panels ----------------------------------------------------- */

.landing-cards {
  padding-bottom: 3.5rem;
}

.landing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  /* The same smoked glass as the bars, so the page holds together. */
  background-color: rgba(15, 17, 20, 0.62);
  backdrop-filter: blur(8px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.landing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

/* A short rule over each heading: three panels, one rhythm. */
.landing-card__title {
  position: relative;
  margin-bottom: 0.9rem;
  padding-top: 0.9rem;
  font-weight: 600;
}

.landing-card__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.25rem;
  height: 3px;
  border-radius: 2px;
  background: #6ea8fe;
}

.landing-card__lead {
  color: #e9ecef;
  font-size: 1rem;
  line-height: 1.55;
}

.landing-card .text-body-secondary {
  color: #b9c0c8 !important;
  font-size: 0.875rem;
  line-height: 1.65;
}

/* --- small screens -------------------------------------------------------- */

@media (max-width: 575.98px) {
  .landing-hero {
    padding-top: 2.5rem;
  }

  .landing-hero h1 {
    font-size: 2rem;
  }

  .landing-hero .lead,
  .landing-tagline .lead {
    font-size: 1.05rem;
  }

  .landing-card {
    padding: 1.25rem;
  }
}
