:root {
  --bg: #f6f6f0;
  --surface: #fff;
  --ink: #202820;
  --muted: #73796e;
  --line: #dddeda;
  --accent: #41694b;
  --soft: #e9efdf;
  --purple: #7165bb;
  --stage: #182520;
  --shadow: 0 12px 32px #20302a0a;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic",
    sans-serif;
  font-size: 14px;
  line-height: 1.8;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b39cfc;
  outline-offset: 3px;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
.wrap {
  max-width: 1320px;
  margin: auto;
  padding: 0 48px;
}
.top {
  border-bottom: 1px solid var(--line);
}
.top-in {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.6px;
}
.mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  font-size: 23px;
}
.brand span:last-child {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  margin-left: 7px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 12px;
}
.nav a {
  text-decoration: none;
}
.icon-btn {
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 55px;
  align-items: center;
  padding-top: 66px;
  padding-bottom: 64px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 750;
  color: var(--accent);
  margin: 0 0 20px;
}
.eyebrow:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #91aa64;
  margin-right: 10px;
}
h1 {
  font-size: clamp(30px, 3.1vw, 44px);
  font-weight: 750;
  line-height: 1.55;
  letter-spacing: -1.8px;
  margin: 0 0 22px;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.lead {
  max-width: 500px;
  font-size: 13px;
  color: var(--muted);
  line-height: 2.1;
  margin: 0;
}
.facts {
  display: flex;
  gap: 26px;
  margin-top: 26px;
  font-size: 11px;
  color: var(--muted);
}
.facts strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-right: 6px;
}
.hero-demo {
  background: #e9eddf;
  border: 1px solid #dbe1ce;
  border-radius: 18px;
  padding: 20px 24px 15px;
  transform: rotate(-1.2deg);
  position: relative;
}
.demo-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 1px;
  color: #6e7d66;
}
.demo-top b {
  font-weight: 500;
  border: 1px solid #c7d3bc;
  padding: 2px 8px;
  border-radius: 20px;
}
.hero-demo canvas {
  width: 100%;
  display: block;
  border-radius: 10px;
  margin: 14px 0 12px;
  background: var(--stage);
}
.demo-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #344332;
}
.demo-bottom span {
  font-size: 10px;
  color: #7c8674;
}
.demo-badge {
  position: absolute;
  right: -15px;
  top: -14px;
  background: #e9e2f5;
  border: 1px solid #d7cceb;
  padding: 7px 13px;
  transform: rotate(5deg);
  font-size: 11px;
  border-radius: 6px;
  color: #675489;
}
.collection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-bottom: 22px;
}
.collection-head h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.4px;
}
.collection-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding-top: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 6px;
  padding: 7px 12px;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.6;
}
.chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.tools-side {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.search {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 7px;
}
.search input {
  width: 154px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  padding: 8px 0;
}
.subtools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  padding: 18px 0;
}
.subtools p {
  margin: 0;
}
.text-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  padding: 3px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px 22px;
}
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #a4b59d;
}
.card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.stage {
  background: var(--stage);
  position: relative;
}
.stage canvas {
  width: 100%;
  aspect-ratio: 2/1;
  display: block;
}
.stage-label {
  position: absolute;
  top: 12px;
  left: 14px;
  color: #c1cfc6;
  font-size: 9px;
  letter-spacing: 1px;
}
.stage-play {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 25px;
  height: 25px;
  border: 1px solid #ffffff38;
  background: #ffffff10;
  border-radius: 50%;
  color: #e2e8e2;
  font-size: 10px;
  display: grid;
  place-items: center;
  line-height: 1;
}
.card-body {
  padding: 19px 20px 15px;
}
.card-meta {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 9px;
  letter-spacing: 0.5px;
}
.cat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cat);
}
.card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
  line-height: 1.6;
}
.card p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
  min-height: 42px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
}
.pick {
  border: 0;
  background: none;
  padding: 0;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.pick i {
  font-style: normal;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: inline-grid;
  place-items: center;
}
.pick[aria-pressed="true"] {
  color: var(--accent);
}
.pick[aria-pressed="true"] i {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.detail-btn {
  border: 0;
  background: none;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  padding: 0;
}
.empty {
  text-align: center;
  padding: 60px;
  color: var(--muted);
}
.how {
  padding: 60px 0 50px;
  margin-top: 55px;
  border-top: 1px solid var(--line);
}
.how h2 {
  font-size: 22px;
  letter-spacing: -0.7px;
  margin: 0 0 25px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step b {
  font-size: 10px;
  font-weight: 500;
  color: var(--purple);
  letter-spacing: 1px;
}
.step h3 {
  font-size: 13px;
  margin: 7px 0;
}
.step p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.note {
  margin: 30px 0 0;
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 11px;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 95px;
  font-size: 10px;
  color: var(--muted);
}
.footer-in {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
footer a {
  text-underline-offset: 3px;
}
.tray {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(750px, calc(100% - 32px));
  z-index: 20;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 8px 35px #0002;
  display: flex;
  align-items: center;
  gap: 15px;
}
.tray[hidden] {
  display: none;
}
.tray-info {
  flex: 1;
  min-width: 0;
}
.tray strong {
  font-size: 12px;
}
.tray small {
  display: block;
  font-size: 10px;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tray button {
  border: 1px solid #ffffff30;
  color: inherit;
  background: transparent;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 11px;
}
.tray .copy {
  background: #dceabd;
  color: #273323;
  border-color: #dceabd;
}
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  padding: 10px 20px;
  z-index: 100;
  font-size: 12px;
  box-shadow: 0 5px 25px #0002;
}
.toast[hidden] {
  display: none;
}
dialog {
  width: min(920px, calc(100% - 32px));
  max-height: 90vh;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 25px 100px #0004;
}
dialog::backdrop {
  background: #11231e99;
  backdrop-filter: blur(5px);
}
.dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.dialog-scroll {
  padding: 24px;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
}
.detail-stage {
  background: var(--stage);
  border-radius: 9px;
  overflow: hidden;
}
.detail-stage canvas {
  width: 100%;
  display: block;
  aspect-ratio: 2/1;
}
.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.btn {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  padding: 8px 12px;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.detail-copy h2 {
  font-size: 24px;
  letter-spacing: -0.8px;
  margin: 7px 0 13px;
  line-height: 1.5;
}
.detail-copy .category {
  font-size: 10px;
  color: var(--accent);
}
.detail-copy h3,
.spec h3 {
  font-size: 11px;
  margin: 20px 0 7px;
  color: var(--accent);
}
.detail-copy p,
.spec p {
  font-size: 12px;
  line-height: 1.9;
  margin: 0;
  color: var(--muted);
}
.spec {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 1px;
}
.spec textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  padding: 14px;
  font-size: 11px;
  line-height: 1.9;
}
.demo-caption {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 0;
  min-height: 40px;
}
.hidden {
  display: none !important;
}
[data-theme="dark"] {
  --bg: #171d19;
  --surface: #202821;
  --ink: #e6ebdf;
  --muted: #a4af9f;
  --line: #374237;
  --accent: #a3bf88;
  --soft: #2c392a;
  --purple: #b5a5df;
  --stage: #101b17;
  --shadow: none;
}
[data-theme="dark"] .hero-demo {
  background: #2a3626;
  border-color: #405038;
}
[data-theme="dark"] .demo-top,
[data-theme="dark"] .demo-bottom {
  color: #c4cfb9;
}
[data-theme="dark"] .btn.primary {
  color: #172218;
}
[data-theme="dark"] .mark {
  color: #18251a;
}
[data-theme="dark"] .tray {
  background: #dce7d5;
  color: #1d2c20;
}
[data-theme="dark"] .tray button {
  border-color: #8c9e82;
}
[data-theme="dark"] .tray .copy {
  background: #294531;
  color: white;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1400px) {
  .wrap {
    padding: 0 50px;
  }
}
@media (max-width: 1100px) {
  .wrap {
    padding-left: 28px;
    padding-right: 28px;
  }
  .tools {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .tools-side {
    width: 100%;
  }
  .search {
    flex: 1;
  }
  .search input {
    width: 100%;
  }
  .hero {
    gap: 30px;
  }
  .grid {
    gap: 18px;
  }
  .card-body {
    padding: 16px;
  }
  .toolbar {
    position: relative;
  }
  .hero h1 {
    font-size: 34px;
  }
}
@media (max-width: 760px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .top-in {
    height: 67px;
  }
  .brand {
    font-size: 15px;
  }
  .brand span:last-child {
    display: none;
  }
  .nav {
    gap: 14px;
  }
  .nav a[href="#collection"] {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
    padding-bottom: 36px;
    gap: 36px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .lead {
    font-size: 12px;
  }
  .hero-demo {
    max-width: 460px;
    width: 100%;
    justify-self: center;
    transform: none;
  }
  .demo-badge {
    right: 7px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .collection-head {
    align-items: flex-start;
    gap: 10px;
  }
  .collection-head p {
    max-width: 130px;
    text-align: right;
    font-size: 10px;
  }
  .card h3 {
    font-size: 14px;
  }
  .card p {
    font-size: 10px;
    min-height: 56px;
  }
  .card-body {
    padding: 13px;
  }
  .card-meta {
    font-size: 8px;
    gap: 6px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .detail-copy h2 {
    font-size: 22px;
  }
  .dialog-scroll {
    padding: 20px;
  }
  .footer-in {
    flex-direction: column;
    gap: 8px;
  }
  .subtools {
    font-size: 10px;
  }
  .tray {
    gap: 10px;
    padding: 12px;
  }
  .tray small {
    max-width: 170px;
  }
  .tray button {
    padding: 7px;
    font-size: 10px;
  }
}
@media (max-width: 430px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .card p {
    min-height: 0;
  }
  .card h3 {
    font-size: 17px;
  }
  .card p {
    font-size: 12px;
  }
  .card-body {
    padding: 18px;
  }
  .card-meta {
    font-size: 10px;
  }
  .hero h1 {
    font-size: 31px;
  }
  .tray small {
    max-width: 125px;
  }
  .chip {
    padding: 6px 9px;
  }
  .facts {
    gap: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}

.detail-copy a.btn:not([hidden]) {
  display: inline-block;
  margin-top: 14px;
  text-decoration: none;
}
