:root {
  color-scheme: dark;
  --landing-bg: #071015;
  --landing-panel: #14202a;
  --landing-panel-strong: #182631;
  --landing-line: rgba(255, 255, 255, 0.13);
  --landing-text: #f4f7fb;
  --landing-muted: #a8b5c0;
  --landing-muted-2: #748592;
  --landing-blue: #2682ff;
  --landing-green: #2bc96f;
  --landing-yellow: #ffd33d;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body.installation-landing {
  min-width: 320px;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: var(--landing-bg);
  color: var(--landing-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

.installation-header {
  position: relative;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid var(--landing-line);
  background: rgba(7, 16, 21, 0.94);
  backdrop-filter: blur(14px);
}

.installation-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.installation-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(38, 130, 255, 0.58);
  border-radius: 8px;
  background: rgba(38, 130, 255, 0.16);
  color: #8fc0ff;
  font-weight: 800;
}

.installation-brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 7px;
}

.installation-brand strong,
.installation-brand small {
  display: block;
  letter-spacing: 0;
}

.installation-brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.installation-brand small {
  margin-top: 2px;
  color: var(--landing-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.installation-count {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dce5ec;
  font-size: 0.78rem;
  font-weight: 650;
}

.installation-count > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--landing-green);
  box-shadow: 0 0 0 4px rgba(43, 201, 111, 0.14);
}

.installation-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}

.installation-map {
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  z-index: 0;
  background: #13212a;
}

.installation-map::after {
  position: absolute;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  content: "";
  background: rgba(3, 10, 14, 0.18);
}

.installation-intro {
  position: relative;
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  z-index: 500;
  margin: 48px 0 0 clamp(24px, 5vw, 76px);
  width: min(560px, calc(100vw - 48px));
  pointer-events: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.68);
}

.installation-eyebrow {
  margin: 0 0 12px;
  color: #b8d5ff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.installation-intro h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.8rem, 5.5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.installation-intro > p:last-child {
  max-width: 48ch;
  margin: 18px 0 0;
  color: #eef4f8;
  font-size: 1rem;
  line-height: 1.55;
}

.installation-detail {
  position: relative;
  grid-area: 1 / 1;
  align-self: end;
  justify-self: start;
  z-index: 800;
  margin: 0 0 38px clamp(24px, 5vw, 76px);
  width: min(560px, calc(100vw - 48px));
  min-height: 116px;
  border: 1px solid var(--landing-line);
  border-radius: 8px;
  background: rgba(20, 32, 42, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.installation-detail-idle,
.installation-detail-content {
  padding: 20px 22px;
}

.installation-detail-idle {
  display: grid;
  gap: 4px;
}

.installation-detail-kicker,
.installation-status {
  color: var(--landing-muted);
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
}

.installation-detail-idle strong {
  font-size: 1.08rem;
}

.installation-detail-idle small,
.installation-detail-heading p,
.installation-summary {
  color: var(--landing-muted);
}

.installation-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.installation-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #91e8b5;
}

.installation-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--landing-green);
}

.installation-detail h2 {
  margin: 7px 0 2px;
  font-size: 1.45rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.installation-detail-heading p,
.installation-summary {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.5;
}

.installation-detail-close {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--landing-line);
  border-radius: 6px;
  background: var(--landing-panel-strong);
  color: var(--landing-muted);
  cursor: pointer;
  font-size: 1.25rem;
}

.installation-summary {
  margin-top: 14px;
}

.installation-features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}

.installation-features li {
  padding: 6px 8px;
  border: 1px solid var(--landing-line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: #dce5ec;
  font-size: 0.7rem;
}

.installation-open {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--landing-blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 750;
}

.installation-open span {
  font-size: 1.15rem;
}

.installation-noscript {
  position: fixed;
  z-index: 1001;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--landing-line);
  border-radius: 8px;
  background: var(--landing-panel);
}

.installation-noscript span {
  color: var(--landing-muted);
}

.installation-noscript a {
  color: #8fc0ff;
}

.installation-map .leaflet-control-zoom a {
  border-color: var(--landing-line);
  background: var(--landing-panel);
  color: var(--landing-text);
}

.installation-map .leaflet-control-attribution {
  background: rgba(7, 16, 21, 0.82);
  color: var(--landing-muted);
}

.installation-map .leaflet-control-attribution a {
  color: #b8d5ff;
}

.installation-map .leaflet-tooltip {
  border: 1px solid var(--landing-line);
  border-radius: 5px;
  background: var(--landing-panel);
  color: var(--landing-text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
}

.installation-map .leaflet-tooltip-top::before {
  border-top-color: var(--landing-panel);
}

@media (max-width: 700px) {
  .installation-header {
    height: 64px;
    padding: 0 16px;
  }

  .installation-count {
    max-width: 116px;
    justify-content: flex-end;
    text-align: right;
    line-height: 1.2;
  }

  .installation-stage {
    min-height: 0;
  }

  .installation-intro {
    margin: 32px 18px 0;
    width: calc(100vw - 36px);
  }

  .installation-intro h1 {
    font-size: 2.75rem;
  }

  .installation-intro > p:last-child {
    max-width: 32ch;
    font-size: 0.86rem;
  }

  .installation-detail {
    margin: 0 12px 12px;
    width: calc(100vw - 24px);
  }

  .installation-detail-idle,
  .installation-detail-content {
    padding: 16px;
  }

  .installation-detail h2 {
    font-size: 1.2rem;
  }

  .installation-features {
    margin-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
