/* Product-led spatial motion. All content has a complete static presentation. */
.stellar-hero { position: relative; isolation: isolate; overflow: clip; border-bottom: 1px solid var(--line); background: var(--bg); }
.stellar-universe { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 80% 48%, #244c7170, transparent 62%); }
.stellar-aura { position: absolute; width: 100%; height: 140%; right: -35%; top: -15%; border-radius: 50%; background: conic-gradient(from 80deg, transparent 10%, #6aaeff1a 25%, transparent 45%, #7ddbe81a 62%, transparent 80%); filter: blur(36px); }
.stellar-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: .72; }
.stellar-orbit { position: absolute; top: 0; left: 36%; width: 78%; aspect-ratio: 1; border: 1px solid #8abfff25; border-radius: 50%; transform: translate(var(--stellar-shift-x, 0px), var(--stellar-shift-y, 0px)) rotate(-28deg) scaleY(.5); }
.stellar-orbit::after { content: ""; position: absolute; inset: 10%; border: 1px solid #8abfff12; border-radius: 50%; }
.stellar-orbit-secondary { top: -5%; left: 42%; width: 72%; transform: rotate(35deg) scaleY(.62); border-color: #8abfff16; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 48px; padding-block: 96px 80px; }
.hero-copy h1 { font-size: clamp(48px, 4.7vw, 68px); margin-bottom: 28px; }
.hero-copy h1 .hero-line { display: block; overflow: clip; padding-bottom: .06em; }
.hero-line > span { display: block; transform-origin: left bottom; }
.hero-copy h1 .hero-line + .hero-line { color: var(--site-accent); }
.hero-copy .eyebrow { margin-bottom: 28px; }
.hero-subtitle { color: var(--text); font-size: 20px; margin-bottom: 12px; }
.hero-description { max-width: 520px; font-size: 16px; margin-bottom: 32px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; margin: 20px 0 0; }
.hero-note span { color: var(--site-control-border); }
.hero-product { min-width: 0; }
.product-stage { position: relative; perspective: 1400px; padding-block: 16px; }
.product-stage::before, .product-stage::after { content: ""; position: absolute; inset: 20px 0 68px; border: 1px solid #8abfff35; border-radius: 16px; background: #345d8010; pointer-events: none; }
.product-stage::before { transform: translate(18px, -12px) rotate(3deg); }
.product-stage::after { transform: translate(34px, -24px) rotate(6deg); opacity: .5; }
.product-stage-surface { position: relative; z-index: 1; transform: rotateX(var(--stage-rx, 5deg)) rotateY(var(--stage-ry, -9deg)) translateY(var(--stage-y, 0px)); transform-origin: center; }
.product-stage-surface:focus-within { transform: none !important; }
.hero-product .product-screenshot > a { position: relative; overflow: hidden; background: #142434; box-shadow: 0 28px 70px #0006; }
.hero-product .product-screenshot > a::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 20%, #cde8ff16 44%, #e1f1ff35 49%, transparent 62%); transform: translateX(-120%); }
.product-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 0 0 16px; font-size: 14px; color: var(--muted); }
.product-label > span:last-child { letter-spacing: .12em; }
.hero-product img { border-color: #8abfff66; }
.hero-scroll-link { gap: 12px; }
.scroll-cue { position: relative; display: block; width: 18px; height: 28px; border: 1px solid var(--site-control-border); border-radius: 10px; }
.scroll-cue::after { content: ""; position: absolute; top: 5px; left: 7px; width: 2px; height: 6px; background: var(--site-accent); border-radius: 2px; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; border-top: 1px solid var(--line); }
.hero-bottom > .text-link { color: var(--muted); font-size: 14px; }
.stellar-motion { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 12px; background: var(--bg); color: var(--muted); border: 1px solid var(--site-control-border); border-radius: 8px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.stellar-motion:hover { border-color: var(--site-accent); color: var(--text); }
.stellar-motion svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; }
.stellar-play-icon { display: none; }
.stellar-motion[aria-pressed="true"] .stellar-pause-icon { display: none; }
.stellar-motion[aria-pressed="true"] .stellar-play-icon { display: block; }

/* The same screenshot is enlarged to follow the actual feature being read. */
.workspace-story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; gap: 64px; }
.workspace-preview { margin: 0; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.workspace-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.workspace-preview-heading .eyebrow { margin: 0; letter-spacing: .04em; }
.workspace-count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.workspace-viewport { position: relative; display: block; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: #112637; }
.workspace-viewport img { width: 100%; height: 100%; object-fit: cover; }
.workspace-track { height: 2px; background: var(--line); margin-top: 24px; overflow: hidden; }
.workspace-track > span { display: block; height: 100%; background: var(--site-accent); transform: scaleX(var(--story-progress, .25)); transform-origin: left; }
.workspace-preview figcaption { display: grid; grid-template-columns: 1fr; gap: 8px; padding-top: 20px; color: var(--muted); font-size: 14px; }
.workspace-current { color: var(--text); font-size: 16px; min-height: 1.75em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-preview figcaption .text-link { justify-self: start; min-height: 44px; }
.workspace-chapters { list-style: none; padding: 0; margin: 0; counter-reset: workspace-step; }
.workspace-chapter { position: relative; counter-increment: workspace-step; padding: 32px 0; border-top: 1px solid var(--line); }
.workspace-chapter:first-child { padding-top: 0; border-top: 0; }
.workspace-chapter-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.workspace-step { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); }
.workspace-step::before { content: counter(workspace-step, decimal-leading-zero); }
.workspace-chapter .feature-symbol { margin: 0; width: 40px; height: 40px; }
.workspace-chapter h3 { font-size: 24px; margin-bottom: 16px; }
.workspace-chapter p { margin-bottom: 0; }
.workspace-chapter-detail { margin-top: 20px; padding-left: 20px; border-left: 2px solid var(--line); font-size: 16px; }
.workspace-chapter-detail p + p { margin-top: 12px; }
.workspace-chapter[data-active="true"] .workspace-step { color: var(--site-accent); }
.workspace-chapter[data-active="true"] .workspace-chapter-detail { border-color: var(--site-accent); }

@media (min-width: 1024px) and (min-height: 760px) {
  .workspace-preview { position: sticky; top: calc(var(--header-offset, 72px) + 32px); }
  .workspace-chapter { min-height: 330px; display: flex; align-items: center; padding-block: 48px; }
  .workspace-chapter > article { width: 100%; }
  .workspace-chapter:first-child { padding-top: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  html[data-site-motion="on"] .stellar-aura { animation: stellar-aura 24s linear infinite paused; }
  html[data-site-motion="on"] .scroll-cue::after { animation: scroll-cue 2s cubic-bezier(.25, .1, .25, 1) infinite paused; }
  html[data-site-motion="on"] .stellar-hero[data-motion="running"] .stellar-aura,
  html[data-site-motion="on"] .stellar-hero[data-motion="running"] .scroll-cue::after { animation-play-state: running; }
  html[data-site-motion="on"] .hero-product .product-screenshot > a::after { animation: product-glint 1500ms 250ms both; }
  html[data-site-motion="on"] .workspace-track > span { transition: transform 800ms cubic-bezier(.22, 1, .36, 1); }
  html[data-site-motion="on"] .workspace-story[data-enhanced="true"] .workspace-viewport img { transition: transform 1100ms cubic-bezier(.22, 1, .36, 1); }
  html[data-site-motion="on"] .workspace-story[data-enhanced="true"][data-scene="grid"] .workspace-viewport img { transform: scale(1.48); transform-origin: 34% 20%; }
  html[data-site-motion="on"] .workspace-story[data-enhanced="true"][data-scene="clock"] .workspace-viewport img { transform: scale(1.72); transform-origin: 100% 5%; }
  html[data-site-motion="on"] .workspace-story[data-enhanced="true"][data-scene="spark"] .workspace-viewport img { transform: scale(1.28); transform-origin: 40% 92%; }
  .workspace-viewport:focus img { transform: none !important; transition: none !important; }
}
@keyframes stellar-aura { to { transform: rotate(360deg); } }
@keyframes scroll-cue { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(8px); opacity: 1; } }
@keyframes product-glint { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

@media (min-width: 1800px) {
  .home-hero-grid { padding-block: 112px 80px; }
}
@media (max-width: 1199px) {
  .home-hero-grid { gap: 32px; }
  .hero-copy h1 { font-size: 56px; }
  .workspace-story { gap: 40px; }
}
@media (max-width: 1023px) {
  .home-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 64px 32px; }
  .hero-copy { max-width: 720px; }
  .hero-copy h1 { font-size: 52px; }
  .hero-copy h1 .hero-line { display: block; }
  .hero-description { max-width: 620px; }
  .hero-product { width: 100%; }
  .product-stage-surface { transform: none; }
  .product-stage::before { transform: translate(8px, -8px) rotate(1deg); }
  .product-stage::after { display: none; }
  .workspace-story { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .workspace-preview { position: static; max-width: 720px; width: 100%; }
  .workspace-chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .workspace-chapter, .workspace-chapter:first-child { padding: 24px 0 0; border-top: 1px solid var(--line); }
  .stellar-orbit { top: 10%; left: 20%; width: 100%; }
}
@media (max-width: 639px) {
  .home-hero-grid { padding-block: 48px 24px; gap: 36px; }
  .hero-copy h1 { font-size: clamp(32px, 8.5vw, 40px); margin-bottom: 24px; }
  .hero-copy .eyebrow { margin-bottom: 24px; letter-spacing: .04em; }
  .hero-subtitle { font-size: 18px; }
  .hero-description { margin-bottom: 24px; }
  .hero-note { gap: 8px; }
  .product-label { gap: 8px; padding-bottom: 12px; }
  .hero-bottom { flex-wrap: wrap; gap: 8px 16px; padding-block: 16px; }
  .hero-bottom > .text-link { flex: 1 1 180px; }
  .stellar-orbit { width: 160%; left: 0; top: 24%; }
  .stellar-aura { filter: blur(24px); }
  .product-stage { padding-top: 8px; }
  .product-stage::before { inset: 12px 0 68px; }
  .workspace-preview { padding: 20px; }
  .workspace-preview-heading { flex-wrap: wrap; }
  .workspace-chapters { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .workspace-chapter-meta { margin-bottom: 16px; }
  .workspace-chapter h3 { font-size: 22px; }
}
@media (max-height: 650px) and (min-width: 1024px) {
  .home-hero-grid { padding-block: 40px 24px; }
  .hero-copy h1 { font-size: 56px; }
  .hero-copy .eyebrow { margin-bottom: 16px; }
  .hero-description { margin-bottom: 24px; }
  .hero-bottom { padding-block: 12px; }
}
@media (forced-colors: active) {
  .stellar-universe, .product-stage::before, .product-stage::after, .scroll-cue { display: none; }
}
html[data-site-motion="off"] .product-stage-surface { transform: none; }
@media (prefers-reduced-motion: reduce) { .product-stage-surface { transform: none; } }
