/* Type: Satoshi (Indian Type Foundry, via Fontshare), loaded in each page's <head>. The logo keeps its own wordmark. */

:root {
  --bg: #050807;
  --bg2: #070C0A;
  --surface: #0C120F;
  --surface2: #141C18;
  --surface3: #1C2621;
  --stroke: rgba(255, 255, 255, .08);
  --stroke-strong: rgba(255, 255, 255, .16);
  --text: #F2F5F1;
  --text2: rgba(242, 245, 241, .62);
  --text3: rgba(242, 245, 241, .4);
  --neon: #2EF08A;
  --neon-hi: #8CFFBE;
  --neon-lo: #00B862;
  --ink: #06110B;
  --loss: #FF4D5E;
  --gold: #FFC24B;
  --display: "Satoshi", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --heading: var(--display);
  --body: var(--display);
  --num: var(--display);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--body); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.center .section__lede { margin-inline: auto; }

/* Type */
.eyebrow { margin: 0 0 18px; font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--neon); }
h1, h2, h3 { text-wrap: balance; }
.section__title { margin: 0; font: 700 clamp(40px, 5.4vw, 72px)/1 var(--display); letter-spacing: -.045em; }
.section__lede { margin: 18px 0 0; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); color: var(--text2); text-wrap: pretty; }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--text3); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 28px; border-radius: 16px;
  background: linear-gradient(180deg, var(--neon-hi), var(--neon) 45%, var(--neon-lo)); color: var(--ink); font: 700 16px/1 var(--heading);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 34px rgba(46,240,138,.28); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 14px 40px rgba(46,240,138,.42); }
.btn:active { transform: scale(.98); }
.btn--dark { background: rgba(255,255,255,.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--stroke-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--dark:hover { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.btn--small { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn--tiny { height: 30px; padding: 0 14px; border-radius: 999px; font-size: 13px; }

.badge, .store {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; background: rgba(255,255,255,.06); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--stroke-strong);
}
.badge { height: 40px; padding: 0 12px 0 10px; font: 600 14px/1 var(--body); }
.badge small, .store small { display: block; font-size: 9px; font-weight: 500; opacity: .75; margin-bottom: 2px; }
.store { height: 60px; padding: 0 24px 0 18px; background: #fff; color: #000; box-shadow: none; font: 600 22px/1 var(--body); letter-spacing: -.01em; }
.store small { font-size: 11px; opacity: 1; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(5,8,7,.6); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); }
.nav__row { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; gap: 26px; font: 500 14px/1 var(--body); color: var(--text2); }
.nav__links a:hover { color: var(--text); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Hero: a desert night */
.hero { position: relative; overflow: hidden; padding: 96px 0 0; margin-top: -68px; isolation: isolate; }
.hero__sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 520px at 50% 92%, rgba(46,240,138,.28), transparent 70%),
    radial-gradient(1.3px 1.3px at 12% 18%, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px at 22% 42%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 31% 12%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 44% 30%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.2px 1.2px at 57% 8%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 63% 36%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.6px 1.6px at 74% 16%, rgba(255,255,255,.85), transparent),
    radial-gradient(1px 1px at 83% 40%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.3px 1.3px at 91% 22%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 6% 52%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 96% 58%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 38% 56%, rgba(255,255,255,.35), transparent),
    linear-gradient(180deg, #030504 0%, #06100B 55%, #0A1A11 100%);
}
.hero__copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 72px; }
.hero__copy .eyebrow { padding: 8px 14px; border-radius: 999px; background: rgba(46,240,138,.08); box-shadow: inset 0 0 0 1px rgba(46,240,138,.25); }
.hero__wordmark { width: min(760px, 88vw); height: auto; margin: 14px 0 8px; filter: drop-shadow(0 20px 60px rgba(46,240,138,.25)); }
h1 { margin: 0; font: 700 clamp(28px, 3.4vw, 46px)/1.1 var(--heading); letter-spacing: -.04em; }
.lede { margin: 16px 0 0; max-width: 40em; font-size: clamp(16px, 1.5vw, 19px); color: var(--text2); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.stage { position: relative; height: 640px; margin-top: 56px; }
.device {
  position: absolute; left: 50%; top: 0; margin: 0; width: 290px; padding: 7px; border-radius: 46px;
  background: linear-gradient(150deg, #3a4540, #0b100d 30%, #1b2420 70%, #3a4540);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 50px 100px rgba(0,0,0,.65), 0 0 120px rgba(46,240,138,.12);
}
.device img { width: 100%; height: auto; border-radius: 40px; }
.device--center { transform: translateX(-50%); z-index: 3; }
.device--left { transform: translateX(-118%) translateY(70px) rotate(-8deg); z-index: 2; }
.device--right { transform: translateX(18%) translateY(70px) rotate(8deg); z-index: 2; }
.dunes { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 230px; z-index: 4; }
.float {
  position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 999px;
  background: rgba(14,22,18,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--stroke-strong), 0 16px 40px rgba(0,0,0,.5); font: 800 15px/1 var(--num); white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float em, .ticker em { font-style: normal; color: var(--neon); }
.f1 { left: calc(50% - 470px); top: 90px; }
.f2 { left: calc(50% + 250px); top: 40px; animation-delay: -2s; }
.f3 { left: calc(50% + 300px); top: 300px; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Ticker */
.ticker { position: relative; z-index: 6; overflow: hidden; border-block: 1px solid var(--stroke); background: var(--bg2);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; gap: 40px; width: max-content; padding: 16px 0; animation: scroll 50s linear infinite; }
.ticker span { font: 600 15px/1 var(--body); color: var(--text2); white-space: nowrap; }
.ticker b { color: var(--text); font-family: var(--num); font-weight: 800; }
.ticker em { font-family: var(--num); font-weight: 800; }
.ticker em.down, .down { color: var(--loss); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 120px 0; scroll-margin-top: 40px; }

/* Showcase reel of App Store frames */
.reel { display: flex; gap: 20px; overflow-x: auto; padding: 56px max(16px, calc(50vw - 600px)) 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel img { flex: 0 0 auto; width: 280px; height: auto; border-radius: 28px; scroll-snap-align: center; box-shadow: 0 0 0 1px var(--stroke), 0 30px 60px rgba(0,0,0,.45); transition: transform .25s ease; }
.reel img:hover { transform: translateY(-6px); }

/* Bento of features, each with a small piece of the app */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.tile {
  position: relative; display: flex; flex-direction: column; min-height: 440px; padding: 30px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, #0F1713, #0A0F0D); box-shadow: inset 0 0 0 1px var(--stroke);
}
.tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 30%); }
.tile .eyebrow { margin-bottom: 14px; }
.tile h3 { margin: 0; font: 700 30px/1.1 var(--heading); letter-spacing: -.035em; }
.demo { margin: auto 0 0; padding: 0; list-style: none; }
.demo small { display: block; color: var(--text3); font-size: 12px; font-weight: 500; }
.demo b { font-size: 14px; }

.post__head i, .notes i, .mini-board i {
  display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; font-style: normal; font-size: 18px;
  background: linear-gradient(135deg, var(--a), var(--b));
}
/* Real X accounts show their profile photo and the verified seal, as in the app */
.post__head i img, .notes i img, .mini-board i img, .board i img, .orbit i img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.check { display: inline-block; width: 14px; height: 14px; margin-left: 2px; color: var(--neon); vertical-align: -2px; }
.ticker img { display: inline-block; width: 20px; height: 20px; margin-right: 7px; border-radius: 50%; vertical-align: -5px; }

.post { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--stroke); }
.post__head { display: flex; align-items: center; gap: 10px; }
.post__head > span:nth-child(2) { flex: 1; }
.pill { padding: 5px 8px; border-radius: 6px; background: rgba(46,240,138,.15); color: var(--neon); font: 800 12px/1 var(--body); white-space: nowrap; }
.post p { margin: 10px 0; font-size: 14px; }
.embed { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--stroke); }
.embed > span:nth-child(2) { flex: 1; }
.coin { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; font-style: normal; font-size: 17px;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 60%, transparent), color-mix(in srgb, var(--c) 18%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.up { text-align: right; }
.up b, .up small { color: var(--neon); font-family: var(--num); font-weight: 800; }
.post__foot { display: flex; align-items: center; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--text3); }
.post__foot .btn { margin-left: auto; }

.notes li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--stroke); font-size: 14px; line-height: 1.35; }
.notes li + li { margin-top: 8px; }
.notes li:nth-child(2) { opacity: .8; transform: scale(.97); }
.notes li:nth-child(3) { opacity: .55; transform: scale(.94); }
.notes span { flex: 1; color: var(--text2); }
.notes span b { color: var(--text); }
.notes em { font: 800 15px/1 var(--num); font-style: normal; color: var(--neon); }

.mini-board li { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.mini-board li + li { border-top: 1px solid var(--stroke); }
.mini-board li > span:nth-child(3) { flex: 1; }
.mini-board em { font: 800 15px/1 var(--num); font-style: normal; color: var(--neon); }
.medal { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; font: 800 12px/1 var(--num); color: var(--m, var(--text3));
  background: color-mix(in srgb, var(--m, transparent) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m, transparent) 55%, transparent); }
.mini-board .fade { opacity: .35; }

.markets { display: flex; flex-wrap: wrap; gap: 8px; }
.markets li { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); color: var(--c); font: 700 14px/1 var(--body); }
.markets svg { width: 18px; height: 18px; }

.venues li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--stroke); }
.venues li + li { margin-top: 8px; }
.venues span { flex: 1; }
.venues small { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.venues em { font: 800 17px/1 var(--num); font-style: normal; color: var(--text); text-align: right; }
.venues em small { display: block; margin-top: 3px; color: var(--neon); font-size: 11px; }

.fees > b { display: block; font: 900 96px/.9 var(--display); letter-spacing: -.05em; color: var(--neon); text-shadow: 0 0 60px rgba(46,240,138,.35); }
.fees > span { display: block; margin-top: 6px; color: var(--text2); font-size: 15px; }
.fees ul { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--stroke); }
.fees li { padding: 9px 0; border-bottom: 1px solid var(--stroke); color: var(--text2); font-size: 14px; }
.fees li em { font: 800 15px/1 var(--num); font-style: normal; color: var(--text); margin-right: 6px; }

/* Leaderboard */
.leaders { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.leaders__copy { position: sticky; top: 110px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { --c: var(--neon); height: 38px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; background: var(--surface2);
  color: var(--text2); box-shadow: inset 0 0 0 1px var(--stroke); font: 700 14px/1 var(--body); }
.chip:hover { color: var(--text); }
.chip.is-on { background: var(--c); color: var(--ink); box-shadow: none; }
.board { list-style: none; margin: 0; padding: 6px 0; counter-reset: rank; border-radius: 28px; background: linear-gradient(180deg, #0F1713, #0A0F0D); box-shadow: inset 0 0 0 1px var(--stroke); }
.board li { counter-increment: rank; display: grid; grid-template-columns: 34px 48px 1fr auto; gap: 14px; align-items: center; padding: 12px 20px; }
.board li + li { border-top: 1px solid var(--stroke); }
.board li[hidden] { display: none; }
.board li::before { content: counter(rank); font: 800 17px/1 var(--num); color: var(--text3); text-align: center; }
.board li:nth-child(-n+3)::before { color: var(--gold); }
.board i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); font-style: normal; font-size: 24px; }
.board b { display: block; font-size: 16px; }
.board small { color: var(--text3); font-size: 13px; }
.board em { font: 800 18px/1 var(--num); font-style: normal; color: var(--neon); }

/* Finale: avatars orbiting the call to action */
.finale { position: relative; overflow: hidden; padding: 240px 0; text-align: center; isolation: isolate;
  background: radial-gradient(700px 520px at 50% 50%, rgba(46,240,138,.2), transparent 70%), linear-gradient(180deg, var(--bg), #08140E 50%, var(--bg)); }
.orbit { position: absolute; left: 50%; top: 50%; width: 680px; height: 680px; margin: -340px 0 0 -340px; border-radius: 50%; z-index: -1;
  border: 1px dashed rgba(46,240,138,.25); }
.orbit::after { content: ""; position: absolute; inset: 120px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.08); }
.orbit i { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--a), var(--b)); font-style: normal; font-size: 28px; box-shadow: 0 0 0 4px var(--bg), 0 14px 30px rgba(0,0,0,.5);
  transform: rotate(var(--t)) translate(340px) rotate(calc(-1 * var(--t))); animation: drift 6s ease-in-out infinite; }
@keyframes drift { 50% { translate: 0 -10px; } }
.orbit i:nth-child(odd) { animation-delay: -3s; }
.finale__copy { display: grid; justify-items: center; }
.finale__icon { width: 96px; height: 96px; margin-bottom: 28px; filter: drop-shadow(0 18px 50px rgba(46,240,138,.5)); }

/* Kept for the 404 page */
.get { text-align: center; position: relative; overflow: hidden; }
.get::before { content: ""; position: absolute; left: 50%; top: 40px; width: 700px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(46,240,138,.18), transparent); pointer-events: none; }
.get__inner { position: relative; display: grid; justify-items: center; }
.get__icon { width: 112px; height: 112px; margin-bottom: 30px; filter: drop-shadow(0 18px 50px rgba(46,240,138,.5)); }
.get .section__lede { margin-inline: auto; }

/* Footer */
.foot { border-top: 1px solid var(--stroke); padding: 36px 0 48px; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot__row img { height: 24px; width: auto; }
.foot__tag { font: 700 15px/1 var(--heading); color: var(--text2); }
.foot nav { margin-left: auto; display: flex; gap: 20px; font-weight: 600; font-size: 15px; color: var(--text2); }
.foot nav a:hover { color: var(--text); }
.foot p { flex-basis: 100%; margin: 6px 0 0; font-size: 13px; color: var(--text3); }

/* Legal pages */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font: 700 clamp(40px, 6vw, 64px)/1 var(--display); letter-spacing: -.045em; }
.doc .updated { color: var(--text3); font-size: 14px; margin: 12px 0 40px; }
.doc h2 { margin: 40px 0 10px; font: 700 24px/1.2 var(--heading); letter-spacing: -.01em; }
.doc p, .doc li { color: var(--text2); }
.doc a { color: var(--neon); }

@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .leaders { grid-template-columns: 1fr; }
  .leaders__copy { position: static; }
  .f1 { left: 16px; } .f2, .f3 { left: auto; right: 16px; }
}
@media (max-width: 700px) {
  .nav__links, .badge { display: none; }
  .hero { padding-top: 80px; }
  .hero__copy { padding-top: 40px; }
  .stage { height: 560px; margin-top: 40px; }
  .device { width: 250px; }
  .device--left, .device--right { display: none; }
  .f1 { top: 40px; } .f2 { top: 200px; } .f3 { top: 360px; }
  .bento { grid-template-columns: 1fr; }
  .tile { min-height: 0; gap: 22px; }
  .section { padding: 84px 0; }
  .reel img { width: 230px; }
  .board li { grid-template-columns: 24px 40px 1fr auto; gap: 10px; padding: 12px 14px; }
  .board i { width: 40px; height: 40px; font-size: 20px; }
  .board em { font-size: 16px; }
  .orbit { width: 480px; height: 480px; margin: -240px 0 0 -240px; }
  .orbit i { width: 44px; height: 44px; margin: -22px; font-size: 22px; transform: rotate(var(--t)) translate(240px) rotate(calc(-1 * var(--t))); }
  .finale { padding: 140px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .ticker__track, .orbit i { animation: none; }
}
