/* AnsemWheel: a winged tire in a blue sky. Sky, cloud, rubber, halo gold. */
:root {
  --sky-hi: #155d90;      /* top of the photo's sky */
  --sky: #2a86b8;
  --sky-lo: #6cbfd6;      /* horizon haze */
  --cloud: #f7fbfd;
  --mist: #e4f1f7;
  --rubber: #1e2226;      /* tire */
  --rubber-2: #3a4147;
  --halo: #f6c445;        /* the gold accent: money, halo */
  --halo-deep: #d99a12;
  --ink: #15324a;         /* text on cloud */
  --ink-soft: #4d6b80;
  --display: 'Bowlby One', 'Arial Black', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-lg: 34px;
  --r-md: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--halo); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--cloud); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 14px 14px auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  background: rgba(14, 62, 98, .38);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  transition: background .3s;
}
.nav.solid { background: rgba(14, 62, 98, .82); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 9px; }
.brand span { font-family: var(--display); font-size: 19px; letter-spacing: .01em; }
.nav-actions { display: flex; gap: 8px; }
.ca-pill, .x-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px;
  border-radius: 999px; border: 0; cursor: pointer;
  font: 600 14px/1 var(--body); color: var(--rubber); background: var(--cloud);
  text-decoration: none;
}
.ca-pill { padding: 0 14px; font-variant-numeric: tabular-nums; }
.x-btn { width: 40px; justify-content: center; background: var(--rubber); color: #fff; }
.ca-pill:hover { background: #fff; }
.x-btn:hover { background: #000; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center;
  gap: clamp(16px, 4vw, 64px);
  padding: 110px clamp(16px, 5vw, 80px) 72px;
  background: linear-gradient(180deg, var(--sky-hi) 0%, var(--sky) 55%, var(--sky-lo) 100%);
  color: #fff;
}
.hero::after {   /* cloud bank the board rises out of */
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: -1;
  background: linear-gradient(180deg, rgba(228, 241, 247, 0), var(--mist) 85%);
}
/* soft sky shade behind the words so drifting white clouds never wash them out */
.hero-copy { position: relative; }
.hero-copy::before {
  content: ''; position: absolute; inset: -14% -16% -12% -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(14, 72, 120, .62), rgba(14, 72, 120, .3) 60%, rgba(14, 72, 120, 0));
}

/* ---------- sky: drifting cumulus layers (far = small, faint, slow; near = big, fast) ---------- */
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cl {
  position: absolute; left: 0; top: var(--y); width: var(--w); max-width: none; height: auto;
  animation: drift var(--t) linear var(--d) infinite;
  will-change: transform;
}
.cl.far  { opacity: .55; filter: blur(1.5px); }
.cl.mid  { opacity: .85; }
.cl.near { opacity: .97; }
@keyframes drift { from { transform: translate3d(-105%, 0, 0); } to { transform: translate3d(100vw, 0, 0); } }
.bank {
  position: absolute; bottom: -6%; left: -8%; width: max(130vw, 1200px); max-width: none; height: auto;
  animation: sway 48s ease-in-out infinite alternate; will-change: transform;
}
.bank-2 { left: auto; right: -40%; bottom: -12%; width: max(110vw, 1000px); opacity: .9; animation-duration: 64s; animation-direction: alternate-reverse; transform: scaleX(-1); }
@keyframes sway { from { translate: -4vw 0; } to { translate: 4vw 0; } }
@media (max-width: 900px) { .cl { width: calc(var(--w) * 2.3); } }   /* thick clouds on phones too */

/* ---------- the flying tire ---------- */
.flight {
  --size: min(46vw, 600px);
  position: relative; width: var(--size); aspect-ratio: 1; justify-self: center;
  order: 2;
}
.flyer { position: absolute; inset: 0; animation: bob 4.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-2.5%) rotate(-2deg); } 50% { transform: translateY(2.5%) rotate(1.5deg); } }

/* layers sit at their spots in the original 1254 px picture (art/layers.json), so the tire and wings
   keep the picture's exact look and angle */
.flyer > * { position: absolute; display: block; max-width: none; }
.tire  { left: 20.49%; top: 20.26%; width: 61.56%; height: 68.9%; }
.tread { left: 38.2%;  top: 20.49%; width: 41.55%; height: 67.54%; }   /* animated: the tread rolling round */
.wing-wrap { top: 12.44%; width: 22.33%; height: 37.48%; }
.wing-r { left: 71.37%; }
.wing-l { left: 4.2%; top: 8%; width: 26.8%; height: 45%; transform: scaleX(-1); }   /* the right wing, mirrored: the picture's left wing runs off its edge */
.wing {
  width: 100%; height: 100%;
  transform-origin: 6% 74%;            /* the shoulder, tucked behind the tire */
  animation: flap .58s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 12px rgba(10, 50, 85, .22));
}
.wing-l .wing { animation-delay: -.04s; }
@keyframes flap {
  from { transform: rotate(9deg) scaleY(.9); }
  to   { transform: rotate(-13deg) scaleY(1.03); }
}

.orbit { position: absolute; inset: 0; transition: transform 1.4s cubic-bezier(.3, 1.4, .5, 1); }
.orbit .slot {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform: rotate(var(--a)) translateY(calc(var(--size) * -.485)) rotate(calc(var(--a) * -1));
}
.orbit .slot .badge {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  width: clamp(34px, 4.2vw, 52px); height: clamp(34px, 4.2vw, 52px);
  rotate: var(--counter, 0deg);
  transition: rotate 1.4s cubic-bezier(.3, 1.4, .5, 1), scale .5s;
  box-shadow: 0 6px 18px rgba(10, 40, 70, .35);
}
.orbit.instant, .orbit.instant .badge { transition: none; }
.orbit .slot.on .badge { scale: 1.35; outline: 3px solid var(--halo); outline-offset: 2px; }
.orbit .slot.ghost .badge { background: rgba(255,255,255,.16); color: rgba(255,255,255,.7); border: 2px dashed rgba(255,255,255,.55); box-shadow: none; }

.hero-copy { order: 1; max-width: 600px; }
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 6.4vw, 92px); line-height: .98; letter-spacing: -.01em;
  text-wrap: balance;
  text-shadow: 0 3px 0 rgba(12, 50, 80, .35), 0 6px 28px rgba(10, 45, 80, .45);
}
.lede { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); max-width: 33em; color: #fff; text-shadow: 0 1px 12px rgba(10, 45, 80, .7); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 16px/1 var(--body);
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:active { transform: translateY(2px); }
.btn-gold { background: var(--halo); color: var(--rubber); box-shadow: 0 4px 0 var(--halo-deep); }
.btn-gold:hover { background: #ffd35e; }
.btn-gold:active { box-shadow: 0 2px 0 var(--halo-deep); }
.btn-sky { background: rgba(12, 62, 104, .55); color: #fff; border: 1.5px solid rgba(255,255,255,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-sky:hover { background: rgba(12, 62, 104, .75); }
.btn-ink { background: var(--rubber); color: #fff; }
.btn-ink:hover { background: #000; }

.next-chip {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 30px;
  padding: 8px 18px 8px 8px; border-radius: 999px; text-decoration: none;
  background: var(--cloud); color: var(--ink);
  box-shadow: 0 10px 30px rgba(10, 45, 75, .25);
}
.next-chip .badge { width: 40px; height: 40px; }
.nc-text { font-size: 15px; color: var(--ink-soft); }
.nc-text b { color: var(--ink); }
.nc-time { font: 400 20px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--rubber); min-width: 3.1ch; }

/* coin badge (picture or initials) */
.badge {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--rubber) center / cover no-repeat; color: #fff;
  font: 700 12px/1 var(--body); letter-spacing: .02em; overflow: hidden;
}
.badge.has-img { color: transparent; }
.badge.empty { background: var(--mist); color: var(--ink-soft); border: 2px dashed #b7cfdc; }
.badge-xl { width: 92px; height: 92px; font-size: 20px; }

/* ---------- board ---------- */
.board { padding: 24px clamp(16px, 5vw, 80px) 40px; }
.board-card {
  max-width: 1180px; margin: -40px auto 0; position: relative;
  background: #fff; border-radius: var(--r-lg);
  padding: clamp(20px, 3.4vw, 44px);
  box-shadow: 0 30px 70px -30px rgba(21, 93, 144, .45);
}
.board-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.board-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; margin-right: auto; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: #2bbf6a; box-shadow: 0 0 0 4px rgba(43,191,106,.2); }
body.prelaunch .status i { background: var(--halo-deep); box-shadow: 0 0 0 4px rgba(246,196,69,.3); }
.round { padding: 6px 14px; border-radius: 999px; background: var(--mist); font-size: 15px; font-variant-numeric: tabular-nums; }

.board-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: 26px; }
.now-lead { font-weight: 600; color: var(--ink-soft); }
.now-coin { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.now-name { font-family: var(--display); font-size: clamp(28px, 3.6vw, 46px); line-height: 1.02; overflow-wrap: anywhere; }
.now-meta { margin-top: 6px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.now-blurb { margin-top: 20px; max-width: 36em; }
.now-link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--sky-hi); text-underline-offset: 3px; }
.now-link[hidden] { display: none; }

.dial { position: relative; width: clamp(200px, 24vw, 270px); aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; }
.dial circle { fill: none; }
.d-rubber { stroke: var(--rubber); stroke-width: 34; }
.d-tread { stroke: var(--rubber-2); stroke-width: 10; stroke-dasharray: 7 6; }
.d-rim { stroke: var(--mist); stroke-width: 3; }
.d-bar { stroke: var(--halo); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 0; transition: stroke .3s; }
.dial.hot .d-bar { stroke: #ff7a59; }
.dial-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dial-center span { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.dial-center b { font: 400 clamp(38px, 4.4vw, 52px)/1.05 var(--display); font-variant-numeric: tabular-nums; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 32px;
  background: var(--mist); border-radius: var(--r-md); overflow: hidden;
}
.stats div { background: #fff; padding: 16px 18px; }
.stats div:first-child { padding-left: 0; }
.stats dt { font-size: 14px; color: var(--ink-soft); }
.stats dd { margin-top: 4px; font: 400 clamp(22px, 2.4vw, 30px)/1.1 var(--display); font-variant-numeric: tabular-nums; }

.lists { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: 28px; }
.lists h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.queue li, .log li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--mist);
}
.log li { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.queue h4, .log h4 { margin: 0; font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue p, .log p { font-size: 14px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eta, .amt { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }
.amt { color: var(--ink); font-weight: 700; }
.log a { font-size: 14px; font-weight: 600; color: var(--sky-hi); }
.demo-tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--mist); color: var(--ink-soft); }

/* ---------- how ---------- */
.how, .rotation { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 8vw, 110px) clamp(16px, 5vw, 80px) 0; box-sizing: content-box; }
.how h2, .rotation h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 54px); line-height: 1.02; max-width: 16ch; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: 36px; counter-reset: s; }
.steps li { position: relative; padding-top: 22px; border-top: 6px solid var(--rubber); }
.steps li::before {   /* tread marks on the road */
  content: ''; position: absolute; top: -6px; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, transparent 0 14px, var(--rubber-2) 14px 22px);
}
.step-n {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--halo); color: var(--rubber); font: 400 22px/1 var(--display);
}
.steps h3 { margin-top: 14px; font-size: 21px; line-height: 1.2; }
.steps p { margin-top: 8px; color: var(--ink-soft); max-width: 32em; }

/* ---------- rotation ---------- */
.rot-sub { margin-top: 14px; max-width: 40em; color: var(--ink-soft); }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 28px; }
.coin-grid li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: #fff; border-radius: var(--r-md); border: 2px solid transparent;
}
.coin-grid li.on { border-color: var(--halo); }
.coin-grid a { text-decoration: none; display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.coin-grid h4 { margin: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-grid p { font-size: 14px; color: var(--ink-soft); }
.coin-grid .pos { margin-left: auto; font: 400 15px/1 var(--display); color: var(--ink-soft); }
.coin-grid li.placeholder { border: 2px dashed #b7cfdc; background: transparent; color: var(--ink-soft); }

/* ---------- token ---------- */
.token { padding: clamp(48px, 8vw, 110px) clamp(16px, 5vw, 80px); }
.token-card {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 4vw, 52px); border-radius: var(--r-lg);
  background: var(--rubber); color: #fff;
}
.token-card h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.4vw, 46px); line-height: 1; overflow-wrap: anywhere; }
.facts { margin-top: 26px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
.facts dt { color: rgba(255,255,255,.65); }
.facts dd { text-align: right; font-weight: 600; }
.wallet-link { color: var(--halo); text-underline-offset: 3px; font-variant-numeric: tabular-nums; }
.ca-box { background: rgba(255,255,255,.06); border-radius: var(--r-md); padding: clamp(18px, 2.6vw, 30px); align-self: start; }
.ca-label { color: rgba(255,255,255,.65); font-size: 15px; }
.ca-value { margin-top: 8px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ca-note { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.6); }

/* ---------- footer ---------- */
.footer { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 80px) 40px; box-sizing: content-box; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; }
.foot-brand img { border-radius: 9px; }
.disclaimer { margin-top: 16px; font-size: 14px; color: var(--ink-soft); max-width: 70em; }
.foot-bar { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #cfe2ec; font-size: 14px; color: var(--ink-soft); }
.foot-bar span { margin-right: auto; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 30; translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: var(--rubber); color: #fff; font-weight: 600; font-size: 15px;
  transition: opacity .25s, translate .25s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 92px; gap: 8px; min-height: auto; padding-bottom: 110px; }
  .flight { --size: min(78vw, 440px); order: 1; margin: 18px 0 30px; }
  .hero-copy { order: 2; margin: 0 auto; }
  .ctas { justify-content: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .board-main { grid-template-columns: 1fr; }
  .dial { justify-self: center; order: -1; }
  .lists { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:first-child { padding-left: 18px; }
  .stats div { padding: 14px 16px; }
  .steps { grid-template-columns: 1fr; }
  .token-card { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav { inset: 10px 10px auto; }
  .brand span { font-size: 17px; }
  .ca-pill { padding: 0 12px; font-size: 13px; }
  .btn { width: 100%; }
  .next-chip { max-width: 100%; }
  .nc-text { text-align: left; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .now-coin { gap: 14px; }
  .badge-xl { width: 68px; height: 68px; }
  .log li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .log li > :last-child { grid-column: 2 / -1; justify-self: start; }
  .facts div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
