/* sit.run visual system: a WebGL hero, tactile product previews, clear content. */
:root {
  color-scheme: light dark;
  --paper: #f8f9fc; --surface: #fefefe; --ink: #19232f; --muted: #5b6677;
  --accent: #2459d3; --accent-strong: #1949b8; --line: #dce2ec;
  --tint: #edf2fb; --stage: #dce8fb; --edge: #b0c3e4;
  --radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; font-size: 16px; line-height: 1.7; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
h1,h2,h3,p,figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
button,summary,a { -webkit-tap-highlight-color: transparent; }
a:focus-visible,button:focus-visible,summary:focus-visible,video:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
a:hover { color: var(--accent); }
.skip-link { position: fixed; top: -70px; left: 24px; padding: 10px 20px; background: var(--ink); color: var(--paper); z-index: 100; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { max-width: 1360px; margin: auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 80px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 750; letter-spacing: -.8px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #2459d3; color: #fff; font-size: 18px; font-weight: 760; }
.top-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 550; color: var(--muted); }
.top-nav > a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; white-space: nowrap; }
.top-nav .nav-primary { color: var(--ink); margin-left: 5px; padding: 0 17px; border: 1px solid var(--line); border-radius: 8px; min-height: 38px; background: var(--surface); }
main,.site-footer { width: min(1280px, calc(100% - 80px)); margin: 0 auto; }
.intro { display: grid; grid-template-columns: 1fr 1.16fr; gap: 30px; align-items: center; min-height: 640px; padding: 32px 0 65px; }
.intro-copy { position: relative; z-index: 2; padding-bottom: 34px; }
.intro-author { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.intro h1 { font-size: clamp(34px, 3.6vw, 51px); font-weight: 750; line-height: 1.3; letter-spacing: -1.9px; }
.intro h1 span { color: var(--accent); }
.intro-description { margin-top: 26px; color: var(--muted); font-size: 16px; max-width: 28em; text-wrap: balance; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 46px; border-radius: 8px; padding: 11px 21px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background 160ms ease, transform 160ms ease; }
.button.primary { background: #2459d3; color: #fff; }
.button.primary:hover { background: #1949b8; color: #fff; transform: translateY(-2px); }
.button.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.button.secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-cta { margin-top: 32px; }
.product-showroom { min-width: 0; }
.showroom-stage { height: 430px; position: relative; perspective: 1100px; isolation: isolate; }
.stage-halo { position: absolute; inset: 4% -2% 0; background: radial-gradient(ellipse at 56% 48%, var(--stage) 0%, transparent 69%); pointer-events: none; }
.scene-rotator { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--pointer-y, 0deg)) rotateY(var(--pointer-x, 0deg)); transition: transform 500ms cubic-bezier(.2,.7,.3,1); }
.screen-stack { position: absolute; top: 10%; left: 10%; width: 80%; aspect-ratio: 1.6; transform-style: preserve-3d; transform: rotateX(9deg) rotateY(-20deg) rotateZ(5deg); transition: transform 650ms cubic-bezier(.2,.7,.3,1); }
.scene-screen,.screen-back,.screen-edge { position: absolute; inset: 0; border-radius: 13px; }
.screen-back { background: linear-gradient(125deg, #7b9edc, #285ab4); transform: translateZ(-30px) translateX(12px) translateY(-13px); border: 1px solid #8caadf; }
.screen-edge { background: #b9c8df; transform: translateZ(-5px) translateY(5px); box-shadow: 15px 30px 45px #1029552a; }
.scene-screen { padding: 7px; background: #f5f8ff; border: 1px solid #fff; transform: translateZ(1px); overflow: hidden; }
.scene-screen img { width: 100%; height: 100%; object-fit: contain; border: 1px solid #dde4ef; border-radius: 7px; background: #fff; }
.scene-tile { position: absolute; width: 86px; height: 86px; padding: 8px; border-radius: 23px; background: linear-gradient(130deg, #fff, #d9e4f6); border: 1px solid #fefefe; box-shadow: 5px 8px 0 #bdcde6, 12px 25px 34px #153c6c28; transform: translateZ(65px) rotateX(9deg) rotateY(-20deg) rotateZ(5deg); transition: transform 650ms, opacity 400ms; }
.scene-tile img { width: 100%; height: 100%; border-radius: 17px; }
.tile-search { top: 0%; right: 9%; }
.tile-bluepen { left: 3%; bottom: 18%; width: 100px; height: 100px; border-radius: 26px; transform: translateZ(90px) rotateX(9deg) rotateY(-20deg) rotateZ(-8deg); }
.showroom-info { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 5px 14px 18px; }
.showroom-info p { display: grid; gap: 3px; }
.showroom-info strong { font-size: 14px; font-weight: 650; }
.showroom-info p span { color: var(--muted); font-size: 12px; }
.view-toggle { background: transparent; border: 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; min-height: 44px; padding: 8px 0; white-space: nowrap; }
.view-toggle:disabled { cursor: default; }
.showroom-switcher { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); width: max-content; max-width: 100%; margin: 0 auto; }
.showroom-switcher button { border: 0; border-radius: 6px; padding: 9px 18px; background: transparent; color: var(--muted); min-height: 44px; font-size: 12px; white-space: nowrap; transition: background 180ms, color 180ms; }
.showroom-switcher button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 2px 6px #1a2b4410; }
.is-flat .scene-rotator { transform: none; }
.is-flat .screen-stack { transform: none; }
.is-flat .scene-tile,.is-flat .screen-back { opacity: 0; }
.is-flat .screen-edge { transform: none; box-shadow: 0 16px 40px #10295516; }
.section { padding: 70px 0; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 700; line-height: 1.35; letter-spacing: -1px; }
.section-heading p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.products { border-top: 1px solid var(--line); padding-top: 55px; }
.product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.product { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 4px 0 var(--tint), 0 16px 36px #182f4b06; }
.product-featured { grid-column: 1/-1; display: grid; grid-template-columns: .85fr 1.15fr; min-height: 410px; }
.featured-copy { padding: 44px; align-self: center; }
.product-heading { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.product h3 { font-size: 27px; line-height: 1.3; letter-spacing: -.7px; font-weight: 700; }
.product-state { font-size: 11px; color: var(--accent); padding: 3px 8px; border-radius: 4px; background: var(--tint); }
.product-description { font-size: 21px; font-weight: 550; margin-top: 25px; }
.product-detail { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 440px; line-height: 1.85; }
.product-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 14px; font-weight: 550; min-height: 44px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.featured-preview { display: flex; flex-direction: column; justify-content: center; padding: 38px 0 20px 30px; background: var(--tint); overflow: hidden; perspective: 1000px; }
.featured-preview > img { width: 108%; max-width: none; height: auto; transform: rotateY(-9deg) rotateX(3deg); transform-origin: left center; border-radius: 9px; border: 5px solid #e5ebf6; box-shadow: 0 20px 40px #132b5124; transition: transform 500ms; }
.featured-preview:hover > img { transform: rotateY(-3deg) rotateX(0); }
.preview-caption { display: flex; justify-content: space-between; padding: 20px 28px 0 0; font-size: 12px; color: var(--muted); }
.compact-visual { display: block; position: relative; height: 335px; padding: 34px 38px 54px; background: radial-gradient(ellipse at 50% 30%, var(--stage), var(--tint) 75%); overflow: hidden; perspective: 900px; }
.compact-visual img { width: 100%; height: auto; border: 5px solid #e4e8f0; border-radius: 10px; box-shadow: 0 12px 28px #172f5120; transform: rotateX(8deg) rotateY(-8deg) rotateZ(-3deg) translateY(10px); transition: transform 550ms; }
.bluepen-visual { background: linear-gradient(145deg, var(--paper), var(--stage)); }
.bluepen-visual img { transform: rotateX(8deg) rotateY(8deg) rotateZ(3deg) translateY(10px); }
.product-compact:hover .compact-visual img,.compact-visual:focus-visible img { transform: none; }
.visual-label { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: var(--tint); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.visual-label > span { display: grid; place-items: center; width: 30px; height: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; color: var(--accent); }
.compact-copy { padding: 30px 34px 32px; }
.app-heading { display: flex; gap: 15px; align-items: center; }
.app-icon { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; }
.app-heading h3 { font-size: 23px; }
.app-meta { color: var(--muted); font-size: 12px; margin-top: 5px; }
.product-compact .product-description { margin-top: 23px; }
.product-compact .product-actions { margin-top: 18px; }
.workflow { padding-top: 50px; }
.workflow-layout { display: grid; grid-template-columns: 1.65fr 1fr; gap: 60px; align-items: center; }
.workflow-preview { min-width: 0; }
.workflow-screen { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(150deg, var(--tint), var(--surface)); box-shadow: 0 5px 0 var(--line), 0 25px 45px #172b410d; perspective: 1200px; }
.workflow-preview img { width: 100%; height: auto; aspect-ratio: 1.53; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 12px 28px #172b4114; }
.workflow-preview figcaption { color: var(--muted); font-size: 12px; margin-top: 14px; }
.workflow-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: workflow; }
.workflow-steps li { padding: 18px 18px 14px 56px; border: 1px solid transparent; border-radius: 14px; position: relative; counter-increment: workflow; transition: background 180ms, border-color 180ms; }
.workflow-steps li::before { content: counter(workflow, decimal-leading-zero); position: absolute; left: 18px; top: 19px; font-family: ui-monospace, monospace; font-size: 13px; color: var(--accent); }
.workflow-steps li:has([aria-pressed="true"]:not([hidden])) { background: var(--surface); border-color: var(--line); box-shadow: 0 4px 0 var(--tint); }
.workflow-select { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; border: 0; background: transparent; color: var(--accent); font-size: 12px; }
.workflow-select[aria-pressed="true"] { font-weight: 650; }
.workflow-steps h3 { font-size: 18px; line-height: 1.4; font-weight: 600; }
.workflow-steps p { color: var(--muted); font-size: 14px; margin-top: 9px; }
.demo { margin-top: 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.demo summary { display: flex; align-items: center; justify-content: space-between; padding: 19px 24px; cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 550; list-style: none; }
.demo summary::-webkit-details-marker { display: none; }
.demo summary > span { font-size: 22px; line-height: 1; }
.demo[open] summary > span { transform: rotate(45deg); }
.demo-content { padding: 0 24px 20px; }
.demo video { display: block; width: 100%; height: auto; max-height: 620px; background: #121821; border-radius: 8px; }
.demo-content p { font-size: 13px; color: var(--muted); margin-top: 12px; }
.demo-content a { color: var(--accent); text-decoration: underline; }
.pricing { border-top: 1px solid var(--line); }
.price-list { padding: 0; }
.price-item { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 25px; padding: 28px 0; align-items: center; }
.price-product { display: flex; align-items: center; gap: 16px; }
.price-product img,.product-monogram { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; box-shadow: 2px 3px 0 var(--edge), 0 8px 15px #172b4112; }
.product-monogram { display: grid; place-items: center; background: #2459d3; color: #fff; font-size: 25px; font-weight: 600; }
.price-item + .price-item { border-top: 1px solid var(--line); }
.price-item h3 { font-size: 18px; font-weight: 600; }
.price-item strong { font-size: 16px; font-weight: 550; }
.price-item p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.builder { display: grid; grid-template-columns: 1fr 1.1fr; gap: 90px; padding: 56px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg,var(--tint),var(--surface)); box-shadow: 0 5px 0 var(--tint); margin: 20px 0; }
.builder-name { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.builder h2 { font-size: 34px; line-height: 1.45; font-weight: 650; letter-spacing: -1px; }
.builder-copy { align-self: center; font-size: 15px; color: var(--muted); }
.builder-copy p + p { margin-top: 18px; }
.updates { display: grid; grid-template-columns: 1fr 2fr; gap: 70px; padding: 95px 0; }
.updates-list article { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 22px; padding: 22px 0; }
.updates-list article:first-child { padding-top: 0; }
.updates-list article + article { border-top: 1px solid var(--line); }
.updates-list time { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); padding-top: 4px; }
.updates-list h3 { font-size: 16px; font-weight: 600; }
.updates-list p { font-size: 13px; margin-top: 7px; color: var(--muted); }
.updates-list a { color: var(--accent); }
.contact { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 44px; margin-bottom: 60px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); box-shadow: 0 5px 0 var(--line); max-width: 100%; }
.contact .contact-actions { flex-direction: column; align-items: stretch; gap: 8px; margin: 0; }
.contact .contact-actions .text-link { justify-content: center; }
.contact h2 { font-size: clamp(26px,3vw,38px); line-height: 1.45; letter-spacing: -1px; }
.contact p { font-size: 15px; color: var(--muted); margin-top: 16px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 30px; }
.site-footer { display: flex; gap: 25px; align-items: center; border-top: 1px solid var(--line); padding: 28px 0 38px; color: var(--muted); font-size: 12px; }
.site-footer > a:first-child { color: var(--ink); font-size: 20px; font-weight: 700; }
.site-footer > a:last-child { margin-left: auto; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-left: auto; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (prefers-color-scheme: dark) {
  :root { --paper: #11151c; --surface: #1a202b; --ink: #edf1f8; --muted: #a5b1c5; --accent: #8fb5ff; --accent-strong: #b1ccff; --line: #303a4b; --tint: #1c2739; --stage: #263e63; --edge: #405879; }
  .screen-edge { box-shadow: 15px 30px 45px #050a1470; }
}
@media (min-width: 1600px) { .intro { min-height: 700px; } .showroom-stage { height: 470px; } }
@media (max-width: 1100px) {
  .top-nav { gap: 20px; } .top-nav .nav-primary { display: none; }
  .intro { grid-template-columns: 1fr 1fr; gap: 12px; min-height: 570px; }
  .intro h1 { font-size: 38px; letter-spacing: -1.7px; }
  .showroom-stage { height: 350px; }
  .scene-tile { width: 68px; height: 68px; border-radius: 19px; }
  .tile-bluepen { width: 80px; height: 80px; bottom: 10%; }
  .showroom-switcher button { padding: 8px 11px; }
  .featured-copy { padding: 30px; }
  .compact-visual { height: 260px; padding: 28px 26px 54px; }
  .workflow-layout { gap: 30px; }
  .builder { gap: 40px; padding: 40px; }
  .updates { grid-template-columns: 1fr 2.4fr; gap: 35px; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 24px; }
  .site-header { height: auto; min-height: 100px; padding: 20px 22px 0; flex-direction: column; align-items: flex-start; gap: 12px; }
  .brand { font-size: 21px; } .brand-mark { width: 30px; height: 30px; font-size: 16px; }
  .top-nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 12px; }
  main,.site-footer { width: calc(100% - 44px); }
  .intro { grid-template-columns: 1fr; padding: 42px 0 38px; gap: 15px; min-height: auto; }
  .intro-copy { padding: 0; }
  .intro-author { font-size: 12px; margin-bottom: 20px; }
  .intro h1 { font-size: clamp(29px,7.6vw,48px); line-height: 1.35; letter-spacing: -1.5px; }
  .intro-description { font-size: 14px; margin-top: 18px; max-width: 25em; }
  .hero-cta { margin-top: 24px; }
  .showroom-stage { height: clamp(260px,68vw,420px); }
  .screen-stack { top: 18%; width: 82%; left: 9%; transform: rotateX(5deg) rotateY(-14deg) rotateZ(3deg); }
  .scene-tile { width: 60px; height: 60px; border-radius: 17px; padding: 6px; }
  .scene-tile img { border-radius: 12px; }
  .tile-search { top: 7%; right: 10%; }
  .tile-bluepen { width: 70px; height: 70px; bottom: 10%; left: 6%; }
  .showroom-info { margin: 0 6px 14px; }
  .showroom-info p span { font-size: 11px; }
  .showroom-switcher { width: 100%; }
  .showroom-switcher button { flex: 1; padding: 8px 5px; font-size: 11px; }
  .section { padding: 42px 0; }
  .section-heading { margin-bottom: 25px; }
  .section-heading h2 { font-size: 28px; }
  .section-heading p { font-size: 13px; }
  .product-grid,.product-featured,.workflow-layout,.builder,.updates { grid-template-columns: 1fr; }
  .product-grid { gap: 20px; }
  .product-featured { min-height: auto; }
  .featured-copy,.compact-copy { padding: 26px; }
  .product h3 { font-size: 24px; }
  .product-description { font-size: 18px; margin-top: 20px; }
  .product-detail { font-size: 13px; }
  .product-actions { gap: 18px; margin-top: 22px; }
  .featured-preview { padding: 24px 0 18px 24px; }
  .featured-preview > img { width: 100%; }
  .preview-caption { font-size: 11px; padding-top: 16px; }
  .compact-visual { height: clamp(225px,64vw,410px); padding: 25px 25px 54px; }
  .app-heading h3 { font-size: 22px; }
  .app-icon { width: 44px; height: 44px; }
  .text-link { font-size: 13px; }
  .workflow-layout { gap: 32px; }
  .workflow-steps { gap: 8px; }
  .workflow-screen { padding: 12px; border-radius: 14px; }
  .workflow-steps p { font-size: 13px; }
  .demo summary { padding: 15px 18px; }
  .demo-content { padding: 0 12px 12px; }
  .price-item { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .price-item strong { font-size: 14px; }
  .price-item .text-link { justify-self: start; }
  .builder { padding: 30px 26px; gap: 24px; }
  .builder h2 { font-size: 28px; }
  .builder-copy { font-size: 14px; }
  .updates { gap: 5px; }
  .updates-list article { grid-template-columns: 1fr; gap: 8px; }
  .contact { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; margin-bottom: 40px; }
  .contact .contact-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
  .contact h2 { font-size: 28px; }
  .contact p { font-size: 14px; }
  .site-footer { flex-wrap: wrap; gap: 12px; font-size: 11px; }
  .footer-links { width: 100%; justify-content: space-between; gap: 8px; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
  .scene-rotator,.screen-stack,.screen-edge { transform: none !important; }
  .scene-tile,.screen-back { display: none; }
  .featured-preview > img,.compact-visual img { transform: none; }
}
@supports not (transform-style: preserve-3d) {
  .screen-stack { transform: none; } .scene-tile,.screen-back { display: none; }
}

/* WebGL is an enhancement; the existing screenshot remains the static view. */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; pointer-events: none; transition: opacity 450ms; z-index: 1; touch-action: pan-y; }
.webgl-ready:not(.is-flat) .hero-canvas { opacity: 1; pointer-events: auto; }
.webgl-ready:not(.is-flat) .scene-rotator { visibility: hidden; }
.scene-controls { display: flex; align-items: center; gap: 20px; }
.scene-playback { display: flex; align-items: center; margin: 0; padding: 0; }
.scene-phase { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.scene-replay { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 0 6px 12px; border: 0; color: var(--accent); background: transparent; font-size: 12px; white-space: nowrap; }
.scene-replay span { font-size: 18px; }
.showroom-stage:has(.hero-canvas) { height: 430px; }
@media(min-width: 1600px) { .showroom-stage:has(.hero-canvas) { height: 480px; } }
@media(max-width: 1100px) { .showroom-stage:has(.hero-canvas) { height: 360px; } }
@media(max-width: 767px) {
  .showroom-stage:has(.hero-canvas) { height: clamp(270px, 75vw, 430px); }
  .scene-controls { gap: 12px; }
  .scene-phase,.scene-replay { font-size: 11px; }
}
@media(prefers-reduced-motion: reduce) { .hero-canvas { display: none; } }
