:root {
  color-scheme: light;
  font-family: "PingFang SC", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  --black: #f4f4f1;
  --soft-black: #ececea;
  --white: #090909;
  --muted: rgba(9, 9, 9, 0.58);
  --hairline: rgba(0, 0, 0, 0.13);
  --card-size: 180px;
  --card-radius: 20px;
  --card-gap: 16px;
  --content-inset: 28px;
  --selection-scale: 1.04;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 8%, rgba(0, 0, 0, 0.035), transparent 29rem),
    var(--black);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(247, 247, 244, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.62);
}

.nav nav a {
  transition: color 180ms ease-in-out;
}

.nav nav a:hover,
.nav nav a:focus-visible {
  color: #000;
}

.nav-download {
  padding: 9px 16px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  color: #000;
}

.hero {
  display: flex;
  min-height: 760px;
  padding: 176px 7vw 112px;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.eyebrow {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.tools h2,
.download h2 {
  margin: 0;
  font-weight: 560;
  letter-spacing: -0.065em;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(68px, 10vw, 148px);
  line-height: 0.91;
}

.hero h1 span,
.hero h1 small {
  display: block;
}

.hero h1 small {
  margin-top: 16px;
  font-size: 0.58em;
  font-weight: 530;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 520px;
  margin: 38px auto 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform 240ms ease-in-out, background 240ms ease-in-out;
}

.button:hover,
.button:focus-visible {
  transform: scale(1.03);
  background: #252525;
}

.caption,
.release-note {
  color: rgba(0, 0, 0, 0.42);
  font-size: 12px;
}

.hero .caption {
  margin-top: 16px;
}

.product-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 430px;
  padding: 72px 0 64px;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.09);
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  background:
    radial-gradient(circle at 14% 30%, rgba(0, 0, 0, 0.12), transparent 18%),
    radial-gradient(circle at 78% 72%, rgba(0, 0, 0, 0.08), transparent 24%),
    linear-gradient(112deg, #fafafa 0%, #e7e7e5 48%, #f8f8f7 100%);
  isolation: isolate;
}

.clipboard-shell {
  position: relative;
  width: calc(100% - 12px);
  max-width: 1480px;
}

.demo-toolbar {
  display: flex;
  width: 100%;
  margin: 0 0 4px;
  min-height: 50px;
  align-items: center;
  gap: 8px;
}

.search,
.filter-button,
.pin-button {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 10px 30px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(24px) saturate(180%) contrast(105%);
  backdrop-filter: blur(24px) saturate(180%) contrast(105%);
}

.search {
  display: flex;
  width: min(280px, 42vw);
  height: 36px;
  padding: 0 12px;
  align-items: center;
  gap: 8px;
  border-radius: 18px;
}

.search-icon {
  width: 13px;
  height: 13px;
  border: 1.5px solid rgba(0, 0, 0, 0.55);
  border-radius: 50%;
}

.search-icon::after {
  display: block;
  width: 5px;
  height: 1.5px;
  margin: 10px 0 0 9px;
  border-radius: 1px;
  background: rgba(0, 0, 0, 0.55);
  content: "";
  transform: rotate(45deg);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #000;
  font-size: 13px;
}

.search input::placeholder {
  color: rgba(0, 0, 0, 0.42);
}

.filters {
  display: flex;
  gap: 8px;
}

.filter-button,
.pin-button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  color: rgba(0, 0, 0, 0.62);
  cursor: pointer;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    color 200ms ease-in-out,
    background 200ms ease-in-out;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active,
.pin-button:hover,
.pin-button:focus-visible,
.pin-button[aria-pressed="true"] {
  transform: scale(var(--selection-scale));
  color: #000;
  background: rgba(255, 255, 255, 0.86);
}

.code-icon {
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 12px;
}

.filter-button svg,
.pin-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pin-button svg {
  fill: currentColor;
  stroke-width: 1;
}

.record-icon {
  font-size: 8px;
}

.pin-button {
  margin-left: auto;
}

.history-window {
  position: relative;
  height: calc(var(--card-size) + (var(--content-inset) * 2) + 2px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.24));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(0, 0, 0, 0.07),
    0 24px 80px rgba(0, 0, 0, 0.13);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  outline: none;
}

.history-window::before,
.history-window::after {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: 0;
  max-width: 100px;
  content: "";
  pointer-events: none;
}

.history-window::before {
  left: 0;
  background: linear-gradient(90deg, rgba(239, 239, 237, 0.78), transparent);
}

.history-window::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(239, 239, 237, 0.78), transparent);
}

.history-track {
  display: flex;
  width: max-content;
  height: 100%;
  margin-left: var(--content-inset);
  will-change: transform;
  animation: history-flow 34s linear infinite;
}

.card-set {
  display: flex;
  height: 100%;
  padding: var(--content-inset) var(--card-gap) var(--content-inset) 0;
  align-items: center;
  gap: var(--card-gap);
}

.clip-card {
  position: relative;
  display: flex;
  width: var(--card-size);
  height: var(--card-size);
  flex: 0 0 var(--card-size);
  padding: 14px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--card-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 1px 0 0 rgba(255, 255, 255, 0.46),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.12);
  transform-origin: center;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.clip-card[hidden] {
  display: none;
}

.clip-card::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.34), transparent 28%),
    radial-gradient(circle at 88% 92%, rgba(255, 255, 255, 0.22), transparent 30%);
  content: "";
  pointer-events: none;
}

.clip-card > * {
  position: relative;
  z-index: 1;
}

.clip-card:hover {
  z-index: 3;
  transform: translateY(-8px) scale(var(--selection-scale));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.28));
  box-shadow:
    inset 0 1px 0 #fff,
    0 22px 42px rgba(0, 0, 0, 0.18);
}

.card-copy {
  min-height: 0;
  color: rgba(0, 0, 0, 0.88);
  font-size: 13px;
  line-height: 1.55;
}

.card-copy.centered {
  display: grid;
  flex: 1;
  align-items: center;
  justify-items: start;
}

.card-copy p {
  margin: 0;
}

.card-copy.long p {
  margin-bottom: 7px;
  font-weight: 650;
}

.card-copy.long span {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(0, 0, 0, 0.58);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.clip-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(0, 0, 0, 0.44);
  font-size: 10px;
}

.clip-card footer span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.app-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 3px;
  background: url("/app-icon.png") center / contain no-repeat;
}

img.app-dot {
  border: 0;
  background: none;
  object-fit: contain;
}

.clip-card pre {
  margin: auto 0;
  color: rgba(0, 0, 0, 0.8);
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 9px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.mono-image,
.capture-preview,
.recording-preview {
  position: relative;
  display: grid;
  height: 125px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
}

.mono-image strong {
  position: relative;
  z-index: 1;
  font-size: 13px;
  letter-spacing: -0.04em;
}

.image-orbit {
  position: absolute;
  width: 92px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
}

.image-orbit.one { transform: rotate(28deg); }
.image-orbit.two { transform: rotate(-28deg); }

.capture-preview {
  padding: 17px;
  place-items: stretch;
}

.window-bar {
  height: 8px;
  margin-bottom: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.window-line {
  width: 56%;
  height: 5px;
  margin-bottom: 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.17);
}

.window-line.wide { width: 82%; }

.window-card {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
}

.recording-preview {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 44%),
    rgba(0, 0, 0, 0.28);
}

.recording-preview .play {
  display: grid;
  width: 40px;
  height: 40px;
  padding-left: 3px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.recording-preview small {
  position: absolute;
  right: 9px;
  bottom: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
}

.history-window:hover .history-track,
.history-window:focus-within .history-track,
.product-stage.is-pinned .history-track,
.product-stage.is-offscreen .history-track,
.history-track.is-paused,
.history-track.is-static {
  animation-play-state: paused;
}

.product-stage.is-offscreen .history-track,
.product-stage.is-hidden .history-track,
.product-stage.is-pinned .history-track {
  animation-play-state: paused;
  will-change: auto;
}

.history-track.is-static {
  animation: none;
  transform: none;
  will-change: auto;
}


.features {
  padding: 156px 6vw 130px;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 90px;
}

.section-heading h2,
.tools h2,
.download h2 {
  font-size: clamp(48px, 7vw, 100px);
  line-height: 0.98;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.feature-grid article {
  min-height: 230px;
  padding: 34px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.feature-grid h3 {
  max-width: 280px;
  margin: 78px 0 18px;
  font-size: 27px;
  font-weight: 560;
  letter-spacing: -0.045em;
}

.feature-grid p {
  max-width: 350px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tools {
  display: grid;
  min-height: 780px;
  padding: 140px 7vw;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: 8vw;
  border-top: 1px solid var(--hairline);
  background: #f0f0ed;
  color: #080808;
}

.tools .eyebrow {
  color: rgba(8, 8, 8, 0.45);
}

.tools-copy > p:last-child {
  max-width: 520px;
  margin-top: 36px;
  color: rgba(8, 8, 8, 0.58);
  font-size: 16px;
  line-height: 1.8;
}

.tool-stack {
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.tool-stack article {
  display: grid;
  min-height: 104px;
  padding: 0 10px;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.tool-stack article strong {
  font-size: 18px;
  font-weight: 560;
}

.tool-stack article small {
  color: rgba(0, 0, 0, 0.47);
  font-size: 12px;
}

.download {
  min-height: 720px;
  padding: 150px 6vw;
  text-align: center;
}

.download .button {
  margin-top: 46px;
}

.download .caption {
  margin: 18px 0 0;
}

.download .release-note {
  margin: 8px 0 0;
}

.site-footer {
  display: flex;
  min-height: 90px;
  padding: 0 4vw;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--hairline);
  color: rgba(0, 0, 0, 0.46);
  font-size: 12px;
}

.site-footer .brand {
  color: #000;
}

@keyframes history-flow {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 900px) {
  .nav nav > a:not(.nav-download) { display: none; }
  .hero { min-height: 670px; padding-inline: 20px; }
  .product-stage { min-height: 410px; }
  .optional-filter { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tools {
    grid-template-columns: 1fr;
    gap: 80px;
  }
}

@media (max-width: 620px) {
  :root {
    --card-size: 180px;
    --content-inset: 28px;
  }

  .nav { min-height: 62px; }
  .hero { min-height: 620px; padding-top: 135px; }
  .hero h1 { font-size: clamp(58px, 18vw, 88px); }
  .intro { font-size: 15px; }
  .product-stage { padding: 64px 0 54px; }
  .demo-toolbar { width: 100%; }
  .search { width: min(210px, 54vw); }
  .filter-button:nth-child(n+4) { display: none; }
  .history-window { border-radius: 20px; }
  .features { padding: 110px 20px 90px; }
  .section-heading { margin-bottom: 60px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 250px; padding: 28px; }
  .feature-grid h3 { margin-top: 62px; }
  .tools { padding: 100px 22px; }
  .tool-stack article {
    min-height: 92px;
    grid-template-columns: 32px 1fr;
  }
  .tool-stack article small { display: none; }
  .download { min-height: 640px; padding-inline: 22px; }
  .site-footer span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .history-window {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .history-window::-webkit-scrollbar { display: none; }
  .history-track { animation: none !important; will-change: auto; }
}
