@font-face {
  font-family: "DM Sans";
  src: url("/cursor/media/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("/cursor/media/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --ink: #211b33;
  --muted: #655e72;
  --line: #e4dfeb;
  --purple: #5a37d6;
  --purple-dark: #4626ad;
  --heading: Outfit, "DM Sans", system-ui, sans-serif;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
section[id], div[id="demo"] { scroll-margin-top: 1.5rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: .5rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
  padding: .7rem 1rem;
  z-index: 4;
}
.skip-link:focus { transform: none; }
.shell { width: min(1184px, calc(100% - 72px)); margin-inline: auto; }
.header { border-bottom: 1px solid #eae6ef; }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .64rem;
  font-family: var(--heading);
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: -.075em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark strong { color: #6443d7; font-weight: inherit; }
.wordmark img { flex: none; }
.main-nav, .header-actions, .footer nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a, .footer nav a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 650; }
.main-nav a:hover, .footer nav a:hover { color: var(--purple-dark); }
.header-actions { gap: .85rem; }
.language { padding: .6rem .55rem; background: transparent; font-size: .82rem; font-weight: 750; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 50px;
  padding: .72rem 1.22rem;
  border-radius: 10px;
  font-size: .93rem;
  font-weight: 750;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-small { min-height: 39px; padding: .53rem .85rem; font-size: .82rem; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #3d3056; }
.button-primary { background: var(--purple); color: white; box-shadow: 0 7px 18px #5a37d633; }
.button-primary:hover { background: var(--purple-dark); }
.button-outline { border: 1px solid #cfc5e0; background: transparent; }
.button-outline:hover { background: #efe9ff; }

.hero {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  align-items: center;
  gap: 2.2rem;
  padding-block: 4rem 3.5rem;
}
.hero-copy { min-width: 0; }
.eyebrow { margin: 0 0 1rem; color: var(--purple-dark); font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
h1, h2, h3 { font-family: var(--heading); margin: 0; }
.hero h1 {
  font-size: clamp(3.05rem, 5.2vw, 5.1rem);
  line-height: .97;
  font-weight: 750;
  letter-spacing: -.055em;
}
.hero h1 em { font-style: normal; color: #6545d9; }
.hero-description {
  max-width: 28rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.63;
}
.hero-actions { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin: 1.7rem 0 .95rem; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .93rem; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: .28em; }
.hero-note { margin: 0; color: var(--muted); font-size: .82rem; }

.demo {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  min-height: 456px;
  padding: 1.15rem;
  overflow: hidden;
  border: 1px solid #dcd3f1;
  border-radius: 25px;
  background: radial-gradient(ellipse at 36% 38%, #f4eaff 0%, #ede4fd 36%, transparent 72%),
    linear-gradient(139deg, #e8d7fa 10%, #e8dcfb 57%, #d4c8f4 100%);
  cursor: var(--demo-cursor, auto);
}
.demo::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: radial-gradient(#8172aa77 .8px, transparent .8px) 0 0 / 15px 15px;
  mask-image: radial-gradient(ellipse, #000 9%, transparent 82%);
  pointer-events: none;
}
.demo-top, .demo-dock { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.demo-top p { display: flex; align-items: center; gap: .46rem; margin: 0; color: #473767; font-size: .67rem; font-weight: 800; letter-spacing: .105em; }
.live-dot { width: 7px; height: 7px; background: #2b876c; border-radius: 50%; box-shadow: 0 0 0 4px #2b876c18; }
.demo-hint { color: #5e5079; font-size: .75rem; }
.art-scene { position: relative; min-height: 328px; pointer-events: none; }
.art-scene img { position: absolute; height: auto; filter: drop-shadow(0 15px 14px #4f387538); }
.orbit { position: absolute; top: 50%; left: 49%; width: 68%; aspect-ratio: 1.49; border-radius: 50%; border: 1px solid #8068b953; transform: translate(-50%, -50%) rotate(-27deg); }
.orbit-two { width: 82%; aspect-ratio: 1.63; border-color: #8068b92a; }
.scene-main { top: 49%; left: 48%; width: 58%; transform: translate(-50%, -50%) rotate(-8deg); }
.scene-arrow { top: 12%; left: 8%; width: 21%; transform: rotate(-15deg); }
.scene-friend { z-index: 1; right: 1%; bottom: 2%; width: 32%; transform: rotate(9deg); }
.scene-ghost { top: 5%; right: 5%; width: 23%; transform: rotate(14deg); }
.spark { position: absolute; color: #8b70c0; line-height: 1; }
.spark-one { font-size: 1.4rem; left: 22%; bottom: 17%; }
.spark-two { font-size: 1.1rem; left: 58%; top: 10%; }
.spark-three { font-size: 1.9rem; right: 18%; top: 48%; }
.demo-dock {
  padding: .64rem .72rem;
  border: 1px solid #ffffffbb;
  background: #fffffff0;
  box-shadow: 0 6px 22px #5f45751b;
  border-radius: 13px;
}
.demo-current { min-width: 0; display: flex; align-items: center; gap: .67rem; }
.demo-current strong, .demo-current small { display: block; }
.demo-current strong { font-size: .94rem; line-height: 1.15; }
.demo-current small { margin-top: .2rem; color: var(--muted); font-size: .72rem; }
.demo-icon { background: #eee8fa; padding: .15rem; border-radius: 8px; flex: none; }
.try-button { padding: .62rem .8rem; border-radius: 8px; background: #5b3cc9; color: white; font-size: .79rem; font-weight: 750; cursor: var(--demo-pointer, pointer); white-space: nowrap; }
.try-button:hover { background: #4626ad; }
/* Keep the interactive preview usable when a cursor extension styles the page. */
#demo[data-cursor-ready], #demo[data-cursor-ready] * { cursor: var(--demo-cursor) !important; }
#demo[data-cursor-ready] #try-click { cursor: var(--demo-pointer) !important; }
.demo[data-clicked] .scene-main { animation: click-bounce .38s ease-out; }
@keyframes click-bounce {
  45% { transform: translate(-50%, -55%) rotate(4deg) scale(1.08); }
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.stats div { display: flex; justify-content: center; align-items: baseline; gap: .58rem; padding: 1.03rem .2rem; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { font: 750 1.75rem/1 var(--heading); letter-spacing: -.06em; color: var(--purple-dark); }
.stats span { font-size: .88rem; color: var(--muted); }
.section { margin-top: 4.6rem; }
.section h2 { font-size: clamp(2rem, 4vw, 3.65rem); font-weight: 730; line-height: 1.04; letter-spacing: -.042em; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem 1.3rem; flex-wrap: wrap; }
.section-heading p { color: var(--muted); margin: 0; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; margin-top: 1.5rem; }
.search, .category-select select { background: #fff; border: 1px solid #ded7e8; border-radius: 10px; min-height: 45px; }
.search { display: flex; align-items: center; gap: .63rem; padding-inline: .95rem; }
.search span { font-size: 1.4rem; color: var(--purple-dark); }
.search input { border: 0; flex: 1; min-width: 0; background: transparent; }
.search input:focus-visible { outline: none; }
.search:focus-within { outline: 2px solid var(--purple); }
.category-select select { padding: .6rem .8rem; width: 100%; }
.result-count { min-height: 1.35rem; margin: .73rem 0 .7rem; color: var(--muted); font-size: .81rem; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.cursor-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.cursor-card > button { display: block; width: 100%; padding: 0; text-align: start; background: transparent; }
.cursor-card > button:focus-visible { outline-offset: -3px; }
.cursor-card:hover, .cursor-card:has([aria-pressed="true"]) { border-color: #9b82e0; }
.card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  min-height: 108px;
  background: var(--card-bg, #f0eaf8);
}
.card-art img { width: min(34%, 75px); height: auto; aspect-ratio: 1; object-fit: contain; transition: transform .18s ease; }
.cursor-card:hover img:first-child { transform: translate(-3px, -4px) rotate(-5deg); }
.cursor-card:hover img:last-child { transform: translate(3px, -4px) rotate(5deg); }
.card-info { display: flex; align-items: center; gap: .42rem; justify-content: space-between; padding: .65rem .75rem; }
.card-info strong { display: block; font-size: .93rem; font-weight: 750; line-height: 1.2; }
.card-info small { display: block; color: var(--muted); font-size: .72rem; margin-top: .13rem; }
.card-arrow { color: var(--purple-dark); font-weight: 750; }
.gallery-more { display: flex; justify-content: center; margin-top: 1.25rem; }
.gallery-more:has([hidden]) { margin: 0; }

.install-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 2.6rem;
  padding: clamp(1.35rem, 4.3vw, 3.6rem);
  border: 1px solid #e1d6f5;
  border-radius: 22px;
  background: linear-gradient(120deg, #eee6ff, #f5eef9);
}
.install-copy img { margin-bottom: .8rem; }
.install-copy > p { margin: .85rem 0 1.15rem; color: var(--muted); max-width: 31rem; }
.install-copy .release-note { margin: .65rem 0 0; font-size: .78rem; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: .7rem; }
.steps li { counter-increment: step; display: flex; align-items: flex-start; gap: .7rem; background: #ffffffc7; border: 1px solid #fff; border-radius: 11px; padding: .8rem; }
.steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #e8defb; color: var(--purple-dark); font-size: .81rem; font-weight: 800; }
.steps h3 { font-size: 1.03rem; font-weight: 700; }
.steps p { margin: .2rem 0 0; color: var(--muted); font-size: .85rem; }
code { font-size: .87em; overflow-wrap: anywhere; }
.faq { max-width: 850px; }
.faq-list { margin-top: 1.1rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: .88rem .1rem; font-weight: 750; cursor: pointer; }
.faq details p { margin: 0 0 1rem 1rem; color: var(--muted); }
.footer { margin-top: 4rem; border-top: 1px solid var(--line); }
.footer-inner { min-height: 82px; }
.footer .wordmark { font-size: 1.3rem; }
.policy { max-width: 800px; padding-block: 3.5rem 0; }
.policy h1 { font-size: clamp(2.6rem, 6vw, 4.65rem); line-height: 1; letter-spacing: -.055em; }
.policy h2 { margin-top: 1.8rem; font-size: 1.45rem; }
.policy p, .policy li { color: var(--muted); }
.policy ul { padding-left: 1.25rem; }
.policy-date { font-size: .88rem; }
.policy a { color: var(--purple-dark); }

@media (max-width: 1000px) {
  .hero { gap: 1.5rem; }
  .demo { min-height: 390px; }
  .art-scene { min-height: 250px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 2.85rem 2.1rem; gap: 1.7rem; }
  .hero h1 { font-size: clamp(2.7rem, 10.3vw, 4.8rem); }
  .demo { min-height: 350px; }
  .art-scene { min-height: clamp(227px, 53vw, 345px); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { margin-top: 3.3rem; }
  .install-card { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 515px) {
  .shell { width: calc(100% - 30px); }
  .header-inner { min-height: 63px; }
  .header-actions { gap: .3rem; }
  .wordmark { font-size: 1.25rem; gap: .37rem; }
  .wordmark img { width: 28px; height: 28px; }
  .button-small { padding-inline: .53rem; font-size: .73rem; }
  .demo { min-height: 310px; padding: .75rem; border-radius: 18px; }
  .art-scene { min-height: 212px; }
  .stats div { flex-direction: column; align-items: center; gap: .22rem; text-align: center; }
  .stats span { font-size: .7rem; }
  .filters { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .card-art { min-height: 90px; }
  .card-info { padding: .6rem .55rem; }
  .card-info strong { font-size: .84rem; }
  .footer-inner { flex-wrap: wrap; padding-block: 1rem; }
  .footer nav { flex-wrap: wrap; gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
