/* blur: page compositions and interactive product preview */
.showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(72px, 8vw, 112px);
  background: radial-gradient(ellipse at 50% 20%, #6d28d90d, transparent 65%);
}
.showcase::before, .showcase::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: min(680px, 90vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, #a78bfa29, transparent);
  filter: blur(6px);
  transform: rotate(-24deg);
  animation: streak-drift 16s ease-in-out infinite alternate;
}
.showcase::before { top: 160px; left: -170px; }
.showcase::after { top: 350px; right: -270px; opacity: .55; animation-delay: -8s; }
.hero-copy { text-align: center; animation: content-enter .5s .12s ease-out both; }
.hero-copy h1 { margin-top: 22px; }
.lead { max-width: 540px; margin: 22px auto 28px; font-size: 1.0625rem; }
.hero-copy .actions { justify-content: center; }
.site-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  gap: 22px;
  background: var(--bg);
  pointer-events: none;
  animation: intro-exit .2s .3s ease-out forwards;
}
.intro-mark { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.65rem; line-height: 1; font-weight: 650; letter-spacing: -.06em; text-transform: lowercase; animation: mark-enter .3s ease-out both; }
.intro-mark .brand-mark { width: 39px; height: 25px; background-size: 64px 64px; background-position: -12px -20px; }
.intro-rule { width: 96px; height: 1px; margin: auto; background: #a78bfa18; overflow: hidden; }
.intro-rule::after { content: ""; display: block; width: 100%; height: 100%; background: #a78bfa99; transform: translateX(-100%); animation: intro-progress .3s ease-out forwards; }
@keyframes intro-progress { to { transform: translateX(0); } }
@keyframes intro-exit { to { opacity: 0; visibility: hidden; } }
@keyframes mark-enter { from { opacity: 0; transform: translateX(-6px); filter: blur(3px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes content-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes streak-drift { from { transform: translateX(-30px) rotate(-24deg); } to { transform: translateX(30px) rotate(-24deg); } }
.preview {
  width: min(960px, calc(100% - 64px));
  margin: clamp(42px, 5vw, 68px) auto 0;
  background: #101018;
  border: 1px solid #f5f3ff1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 64px #00000025, 0 1px 0 #ffffff04 inset;
}
.preview-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--line); background: #13111c; }
.preview-head span:first-child { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; letter-spacing: -.04em; text-transform: lowercase; }
.preview-head > span:last-child { color: #a39bae; font-size: .8125rem; }
.preview-head .brand-mark { width: 22px; height: 15px; background-size: 36px 36px; background-position: -7px -11px; }
.workspace { display: grid; grid-template-columns: minmax(230px, .41fr) 1fr; align-items: center; }
.controls { padding: 18px; align-self: stretch; background: #101018; border-right: 1px solid var(--line); }
.mode-picker { display: flex; gap: 3px; padding: 3px; background: #09080f; border: 1px solid var(--line); border-radius: 5px; }
.mode-picker button { flex: 1; min-height: 34px; padding: 6px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--dim); font-size: .875rem; transition: color .16s, background .16s; }
.mode-picker button:hover { color: var(--ink); }
.mode-picker button[aria-pressed=true] { background: #201b2c; color: #e1d4ff; border-color: #a78bfa0d; }
.settings-card { margin-top: 18px; padding: 0 2px; }
.settings-card h3 { margin-bottom: 10px; font-size: .875rem; font-weight: 500; letter-spacing: -.01em; color: #e0d9ed; }
.controls .setting { position: relative; display: flex; align-items: center; min-height: 35px; gap: 10px; padding: 5px 0; color: #bfb6ce; font-size: .875rem; }
.setting input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick { display: grid; place-items: center; width: 15px; height: 15px; flex: none; background: #09080f; border: 1px solid #585063; border-radius: 3px; transition: background .16s, border-color .16s; }
.setting:hover .tick { border-color: #a78bfa99; }
.setting input:checked + .tick { background: var(--accent); border-color: var(--accent); }
.setting input:checked + .tick::after { content: ""; width: 7px; height: 4px; border: solid #221436; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translateY(-1px); }
.setting input:focus-visible + .tick { outline: 2px solid var(--accent); outline-offset: 3px; }
.controls .tint-row, .controls .range-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; margin-top: 12px; border-top: 1px solid var(--line); color: #bfb6ce; font-size: .875rem; }
.controls .tint-row input { width: 28px; height: 22px; padding: 2px; border: 1px solid #f5f3ff22; border-radius: 4px; background: none; cursor: pointer; }
.controls input[type=range] { width: 100%; height: 28px; margin: 8px 0 0; accent-color: var(--accent); cursor: pointer; }
.scene { --esp: #c4a6ff; --radius: 24%; position: relative; overflow: hidden; aspect-ratio: 1.86; background: #13111c; }
.scene > img { width: 100%; height: 100%; object-fit: fill; filter: saturate(.58) brightness(.72); display: block; }
.marker { position: absolute; z-index: 1; color: var(--esp); }
.marker.far { left: 47.2%; top: 27.5%; width: 8.1%; height: 23%; }
.marker.near { left: 15.2%; top: 28%; width: 5%; height: 12%; }
.scene[data-boxes=true] .marker { outline: 1px solid var(--esp); }
.marker b { position: absolute; left: 50%; transform: translateX(-50%); font: 600 .75rem/1.3 Verdana,sans-serif; color: white; text-shadow: 0 1px 2px black, 1px 0 2px black, -1px 0 2px black; white-space: nowrap; }
.name-tag { bottom: calc(100% + 2px); }
.distance-tag { top: calc(100% + 2px); }
.bones { width: 100%; height: 100%; fill: none; stroke: var(--esp); stroke-width: 1.4; }
.fov { position: absolute; left: 50%; top: 50%; width: var(--radius); aspect-ratio: 1; border-radius: 50%; border: 1px solid #f5f3ffb3; transform: translate(-50%, -50%); }
.scene[data-labels=false] .name-tag, .scene[data-distance=false] .distance-tag, .scene[data-bones=false] .bones, .scene[data-circle=false] .fov { display: none; }
.gameplay { padding-top: clamp(64px, 7vw, 100px); }
.gameplay-heading { margin-bottom: 28px; }
.gameplay-frame { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border: 1px solid #f5f3ff18; border-radius: 8px; background: var(--panel); box-shadow: 0 16px 48px #0003; }
.gameplay-video { display: block; width: 100%; height: 100%; object-fit: cover; }
#features { border-top: 1px solid var(--line); }
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.catalog article { padding: 28px; background: #100e17; transition: background .2s; }
.catalog article:hover { background: #13111c; }
.catalog h3 { display: flex; align-items: center; gap: 11px; font-size: 1.0625rem; }
.catalog ul { list-style: none; padding: 0; margin: 17px 0 0; }
.catalog li { position: relative; padding: 4px 0 4px 14px; color: var(--dim); font-size: .9375rem; line-height: 1.65; }
.catalog li::before { content: ""; position: absolute; left: 0; top: 15px; width: 3px; height: 3px; border-radius: 50%; background: #75648f; }
.checkout { min-height: calc(100svh - 177px); display: grid; align-items: center; padding-block: clamp(40px, 6vw, 80px); background: radial-gradient(ellipse at 17% 40%, #6d28d908, transparent 58%); }
.purchase-link { display: inline-flex; }
.checkout > .wrap > .purchase-link { min-height: 38px; padding: 8px 13px; font-size: .8125rem; }
.purchase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; margin-top: 42px; }
.purchase-info > .brand-mark { display: block; width: 54px; height: 34px; margin-bottom: 25px; background-size: 88px 88px; background-position: -17px -28px; }
.purchase h1 { font-size: clamp(3rem, 4.9vw, 4.4rem); margin-top: 18px; }
.purchase .muted { max-width: 350px; }
.features-link { margin-top: 24px; }
.purchase .license-box { padding: clamp(22px, 3vw, 34px); border: 1px solid #f5f3ff16; border-radius: 9px; background: var(--panel); box-shadow: 0 16px 40px #0002; }
@media (max-width: 900px) {
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .purchase { gap: 36px; }
}
@media (max-width: 740px) {
  .preview { width: calc(100% - 40px); }
  .purchase { grid-template-columns: 1fr; gap: 38px; }
  .purchase-info > .brand-mark { margin-bottom: 18px; }
  .purchase h1 br { display: none; }
}
@media (max-width: 560px) {
  .showcase { padding-top: 56px; }
  .hero-copy h1 { font-size: clamp(2.65rem, 9.8vw, 3.5rem); margin-top: 18px; }
  .lead { font-size: 1rem; margin-top: 20px; }
  .preview { margin-top: 40px; }
  .preview-head { padding: 12px 14px; }
  .preview-head > span:last-child { font-size: .75rem; }
  .workspace { display: flex; flex-direction: column-reverse; }
  .scene { width: 100%; }
  .controls { width: 100%; padding: 16px; border-right: 0; border-top: 1px solid var(--line); }
  .settings-card { display: grid; grid-template-columns: 1fr 1fr; }
  .settings-card h3, .range-row, #radius { grid-column: 1/-1; }
  .gameplay-heading { margin-bottom: 22px; }
  .catalog { grid-template-columns: 1fr; margin-top: 28px; }
  .catalog article { padding: 25px; }
  .checkout { padding-block: 32px 48px; }
  .purchase { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-intro { display: none; }
  .showcase::before, .showcase::after { animation: none; }
}
