:root {
  color-scheme: dark;
  --bg: #050505;
  --fg: #fff;
  --muted: rgba(255,255,255,.62);
  --faint: rgba(255,255,255,.12);
  --line: rgba(255,255,255,.22);
  --panel: rgba(255,255,255,.045);
  --queued: #8aa4ff;
  --running: #ffd166;
  --done: #57d68d;
  --needs: #ff8a65;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.07), transparent 28rem),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: auto, 100% 4rem;
  mask-image: linear-gradient(#000, transparent 70%);
}
a { color: inherit; }
button, input { font: inherit; }

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.hero, .section { padding: clamp(56px, 12vw, 132px) 0; }
.hero {
  min-height: 78svh;
  display: grid;
  align-content: center;
  gap: clamp(24px, 5vw, 48px);
}
h1, h2, p { margin-top: 0; }
h1 {
  max-width: 980px;
  margin-bottom: 0;
  font-size: clamp(42px, 10vw, 118px);
  line-height: .96;
  letter-spacing: -.045em;
}
h2 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(34px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -.035em;
}
.muted { color: var(--muted); }

.moment {
  display: grid;
  gap: 18px;
  align-items: center;
}
.moment-visual {
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  overflow: hidden;
}
.ascii-moment {
  margin: 0;
  color: currentColor;
  font: 900 clamp(4.3px, 1.05vw, 7.6px)/.92 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: -.04em;
  white-space: pre;
  cursor: pointer;
  user-select: none;
}
.moment-copy {
  display: grid;
  gap: 14px;
}
.speaking {
  display: flex;
  gap: 5px;
  height: 18px;
  align-items: center;
}
.speaking span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--fg);
  opacity: .65;
}
.utterance {
  max-width: 640px;
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: clamp(22px, 4.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.main-title {
  max-width: 640px;
  font-size: clamp(34px, 7vw, 76px);
  line-height: .98;
}

.cta {
  display: grid;
  gap: 18px;
  max-width: 920px;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
}
.cta h2 { margin: 0; }
.cta p {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(18px, 2.8vw, 24px);
  line-height: 1.25;
}
.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.email {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: #0b0b0b;
  color: var(--fg);
  outline: none;
}
.email:focus {
  border-color: rgba(255,255,255,.78);
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}
.button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 720;
  cursor: pointer;
}
.micro, .form-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grid-4 { display: grid; gap: 12px; }
.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: var(--panel);
}
.card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.card p { margin: 0; color: var(--muted); }
.icon-row { display: flex; gap: 10px; flex-wrap: wrap; }
.icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: rgba(255,255,255,.85);
}
.icon {
  position: relative;
  width: 22px;
  height: 22px;
  display: inline-block;
  color: var(--fg);
}
.dot-icon { border-radius: 999px; background: currentColor; }
.watch-icon { width: 16px; border-radius: 7px; background: currentColor; }
.ring-outline-icon { border: 2px solid currentColor; border-radius: 999px; }
.computer-icon::before {
  content: "";
  position: absolute;
  inset: 3px 1px 7px;
  border: 2px solid currentColor;
  border-radius: 2px;
}
.computer-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: currentColor;
}
.stack-icon::before {
  content: "";
  position: absolute;
  inset: 3px 0;
  background: linear-gradient(currentColor 0 3px, transparent 3px 7px, currentColor 7px 10px, transparent 10px 14px, currentColor 14px 17px);
}
.outcome-icons { gap: 7px; }
.outcome-icons .icon-chip { padding: 6px 8px; font-size: 13px; }
.link-icon::before, .link-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 999px;
}
.link-icon::before { left: 2px; top: 8px; transform: rotate(-35deg); }
.link-icon::after { right: 2px; top: 8px; transform: rotate(-35deg); }
.map-point-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.map-point-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.document-icon::before {
  content: "";
  position: absolute;
  inset: 2px 5px 2px 4px;
  border: 2px solid currentColor;
  border-radius: 2px;
}
.document-icon::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 2px;
  border-top: 6px solid currentColor;
  border-left: 6px solid transparent;
}
.timer-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.timer-icon::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 2px;
  width: 4px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
}
.calendar-event-icon::before {
  content: "";
  position: absolute;
  inset: 4px 3px 3px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.calendar-event-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 9px;
  height: 2px;
  background: currentColor;
}
.note-icon::before {
  content: "";
  position: absolute;
  inset: 4px 3px 3px;
  border: 2px solid currentColor;
  border-radius: 3px 3px 8px 3px;
}
.note-icon::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  border-radius: 2px 0 0 0;
}
.split { display: grid; gap: 12px; margin-top: 18px; }
.split .card { padding: 16px; }

.job-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 54px 12px 14px;
  background: #080808;
}
.job-top { display: block; }
.job-title { margin: 0; font-weight: 720; }
.receipt {
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--muted);
  font-size: 13px;
}
.statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.status {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
}
.queued { color: var(--queued); }
.running { color: var(--running); }
.done { color: var(--done); }
.needs { color: var(--needs); }
.artifact {
  display: inline-block;
  margin-top: 14px;
  color: var(--fg);
  text-underline-offset: 3px;
}
.job-card .artifact, .ledger-card .artifact {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: 34px;
  text-align: right;
}
.job-logo {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.16);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.github-logo {
  display: grid;
  place-items: center;
  background: #fff;
}
.github-logo::before {
  content: "";
  width: 15px;
  height: 15px;
  background: #181717;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82A7.6 7.6 0 0 1 8 4.36c.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.calendar-logo { background: #fff; color: #111; }
.calendar-logo::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: #ff3b30;
}
.calendar-logo::after {
  content: "15";
  position: absolute;
  inset: 5px 0 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: -.06em;
}
.maps-logo {
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(255,255,255,.9) 42% 47%, transparent 47%),
    linear-gradient(45deg, transparent 0 45%, rgba(255,255,255,.9) 45% 51%, transparent 51%),
    linear-gradient(135deg, #34c759 0 34%, #0a84ff 34% 67%, #ffd60a 67%);
}
.maps-logo::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 4px;
  width: 5px;
  height: 5px;
  border: 2px solid #ff3b30;
  border-radius: 50% 50% 50% 0;
  background: #fff;
  transform: rotate(-45deg);
}
.maps-logo::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 6px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #ff3b30;
}

.moment-card {
  max-width: 620px;
  opacity: 1;
}
.moment-statuses { position: relative; min-height: 29px; }
.moment-statuses .status { position: absolute; left: 0; top: 0; }
.moment-queued, .moment-running { opacity: 0; }
.moment-done, .moment-artifact { opacity: 1; }

.ledger {
  display: grid;
  gap: 12px;
  padding-top: 0;
  padding-bottom: clamp(34px, 8vw, 88px);
}
.ledger-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 58px 14px 16px;
  background: var(--panel);
}
.ledger-card time {
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--muted);
  font-size: 13px;
}
.ledger-card h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(19px, 3.4vw, 30px);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.ledger-card .status { justify-self: start; }
.ledger-card .artifact { margin-top: 0; }
.ledger-statement {
  max-width: 920px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(26px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.lifecycle {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.examples {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.examples li {
  border-bottom: 1px solid var(--faint);
  padding: 10px 0;
  color: rgba(255,255,255,.82);
}
.honesty {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.stinger p {
  max-width: 820px;
  color: rgba(255,255,255,.86);
  font-size: clamp(24px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.footer {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
}
.footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer a { color: var(--fg); }

@media (min-width: 720px) {
  .form { grid-template-columns: 1fr auto; }
  .form-status { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .split, .honesty { grid-template-columns: repeat(2, 1fr); }
  .moment { grid-template-columns: minmax(320px, 560px) 1fr; }
  .ledger-card { align-items: start; }
  .footer { grid-template-columns: 1fr auto; align-items: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .status.running:not(.moment-running) { animation: pulse 1.2s ease-in-out infinite; }
  .moment .utterance {
    clip-path: inset(0 100% 0 0);
    animation: unclip 1.1s steps(68, end) .15s forwards;
  }
  .speaking span { animation: talk .55s ease-in-out .15s 4 alternate; }
  .speaking span:nth-child(2) { animation-delay: .25s; }
  .speaking span:nth-child(3) { animation-delay: .35s; }
  .moment-card { opacity: 0; transform: translateY(10px); animation: reveal .35s ease 1.25s forwards; }
  .moment-queued { animation: queuedState 1.05s linear 1.3s forwards; }
  .moment-running { animation: runningState .6s linear 1.85s forwards; }
  .moment-done { opacity: 0; animation: doneState .2s linear 2.45s forwards; }
  .moment-artifact, .moment-card .job-logo { opacity: 0; animation: revealFlat .2s linear 2.55s forwards; }
}
@keyframes pulse { 50% { opacity: .45; } }
@keyframes unclip { to { clip-path: inset(0); } }
@keyframes talk { to { height: 18px; opacity: 1; } }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes revealFlat { to { opacity: 1; } }
@keyframes queuedState {
  0%, 52% { opacity: 1; }
  53%, 100% { opacity: 0; }
}
@keyframes runningState {
  0%, 82% { opacity: 1; }
  83%, 100% { opacity: 0; }
}
@keyframes doneState { to { opacity: 1; } }
