:root {
  color-scheme: light dark;
  --paper: light-dark(#f6f5fc, #19172a);
  --ink: light-dark(#272b45, #f3eeff);
  --muted: light-dark(#55566f, #c4bdd9);
  --violet: light-dark(#5943a4, #d9cbff);
  --blue: light-dark(#cde4ff, #333466);
  --teal: light-dark(#ccf4ed, #21434f);
  --blush: light-dark(#ffdde5, #4d2849);
  --surface: light-dark(#fff, #28233b);
  --panel: light-dark(#ffffffdf, #28233bf0);
  --line: light-dark(#67578d38, #cec0ff38);
  --entry: light-dark(#116654, #a4f1d9);
  --entry-fill: light-dark(#daf5ec, #203e42);
  --exit: light-dark(#a63b55, #ffc0c8);
  --exit-fill: light-dark(#fce3e9, #4b2a42);
  --action: linear-gradient(115deg, #6753bf, #803d95);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--violet); text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }

.site-header { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--ink); font-size: 1.2rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .65rem; }
.mark, .mini-mark { display: grid; place-content: center; flex: none; color: #fff; background: var(--action); }
.mark { width: 2.15rem; height: 2.15rem; border-radius: .65rem; font-size: 1.4rem; }
nav { display: flex; gap: clamp(.9rem, 4vw, 2rem); }
nav a { color: var(--ink); font-size: .95rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 4rem); padding: clamp(3rem, 7vw, 6.7rem) clamp(1.5rem, 5vw, 4.5rem); border-radius: 1.65rem; border: 1px solid var(--line); background: radial-gradient(ellipse at 2% 0%, var(--blue), transparent 63%), radial-gradient(ellipse at 99% 7%, var(--teal), transparent 54%), radial-gradient(ellipse at 99% 100%, var(--blush), transparent 66%), var(--paper); }
h1 { font-size: clamp(2.8rem, 5.35vw, 5rem); font-weight: 760; line-height: 1.02; letter-spacing: -.062em; }
h1 span { color: var(--violet); }
.intro p { font-size: clamp(1.05rem, 1.5vw, 1.23rem); color: var(--muted); margin: 1.25rem 0 1.6rem; max-width: 34ch; }
.primary { display: inline-block; background: var(--action); color: #fff; text-decoration: none; font-weight: 650; padding: .7rem 1.15rem; border-radius: .7rem; }
.primary:hover { text-decoration: underline; }

.workbench { background: var(--panel); padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 15px 46px #20184c24; min-width: 0; }
.workbench figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; font-size: .98rem; font-weight: 690; margin-bottom: .85rem; }
.mini-mark { width: 1.55rem; height: 1.55rem; border-radius: .42rem; }
.example { margin-left: auto; color: var(--muted); font-size: .8rem; font-weight: 500; }
.workbench-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8.25rem, .59fr); gap: .9rem; }
.source-bar { display: flex; flex-wrap: wrap; gap: .3rem .7rem; justify-content: space-between; color: var(--muted); margin-bottom: .45rem; font-size: .8rem; }
.source-bar span:first-child { color: var(--violet); font-weight: 660; }
.scene { position: relative; height: 13.4rem; isolation: isolate; overflow: hidden; border-radius: .58rem; background: radial-gradient(ellipse at 26% 0%, #6c6387, transparent 70%), linear-gradient(142deg, #46496d, #252e48); }
.floor { position: absolute; inset: 26% 0 0; background: repeating-linear-gradient(0deg, #c5b6e725 0 1px, transparent 1px 21px), repeating-linear-gradient(90deg, #c5b6e725 0 1px, transparent 1px 29px), linear-gradient(106deg,#635b7a,#374661); clip-path: polygon(0 49%,31% 0,70% 0,100% 48%,100% 100%,0 100%); }
.door { position: absolute; top: 13%; left: 25%; width: 50%; height: 57%; border: 4px solid #8c829d; background: linear-gradient(135deg, #b3ddd634, #60518a4b 68%); box-shadow: inset 0 0 0 1px #443b58; }
.door::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid #a496b7; }
.zone { position: absolute; display: flex; justify-content: flex-end; left: 8%; right: 8%; border-top: 1px dashed currentColor; }
.zone span { border-radius: 0 0 .22rem .22rem; background: #262438; padding: 0 .28rem; font-size: .75rem; }
.inside { top: 56%; color: #a4f1d9; }
.outside { top: 73%; color: #ffc0c8; }
.track { position: absolute; inset: 25% 45% 31% 39%; border: 1px solid #a4f1d9; border-radius: 2px; }
.track > span { position: absolute; top: 0; left: -1px; transform: translateY(-100%); width: max-content; padding-inline: .22rem; color: #1b352e; font-size: .75rem; background: #a4f1d9; }
.pedestrian::before, .pedestrian::after { content: ""; position: absolute; }
.pedestrian::before { inset: 8% 28% 73%; border-radius: 50%; background: #c8a69c; }
.pedestrian::after { inset: 29% 19% 10%; border-radius: 42% 42% 8% 8%; background: linear-gradient(#95a6d7 0 56%, #423856 57%); }
.report { padding-top: .1rem; }
.counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
.count { border-radius: .6rem; padding: .45rem; font-size: .8rem; }
.count strong { display: block; line-height: 1.15; font-size: 1.65rem; }
.entry { color: var(--entry); background: var(--entry-fill); }
.exit { color: var(--exit); background: var(--exit-fill); }
.entry-text { color: var(--entry); }
.exit-text { color: var(--exit); }
.report p { font-size: .85rem; font-weight: 680; margin-top: 1rem; }
.report ul { list-style: none; padding: 0; margin: .3rem 0 0; }
.report li { display: flex; justify-content: space-between; gap: .4rem; padding: .28rem 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
.report time { color: var(--muted); font-variant-numeric: tabular-nums; }

.workflow { padding: clamp(2.7rem, 6.2vw, 5.2rem) clamp(0rem, 3vw, 3rem); }
h2 { line-height: 1.12; letter-spacing: -.04em; font-size: clamp(1.85rem, 3.1vw, 2.8rem); }
.workflow ol { list-style: none; margin: 1.55rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.15rem, 4vw, 3.3rem); }
.workflow li { border-top: 1px solid var(--line); padding-top: .9rem; }
h3 { font-size: 1.11rem; margin-bottom: .27rem; }
.workflow p, .mac p { color: var(--muted); }
.mac { display: grid; grid-template-columns: 1fr minmax(12rem, .55fr); gap: 2.2rem; align-items: center; padding: clamp(1.5rem, 4.2vw, 3.1rem); background: linear-gradient(120deg, var(--blue), var(--surface) 63%, var(--blush)); border: 1px solid var(--line); border-radius: 1.2rem; }
.mac h2 { margin-bottom: .6rem; }
.release { background: var(--surface); padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: .75rem; }
.release strong { display: block; margin-bottom: .18rem; color: var(--violet); }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; min-height: 6rem; align-items: center; color: var(--muted); font-size: .9rem; }

@media (max-width: 57rem) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .workbench { width: min(100%, 36rem); }
}

@media (max-width: 36rem) {
  .wrap { width: min(100% - 2rem, 76rem); }
  .hero { gap: 1.65rem; padding: 2rem .95rem 1rem; }
  .workbench-content, .workflow ol, .mac { grid-template-columns: 1fr; }
  .workbench { padding: .75rem; }
  .scene { height: 9rem; }
  .report p { margin-top: .55rem; }
  .mac { gap: 1.1rem; }
}

@media (prefers-reduced-transparency: reduce) {
  :root { --panel: var(--surface); }
}
