:root {
  --bg: #090b0e;
  --s1: #101317;
  --s2: #181c21;
  --line: #252a31;
  --text: #f1f3f5;
  --mute: #8e96a0;
  --road: #ecd85f;
  --up: #58d68d;
  --down: #f0726d;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; color-scheme: dark; scrollbar-color: #343a42 var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: 500; }
p { font-weight: 400; }
button, input { font: inherit; color: inherit; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hide { display: none !important; }

/* top */
.top { position: absolute; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; gap: 30px; padding: 22px 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.top nav { display: flex; gap: 24px; font-size: 14px; margin-right: auto; }
.top nav a { text-decoration: none; color: #c3c8ce; transition: color .15s; }
.top nav a:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 4px; padding: 13px 22px; font-weight: 500; font-size: 15px; line-height: 1.1; cursor: pointer; text-decoration: none; background: var(--road); color: #0b0c0e; transition: background .15s, opacity .15s; white-space: nowrap; }
.btn:hover { background: #f5e680; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.line { background: none; color: var(--text); box-shadow: inset 0 0 0 1px #4a5059; }
.btn.line:hover { box-shadow: inset 0 0 0 1px #8e96a0; background: none; }
.btn.small { padding: 9px 14px; font-size: 14px; }

/* hero: the road, text in the night sky above it */
.hero { position: relative; min-height: 100vh; background: #16181c url(/road.jpg) center bottom / cover no-repeat; display: flex; align-items: flex-start; }
.hero-in { position: relative; padding: clamp(96px, 12vh, 130px) 40px 40px; max-width: 760px; }
.hero h1 { font-size: clamp(44px, 5vw, 76px); line-height: 1.02; letter-spacing: -.04em; }
.hero p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; color: #d3d7dc; margin-top: 20px; max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ca { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 16px; border: 1px solid #3a4048; background: rgba(9, 11, 14, .55); color: var(--text); border-radius: 4px; padding: 9px 13px; font: 400 13px/1.2 var(--mono); }
.ca span { color: var(--mute); white-space: nowrap; }
.ca b { font-weight: 500; overflow-wrap: anywhere; text-align: left; }
.ca.live { cursor: pointer; }
.ca.live:hover { border-color: var(--road); }

/* sections: text and diagrams laid straight on the page */
.sec { max-width: 1240px; width: 100%; margin: 0 auto; padding: 110px 40px 0; }
.sec h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -.035em; max-width: 880px; }
.sec .lead { font-size: 19px; line-height: 1.45; color: var(--mute); margin-top: 16px; max-width: 700px; }

/* the day slider */
.dial { margin-top: 44px; }
.dial-head { display: flex; align-items: baseline; gap: 14px; }
.dial-head b { font: 500 clamp(52px, 7vw, 92px)/1 var(--mono); letter-spacing: -.05em; color: var(--road); }
.dial-head span { font-size: 22px; color: var(--mute); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: none; margin: 16px 0 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; background: repeating-linear-gradient(90deg, var(--road) 0 26px, transparent 26px 44px); }
input[type=range]::-moz-range-track { height: 4px; background: repeating-linear-gradient(90deg, var(--road) 0 26px, transparent 26px 44px); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 0; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; }
.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 30px; }
.meter b { display: block; font: 500 clamp(30px, 3.4vw, 46px)/1 var(--mono); letter-spacing: -.03em; }
.meter span { display: block; color: var(--mute); margin-top: 8px; }
.meter i { display: block; height: 4px; background: var(--line); margin-top: 16px; position: relative; overflow: hidden; }
.meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--text); transition: width .18s ease-out; }

/* two LPs */
.race { margin-top: 44px; display: grid; gap: 18px; }
.lane { display: grid; grid-template-columns: 170px 1fr 86px; gap: 18px; align-items: center; }
.lane span { color: var(--mute); }
.lane b { font: 500 22px/1 var(--mono); text-align: right; }
.bar { height: 44px; background: var(--s1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--road); transition: width 1.3s cubic-bezier(.2, .7, .2, 1); }
.lane.b .bar i { background: #5b636d; }

/* the fee split */
.split { display: flex; height: 92px; margin-top: 44px; gap: 3px; }
.split > div { display: flex; flex-direction: column; justify-content: center; padding: 0 20px; min-width: 0; transform-origin: left; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.split b { font: 500 25px/1.1 var(--mono); }
.split span { font-size: 14px; }
.split .lp { flex: 75; background: var(--road); color: #0b0c0e; }
.split .rs { flex: 25; background: var(--s2); }
.split .rs span { color: var(--mute); }

/* the haircut flow */
.flow { margin-top: 44px; display: grid; grid-template-columns: 1fr 180px 1fr; align-items: center; gap: 16px; }
.flow-box { border-top: 1px solid var(--line); padding-top: 14px; }
.flow-box b { display: block; font: 500 34px/1.1 var(--sans); letter-spacing: -.03em; }
.flow-box span { color: var(--mute); }
.flow-track { position: relative; height: 2px; background: var(--line); overflow: hidden; }
.flow-track i { position: absolute; top: 0; width: 44px; height: 2px; background: var(--road); animation: run 1.8s linear infinite; }
@keyframes run { from { left: -44px; } to { left: 100%; } }

/* the limits of cover, stated plainly */
.rules { margin-top: 36px; border-top: 1px solid var(--line); }
.rules div { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rules b { font: 500 18px/1.3 var(--mono); }
.rules span { color: var(--mute); }

/* steps and questions are cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 36px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--s1); padding: 26px; border-radius: 6px; }
.card h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 10px; }
.card p { color: var(--mute); }

.end { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; padding-bottom: 20px; }

/* footer: a straight black strip */
.foot { background: #000; margin-top: 110px; flex-shrink: 0; }
.foot-in { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px 44px; align-items: center; justify-content: space-between; padding: 56px 40px 68px; }
.foot p { color: var(--mute); max-width: 520px; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font: 400 13px/1.4 var(--mono); color: var(--mute); }

@media (max-width: 860px) {
  .top { padding: 16px; gap: 14px; }
  .top nav { display: none; }
  .brand { margin-right: auto; }
  .hero { min-height: 100svh; background-position: 62% bottom; background-size: auto 46svh; }
  .hero-in { padding: 92px 16px 30px; }
  .sec { padding: 76px 16px 0; }
  .meters, .cards, .cards.two { grid-template-columns: 1fr; gap: 24px; }
  .cards, .cards.two { gap: 10px; }
  .lane { grid-template-columns: 1fr 70px; gap: 8px 12px; }
  .lane span { grid-column: 1 / -1; }
  .split .lp, .split .rs { padding: 0 12px; }
  .split b { font-size: 20px; } .split span { font-size: 12px; }
  .flow { grid-template-columns: 1fr; }
  .flow-track { height: 2px; }
  .rules div { grid-template-columns: 1fr; gap: 4px; }
  .foot { margin-top: 76px; }
  .foot-in { padding: 44px 16px 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .flow-track i { animation: none; } }

/* hero: the words on the left, the product on the right, like every DEX people already use */
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 50px; width: 100%; max-width: 1320px; margin: 0 auto; align-items: start; }
.hero-text { max-width: 700px; }
.hero-swap { background: rgba(16, 19, 23, .92); border: 1px solid #333a42; border-radius: 12px; padding: 14px; backdrop-filter: blur(8px); }
.hbox { background: var(--bg); border-radius: 9px; padding: 15px; }
.hbox label { color: var(--mute); font-size: 14px; }
.hin { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.hin input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: none; font: 500 32px/1.15 var(--mono); letter-spacing: -.03em; padding: 0; }
.hpill { display: inline-flex; align-items: center; gap: 7px; background: var(--s2); border-radius: 99px; padding: 5px 12px 5px 5px; font-weight: 500; white-space: nowrap; flex: none; }
.hpill img, .hpill .face { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.harrow { width: 36px; height: 36px; margin: -11px auto; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; background: var(--s2); border: 4px solid #101317; border-radius: 9px; }
.hgo { width: 100%; margin-top: 10px; padding: 16px; font-size: 16px; }
.live { background: var(--bg); }
.live-in { max-width: 1240px; margin: 0 auto; padding: 60px 40px 0; }
.hstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.hstats b { display: block; font: 500 clamp(26px, 3vw, 40px)/1.1 var(--mono); letter-spacing: -.03em; }
.hstats span { color: var(--mute); font-size: 14px; }
.sechead { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 54px; }
.sechead h2 { font-size: 28px; letter-spacing: -.03em; }
@media (max-width: 1000px) { .hero-in { grid-template-columns: 1fr; gap: 26px; } .hero-swap { max-width: 460px; } }
@media (max-width: 860px) {
  .hero { background-size: auto 34svh; min-height: 0; padding-bottom: 30svh; }
  .live-in { padding: 44px 16px 0; }
  .hstats { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* hero: only the words, in the middle of the screen, with the road lower down so they sit in the night sky */
.hero { align-items: center; justify-content: center; background-size: 140vw auto; background-position: left calc(100vh - 57.75vw); }
.hero-in { display: block; width: 100%; max-width: 980px; margin: 0 auto; padding: 70px 24px 40px; text-align: center; }
.hero-text { max-width: none; }
.hero h1 { font-size: clamp(44px, 5.6vw, 84px); }
.hero p { margin: 22px auto 0; max-width: 600px; }
.cta { justify-content: center; }

/* no rules between things: space does the separating */
.flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; max-width: 760px; }
.flow-box { border-top: 0; padding-top: 0; }
.flow-box b { font-size: 46px; }
.rules { border-top: 0; margin-top: 30px; display: grid; gap: 22px; }
.rules div { border-bottom: 0; padding: 0; }
.meter i { background: var(--s2); }
.ca { border: 0; background: rgba(255, 255, 255, .08); }
.btn.line { box-shadow: none; background: rgba(255, 255, 255, .1); }
.btn.line:hover { box-shadow: none; background: rgba(255, 255, 255, .16); }
@media (max-width: 860px) {
  .hero { min-height: 100svh; padding-bottom: 0; background-size: auto 34svh; background-position: 62% bottom; align-items: flex-start; }
  .hero-in { padding: 110px 16px 38svh; }
  .flow { grid-template-columns: 1fr; gap: 22px; }
  .rules { gap: 18px; }
}

/* the ladder of days */
.ladder-big { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 40px; align-items: end; }
.rung { background: var(--s1); border-radius: 10px; padding: 18px; }
.rung.peak { background: var(--s2); }
.rung-bar { height: 150px; display: flex; align-items: flex-end; }
.rung-bar i { display: block; width: 100%; height: 0; background: #39404a; border-radius: 4px; transition: height 1s cubic-bezier(.2, .7, .2, 1); }
.rung.peak .rung-bar i { background: var(--road); }
.rung-day { display: block; font: 500 21px/1 var(--sans); letter-spacing: -.02em; margin: 18px 0 16px; }
.rung-n { margin-top: 12px; }
.rung-n b { display: block; font: 500 24px/1.1 var(--mono); letter-spacing: -.03em; }
.rung.peak .rung-n b { color: var(--road); }
.rung-n span { color: var(--mute); font-size: 13px; }
@media (max-width: 860px) {
  .ladder-big { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
  .rung { scroll-snap-align: start; }
}
