:root {
  color-scheme: dark;
  --font: Inter, system-ui, sans-serif;
  --glass-light: rgba(255,255,255,.06);
  --glass-medium: rgba(255,255,255,.09);
  --glass-blur: blur(48px) saturate(180%);
  --glass-blur-sm: blur(20px) saturate(160%);
  --border-card: rgba(128,128,128,.25);
  --accent: #0078d4;
  --accent-light: #60cdff;
  --t-primary: #fff;
  --t-secondary: rgba(255,255,255,.6);
  font-family: var(--font);
  color: var(--t-primary);
  background: #080c10;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, p, figure { margin: 0; }
body { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 6px; }
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: #151d28; padding: 15px; }
.skip-link:focus { top: 20px; }

/* Background recipe retained from the existing homepage. */
.bg-layer { position: fixed; inset: 0; z-index: -3; pointer-events: none; }
.bg-artwork { position: absolute; inset: -20%; background: radial-gradient(ellipse 80% 60% at 15% 20%,rgba(0,78,140,.7) 0%,transparent 60%),radial-gradient(ellipse 70% 80% at 85% 75%,rgba(60,20,100,.65) 0%,transparent 55%),radial-gradient(ellipse 60% 50% at 50% 50%,rgba(0,30,60,.5) 0%,transparent 70%),radial-gradient(ellipse 90% 40% at 70% 10%,rgba(0,40,80,.4) 0%,transparent 50%),#060a0e; }
.bg-glow { position: absolute; inset: 0; background: radial-gradient(circle 600px at 20% 30%,rgba(0,120,212,.12),transparent 70%),radial-gradient(circle 500px at 80% 70%,rgba(96,60,180,.10),transparent 70%),radial-gradient(circle 400px at 60% 20%,rgba(0,180,255,.07),transparent 60%); }
.bg-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 100% 100% at 50% 50%,transparent 40%,rgba(0,0,0,.7) 100%); }
.acrylic-root { position: fixed; inset: 0; z-index: -2; backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); background: rgba(8,12,16,.45); pointer-events: none; }
/* Shared site nav, identical to the other pages. */
.site-nav { position: fixed; top: calc(20px + var(--wh-maint-h, 0px)); left: 50%; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 16px; padding: 10px 20px; border-radius: 24px; background: var(--glass-light); backdrop-filter: var(--glass-blur-sm); -webkit-backdrop-filter: var(--glass-blur-sm); border: 1px solid rgba(96,205,255,.18); white-space: nowrap; max-width: calc(100vw - 48px); }
.nav-logo { display: flex; align-items: center; gap: 10px; margin-right: 16px; }
.nav-logo img { width: 28px; height: 28px; border-radius: 6px; }
.nav-logo span { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.nav-links, .nav-mobile { list-style: none; margin: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; padding: 0; }
.nav-links a { display: block; color: var(--t-secondary); font-size: 14px; padding: 6px 12px; border-radius: 6px; transition: all .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--t-primary); background: rgba(255,255,255,.08); }
.nav-divider { width: 1px; height: 20px; background: var(--border-card); margin: 0 8px; }
.nav-cta { display: flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 500; transition: all .15s ease; box-shadow: 0 0 20px rgba(0,120,212,.4); }
.nav-cta:hover { background: #1084d8; }
.btn-glass-nav { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 6px; background: var(--glass-light); color: var(--t-secondary); font-size: 13px; border: 1px solid var(--border-card); backdrop-filter: var(--glass-blur-sm); -webkit-backdrop-filter: var(--glass-blur-sm); transition: all .15s ease; }
.btn-glass-nav:hover { background: var(--glass-medium); color: var(--t-primary); }
.nav-hamburger { display: none; background: none; border: none; padding: 4px; margin-left: auto; }
.nav-mobile { display: none; position: fixed; top: calc(72px + var(--wh-maint-h, 0px)); left: 50%; transform: translateX(-50%); z-index: 99; background: rgba(12,16,20,.92); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid rgba(96,205,255,.18); border-radius: 12px; padding: 12px 8px; min-width: 200px; }
.nav-mobile.open { display: flex; flex-direction: column; gap: 2px; }
.nav-mobile a { display: block; color: var(--t-secondary); font-size: 14px; padding: 10px 16px; border-radius: 6px; transition: all .15s ease; }
.nav-mobile a:hover { color: var(--t-primary); background: rgba(255,255,255,.08); }
@media (max-width: 760px) {
  .site-nav { padding: 8px 16px; }
  .nav-links, .nav-divider, .btn-glass-nav, .nav-cta { display: none; }
  .nav-hamburger { display: block; }
}
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.wordmark img { border-radius: 6px; }
.button { display: inline-flex; align-items: center; gap: 23px; background: var(--accent); border-radius: 12px; padding: 15px 23px; font-size: 14px; font-weight: 500; }
.button:hover { background: #1387df; }
.chapter { position: relative; padding: 140px 6vw 90px; min-height: 100svh; }
.section-anchor { position: absolute; top: 0; left: 0; }
.chapter-copy { position: relative; z-index: 3; max-width: 620px; }
.chapter-copy h2 { font-size: clamp(36px,4.2vw,62px); line-height: 1.12; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.chapter-copy > p:not(.eyebrow) { margin-top: 24px; color: var(--t-secondary); line-height: 1.65; font-size: clamp(15px,1.2vw,18px); }
.eyebrow { color: var(--accent-light); margin-bottom: 20px; font-size: 13px; font-weight: 500; }
.hero-copy { text-align: center; margin: 0 auto; max-width: 1000px; }
h1 { font-size: clamp(48px,6.5vw,92px); font-weight: 600; letter-spacing: -.055em; line-height: 1.08; }
.hero-copy > p:not(.eyebrow) { font-size: clamp(16px,1.6vw,22px); margin: 19px auto 26px; max-width: 720px; }
.chapter-image, .demo-media { width: min(1100px,100%); height: auto; margin: 55px auto 0; border-radius: 12px; }
.fallback-device { border-radius: 0; }
.scroll-hint { display: flex; justify-content: center; gap: 20px; align-items: center; margin-top: 38px; color: var(--t-secondary); font-size: 12px; }
.scene-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.scene-links button { font-size: 12px; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); padding: 8px 0; background: none; color: var(--t-secondary); min-height: 38px; }
.scene-links button:hover, .scene-links button[aria-pressed="true"] { color: var(--accent-light); border-color: var(--accent-light); }
.scene-captions { display: grid; margin-top: 18px; color: var(--t-secondary); font-size: clamp(15px,1.2vw,18px); line-height: 1.65; }
.scene-captions > p { grid-area: 1 / 1; }
/* Reserve room for the longest caption so the demo stays still when tabs change. */
.scene-captions > p[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
#product-stage { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
#product-stage canvas { display: block; width: 100%; height: 100%; }
.motion-ready .chapter { height: 145svh; padding: 0 6vw; }
.motion-ready .chapter-copy { position: sticky; top: 31vh; width: 28vw; max-width: 430px; padding-bottom: 38vh; }
.motion-ready .chapter-copy h2 { font-size: clamp(34px,3.2vw,52px); }
.motion-ready .hero { height: 135svh; }
.motion-ready .hero-copy { position: relative; top: 135px; width: 100%; max-width: 1000px; padding-bottom: 0; }
.motion-ready .chapter-image { display: none; }
.motion-ready .demo-media { position: fixed; width: 1px; height: 1px; margin: 0; opacity: 0; left: 0; bottom: 0; pointer-events: none; }
.motion-ready .scroll-hint { position: absolute; top: calc(100svh - 70px); left: 0; width: 100%; margin: 0; z-index: 3; }
.playback-tools { position: fixed; bottom: 24px; right: 5vw; z-index: 15; display: flex; align-items: center; gap: 5px; padding: 6px 8px 6px 18px; border: 1px solid var(--border-card); border-radius: 24px; background: rgba(10,16,24,.55); backdrop-filter: var(--glass-blur-sm); -webkit-backdrop-filter: var(--glass-blur-sm); }
.playback-tools > span { font-size: 11px; color: var(--t-secondary); margin-right: 12px; }
.playback-tools button { min-width: 38px; min-height: 36px; border: 0; background: transparent; border-radius: 18px; font-size: 12px; }
.playback-tools button:hover { background: var(--glass-medium); }
#restart-demo, #expand-demo { font-size: 20px; }
.media-status { position: fixed; bottom: 82px; right: 5vw; max-width: 300px; z-index: 15; font-size: 12px; color: var(--t-secondary); }
.site-footer { position: relative; z-index: 4; padding: 40px 6vw; background: rgba(7,12,18,.9); border-top: 1px solid var(--border-card); font-size: 12px; color: var(--t-secondary); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; color: white; }
.footer-links, .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.footer-links { margin-bottom: 26px; }
.footer-links a, .footer-bottom a { padding-block: 8px; }
.site-footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid var(--border-card); padding-top: 18px; font-size: 11px; }
.footer-bottom > span { margin-right: auto; }
#demo-dialog { width: min(96vw,1600px); padding: 0; max-height: 95dvh; border: 1px solid var(--border-card); border-radius: 12px; background: #0a0f15; color: white; }
#demo-dialog::backdrop { background: rgba(2,5,10,.9); }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.dialog-bar h2 { font-size: 15px; font-weight: 500; }
.dialog-bar button { background: var(--glass-medium); border: 1px solid var(--border-card); padding: 12px 18px; border-radius: 20px; }
#expanded-screen .demo-media { position: static; width: 100%; height: auto; max-height: calc(95dvh - 74px); opacity: 1; margin: 0; pointer-events: auto; border-radius: 0; }
@media (max-width: 800px) {
  .motion-ready .chapter-copy { width: 29vw; }
  .motion-ready .chapter-copy h2 { font-size: 35px; }
}
@media (max-width: 900px) {
  .wordmark { font-size: 14px; gap: 8px; }
  .wordmark img { width: 24px; height: 24px; }
  .chapter { padding: 120px 24px 70px; }
  .chapter-copy h2 { font-size: 38px; }
  .chapter-copy h2 br { display: none; }
  .hero-copy h1 { max-width: 340px; margin: auto; font-size: clamp(43px,12vw,66px); }
  .hero-copy > p:not(.eyebrow) { max-width: 280px; margin-inline: auto; }
  .button { padding: 14px 20px; font-size: 13px; }
  .motion-ready .chapter { height: 145svh; padding: 0 24px; }
  .motion-ready .chapter-copy { top: 112px; width: 100%; max-width: 430px; padding-bottom: 55vh; }
  .motion-ready .chapter-copy h2 { font-size: clamp(33px,8.8vw,46px); line-height: 1.12; max-width: 360px; }
  .motion-ready .chapter-copy > p:not(.eyebrow) { margin-top: 16px; font-size: 14px; line-height: 1.6; }
  .motion-ready .hero-copy { top: 125px; padding-bottom: 0; text-align: center; }
  .motion-ready .hero-copy > p:not(.eyebrow) { font-size: 16px; margin-bottom: 23px; }
  .eyebrow { margin-bottom: 12px; font-size: 11px; }
  .scene-links { margin-top: 15px; gap: 6px 20px; }
  .scene-links button { font-size: 11px; min-height: 34px; }
  .scene-captions { margin-top: 12px; font-size: 14px; line-height: 1.6; }
  .playback-tools { bottom: 20px; left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap; padding-left: 14px; }
  .playback-tools button { min-width: 40px; min-height: 40px; }
  .playback-tools > span { font-size: 10px; margin-right: 3px; }
  .media-status { bottom: 83px; left: 24px; right: 24px; max-width: none; text-align: center; }
  .motion-ready .scroll-hint { top: calc(100svh - 125px); }
  .site-footer { padding: 30px 24px; }
  .footer-top { flex-wrap: wrap; }
  .footer-bottom > span { width: 100%; }
}
@media (max-height: 560px) and (min-width: 601px) {
  .motion-ready .chapter { padding: 0 5vw; }
  .motion-ready .chapter-copy { top: 100px; width: 32vw; max-width: 340px; padding-bottom: 30vh; }
  .motion-ready .chapter-copy h2 { font-size: clamp(25px,3.4vw,36px); }
  .motion-ready .hero-copy { top: 100px; width: 35vw; margin: 0; text-align: left; padding-bottom: 0; }
  .hero-copy h1 { font-size: clamp(30px,4.5vw,44px); max-width: none; }
  .motion-ready .hero-copy > p:not(.eyebrow) { font-size: 13px; margin: 14px 0 18px; max-width: 300px; }
  .hero-copy .button { font-size: 12px; padding: 12px 16px; }
  .motion-ready .scroll-hint { display: none; }
  .playback-tools { left: auto; right: 5vw; transform: none; bottom: 16px; }
  .eyebrow { margin-bottom: 12px; }
  .scene-links { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
