:root {
  --brand-ink: #171717;
  --brand-blue: #315cff;
  --brand-lime: #b8f23d;
  --paper: #f8f7f3;
  --space: #020913;
  --space-raised: rgba(6, 20, 38, 0.92);
  --space-panel: rgba(5, 18, 34, 0.84);
  --space-border: rgba(94, 159, 219, 0.28);
  --text: #f5f9ff;
  --muted: #9cb0c7;
  --earthquake: #ff465d;
  --natural: #ff9f36;
  --iss: #58a6ff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--space);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 30;
  min-height: 58px;
  border-bottom: 1px solid #e6e3dc;
  background: rgba(248, 247, 243, 0.96);
  color: var(--brand-ink);
}

.header-inner {
  display: flex;
  width: min(1480px, calc(100% - 40px));
  min-height: 58px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.brand img {
  display: block;
}

.brand img {
  width: 181px;
  height: 36px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-chip,
.language-link {
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.preview-chip {
  padding: 7px 10px;
  background: rgba(49, 92, 255, 0.07);
  color: #315cff;
}

.language-link {
  padding: 7px 12px;
  text-decoration: none;
}

.language-link:hover,
.language-link:focus-visible {
  border-color: #315cff;
  color: #315cff;
  outline: none;
}

.experience {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 58px);
  overflow: hidden;
  padding: 34px max(20px, calc((100vw - 1480px) / 2)) 46px;
  background:
    radial-gradient(ellipse at 53% 32%, rgba(22, 87, 151, 0.22), transparent 34%),
    radial-gradient(ellipse at 73% 13%, rgba(49, 92, 255, 0.11), transparent 22%),
    linear-gradient(145deg, #061425 0%, #020913 48%, #01060d 100%);
}

.experience::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(255,255,255,.75) 0 1px, transparent 1.6px),
    radial-gradient(circle at 22% 73%, rgba(117,174,255,.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 79% 17%, rgba(255,255,255,.55) 0 1px, transparent 1.4px),
    radial-gradient(circle at 88% 68%, rgba(117,174,255,.55) 0 1px, transparent 1.5px);
  background-size: 230px 230px, 310px 310px, 270px 270px, 360px 360px;
  content: "";
  opacity: 0.42;
}

.experience-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.title-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(104, 180, 255, 0.42);
  border-radius: 50%;
  background: rgba(17, 74, 125, 0.38);
  color: #6db7ff;
  font-size: 2rem;
  box-shadow: inset 0 0 22px rgba(49, 132, 255, 0.18);
}

.experience-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.experience-heading p {
  margin: 12px 0 5px;
  color: #d7e5f4;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.experience-heading small {
  color: var(--muted);
  font-size: 0.82rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(184, 242, 61, 0.2);
  border-radius: 999px;
  background: rgba(30, 104, 74, 0.28);
  color: #81e5ae;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.live-badge > span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-lime);
  box-shadow: 0 0 0 5px rgba(184, 242, 61, 0.09), 0 0 14px rgba(184, 242, 61, 0.62);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.summary-card:nth-child(5) {
  grid-column: 2;
}

.summary-card {
  display: flex;
  min-height: 90px;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--space-border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(9, 32, 57, 0.86), rgba(4, 16, 31, 0.9));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}

.summary-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 1.55rem;
}

.summary-card div {
  display: grid;
  min-width: 0;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: baseline;
}

.summary-card strong {
  color: white;
  font-size: 1.35rem;
}

.summary-card h2 {
  overflow: hidden;
  margin: 0;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-card p {
  grid-column: 1 / -1;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.map-workspace {
  position: relative;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 252px;
  gap: 12px;
  min-height: 670px;
}

.layers-panel,
.detail-panel {
  position: relative;
  z-index: 6;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--space-border);
  border-radius: 15px;
  background: var(--space-panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.layers-panel {
  align-self: stretch;
  padding: 17px 14px;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
  padding: 0 3px 14px;
  border-bottom: 1px solid rgba(113, 159, 200, 0.18);
}

.panel-heading h2 {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.eyebrow,
.demo-label,
.section-kicker {
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.eyebrow {
  color: #6ba8dc;
}

.demo-label {
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--muted);
}

.layer-list {
  display: grid;
  gap: 4px;
  padding: 12px 0;
}

.layer-row {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 34px;
  min-height: 55px;
  align-items: center;
  gap: 7px;
  padding: 7px 4px;
  cursor: pointer;
}

.layer-row > span:first-child {
  font-size: 1.18rem;
}

.layer-row strong,
.layer-row small {
  display: block;
}

.layer-row strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.67rem;
}

.layer-row input {
  position: absolute;
  opacity: 0;
}

.layer-row i {
  position: relative;
  display: block;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #314257;
  transition: background 160ms ease;
}

.layer-row i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  content: "";
  transition: transform 160ms ease;
}

.layer-row input:checked + i {
  background: var(--brand-blue);
}

.layer-row input:checked + i::after {
  transform: translateX(14px);
}

.layer-row input:focus-visible + i {
  outline: 2px solid white;
  outline-offset: 3px;
}

.layer-row:has(input:disabled) {
  cursor: default;
  opacity: 0.5;
}

.panel-links {
  display: grid;
  border-top: 1px solid rgba(113, 159, 200, 0.18);
}

.panel-links a,
.panel-links button {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 3px;
  border: 0;
  border-bottom: 1px solid rgba(113, 159, 200, 0.13);
  background: transparent;
  color: #d7e5f4;
  font-size: 0.78rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.panel-links a:hover,
.panel-links button:hover,
.panel-links a:focus-visible,
.panel-links button:focus-visible {
  color: #75b9ff;
  outline: none;
}

.panel-links span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #75b9ff;
  font-size: 1rem;
}

.map-stage {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(82, 148, 207, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 48%, rgba(30, 89, 151, 0.32), transparent 38%),
    #01060d;
  box-shadow: inset 0 0 70px rgba(36, 122, 209, 0.11), 0 20px 60px rgba(0, 0, 0, 0.26);
}

#map {
  position: absolute;
  inset: 0;
}

.space-vignette {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 80px 22px rgba(0, 5, 12, 0.54);
}

.space-vignette::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 0.7px, transparent 1.2px),
    radial-gradient(circle, rgba(109, 183, 255, 0.64) 0 0.8px, transparent 1.3px),
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 0.6px, transparent 1px);
  background-position: 12px 18px, 72px 44px, 34px 86px;
  background-size: 92px 92px, 137px 137px, 173px 173px;
  content: "";
  opacity: 0.38;
  transition: opacity 360ms ease;
  -webkit-mask-image: radial-gradient(circle at 50% 52%, transparent 0 38%, rgba(0, 0, 0, 0.3) 49%, #000 72%);
  mask-image: radial-gradient(circle at 50% 52%, transparent 0 38%, rgba(0, 0, 0, 0.3) 49%, #000 72%);
}

.map-stage.is-local-map .space-vignette::before {
  opacity: 0;
}

.map-status,
.map-hint {
  position: absolute;
  z-index: 7;
  left: 50%;
  border: 1px solid rgba(118, 175, 226, 0.22);
  border-radius: 999px;
  background: rgba(2, 10, 20, 0.74);
  color: #bcd0e3;
  font-size: 0.7rem;
  backdrop-filter: blur(9px);
  pointer-events: none;
}

.map-status {
  top: 50%;
  padding: 9px 13px;
  transform: translate(-50%, -50%);
}

.map-status.is-error {
  max-width: 300px;
  border-color: rgba(255, 70, 93, 0.35);
  border-radius: 10px;
  color: #ff9baa;
  text-align: center;
}

.map-status[hidden] {
  display: none;
}

.map-hint {
  bottom: 15px;
  padding: 7px 11px;
  transform: translateX(-50%);
}

.reset-fab {
  position: absolute;
  z-index: 8;
  right: 10px;
  bottom: 13px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(118, 175, 226, 0.28);
  border-radius: 10px;
  background: rgba(3, 16, 30, 0.88);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
}

.reset-fab:hover,
.reset-fab:focus-visible {
  border-color: #67b6ff;
  color: #67b6ff;
  outline: none;
}

.maplibregl-ctrl-top-right {
  top: 8px;
  right: 8px;
}

.maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(118, 175, 226, 0.28) !important;
  border-radius: 10px !important;
  background: rgba(3, 16, 30, 0.88) !important;
  box-shadow: none !important;
}

.maplibregl-ctrl-group button {
  background-color: transparent !important;
}

.maplibregl-ctrl-group button + button {
  border-top-color: rgba(118, 175, 226, 0.2) !important;
}

.maplibregl-ctrl-icon {
  filter: invert(1) brightness(1.4);
}

.maplibregl-ctrl-attrib {
  background: rgba(2, 9, 18, 0.68) !important;
  color: #9bb0c6 !important;
}

.maplibregl-ctrl-attrib a {
  color: #b8cce0 !important;
}

.detail-panel {
  min-height: 100%;
  padding: 19px;
}

.detail-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
}

.detail-panel:not(.is-open) .detail-close {
  opacity: 0;
  pointer-events: none;
}

.detail-placeholder {
  display: grid;
  min-height: 100%;
  align-content: center;
  justify-items: center;
  padding: 30px 12px;
  color: var(--muted);
  text-align: center;
  opacity: 0.78;
}

.detail-placeholder > span {
  color: #4e8fc9;
  font-size: 3rem;
}

.detail-placeholder h2 {
  margin: 12px 0 7px;
  color: white;
  font-size: 1.1rem;
}

.detail-placeholder p {
  max-width: 220px;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
}

.detail-panel.is-open .detail-placeholder {
  display: none;
}

.detail-content {
  padding-top: 8px;
}

.detail-type {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 36px;
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-type span:first-child {
  font-size: 1.45rem;
}

.detail-content h2 {
  margin: 18px 0;
  color: white;
  font-size: 1.3rem;
  line-height: 1.25;
}

.detail-content dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-content dl > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid rgba(113, 159, 200, 0.14);
}

.detail-content dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.detail-content dd {
  margin: 0;
  color: #e2edf7;
  font-size: 0.76rem;
  line-height: 1.5;
}

.detail-link {
  display: block;
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px solid rgba(83, 159, 255, 0.32);
  border-radius: 10px;
  background: rgba(49, 92, 255, 0.18);
  color: #8fc8ff;
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.detail-link:hover,
.detail-link:focus-visible {
  border-color: #67b6ff;
  color: white;
  outline: none;
}

.content-section {
  padding: 76px 20px;
  background: var(--paper);
  color: var(--brand-ink);
}

.content-section + .content-section {
  padding-top: 10px;
}

.content-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-kicker {
  color: var(--brand-blue);
}

.content-section h2 {
  margin: 8px 0 13px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
}

.content-section > .content-wrap > p {
  max-width: 790px;
  margin: 0;
  color: #5d626a;
  line-height: 1.8;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.content-grid article {
  min-width: 0;
  padding: 22px;
  border: 1px solid #e6e3dc;
  border-radius: 15px;
  background: white;
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.035);
}

.content-grid article > span {
  color: var(--brand-blue);
  font-size: 0.72rem;
  font-weight: 850;
}

.content-grid h3 {
  margin: 10px 0 8px;
  font-size: 1rem;
}

.content-grid p {
  margin: 0;
  color: #666a72;
  font-size: 0.88rem;
  line-height: 1.75;
}

.faq-section {
  padding-bottom: 76px;
}

.faq-section details {
  max-width: 850px;
  border-bottom: 1px solid #ddd9d0;
}

.faq-section summary {
  padding: 19px 2px;
  font-weight: 750;
  cursor: pointer;
}

.faq-section details p {
  margin: -5px 0 20px;
  color: #666a72;
  line-height: 1.75;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px max(20px, calc((100vw - 1120px) / 2));
  border-top: 1px solid #e6e3dc;
  background: var(--paper);
  color: #575b63;
  font-size: 0.8rem;
}

.site-footer div,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer strong {
  color: var(--brand-ink);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--brand-blue);
  outline: none;
}

@media (max-width: 1180px) {
  .map-workspace {
    grid-template-columns: 190px minmax(0, 1fr) 230px;
  }

  .summary-card {
    padding-inline: 12px;
  }
}

@media (max-width: 980px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-card:nth-child(5) {
    grid-column: auto;
  }

  .map-workspace {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .detail-panel {
    grid-column: 1 / -1;
    min-height: 250px;
  }

  .detail-placeholder {
    min-height: 210px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    width: min(100% - 28px, 680px);
  }

  .brand img {
    width: 154px;
    height: auto;
  }

  .preview-chip {
    display: none;
  }

  .experience {
    min-height: auto;
    padding: 24px 12px 30px;
  }

  .experience-heading {
    margin: 0 4px 18px;
  }

  .title-row {
    gap: 9px;
  }

  .title-icon {
    width: 36px;
    height: 36px;
    font-size: 1.45rem;
  }

  .experience-heading h1 {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .experience-heading p {
    font-size: 0.92rem;
  }

  .experience-heading small {
    display: block;
    max-width: 340px;
    font-size: 0.7rem;
    line-height: 1.5;
  }

  .live-badge {
    padding: 5px 7px;
    font-size: 0.58rem;
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .summary-card:nth-child(5) {
    grid-column: 2;
  }

  .summary-card {
    min-height: 76px;
    gap: 8px;
    padding: 10px;
    border-radius: 11px;
  }

  .summary-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 1.1rem;
  }

  .summary-card strong {
    font-size: 1rem;
  }

  .summary-card h2 {
    font-size: 0.73rem;
  }

  .summary-card p {
    font-size: 0.61rem;
  }

  .map-workspace {
    display: block;
    min-height: 0;
  }

  .map-stage {
    height: min(590px, 72vh);
    min-height: 500px;
    border-radius: 15px;
  }

  .layers-panel {
    position: absolute;
    z-index: 12;
    top: 10px;
    right: 10px;
    left: 10px;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .panel-heading,
  .panel-links {
    display: none;
  }

  .layer-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 0;
  }

  .layer-row {
    display: flex;
    min-height: 40px;
    justify-content: center;
    gap: 4px;
    padding: 6px 5px;
    border: 1px solid rgba(94, 159, 219, 0.28);
    border-radius: 10px;
    background: rgba(4, 16, 31, 0.82);
    backdrop-filter: blur(12px);
  }

  .layer-row > span:first-child {
    font-size: 0.95rem;
  }

  .layer-row > span:nth-child(2),
  .layer-row i {
    display: none;
  }

  .layer-row:has(input:not(:checked)) {
    opacity: 0.48;
  }

  .layer-row:has(input:focus-visible) {
    outline: 2px solid white;
    outline-offset: 2px;
  }

  .maplibregl-ctrl-top-right {
    top: 58px;
  }

  .map-hint {
    bottom: 13px;
    max-width: calc(100% - 110px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .detail-panel {
    position: fixed;
    z-index: 50;
    right: 8px;
    bottom: 8px;
    left: 8px;
    min-height: 0;
    max-height: min(46vh, 440px);
    overflow-y: auto;
    padding: 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    border-radius: 19px;
    transform: translateY(calc(100% + 20px));
    transition: transform 220ms cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
  }

  .detail-panel::before {
    display: block;
    width: 42px;
    height: 4px;
    margin: -9px auto 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    content: "";
  }

  .detail-panel.is-open {
    transform: translateY(0);
    pointer-events: auto;
  }

  .detail-placeholder {
    display: none;
  }

  .detail-content h2 {
    margin-bottom: 12px;
  }

  .detail-content dl > div {
    padding: 7px 0;
  }

  .content-section {
    padding: 54px 18px;
  }

  .content-section + .content-section {
    padding-top: 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .faq-section {
    padding-bottom: 54px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px;
  }
}

@media (max-width: 390px) {
  .header-inner {
    width: calc(100% - 22px);
  }

  .brand img {
    width: 145px;
  }

  .language-link {
    padding: 6px 9px;
    font-size: 0.7rem;
  }

  .experience {
    padding-inline: 9px;
  }

  .title-row {
    gap: 7px;
  }

  .title-icon {
    display: none;
  }

  .summary-card {
    padding-inline: 8px;
  }

  .summary-icon {
    width: 30px;
    height: 30px;
  }

  .map-stage {
    min-height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
