:root {
  --bg: #0c0f14;
  --bg-2: #121721;
  --line: #1f2735;
  --ink: #eef1f5;
  --ink-2: #a9b3c2;
  --ink-3: #6f7a8b;
  --accent: #5b85f0;
  --accent-ink: #ffffff;
  --warm: #e3a06c;
  --card: #10151e;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --display: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f5f1;
  --bg-2: #ecebe5;
  --line: #dddbd2;
  --ink: #12151a;
  --ink-2: #474d57;
  --ink-3: #7b808a;
  --accent: #1f45b8;
  --accent-ink: #ffffff;
  --warm: #b8662a;
  --card: #ffffff;
  --shadow: 0 30px 70px -35px rgba(20, 30, 40, .35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.mono { font-family: var(--mono); }
.small { font-size: 12.5px; color: var(--ink-3); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { font: 600 18px/1 var(--display); text-decoration: none; letter-spacing: -.03em; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font: 600 13.5px/1 var(--display); letter-spacing: -.06em;
}
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.nav nav a:hover { color: var(--ink); }
.nav .pill {
  background: var(--accent); color: var(--accent-ink) !important;
  padding: 7px 14px; border-radius: 999px; font-weight: 600;
}
.theme {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px;
  align-items: center; padding-top: 72px; padding-bottom: 56px;
}
h1 {
  font: 500 clamp(52px, 8.2vw, 104px)/.95 var(--display);
  letter-spacing: -.05em; margin: 0 0 28px;
}
.dot { color: var(--accent); }
.lede {
  font: 500 clamp(22px, 2.4vw, 28px)/1.25 var(--display);
  letter-spacing: -.03em; margin: 0 0 18px; max-width: 560px;
}
.founder { font-size: 19px; font-weight: 500; letter-spacing: -.02em; margin: 0 0 10px; }
.founder a { color: var(--accent); text-decoration: none; border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.founder a:hover { border-bottom-color: var(--accent); }
.intro { color: var(--ink-2); margin: 0 0 28px; max-width: 540px; }
.intro a { color: var(--accent); text-decoration: none; }
.intro a:hover { text-decoration: underline; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; padding: 11px 18px;
  border: 1px solid var(--line); background: var(--bg-2); border-radius: 8px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--ink-3); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.link { color: var(--ink-2); font-size: 15px; margin-left: 6px; }

/* Record card */
.record {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
  transform: rotate(1.5deg); transition: transform .4s ease;
}
.record:hover { transform: rotate(0); }
.record-top {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; font-size: 12.5px; color: var(--ink-3);
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.record-top .lag { margin-left: auto; color: var(--accent); }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); } }
.record-id { display: flex; align-items: center; gap: 16px; padding: 22px 22px 6px; }
.avatar {
  width: 64px; height: 64px; border-radius: 16px; flex: none;
  display: grid; place-items: center;
  font: 600 24px/1 var(--display); color: var(--accent-ink);
  background: var(--accent);
}
.record-name { font: 600 22px/1.15 var(--display); letter-spacing: -.03em; }
.record-role { color: var(--ink-2); font-size: 14.5px; }
.record-body {
  margin: 12px 22px 18px; padding: 16px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line);
  font-size: 13px; line-height: 1.7; color: var(--ink-2); overflow-x: auto;
}
.record-body .k { color: var(--ink); }
.record-body .s { color: var(--warm); }
.record-foot {
  display: flex; gap: 16px; padding: 12px 22px 16px;
  font-size: 12px; color: var(--ink-3); border-top: 1px dashed var(--line);
}
.record-foot b { color: var(--ink); font-weight: 500; }
.record-foot .ok { margin-left: auto; color: var(--accent); }

/* Marquee */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.track { display: flex; gap: 44px; width: max-content; animation: scroll 40s linear infinite; }
.track span { font: 500 19px/1 var(--display); letter-spacing: -.02em; color: var(--ink-2); white-space: nowrap; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.caption { font-size: 13.5px; color: var(--ink-3); margin-top: 14px; }

/* Sections */
section[id], .numbers, .split { padding-top: 88px; }
h2 { font: 500 clamp(34px, 4.4vw, 48px)/1.08 var(--display); letter-spacing: -.045em; margin: 0 0 10px; }
.sub { color: var(--ink-2); margin: 0 0 36px; }
.eyebrow {
  font: 500 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin: 0 0 22px;
}

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { border-top: 1px solid var(--line); padding-top: 22px; }
.stat b { display: block; font: 500 clamp(36px, 4vw, 48px)/1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; margin-top: 22px; }
.stat b em { font-style: normal; color: var(--ink-3); margin: 0 .08em; }
.stat > span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 8px; }
a.stat { color: inherit; text-decoration: none; transition: border-color .2s ease; }
a.stat:hover { border-top-color: var(--accent); }
a.stat .more { display: block; font-style: normal; color: var(--accent); margin-top: 6px; font-weight: 500; }
a.stat:hover .more { text-decoration: underline; }
.viz { height: 56px; display: flex; flex-direction: column; justify-content: flex-end; }

.years .bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; }
.years .bars i {
  flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s cubic-bezier(.2,.8,.2,1) var(--d);
}
.years .bars i:last-child { background: var(--accent); }
.years .axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); margin-top: 6px; }

.cost { gap: 9px; justify-content: center; }
.cost .row { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 8px; }
.cost .row span { font-size: 10.5px; color: var(--ink-3); }
.cost .bar { height: 10px; border-radius: 5px; background: var(--bg-2); overflow: hidden; }
.cost .bar i { display: block; height: 100%; border-radius: 5px; transform-origin: left; transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.cost .full { width: 100%; background: color-mix(in srgb, var(--ink-3) 45%, transparent); }
.cost .cut { width: 40%; background: var(--accent); transition-delay: .25s !important; }

.flow .lanes {
  position: relative; height: 44px; overflow: hidden;
  background: repeating-linear-gradient(to bottom, transparent 0 7px, var(--line) 7px 8px, transparent 8px 14px);
  background-size: 100% 14px; background-position: 0 1px;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.flow .lanes i {
  position: absolute; left: 0; top: var(--y); width: 18px; height: 3px; border-radius: 2px;
  background: var(--accent); margin-top: -1px;
  animation: stream var(--t) linear var(--d) infinite;
}
@keyframes stream { from { left: -8%; } to { left: 104%; } }

.chips { gap: 10px; justify-content: center; font-size: 12px; color: var(--ink-2); }
.chips div { display: flex; align-items: center; gap: 6px; }
.chips i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 6px; }
.chips i:first-child { margin-left: 0; }
.chips i.alt { background: transparent; border: 1.5px solid var(--accent); }

.numbers.in .years .bars i { transform: scaleY(1); }
.numbers.in .cost .bar i { transform: scaleX(1); }

/* Now */
.now { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.now p { color: var(--ink-2); max-width: 560px; }
.pipe { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 12px; }
.pipe svg { width: 100%; height: auto; display: block; }
.pipe .wire use { fill: none; stroke: var(--ink-3); stroke-opacity: .45; stroke-width: 1.5; stroke-dasharray: 4 5; }
.pipe .pkt circle { fill: var(--accent); }
.pipe .node rect { fill: var(--bg-2); stroke: color-mix(in srgb, var(--ink-3) 55%, transparent); }
.pipe .node.hot rect { stroke: var(--accent); }
.pipe .node text { font: 500 12.5px var(--mono); fill: var(--ink); text-anchor: middle; }
.pipe .pipe-v { display: none; }
.pipe-v .node text { font-size: 14px; }
.pipe figcaption { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 6px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }
.timeline li { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.timeline li::before {
  content: ""; position: absolute; top: -7px; left: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--ink-3);
}
.timeline li.now-item { border-top-color: var(--accent); }
.timeline li.now-item::before { border-color: var(--accent); background: var(--accent); }
.when { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.timeline h4 { font: 600 19px/1.2 var(--display); letter-spacing: -.02em; margin: 8px 0 8px; }
.timeline p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); }
.tag { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.card h4 { font: 600 21px/1.2 var(--display); margin: 10px 0 10px; letter-spacing: -.03em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.card a { color: var(--accent); text-decoration: none; white-space: nowrap; }

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.product {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 30px; border-radius: 18px; text-decoration: none;
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    var(--card);
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease;
}
.product:hover { transform: translateY(-3px); border-color: var(--accent); }
.product h3 { font: 500 34px/1 var(--display); letter-spacing: -.045em; margin: 4px 0 0; }
.product p { margin: 0; color: var(--ink-2); }
.product .go { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; }

/* Split */
.split { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.list li { display: flex; flex-direction: column; gap: 3px; font-weight: 500; }
.list a { text-decoration: none; }
.list a:hover { color: var(--accent); }

/* Say hi */
.hi { text-align: center; padding-bottom: 40px; }
.hi h2 { font-size: clamp(48px, 7vw, 84px); }
.hi p { color: var(--ink-2); margin: 0 auto 28px; max-width: 520px; }
.hi .ctas { justify-content: center; }

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 40px; padding-bottom: 40px; margin-top: 60px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3);
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .track, .led, .flow .lanes i { animation: none; }
  .years .bars i, .cost .bar i { transform: none; transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pipe .pkt { display: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .record { max-width: 460px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .now { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { padding: 12px 16px; }
  .nav nav a:not(.pill) { display: none; }
  .record { transform: none; }
  .stats, .timeline, .cards, .products, .split { grid-template-columns: 1fr; }
  .timeline { gap: 26px; }
  section[id], .numbers, .split { padding-top: 64px; }
  .product { padding: 24px; }
  .pipe .pipe-h { display: none; }
  .pipe .pipe-v { display: block; max-width: 320px; margin: 0 auto; }
}
