:root {
  --ink: #f3f3ef;
  --muted: #a2a6a0;
  --night: #080b0d;
  --night-2: #0d1113;
  --panel: #111719;
  --line: rgba(223, 234, 227, 0.14);
  --solar: #dfff4f;
  --solar-soft: #b9d842;
  --aqua: #67edc2;
  --warm: #f0a864;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-mono: "DM Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--night);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
a,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--solar);
  outline-offset: 3px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand > span:last-child > span {
  color: var(--solar);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--solar);
}

.brand-mark svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.desktop-nav {
  display: flex;
  gap: 34px;
}

.desktop-nav a {
  color: #c7cbc6;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a:hover {
  color: var(--solar);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.share-button,
.contact-button {
  min-height: 40px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ink);
  background: rgba(11, 14, 16, 0.25);
  cursor: pointer;
}

.share-button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.share-button:hover {
  border-color: var(--solar);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  padding: 0 19px;
  color: #10130c;
  background: var(--solar);
}

.contact-button:hover,
.primary-button:hover {
  background: #ecff92;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
  align-items: center;
  min-height: 900px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 155px 6vw 80px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 11, 13, 1) 0%, rgba(8, 11, 13, 0.94) 42%, rgba(8, 11, 13, 0.12) 68%),
    radial-gradient(circle at 78% 50%, #303635 0%, #151a1b 27%, #080b0d 62%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  opacity: 0.23;
  mix-blend-mode: screen;
}

.hero-glow {
  position: absolute;
  top: 50%;
  right: -18%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(223, 255, 79, 0.1);
  filter: blur(90px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-top: 32px;
}

.eyebrow,
.section-index,
.panel-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: #c5cbc4;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--solar);
  box-shadow: 0 0 12px var(--solar);
}

.hero h1 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(4.5rem, 7.2vw, 8.1rem);
  font-weight: 500;
  letter-spacing: -0.078em;
  line-height: 0.86;
}

.hero h1 em,
.outputs-section h2 em {
  color: var(--solar);
  font-style: normal;
}

.hero-lede {
  max-width: 620px;
  margin: 35px 0 30px;
  color: #bec3bd;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 2px;
  color: #10130c;
  background: var(--solar);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
}

.text-button {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: #d8dbd5;
  background: transparent;
  font-size: 0.84rem;
  cursor: pointer;
}

.text-button:hover {
  color: var(--solar);
  border-color: var(--solar);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 600px;
  margin: 75px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-stats div {
  padding: 17px 14px 0 0;
}

.hero-stats div + div {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-stats dt {
  color: var(--solar);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.hero-stats dd {
  margin: 7px 0 0;
  color: #aeb4ad;
  font-size: 0.77rem;
}

.moon-stage {
  position: relative;
  z-index: 2;
  min-height: 670px;
  pointer-events: none;
}

.moon {
  position: absolute;
  top: 50%;
  left: 57%;
  width: min(45vw, 650px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  background:
    radial-gradient(circle at 26% 28%, rgba(7, 10, 10, 0.75) 0 2.5%, transparent 3%),
    radial-gradient(circle at 66% 20%, rgba(7, 10, 10, 0.5) 0 4%, transparent 4.5%),
    radial-gradient(circle at 78% 58%, rgba(7, 10, 10, 0.68) 0 7%, transparent 7.5%),
    radial-gradient(circle at 35% 71%, rgba(7, 10, 10, 0.58) 0 9%, transparent 9.5%),
    radial-gradient(circle at 55% 42%, #aeb3ac 0%, #7a817b 31%, #4d5350 57%, #242928 75%, #101414 100%);
  box-shadow:
    -45px 0 100px rgba(223, 255, 79, 0.1),
    inset 50px 10px 100px rgba(245, 248, 227, 0.18),
    inset -100px 0 120px rgba(0, 0, 0, 0.72);
}

.moon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-radial-gradient(ellipse at 60% 42%, transparent 0 13px, rgba(255, 255, 255, 0.035) 14px 15px),
    linear-gradient(110deg, rgba(255, 255, 255, 0.09), transparent 42%);
  mix-blend-mode: overlay;
}

.crater {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(223, 228, 219, 0.12);
  border-radius: 50%;
  box-shadow: inset 7px 5px 10px rgba(0, 0, 0, 0.35), -3px -2px 8px rgba(255, 255, 255, 0.08);
}

.crater-a { top: 17%; left: 35%; width: 14%; aspect-ratio: 1; }
.crater-b { top: 35%; right: 19%; width: 9%; aspect-ratio: 1; }
.crater-c { bottom: 19%; left: 20%; width: 19%; aspect-ratio: 1; }
.crater-d { bottom: 27%; right: 25%; width: 7%; aspect-ratio: 1; }
.crater-e { top: 47%; left: 24%; width: 5%; aspect-ratio: 1; }

.orbit-line {
  position: absolute;
  top: 50%;
  left: 57%;
  z-index: -1;
  width: 115%;
  height: 54%;
  border: 1px solid rgba(223, 255, 79, 0.17);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-19deg);
}

.orbit-line-two {
  width: 88%;
  height: 116%;
  border-color: rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%) rotate(21deg);
}

.site-pin {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--solar);
  border-radius: 50%;
  color: var(--solar);
  background: rgba(6, 9, 9, 0.76);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
}

.site-pin::before,
.site-pin::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(223, 255, 79, 0.45);
  border-radius: 50%;
  opacity: 0;
}

.site-pin.is-active::before {
  opacity: 1;
  animation: pinPulse 2s ease-out infinite;
}

.site-pin.is-active::after {
  opacity: 1;
  animation: pinPulse 2s 0.7s ease-out infinite;
}

.site-pin-a { top: 20%; left: 49%; }
.site-pin-b { top: 49%; left: 69%; }
.site-pin-c { top: 65%; left: 43%; }

@keyframes pinPulse {
  from { opacity: 0.7; transform: scale(0.65); }
  to { opacity: 0; transform: scale(1.65); }
}

.sun-direction {
  position: absolute;
  top: 22%;
  right: 1%;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #bdc3bc;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sun-direction span {
  width: 45px;
  border-top: 1px solid var(--solar);
}

.sun-direction span::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--solar);
  box-shadow: 0 0 15px var(--solar);
}

.map-caption {
  position: absolute;
  right: 4%;
  bottom: 9%;
  display: grid;
  min-width: 235px;
  padding: 15px 17px;
  border-left: 2px solid var(--solar);
  background: rgba(6, 9, 10, 0.7);
  backdrop-filter: blur(10px);
}

.map-caption span,
.map-caption small {
  color: #9fa59f;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.map-caption strong {
  margin: 4px 0 2px;
  font-size: 0.79rem;
}

.scan-line {
  position: absolute;
  top: 17%;
  left: 57%;
  width: 55%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--solar), transparent);
  opacity: 0.42;
  animation: scan 5s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { transform: translate(-50%, 0); opacity: 0; }
  15%, 85% { opacity: 0.4; }
  50% { transform: translate(-50%, 430px); }
}

.analysis-section,
.method-section,
.outputs-section {
  padding: 120px max(32px, calc((100vw - 1340px) / 2));
}

.analysis-section {
  background: #eef0e9;
  color: #131817;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 90px;
  align-items: end;
  margin-bottom: 62px;
}

.section-index {
  margin: 0 0 20px;
  color: #677069;
}

.section-heading h2,
.output-copy h2,
.cta-section h2 {
  margin: 0;
  font-size: clamp(2.9rem, 5vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.section-heading > p,
.output-copy > p {
  max-width: 500px;
  margin: 0 0 6px;
  color: #69716c;
  font-size: 1.05rem;
  line-height: 1.75;
}

.workspace-shell {
  overflow: hidden;
  border: 1px solid #b8bdb7;
  border-radius: 5px;
  background: #101517;
  box-shadow: 0 32px 80px rgba(20, 28, 25, 0.22);
}

.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  color: #d7dbd6;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
}

.workspace-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}

.workspace-brand span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--solar);
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(223, 255, 79, 0.55);
}

.workspace-meta {
  display: flex;
  gap: 20px;
  color: #7f8984;
}

.processing {
  color: var(--solar);
}

.processing i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 235px minmax(400px, 1fr) 265px;
  min-height: 565px;
}

.layer-panel,
.site-panel {
  padding: 24px 18px;
  color: #dde1dd;
  background: #121719;
}

.layer-panel {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.site-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-label {
  margin: 0 0 18px;
  color: #7e8983;
}

.layer-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 11px 7px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #8f9893;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.layer-row span:nth-child(2) {
  display: grid;
}

.layer-row strong {
  color: #aeb5b0;
  font-size: 0.75rem;
  font-weight: 600;
}

.layer-row small {
  color: #68726d;
  font-size: 0.58rem;
}

.layer-row > i {
  color: #626c67;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-style: normal;
}

.layer-row.is-active strong,
.layer-row.is-active > i {
  color: var(--solar);
}

.layer-icon {
  position: relative;
  display: block;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.layer-row.is-active .layer-icon {
  border-color: rgba(223, 255, 79, 0.5);
}

.layer-icon::before,
.layer-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.illumination::before { inset: 6px; border-radius: 50%; }
.slope::before { width: 12px; height: 1px; left: 5px; top: 11px; transform: rotate(-30deg); }
.thermal::before { width: 3px; height: 10px; left: 9px; top: 4px; border-radius: 3px; }
.thermal::after { width: 7px; height: 7px; left: 7px; bottom: 4px; border-radius: 50%; }
.route::before { width: 12px; height: 1px; left: 5px; top: 7px; box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor; }

.threshold-control {
  margin-top: 32px;
}

.threshold-control label {
  display: flex;
  justify-content: space-between;
  color: #939c97;
  font-size: 0.67rem;
}

.threshold-control output {
  color: var(--solar);
  font-family: var(--font-mono);
}

.threshold-control input {
  width: 100%;
  margin: 14px 0 4px;
  accent-color: var(--solar);
}

.threshold-control div {
  display: flex;
  justify-content: space-between;
  color: #5f6964;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  text-transform: uppercase;
}

.terrain-map {
  position: relative;
  overflow: hidden;
  min-height: 565px;
  background:
    radial-gradient(ellipse at 63% 43%, rgba(255, 255, 255, 0.17) 0 3%, transparent 4%),
    radial-gradient(ellipse at 40% 67%, rgba(0, 0, 0, 0.7) 0 6%, transparent 9%),
    radial-gradient(ellipse at 26% 25%, rgba(0, 0, 0, 0.45) 0 7%, transparent 10%),
    radial-gradient(ellipse at 75% 70%, rgba(0, 0, 0, 0.52) 0 10%, transparent 13%),
    radial-gradient(circle at 48% 43%, #6b736d, #3e4541 40%, #202725 75%, #121817);
}

.terrain-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(ellipse at 50% 45%, transparent 0 21px, rgba(232, 238, 231, 0.08) 22px 23px),
    linear-gradient(135deg, rgba(223, 255, 79, 0.08), transparent 45%);
  transform: rotate(-8deg) scale(1.2);
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
}

.contour {
  position: absolute;
  border: 1px solid rgba(238, 242, 236, 0.14);
  border-radius: 48% 52% 37% 63% / 51% 35% 65% 49%;
  transform: rotate(-14deg);
}

.contour-one { inset: 12% 18% 14% 14%; }
.contour-two { inset: 22% 27% 25% 23%; }
.contour-three { inset: 34% 39% 35% 34%; }

.candidate-zone {
  position: absolute;
  width: 84px;
  height: 64px;
  border: 1px solid rgba(223, 255, 79, 0.65);
  border-radius: 46% 54% 55% 45% / 50% 39% 61% 50%;
  background: rgba(223, 255, 79, 0.12);
  box-shadow: inset 0 0 25px rgba(223, 255, 79, 0.15);
  opacity: 0.6;
  cursor: pointer;
}

.candidate-zone::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px dashed rgba(223, 255, 79, 0.35);
  border-radius: inherit;
}

.candidate-zone span {
  position: absolute;
  top: -25px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #121512;
  background: var(--solar);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.candidate-zone.is-active {
  opacity: 1;
  box-shadow: 0 0 35px rgba(223, 255, 79, 0.2), inset 0 0 30px rgba(223, 255, 79, 0.23);
}

.zone-a { top: 24%; left: 51%; transform: rotate(17deg); }
.zone-b { top: 54%; left: 65%; transform: scale(0.8) rotate(-14deg); }
.zone-c { top: 65%; left: 30%; transform: scale(0.68) rotate(34deg); }

.map-scale,
.map-coordinates,
.map-legend {
  position: absolute;
  z-index: 2;
  color: #d2d8d2;
  font-family: var(--font-mono);
  font-size: 0.52rem;
}

.map-scale {
  bottom: 18px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-scale span {
  width: 65px;
  border-top: 2px solid #d7dcd7;
}

.map-coordinates {
  right: 18px;
  bottom: 17px;
  text-align: right;
}

.map-legend {
  top: 16px;
  left: 17px;
  display: flex;
  gap: 13px;
  padding: 7px 9px;
  background: rgba(8, 12, 12, 0.65);
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.map-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-best { background: var(--solar); }
.legend-good { background: var(--aqua); }
.legend-risk { background: var(--warm); }

.site-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.site-heading h3 {
  margin: -8px 0 0;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.rank-badge {
  padding: 5px 8px;
  border: 1px solid rgba(223, 255, 79, 0.25);
  color: #8e9892;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  text-transform: uppercase;
}

.rank-badge b {
  color: var(--solar);
}

.score-ring {
  display: grid;
  place-items: center;
  width: 152px;
  aspect-ratio: 1;
  margin: 28px auto;
  border-radius: 50%;
  background: conic-gradient(var(--solar) calc(var(--score) * 1%), #29312d 0);
}

.score-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 133px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #121719;
}

.score-ring > div {
  z-index: 1;
  grid-area: 1 / 1;
  text-align: center;
}

.score-ring strong {
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.08em;
}

.score-ring span {
  color: #69736d;
  font-size: 0.7rem;
}

.score-ring small {
  display: block;
  color: #7f8983;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.1em;
}

.metric-list {
  display: grid;
}

.metric-list div {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-list span {
  color: #78827d;
  font-size: 0.65rem;
}

.metric-list strong {
  color: #dce1dc;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
}

.export-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 24px;
  padding: 11px;
  border: 1px solid var(--solar);
  color: var(--solar);
  background: transparent;
  font-size: 0.67rem;
  font-weight: 700;
  cursor: pointer;
}

.export-button:hover {
  color: #11150d;
  background: var(--solar);
}

.export-button svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.demo-note {
  margin: 13px 0 0;
  color: #626d67;
  font-size: 0.55rem;
  line-height: 1.55;
}

.method-section {
  color: var(--ink);
  background: #0a0e10;
}

.section-heading.compact {
  grid-template-columns: 1.2fr 0.8fr;
}

.method-section .section-index {
  color: #737e78;
}

.method-section .section-heading > p {
  color: #929b95;
}

.pipeline {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: stretch;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pipeline article {
  position: relative;
  padding: 45px 6% 10px;
  min-height: 400px;
}

.pipeline article + .pipeline-arrow + article {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.step-number {
  position: absolute;
  top: -11px;
  left: 0;
  padding-right: 10px;
  color: var(--solar);
  background: #0a0e10;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 50px;
  border: 1px solid rgba(223, 255, 79, 0.28);
  border-radius: 50%;
  color: var(--solar);
  background: rgba(223, 255, 79, 0.04);
}

.step-icon svg {
  width: 45px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.pipeline h3 {
  margin: 0 0 18px;
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.pipeline p {
  max-width: 340px;
  margin: 0;
  color: #929b95;
  font-size: 0.85rem;
  line-height: 1.7;
}

.pipeline small {
  display: block;
  margin-top: 35px;
  color: #626d67;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.pipeline-arrow {
  display: grid;
  place-items: center;
  color: #5d6862;
}

.outputs-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 11vw;
  align-items: center;
  color: #141917;
  background: #eef0e9;
}

.output-copy > p {
  margin: 30px 0 35px;
}

.output-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.output-copy li {
  display: flex;
  gap: 15px;
  padding: 14px 0;
  border-top: 1px solid #c9cec8;
  color: #4e5752;
  font-size: 0.84rem;
}

.output-copy li span {
  color: #818a84;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.mission-card {
  position: relative;
  margin: 0;
  padding: 55px 48px 42px;
  color: #eff1eb;
  background: #111718;
  box-shadow: 25px 25px 0 #d9ddd5;
}

.quote-mark {
  color: var(--solar);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.65;
}

.mission-card > p {
  margin: 28px 0 55px;
  font-size: clamp(1.4rem, 2.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.4;
}

.mission-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mission-card footer > span {
  color: #8e9892;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
}

.mission-card footer i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--solar);
}

.mission-card button {
  padding: 0;
  border: 0;
  color: var(--solar);
  background: transparent;
  font-size: 0.72rem;
  cursor: pointer;
}

.cta-section {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 650px;
  padding: 120px 30px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 110%, rgba(223, 255, 79, 0.22), transparent 43%),
    #0a0e10;
}

.cta-section .section-index {
  color: var(--solar);
}

.cta-section h2 {
  z-index: 1;
  max-width: 890px;
  margin: 18px 0 45px;
  font-size: clamp(3.7rem, 7.5vw, 7.4rem);
}

.primary-button.light {
  z-index: 1;
}

.cta-orbit {
  position: absolute;
  left: 50%;
  bottom: -580px;
  width: 1100px;
  height: 800px;
  border: 1px solid rgba(223, 255, 79, 0.25);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow:
    0 -25px 80px rgba(223, 255, 79, 0.08),
    inset 0 20px 80px rgba(223, 255, 79, 0.06);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 32px max(32px, calc((100vw - 1340px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #707a75;
  background: #080b0d;
  font-size: 0.68rem;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

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

.site-footer div a:hover {
  color: var(--solar);
}

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

.share-dialog {
  width: min(590px, calc(100% - 30px));
  padding: 40px;
  border: 1px solid rgba(223, 255, 79, 0.33);
  color: var(--ink);
  background: #111718;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}

.share-dialog::backdrop {
  background: rgba(2, 5, 5, 0.8);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 15px;
  border: 0;
  color: #a7afa9;
  background: transparent;
  font-size: 1.7rem;
  cursor: pointer;
}

.share-dialog h2 {
  margin: 0;
  font-size: 2.4rem;
  letter-spacing: -0.05em;
}

.dialog-intro {
  color: #969f99;
}

.share-dialog blockquote {
  margin: 27px 0;
  padding: 20px;
  border-left: 2px solid var(--solar);
  color: #dce0db;
  background: #0b1011;
  font-size: 0.95rem;
  line-height: 1.65;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.share-options button,
.share-options a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e0e4df;
  background: transparent;
  font-size: 0.72rem;
  text-decoration: none;
  cursor: pointer;
}

.share-options button:hover,
.share-options a:hover {
  border-color: var(--solar);
  color: var(--solar);
}

.share-options svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.share-status {
  min-height: 1.3em;
  margin: 13px 0 0;
  color: var(--solar);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-align: center;
}

@media (max-width: 1150px) {
  .desktop-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 165px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .moon-stage {
    min-height: 650px;
    margin-top: -70px;
    transform: translateX(15%);
  }

  .moon {
    width: 620px;
  }

  .workspace-grid {
    grid-template-columns: 210px 1fr;
  }

  .site-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 160px 1.5fr 1fr;
    gap: 20px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .score-ring {
    width: 120px;
    margin: 0;
  }

  .score-ring::before {
    width: 104px;
  }

  .score-ring strong {
    font-size: 2rem;
  }

  .export-button {
    margin-top: 0;
  }

  .site-panel .demo-note {
    grid-column: 4;
  }

  .outputs-section {
    gap: 6vw;
  }
}

@media (max-width: 800px) {
  .site-header {
    width: calc(100% - 30px);
    padding: 18px 0;
  }

  .header-actions .share-button {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .header-actions .share-button {
    font-size: 0;
  }

  .contact-button {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 130px 22px 60px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 16vw, 6rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-stats {
    margin-top: 55px;
  }

  .moon-stage {
    min-height: 470px;
    margin-top: -25px;
    transform: translateX(10%);
  }

  .moon {
    left: 52%;
    width: min(560px, 110vw);
  }

  .orbit-line,
  .scan-line {
    left: 52%;
  }

  .sun-direction {
    display: none;
  }

  .map-caption {
    right: 10%;
    bottom: 2%;
  }

  .analysis-section,
  .method-section,
  .outputs-section {
    padding: 82px 20px;
  }

  .section-heading,
  .section-heading.compact,
  .outputs-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-heading {
    margin-bottom: 45px;
  }

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

  .layer-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .layer-panel > .panel-label,
  .threshold-control {
    grid-column: 1 / -1;
  }

  .terrain-map {
    min-height: 460px;
  }

  .site-panel {
    grid-template-columns: 1fr 140px;
  }

  .site-panel .metric-list,
  .site-panel .demo-note {
    grid-column: 1 / -1;
  }

  .site-panel .export-button {
    grid-column: 1 / -1;
  }

  .pipeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pipeline article {
    min-height: auto;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .pipeline-arrow {
    display: none;
  }

  .step-icon {
    margin-bottom: 25px;
  }

  .mission-card {
    margin-top: 25px;
    padding: 40px 28px;
    box-shadow: 12px 12px 0 #d9ddd5;
  }

  .cta-section {
    min-height: 560px;
    padding: 100px 20px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div,
  .hero-stats div + div {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .hero-stats dd {
    margin: 0;
  }

  .moon-stage {
    min-height: 390px;
  }

  .map-caption {
    min-width: 210px;
  }

  .workspace-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 13px;
  }

  .workspace-meta {
    flex-wrap: wrap;
  }

  .layer-panel {
    grid-template-columns: 1fr;
  }

  .threshold-control,
  .layer-panel > .panel-label {
    grid-column: auto;
  }

  .terrain-map {
    min-height: 390px;
  }

  .map-legend {
    flex-wrap: wrap;
    right: 17px;
  }

  .mission-card footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .share-dialog {
    padding: 32px 20px;
  }

  .share-options {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
