/* Send It — tokens
   Brand face: Amazon Ember. It is a licensed font, so it is not bundled.
   If you have a licence, drop the woff2 files in /fonts and uncomment:

@font-face { font-family: "Amazon Ember"; src: url("fonts/AmazonEmber_Rg.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Amazon Ember"; src: url("fonts/AmazonEmber_Bd.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Amazon Ember"; src: url("fonts/AmazonEmber_He.woff2") format("woff2"); font-weight: 900; font-display: swap; }
*/
:root {
  --blue: #027EFC;          /* sampled from the logo */
  --blue-deep: #0160C6;
  --blue-tint: #E9F3FF;
  --paper: #FDFDFB;
  --card: #FFFFFE;
  --ink: #0B1B33;
  --ink-soft: #4A5A72;
  --line: rgba(11, 27, 51, .12);

  --font: "Amazon Ember", "Hanken Grotesk", sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --r: 20px;
  --out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--blue) var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--blue); color: #fff; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.senders :focus-visible { outline-color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 20; }
.skip:focus { left: 8px; }

/* display type follows the wordmark: lowercase, heavy, tight */
.road__title, .senders h2 {
  font-weight: 900;
  letter-spacing: -.045em;
  text-transform: lowercase;
  text-wrap: balance;
}

/* ── pills ── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .18s, color .18s, transform .18s var(--out), box-shadow .18s;
}
.pill:active { transform: scale(.97); }
.pill__arrow { display: inline-block; transition: transform .3s var(--out); }
.pill:hover .pill__arrow { transform: translate(3px, -3px); }
.pill--blue { background: var(--blue); color: #fff; }
.pill--blue:hover { background: var(--blue-deep); }
.pill--ink { background: var(--ink); color: #fff; }
.pill--ink:hover { background: #000; }
.pill--white { background: #fff; color: var(--blue); }
.pill--white:hover { background: var(--ink); color: #fff; }
.pill[disabled], .pill[aria-disabled="true"] { background: var(--blue-tint); color: var(--blue-deep); cursor: not-allowed; }
.pill[data-busy] { opacity: .7; cursor: progress; }

/* ── hero: one screen, copy left, blue slab bleeding off the right edge ── */
.hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: max(600px, 100svh);
}
.hero__copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vh, 64px) var(--gutter); }
.hero__base { position: absolute; top: clamp(22px, 4vh, 40px); left: var(--gutter); display: block; animation: fade .7s var(--out) both; transition: transform .35s var(--out); }
.hero__base img { height: clamp(26px, 2.4vw, 34px); width: auto; }
.hero__base:hover { transform: translateY(-2px); }
.hero__logo { width: min(88%, 630px); margin: 0 0 clamp(18px, 4vh, 40px) -1%; animation: logo 1s var(--out) both; }
.hero__logo img { width: 100%; }
@keyframes logo { from { opacity: 0; transform: translateY(40px) rotate(-3deg); } }

.hero__lede { max-width: 30em; font-size: clamp(1.0625rem, 1.35vw, 1.3125rem); line-height: 1.45; font-weight: 500; animation: fade .7s .35s var(--out) both; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: clamp(18px, 3vh, 30px); animation: fade .7s .47s var(--out) both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }

.hero__panel {
  background: var(--blue);
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center;
  padding: clamp(24px, 4vh, 56px) var(--gutter);
  position: relative; overflow: hidden;
}
/* oversized arc behind the card, the logo's smile at slab scale */
.hero__panel::before {
  content: ""; position: absolute; left: -30%; right: -55%; bottom: -62%; aspect-ratio: 1;
  border-radius: 50%; border: clamp(40px, 6vw, 90px) solid rgba(255,255,255,.1);
}

/* ── swap ── */
.swap {
  position: relative; width: min(100%, 430px);
  background: var(--card); border-radius: 28px; padding: clamp(18px, 2.2vw, 26px);
  box-shadow: 0 30px 60px -28px rgba(1, 40, 90, .55);
  animation: card 1s .3s var(--out) both;
}
@keyframes card { from { opacity: 0; transform: translateY(40px) rotate(1.5deg); } }
.swap__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.swap__head h2 { font-size: 1.25rem; font-weight: 900; letter-spacing: -.02em; }
.chip { font-size: .75rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-deep); }
.chip[data-state="connected"] { background: var(--ink); color: #fff; }
.chip[data-state="live"] { background: var(--blue); color: #fff; }

.field { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 16px 12px; transition: border-color .18s, box-shadow .18s; }
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.field__top { display: flex; justify-content: space-between; font-size: .8125rem; font-weight: 500; color: var(--ink-soft); }
.field__row { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 0; font-size: 2rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.field input::placeholder { color: #A9B4C4; }
.field input[readonly]::placeholder { font-size: 1.125rem; letter-spacing: -.01em; }
.token { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: .875rem; }
.token svg { width: 24px; height: 24px; }

.quick { display: flex; gap: 6px; margin: 8px 0 0; }
.quick button { flex: 1; min-height: 34px; border: 1px solid var(--line); background: none; border-radius: 999px; font-size: .8125rem; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s, border-color .15s, transform .15s var(--out); }
.quick button:hover { border-color: var(--blue); color: var(--blue); }
.quick button:active { transform: scale(.95); }
.quick button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.swap__up { width: 38px; height: 38px; margin: 8px auto; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; font-size: 1.125rem; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }

.swap__go { width: 100%; min-height: 56px; margin-top: 14px; font-size: 1.0625rem; }
.swap__note { margin-top: 12px; font-size: .8125rem; line-height: 1.4; color: var(--ink-soft); text-align: center; text-wrap: balance; }
.swap__note[data-tone="error"] { color: #B4231F; }

.swap__wallet { display: block; margin: 8px auto 0; border: 0; background: none; cursor: pointer; font-size: .8125rem; font-weight: 700; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; transition: color .18s; }
.swap__wallet:hover { color: var(--blue); }
.swap__wallet[hidden] { display: none; }

/* ── ticker ── */
.ticker { display: grid; gap: clamp(10px, 2vh, 20px); padding: clamp(56px, 9vh, 110px) var(--gutter) 0; }
.ticker h2 { font-size: clamp(3.2rem, 11vw, 11.5rem); font-weight: 900; line-height: .86; letter-spacing: -.05em; color: var(--blue); text-wrap: balance; }
.ticker p { order: -1; max-width: 30em; font-size: clamp(1.0625rem, 1.35vw, 1.3125rem); font-weight: 500; color: var(--ink-soft); text-wrap: pretty; }

/* ── roadmap: four bars that only go up ── */
.road { padding: clamp(56px, 9vh, 104px) var(--gutter) clamp(64px, 10vh, 120px); }
.road__title { font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: .92; color: var(--blue); }
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: clamp(10px, 1.4vw, 20px); margin-top: clamp(20px, 3vh, 36px); }
.phases li {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  min-height: calc(clamp(150px, 15vw, 210px) + var(--i) * clamp(44px, 5vw, 76px));
  padding: clamp(18px, 2vw, 28px); border-radius: 28px;
  background: var(--blue-tint);
  transition: opacity .8s var(--out), transform .8s var(--out), background-color .3s, color .3s;
  transition-delay: calc(var(--i) * 90ms), calc(var(--i) * 90ms), 0s, 0s;
}
.js .phases li:not(.in) { opacity: 0; transform: translateY(40px); }
.phases span { font-size: .9375rem; font-weight: 700; color: var(--blue-deep); font-variant-numeric: tabular-nums; transition: color .3s; }
.phases strong { font-size: clamp(1.5rem, 2.5vw, 2.5rem); font-weight: 900; line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.phases li:first-child, .phases li:hover { background: var(--blue); color: #fff; }
.phases li:first-child span, .phases li:hover span { color: #fff; }

/* ── senders ── */
.senders { position: relative; background: var(--blue); color: #fff; overflow: hidden; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: var(--gutter); padding: clamp(56px, 9vh, 104px) var(--gutter); }
.senders__logo { width: 84%; transform: rotate(-4deg); }
.senders h2 { font-size: clamp(2.8rem, 5.6vw, 5.4rem); line-height: .9; }
.senders p { margin: 18px 0 26px; font-size: 1.1875rem; font-weight: 500; max-width: 24em; }
.senders__links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.contract { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 10px 16px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.55); background: rgba(255,255,255,.08); color: #fff; font-size: .875rem; font-weight: 700; cursor: copy; transition: background-color .18s; }
.contract code { font: inherit; font-weight: 500; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.contract:not([disabled]):hover { background: rgba(255,255,255,.2); }
.contract[disabled] { cursor: default; }

.senders .senders__fine { grid-column: 1 / -1; max-width: none; margin: clamp(24px, 5vh, 56px) 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.3); font-size: .8125rem; font-weight: 500; }

/* ── partners ── */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); padding: 0 var(--gutter) clamp(64px, 10vh, 112px); }
.partners__title { grid-column: 1 / -1; margin-bottom: clamp(8px, 1.5vh, 16px); }
.partner {
  position: relative; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px);
  padding: clamp(24px, 3.2vw, 44px); border-radius: 28px; overflow: hidden;
  background: var(--blue-tint); color: var(--ink); text-decoration: none;
  transition: opacity .8s var(--out), transform .8s var(--out), background-color .3s, color .3s;
}
/* hidden only once the script is running, so the cards never vanish without it */
.js .partner:not(.in) { opacity: 0; transform: translateY(28px); }
.partner + .partner { transition-delay: .12s, .12s, 0s, 0s; }
/* the logo's arc, echoed behind each card */
.partner::before { content: ""; position: absolute; right: -18%; bottom: -120%; width: 70%; aspect-ratio: 1; border-radius: 50%; border: clamp(22px, 3vw, 40px) solid rgba(2, 126, 252, .1); transition: transform .9s var(--out), border-color .3s; }
.partner__icon { position: relative; flex: none; width: clamp(72px, 8.5vw, 124px); height: auto; filter: drop-shadow(0 14px 18px rgba(1, 60, 130, .28)); animation: float 5s ease-in-out infinite; }
.partner + .partner .partner__icon { animation-delay: -2.5s; }
.partner__icon.pixel { image-rendering: pixelated; border-radius: 18%; }
@keyframes float { 50% { transform: translateY(-9px) rotate(-4deg); } }
.partner__text { position: relative; display: grid; gap: 8px; min-width: 0; }
.partner__text strong { font-size: clamp(1.7rem, 3.2vw, 3rem); font-weight: 900; line-height: .95; letter-spacing: -.045em; }
.partner__text span { font-size: 1rem; font-weight: 500; color: var(--ink-soft); max-width: 22em; text-wrap: pretty; transition: color .3s; }
.partner__go { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--card); color: var(--blue); font-weight: 900; transition: transform .35s var(--out); }
.partner:hover { background: var(--blue); color: #fff; transform: translateY(-6px); transition-delay: 0s; }
.partner:hover .partner__text span { color: rgba(255,255,255,.85); }
.partner:hover::before { transform: scale(1.25); border-color: rgba(255,255,255,.14); }
.partner:hover .partner__go { transform: translate(3px, -3px) scale(1.08); }
.partner:active { transform: translateY(-2px) scale(.99); }

/* ── small screens: own composition, slab becomes a full-width band ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { align-items: center; text-align: center; padding-top: 28px; padding-bottom: 40px; }
  .hero__base { position: static; align-self: flex-start; margin-bottom: 30px; }
  .hero__logo { margin-left: 0; }
  .hero__cta { justify-content: center; gap: 12px; }
  .hero__panel { padding: 36px var(--gutter) 44px; }
  .ticker { justify-items: center; text-align: center; }
  .phases { grid-template-columns: 1fr; justify-items: start; }
  .phases li { min-height: 0; width: calc(64% + var(--i) * 12%); gap: 10px; padding: 18px 20px; border-radius: 22px; }
  .partners { grid-template-columns: 1fr; }
  .partners__title { text-align: center; }
  .partner { flex-direction: column; text-align: center; padding: 36px 24px 32px; }
  .partner__text { justify-items: center; }
  .senders { grid-template-columns: 1fr; text-align: center; }
  .senders__logo { width: 86%; margin: 0 auto; }
  .senders__links { justify-content: center; }
  .contract { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js .partner:not(.in) { opacity: 1; transform: none; }
  .js .phases li:not(.in) { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
