html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f6f8fc;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/images/bg-pattern.svg");
  background-size: cover;
  background-position: center top;
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-navbar {
  background: rgba(17, 24, 39, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-navbar .navbar-brand,
.site-navbar .nav-link {
  color: rgba(255, 255, 255, 0.92);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: #ffffff;
}

.site-navbar .btn.btn-primary {
  box-shadow: 0 10px 26px rgba(13, 110, 253, 0.25);
}

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.home-carousel {
  border-radius: 0;
}

.home-hero {
  margin-top: -1rem;
}

.brand-logo {
  width: 34px;
  height: 34px;
}

.navbar {
  backdrop-filter: blur(8px);
}

.page-hero {
  padding: 1.25rem 1.25rem;
  border-radius: 1rem;
  background:
    radial-gradient(900px 300px at 12% 20%, rgba(13, 110, 253, 0.20), transparent 60%),
    radial-gradient(700px 260px at 88% 18%, rgba(32, 201, 151, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.92));
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .8rem;
  background: rgba(13,110,253,0.10);
  color: #0d6efd;
  border: 1px solid rgba(13,110,253,0.20);
  margin-bottom: .75rem;
}

.glass-card {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.home-hero-img {
  height: clamp(240px, 45vw, 520px);
  object-fit: cover;
}

.home .carousel-caption {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.home-about img {
  background: rgba(255, 255, 255, 0.75);
}

.terrain-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.terrain-card .card-body {
  padding: 1.1rem 1.1rem;
}

.terrain-card-img {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #f8fafc;
}

.terrain-card-img img {
  height: 100%;
  object-fit: cover;
}

.terrain-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  border-radius: 999px;
}

.terrain-detail-media img {
  height: min(420px, 45vw);
  object-fit: cover;
}

.mini-stat {
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.callout {
  background:
    radial-gradient(700px 300px at 0% 50%, rgba(13, 110, 253, 0.18), transparent 55%),
    radial-gradient(700px 300px at 100% 20%, rgba(32, 201, 151, 0.20), transparent 55%),
    #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

.auth-shell {
  min-height: calc(100vh - 160px);
}

.auth-hero {
  border-radius: 1rem;
  background:
    radial-gradient(900px 300px at 12% 20%, rgba(13, 110, 253, 0.28), transparent 60%),
    radial-gradient(700px 260px at 88% 18%, rgba(32, 201, 151, 0.26), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.92));
  border: 1px solid rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.auth-hero .auth-hero-media {
  height: 100%;
  min-height: 260px;
  background: rgba(17, 24, 39, 0.03);
}

.auth-hero .auth-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}