:root {
  --bg: #000;
  --fg: #fff;
  --muted: #c7c7c7;
  --quiet: #a3a3a3;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --max: 1120px;
  --header: 64px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter Tight", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

::selection {
  background: #fff;
  color: #000;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.sr-only,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: #000;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  height: var(--header);
  column-gap: 24px;
}

.header-brand {
  display: flex;
  align-items: flex-start;
  align-self: start;
  height: var(--header);
  overflow: visible;
  position: relative;
  z-index: 2;
}

.header-nav {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: flex-end;
  gap: 20px;
  height: var(--header);
  min-height: var(--header);
  max-height: var(--header);
}

.logo {
  display: inline-flex;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 72px;
  width: auto;
}

@media (min-width: 900px) {
  .logo img {
    height: 120px;
  }
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-panel a {
  color: #fff;
  opacity: 0.72;
  font-size: 14px;
  text-decoration: none;
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  opacity: 1;
}

.nav-cta {
  display: none;
}

.header-cta,
.solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover,
.solid:hover {
  background: #e8e8e8;
}

.solid:disabled {
  opacity: 0.45;
  cursor: default;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  margin-left: 0;
  padding: 8px 0 8px 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.hero {
  padding: 40px 0 96px;
}

@media (min-width: 900px) {
  .hero {
    padding-top: 88px;
  }
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px 48px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.street-figure {
  position: relative;
  width: min(100%, 400px);
  justify-self: end;
  margin: 0;
}

.street-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #080b12;
  border: 0;
}

.street-toggle,
.globe-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
}

.media-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
}

.media-toggle .icon-play {
  display: none;
}

.media-toggle[aria-pressed="true"] .icon-pause {
  display: none;
}

.media-toggle[aria-pressed="true"] .icon-play {
  display: block;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.35rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.hero h1 .line {
  display: block;
}

.lede {
  max-width: 40rem;
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.section-lede {
  margin-top: 20px;
}

.waitlist-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  row-gap: 12px;
  align-items: end;
  max-width: 560px;
  margin-top: 36px;
}

.waitlist-form .form-row {
  display: contents;
}

.form-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.field.grow {
  flex: 1;
  min-width: 0;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--quiet);
  font-size: 13px;
}

.field input,
.field select,
.field textarea,
.waitlist-form input[type="email"] {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
}

.waitlist-form input[type="email"] {
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
}

.waitlist-form .solid {
  height: 48px;
  padding: 0 18px;
}

.field input,
.field select {
  height: 48px;
  padding: 0 14px;
}

.field textarea {
  display: block;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.waitlist-form input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-color: #fff;
}

::placeholder {
  color: #8d8d8d;
}

.form-status {
  min-height: 0;
  margin-top: 0;
  font-size: 15px;
}

.form-status:empty {
  display: none;
}

.form-status:not(:empty) {
  min-height: 1.4em;
  margin-top: 12px;
}

.waitlist-form .form-status,
.waitlist-note {
  grid-column: 1;
}

.waitlist-note {
  margin-top: 10px;
}

.form-status[data-state="error"] {
  color: #fff;
}

.fine {
  margin-top: 8px;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}

.section h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

#problem h2 {
  max-width: 11em;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}

.prose-block p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.points {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.points li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 40px;
  margin-top: 64px;
}

.step-num {
  display: block;
  margin-bottom: 12px;
  color: var(--quiet);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.steps h3,
.cases h3,
.why-grid h3 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.steps p,
.cases p,
.why-grid p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.system-line {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 46rem;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.world {
  padding-bottom: 72px;
}

.town-figure {
  width: min(var(--max), calc(100% - 48px));
  margin: 48px auto 0;
}

.town-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1600 / 600;
  background: #080b12;
  border: 1px solid var(--line);
  touch-action: pan-y;
  cursor: grab;
}

.town-canvas:active {
  cursor: grabbing;
}

.town-drag {
  display: none;
}

@media (max-width: 768px) {
  .town-canvas {
    aspect-ratio: 4 / 3;
    cursor: auto;
  }

  .town-drag {
    display: inline;
  }
}

.world-figure {
  position: relative;
  width: min(680px, calc(100% - 48px));
  margin: 56px auto 0;
}

.globe-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}

.globe-stage .scene-container {
  width: 100%;
  height: 100%;
}

.globe-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--quiet);
  font-size: 14px;
  pointer-events: none;
}

.globe-loading[hidden] {
  display: none;
}

.globe-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.globe-caption {
  color: var(--quiet);
  font-size: 14px;
}

.ghost {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.ghost:hover {
  border-color: #fff;
}

.ghost:disabled {
  opacity: 0.4;
  cursor: default;
}

.cases {
  margin-top: 56px;
}

.cases li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.cases li:last-child {
  border-bottom: 1px solid var(--line);
}

.cases p {
  margin-top: 0;
  max-width: 40rem;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 56px;
}

.why-grid article {
  padding: 32px 40px 36px 0;
  border-top: 1px solid var(--line);
}

.why-grid article:nth-child(even) {
  padding: 32px 0 36px 40px;
  border-left: 1px solid var(--line);
}

.partner-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fields .full {
  grid-column: 1 / -1;
}

.partner-form .solid {
  margin-top: 18px;
  height: 48px;
  padding: 0 18px;
}

.faq {
  margin-top: 48px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--quiet);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  max-width: 42rem;
  margin: 0;
  padding: 0 48px 22px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 32px 48px;
  align-items: start;
}

.footer-mark {
  display: block;
  height: 72px;
  width: auto;
  margin-bottom: 12px;
}

.footer-line,
.footer-meta,
.footer-nav a,
.footer-social a {
  color: var(--quiet);
  font-size: 14px;
}

.footer-line {
  margin-top: 8px;
}

.footer-nav,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-nav {
  flex-wrap: nowrap;
}

.footer-nav a,
.footer-social a {
  text-decoration: none;
}

.footer-nav a:hover,
.footer-social a:hover,
.footer-nav a:focus-visible,
.footer-social a:focus-visible {
  color: #fff;
}

.footer-meta {
  margin-top: 40px;
}

@media (hover: hover) and (pointer: fine) {
  .globe-stage {
    pointer-events: auto;
    cursor: grab;
  }

  .globe-stage:active {
    cursor: grabbing;
  }
}

@media (hover: none), (pointer: coarse) {
  .fine-only {
    display: none;
  }
}

@media (max-width: 899px) {
  .header {
    height: auto;
    overflow: visible;
    background: transparent;
    border-bottom: 0;
  }

  .header.is-scrolled {
    border-bottom-color: transparent;
  }

  .header-shell {
    height: auto;
    align-items: center;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: 0;
  }

  .header-brand {
    height: auto;
    overflow: visible;
  }

  .header-nav {
    height: auto;
    min-height: 0;
    max-height: none;
    align-items: center;
    padding-top: 0;
  }

  .logo img {
    height: 52px;
  }

  .hero {
    padding-top: 4px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .street-figure {
    width: min(100%, 380px);
    justify-self: center;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    z-index: 3;
  }

  .header-cta {
    display: none;
  }

  .nav-panel {
    display: none;
  }

  .nav-panel.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    position: fixed;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 24px 24px 48px;
    background: #000;
  }

  .nav-panel.is-open a {
    opacity: 1;
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.15;
  }

  .nav-panel.is-open .nav-cta {
    display: inline-flex;
    align-items: center;
    height: 48px;
    margin-top: 28px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    opacity: 1;
  }

  .split,
  .steps,
  .why-grid,
  .partner-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-wrap: wrap;
  }

  .why-grid article,
  .why-grid article:nth-child(even) {
    padding: 28px 0;
    border-left: 0;
  }

  .cases li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .partner-grid {
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 40px));
  }

  .hero {
    padding: 4px 0 80px;
  }

  .section {
    padding: 80px 0;
  }

  .waitlist-form,
  .form-row,
  .fields,
  .globe-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .waitlist-form .solid {
    margin-top: 4px;
  }

  .fields {
    display: grid;
    grid-template-columns: 1fr;
  }

  .globe-bar {
    align-items: flex-start;
    gap: 12px;
  }

  .waitlist-form .solid,
  .partner-form .solid {
    width: 100%;
  }

  .town-figure {
    width: min(var(--max), calc(100% - 40px));
  }

  .world-figure {
    width: min(680px, calc(100% - 40px));
  }

  .lede,
  .prose-block p {
    font-size: 17px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
