:root {
  color-scheme: dark;
  --navy: #080f23;
  --white: #f4f8ff;
  --muted: #b8c7df;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: var(--white);
  background: var(--navy);
}

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

.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(145deg, #0b142d 0%, var(--navy) 55%, #08182c 100%);
}

.shell {
  width: min(88%, 82rem);
  margin-inline: auto;
}

.atmosphere, .currents {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.atmosphere {
  inset: 0;
  background:
    radial-gradient(ellipse at 89% 62%, #0caeaf28, transparent 39%),
    radial-gradient(ellipse at 70% 84%, #2457e443, transparent 39%);
}

.currents {
  right: -4%;
  bottom: 0;
  width: 108%;
  height: min(95%, 62rem);
  mask-image: linear-gradient(to right, #0002, #0008 44%, #000 76%);
  animation: current-drift 14s ease-in-out infinite alternate;
}

@keyframes current-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-1.25rem); }
}

.masthead {
  min-height: clamp(5.25rem, 11vh, 7.8rem);
  display: flex;
  align-items: center;
  border-bottom: 1px solid #c6d9ff26;
}

.wordmark {
  --lockup-gap: clamp(.75rem, 1.4vw, 1.2rem);
  display: inline-flex;
  align-items: center;
  gap: var(--lockup-gap);
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

.wordmark-name {
  display: grid;
  align-content: center;
  align-self: stretch;
  gap: .32rem;
  padding-inline-start: var(--lockup-gap);
  border-inline-start: 1px solid #a5b9d578;
  white-space: nowrap;
}

.wordmark strong {
  font-size: clamp(2rem, 3.25vw, 3.35rem);
  font-weight: 850;
  line-height: .86;
  letter-spacing: -.055em;
  font-variant-numeric: lining-nums tabular-nums;
}

.wordmark-label {
  color: var(--muted);
  font-size: clamp(.67rem, .95vw, .9rem);
  font-weight: 650;
  letter-spacing: .36em;
  text-transform: uppercase;
}

.mark {
  position: relative;
  width: clamp(3.2rem, 5.6vw, 5.1rem);
  flex: none;
  aspect-ratio: 1.27;
}

.mark::before, .mark::after {
  content: "";
  position: absolute;
  inset: 0;
}

.mark::before {
  border-radius: 0 50% 50% 0;
  background: linear-gradient(105deg, #2975f7 25%, #28a5ee 58%, #24dfc4);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 30% 100%, 44% 76%,
    63% 76%, 73% 72%, 80% 63%, 83% 50%, 80% 38%, 73% 29%, 63% 25%, 30% 25%);
}

.mark::after {
  background: linear-gradient(38deg, #315cf9, #31b7f3 65%);
  clip-path: polygon(0 100%, 31% 45%, 55% 45%, 24% 100%);
}

.hero {
  display: grid;
  align-items: center;
  flex: 1;
  padding-block: clamp(4.5rem, 9vh, 8rem);
}

h1 {
  margin: 0;
  font-size: clamp(2.65rem, 9.7vw, 9.3rem);
  line-height: .91;
  font-weight: 750;
  letter-spacing: -.075em;
  overflow-wrap: anywhere;
}

h1 span { color: #80f4df; }

@supports (background-clip: text) {
  h1 span {
    color: transparent;
    background: linear-gradient(106deg, #7eacff 0%, #91cafe 40%, #79f3d5 96%);
    background-clip: text;
  }
}

.intro p {
  max-width: 39ch;
  margin: clamp(1.7rem, 4vh, 2.7rem) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  line-height: 1.65;
}

.back {
  color: #80f4df;
  text-decoration: none;
  border-bottom: 1px solid #80f4df55;
}

.back:hover { border-bottom-color: #80f4df; }

.footer {
  position: relative;
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  border-top: 1px solid #c6d9ff26;
}

.coordinates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: 0;
  padding-block: 1rem;
  font-size: .875rem;
  letter-spacing: .075em;
  color: #c6d4ec;
}

.separator { color: #80f4df; }
.crosshair {
  width: .95rem;
  height: .95rem;
  border: 1px solid #70ddd0;
  border-radius: 50%;
  background: radial-gradient(circle, #70ddd0 1px, transparent 2px);
  margin-right: .22rem;
}

.download-dock {
  position: fixed;
  right: clamp(.65rem, 2.2vw, 1.4rem);
  top: 50%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .62rem;
  transform: translateY(-50%);
}

.dock-label {
  margin: 0 0 .15rem;
  color: #c6d4ec;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.download-note {
  position: absolute;
  right: calc(100% + .85rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(16.5rem, 62vw);
  padding: .85rem 1rem;
  border-radius: .7rem;
  background: #0b1733f2;
  border: 1px solid #7ec8ff44;
  box-shadow: 0 14px 32px #02060fcc;
  color: var(--white);
}

.download-note p {
  margin: 0 0 .7rem;
  font-size: .88rem;
  line-height: 1.4;
  letter-spacing: .02em;
}

.download-note-close {
  appearance: none;
  border: 1px solid #7ec8ff55;
  background: transparent;
  color: #80f4df;
  border-radius: .4rem;
  padding: .28rem .62rem;
  font: inherit;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.bubble {
  position: relative;
  width: 3.15rem;
  height: 3.15rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #eaf6ff;
  background:
    radial-gradient(circle at 30% 24%, #5aa7ff44, transparent 42%),
    linear-gradient(165deg, #1b3168cc, #0a142cee);
  border: 1px solid #7ec8ff55;
  box-shadow:
    0 0 0 1px #25e5d118,
    0 12px 28px #02060fcc,
    inset 0 1px 0 #ffffff28;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.bubble svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.bubble:hover,
.bubble:focus-visible {
  transform: scale(1.08);
  border-color: #80f4df;
  box-shadow:
    0 0 0 1px #80f4df55,
    0 14px 32px #021018dd,
    0 0 22px #25e5d133;
  outline: none;
}

.tip {
  position: absolute;
  right: calc(100% + .7rem);
  top: 50%;
  transform: translateY(-50%) translateX(.35rem);
  padding: .32rem .62rem;
  border-radius: .45rem;
  background: #0b1733f0;
  border: 1px solid #7ec8ff44;
  color: var(--white);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.bubble:hover .tip,
.bubble:focus-visible .tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 40rem) {
  .shell { width: 87%; }
  .hero { padding-block: 4.25rem 7rem; }
  h1 { font-size: clamp(2.4rem, 11.1vw, 4.4rem); }
  .currents {
    width: 150%;
    right: -30%;
    height: 52%;
    opacity: .62;
    mask-image: linear-gradient(to top, #000 9%, #0007 53%, transparent 95%);
  }
  .download-dock {
    top: auto;
    bottom: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    right: 50%;
    transform: translateX(50%);
    width: min(22rem, 92vw);
  }
  .dock-label {
    width: 100%;
    text-align: center;
    margin: 0 0 .05rem;
  }
  .download-note {
    right: auto;
    left: 50%;
    top: auto;
    bottom: calc(100% + .7rem);
    transform: translateX(-50%);
  }
  .tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .currents { animation: none; }
  .bubble { transition: none; }
}

@media (forced-colors: active) {
  h1 span { color: CanvasText; background: none; }
  .mark { forced-color-adjust: none; }
  .atmosphere, .currents { display: none; }
}
