:root {
  --bg: #fff;
  --fg: #1f2328;
  --muted: #5b6470;
  --line: #e3e6ea;
  --green: #117a4a;
  --green-dark: #0d5f3a;
  --tint: #eef3f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 "Bricolage Grotesque", system-ui, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

p { margin: 0; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav nav { display: flex; gap: 22px; font-weight: 500; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--fg); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 96px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-copy p {
  max-width: 32em;
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 32px;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1.5px solid var(--fg);
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  background: none;
  color: var(--fg);
  cursor: pointer;
}

.btn:hover { background: var(--tint); }

.btn-fill {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn-fill:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* demo board */

.demo {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.board {
  position: relative;
  overflow: hidden;
}

.tile {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(31, 35, 40, .18);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.tile svg {
  width: 48%;
  height: 48%;
  fill: none;
  stroke: var(--fg);
  stroke-opacity: .55;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pile-label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--fg);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .3s ease .5s;
}

.board.sorted .pile-label { opacity: 1; }

.board.still .tile,
.board.still .pile-label { transition: none; }

.demo figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 6px 2px;
  font-size: 14px;
  color: var(--muted);
}

#replay {
  font: inherit;
  font-weight: 600;
  color: var(--green);
  background: none;
  border: 0;
  padding: 4px 2px;
  cursor: pointer;
  flex-shrink: 0;
}

#replay:hover { text-decoration: underline; }

/* sections */

.section {
  padding-top: 88px;
  padding-bottom: 88px;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  max-width: 18em;
  margin-bottom: 40px;
}

.section h3 {
  font-size: 20px;
  font-weight: 650;
  margin-bottom: 8px;
}

.prose p {
  max-width: 40em;
  font-size: 19px;
  line-height: 1.6;
}

.prose p + p { margin-top: 20px; }

.steps,
.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
  counter-reset: n;
}

.steps { grid-template-columns: repeat(4, 1fr); }
.roadmap { grid-template-columns: repeat(3, 1fr); }

.steps li,
.roadmap li {
  counter-increment: n;
  padding-top: 16px;
  border-top: 2px solid var(--fg);
}

.steps li::before {
  content: counter(n);
  display: block;
  margin-bottom: 14px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
}

.steps p,
.roadmap p,
.facts dd {
  color: var(--muted);
  font-size: 16px;
}

.roadmap li { padding-top: 20px; }
.roadmap h3 { font-size: 24px; }

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.facts dt {
  font-size: 20px;
  font-weight: 650;
  margin-bottom: 8px;
}

.facts dd { margin: 0; }

.founder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.founder h2 { margin-bottom: 20px; }

.founder > div > p {
  max-width: 32em;
  font-size: 19px;
  line-height: 1.6;
}

.track {
  list-style: none;
  margin: 0;
  padding: 28px 32px;
  background: var(--tint);
  border-radius: 14px;
  color: var(--muted);
  font-size: 16px;
}

.track li + li {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(31, 35, 40, .12);
}

.track strong {
  display: block;
  color: var(--fg);
  font-weight: 650;
  margin-bottom: 2px;
}

.footer {
  background: var(--fg);
  color: #c9d0d8;
  padding: 44px 0;
  font-size: 15px;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer p { margin-bottom: 4px; }
.footer strong,
.footer a { color: #fff; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 16px;
    padding-bottom: 72px;
  }
  .steps, .facts { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .nav nav { gap: 16px; }
  .nav nav a[href="#founder"] { display: none; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .section h2 { margin-bottom: 28px; }
  .steps, .roadmap, .facts { grid-template-columns: 1fr; gap: 24px; }
  .track { padding: 22px 20px; }
  .demo figcaption { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .pile-label { transition: none; }
}
