/* hi. — black, white, one word, one dot. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #000;
  --fg: #fff;
  --dim: rgba(255, 255, 255, 0.56);
  --faint: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.32);
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* no text highlighting, no grey flash when tapping on phones */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--fg); color: var(--bg); }

a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  padding-top: max(18px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, #000 40%, rgba(0, 0, 0, 0));
}

.nav__logo {
  display: block;
  line-height: 0;
  color: var(--fg);
}
.nav__logo svg {
  display: block;
  height: 22px;
  width: auto;
  fill: currentColor;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  font-size: 15px;
}
.nav__links a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--fg); }
.nav__links .nav__buy {
  color: var(--bg);
  background: var(--fg);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav__links .nav__buy:hover { color: var(--bg); background: #dcdcdc; }

@media (max-width: 560px) {
  .nav__links a:not(.nav__buy):not([data-link="x"]) { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  padding: 96px var(--gutter) 40px;
  text-align: center;
}

/* the logo: a vector traced from the original artwork, so it stays sharp at any size */
.mark {
  grid-row: 2;
  margin: 0;
  line-height: 0;
  color: var(--fg);
  user-select: none;
  cursor: default;
}
.mark svg {
  display: block;
  height: clamp(84px, min(30vw, 22vh), 230px);
  width: auto;
  overflow: visible;
  fill: currentColor;
}
.mark__hi, .mark__dot {
  transform-box: fill-box;
  transform-origin: center;
}

.hero__foot {
  grid-row: 3;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 560px;
  padding-top: 48px;
}

.hero__line {
  margin: 0;
  color: var(--dim);
  font-size: 17px;
}

/* contract address */
.ca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 44px;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}
.ca__label {
  color: var(--faint);
  font-weight: 600;
  flex: none;
}
.ca__value {
  min-width: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg);
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-align: left;
  /* the one exception to no-highlighting: one tap selects the whole address */
  -webkit-user-select: all;
  user-select: all;
}
.ca__copy {
  flex: none;
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 32px;
  padding: 0 14px;
  background: var(--fg);
  color: var(--bg);
  font: 600 13px/1 var(--font);
  cursor: pointer;
  transition: background 0.2s;
}
.ca__copy:hover { background: #dcdcdc; }
.ca-wrap {
  position: relative;
  max-width: 100%;
  margin-bottom: 12px;
}
.ca__status {
  position: absolute;
  inset: calc(100% + 6px) 0 auto;
  margin: 0;
  font-size: 13px;
  color: var(--dim);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { border-color: var(--fg); }
.btn:active { transform: scale(0.97); }
.btn--solid {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.btn--solid:hover { background: #dcdcdc; border-color: #dcdcdc; }

.stats {
  display: flex;
  gap: 24px;
  margin: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.stats__k { color: var(--faint); margin-right: 4px; }

/* ---------- hello in every language ---------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 70s linear infinite;
}
.ticker__track span {
  padding-right: 0.9em;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--faint);
  white-space: nowrap;
}
.ticker__track span.is-hi { color: var(--fg); }

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(96px, 14vw, 168px) var(--gutter) 0;
}

.label {
  margin: 0 0 clamp(32px, 5vw, 56px);
  font-size: 15px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: 0;
}

.lede {
  margin: 0;
  max-width: 21ch;
  font-size: clamp(30px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.lede--dim {
  margin-top: 0.6em;
  color: var(--faint);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.step__n {
  font-size: 13px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.step__t {
  margin: 18px 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.step__d {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--dim);
}
.step__d a {
  color: var(--fg);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
}
.fact {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
}
.fact dt {
  font-size: 13px;
  color: var(--faint);
}
.fact dd {
  margin: 8px 0 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- outro ---------- */

.outro {
  min-height: 90vh;
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 120px var(--gutter);
  text-align: center;
}
.outro__big {
  margin: 0;
  font-size: clamp(84px, 17vw, 220px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.outro__hint {
  margin: 0;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- footer ---------- */

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--gutter) max(48px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--dim);
}
.foot__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}
.foot__assets { display: flex; gap: 20px; }
.foot__assets a { text-decoration: none; }
.foot__assets a:hover { color: var(--fg); }
.foot__legal {
  margin: 0;
  max-width: 72ch;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--faint);
}

/* ---------- click anywhere: a little hi. floats up ---------- */

.pop {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  font-weight: 700;
  font-size: var(--size, 24px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--fg);
  transform: translate(-50%, -50%);
  animation: pop 1.5s var(--ease) forwards;
}
@keyframes pop {
  0%   { opacity: 0; transform: translate(-50%, -30%) scale(0.6); }
  15%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 90px)) scale(1); }
}

/* ---------- motion (only when JS is on and motion is welcome) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .mark__hi { animation: rise 0.9s var(--ease) both; }
  .js .mark__dot { animation: drop 0.9s 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
  .mark:hover .mark__dot { animation: hop 0.5s var(--ease); }

  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .js .hero__foot { animation: fade 1s 0.8s var(--ease) both; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .pop { animation-name: fade-out; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8%); }
  to   { opacity: 1; transform: none; }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-320%); }
  to   { opacity: 1; transform: none; }
}
@keyframes hop {
  0%, 100% { transform: none; }
  40% { transform: translateY(-70%); }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fade-out {
  0% { opacity: 0; }
  15% { opacity: 1; }
  100% { opacity: 0; }
}
