:root {
  color-scheme: light;
  --paper: #fbfaf8;
  --ink: #1b1723;
  --muted: #595461;
  --line: #e4dfeb;
  --purple: #613cc6;
  --lavender: #d6c8fa;
  --focus: #7247df;
  --gutter: clamp(20px, 5vw, 80px);
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

button { font: inherit; }

h1, h2, p, figure, dl, dd { margin: 0; }

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

.container {
  width: min(1280px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 4;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: white;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-content {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}

.wordmark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  font: 750 26px/1 system-ui, sans-serif;
  letter-spacing: -.055em;
}

.site-nav {
  display: flex;
  gap: clamp(21px, 3vw, 43px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-nav a:hover, .text-link:hover { color: var(--purple); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  width: fit-content;
  padding: 0 20px;
  border-radius: 9px;
  color: white;
  background: var(--ink);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  transition: background 150ms ease, transform 150ms ease;
}

.button:hover {
  background: var(--purple);
  transform: translateY(-2px);
}

.button-small {
  min-height: 44px;
  justify-self: end;
  gap: 12px;
  padding-inline: 14px;
  font-size: 13px;
}

.arrow { font: 500 1.13em/1 system-ui, sans-serif; }

.hero { padding: clamp(48px, 7vw, 95px) 0 85px; }

.hero-intro {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: clamp(25px, 5vw, 78px);
  margin-bottom: clamp(30px, 4.6vw, 62px);
}

.hero h1 {
  font-size: clamp(55px, 7.1vw, 103px);
  font-weight: 790;
  line-height: 1.09;
  letter-spacing: -.07em;
}

.hero h1 span { color: var(--purple); }

.hero-action {
  max-width: 390px;
  padding-bottom: 8px;
}

.hero-action p, .examples-heading p {
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.75;
}

.hero-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 23px;
  margin-top: 25px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.canvas-stage {
  position: relative;
  padding: clamp(15px, 4.8vw, 65px);
  overflow: hidden;
  border-radius: clamp(14px, 2vw, 26px);
  background-color: var(--lavender);
  background-image:
    radial-gradient(circle at 82% 8%, #f2ebff 0, transparent 54%),
    linear-gradient(50deg, #b29aee 0, transparent 65%);
}

.canvas-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#51338d65 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .4;
  pointer-events: none;
}

.canvas-stage img {
  position: relative;
  width: 100%;
  height: auto;
  border: 1px solid #ffffff4a;
  border-radius: clamp(7px, 1vw, 15px);
  background: #1b1a20;
  box-shadow: 0 24px 60px #27134d4d, 0 4px 14px #27134d36;
}

.canvas-demo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
}

.canvas-demo figcaption span:first-child { color: var(--ink); font-weight: 700; }

.collaboration {
  background: #211a2c;
  color: #fbf8ff;
  padding: clamp(48px, 8vw, 106px) 0;
}

.collaboration-layout {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(32px, 5vw, 75px);
}

.collaboration h2, .examples h2 {
  font-size: clamp(33px, 4.2vw, 64px);
  font-weight: 760;
  line-height: 1.17;
  letter-spacing: -.056em;
}

.collaboration-copy p {
  max-width: 425px;
  margin-top: 20px;
  color: #d2c7e0;
  font-size: 16px;
  line-height: 1.78;
}

.access-modes {
  display: grid;
  margin-top: 27px;
  border-top: 1px solid #594e69;
}

.access-modes div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #594e69;
  font-size: 14px;
}

.access-modes dt { color: #decfff; font-weight: 700; }
.access-modes dd { color: #e8dff1; }

.recording {
  min-width: 0;
}

.recording-labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 9px;
  color: #e8dff1;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.recording video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 936 / 610;
  border: 1px solid #5a4d6a;
  border-radius: 13px;
  background: #15141a;
}

.recording figcaption {
  margin-top: 12px;
  color: #d2c7e0;
  font-size: 13px;
  line-height: 1.6;
}

.examples {
  padding: clamp(62px, 8.5vw, 118px) 0;
}

.examples-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 13px 30px;
  margin-bottom: 32px;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(13px, 2vw, 28px);
}

.example {
  display: block;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.example-image {
  display: grid;
  place-items: center;
  height: clamp(155px, 22vw, 286px);
  padding: clamp(14px, 2.2vw, 30px);
}

.example-coffee { background: #efe1d4; }
.example-festival { background: #e1eeb7; }
.example-deck { background: #e8e3fb; }

.example-image img {
  width: auto;
  height: auto;
  max-height: 100%;
  min-height: 0;
  border-radius: 5px;
  box-shadow: 0 7px 20px #1b172328;
  transition: transform 180ms ease;
}

.example:hover .example-image img { transform: scale(1.035); }

.example-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  padding: 17px clamp(13px, 2vw, 22px);
}

.example-info strong {
  display: block;
  font-size: clamp(15px, 1.5vw, 21px);
  letter-spacing: -.02em;
}

.example-kind {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.example-arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 150ms ease, background 150ms ease;
}

.example:hover .example-arrow { color: white; background: var(--purple); }

.site-footer { border-top: 1px solid var(--line); }

.footer-content {
  min-height: 102px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.example-dialog {
  width: min(825px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}

.example-dialog::backdrop { background: #1b1723b8; }

.dialog-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 12px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 { font-size: 17px; }

.dialog-close {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 23px;
}

.dialog-close:hover { background: #ede5fc; }

.dialog-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 113px);
  margin: 14px auto;
  padding-inline: 14px;
  object-fit: contain;
}

@media (max-width: 850px) {
  .hero-intro { grid-template-columns: 1fr; }
  .hero-action { padding: 0; }
  .collaboration-layout { grid-template-columns: 1fr; }
  .collaboration-copy { max-width: 580px; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 118px; }
  .header-content { grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 6px; min-height: 62px; }
  .header-content .wordmark { font-size: 23px; }
  .header-content .wordmark img { width: 27px; height: 27px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 24px; }
  .hero { padding-bottom: 56px; }
  .hero h1 { font-size: clamp(47px, 11.7vw, 72px); }
  .example-grid { grid-template-columns: 1fr; }
  .example-image { height: clamp(180px, 59vw, 300px); }
  .footer-content { min-height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
