:root {
  --bg-base: #0a0a0c;
  /* Surfaces are translucent so the aurora, stars and meteors read through the cards.
     No backdrop blur: blurring an animated canvas under every card would cost a
     re-blur each frame. The sky is dark enough that plain alpha keeps text legible. */
  --bg-surface: rgba(16, 16, 20, 0.5);
  --bg-elevated: rgba(34, 34, 42, 0.5);
  --border-subtle: #24242b;
  --border-focus: #3b3b47;
  --accent-gold: #f2c14e;
  --accent-gold-soft: rgba(242, 193, 78, 0.15);
  --accent-blue: #4ea8f2;
  --text-main: #f3f3f5;
  --text-muted: #9c9ca8;
  --text-subtle: #676775;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient night sky: aurora (WebGL), starfield, twinkles, meteors (see sky-bg.js) */
.sky-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  contain: strict;
  background: linear-gradient(180deg, #070c15 0%, var(--bg-base) 85%);
}

.sky-bg > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sky-aurora {
  display: block;
}

/* One star tile, repeated down tall embedded pages (see sky-bg.js). */
.sky-stars {
  background-repeat: repeat-y;
  background-position: 0 0;
}

/* Invisible markers that tell the script which part of a tall page is on screen. */
.sky-bg > .sky-chunk {
  bottom: auto;
  visibility: hidden;
}

/* Static fallback when WebGL is unavailable: a soft green-violet glow up top. */
.sky-bg.no-webgl .sky-aurora {
  display: none;
}

.sky-bg.no-webgl::before {
  content: "";
  position: absolute;
  inset: -10% -10% 50% -10%;
  background:
    radial-gradient(60% 45% at 30% 30%, rgba(40, 255, 150, 0.08), transparent 70%),
    radial-gradient(50% 40% at 70% 15%, rgba(160, 80, 240, 0.07), transparent 70%);
}

.sky-twinkle {
  position: absolute;
  width: 2px;
  height: 2px;
  margin: -1px 0 0 -1px;
  border-radius: 50%;
  background: #eef4ff;
  box-shadow: 0 0 4px 1px rgba(205, 222, 255, 0.55);
  opacity: 0.35;
  animation: twinkle 4s ease-in-out infinite alternate;
}

.sky-twinkle.is-warm {
  background: #fff1dc;
  box-shadow: 0 0 4px 1px rgba(255, 214, 170, 0.5);
}

@keyframes twinkle {
  0%, 30% { opacity: 0.3; }
  100% { opacity: 0.95; }
}

.meteor,
.meteor-train {
  position: absolute;
  top: 0;
  left: 0;
  margin-top: -1px;
  opacity: 0;
  will-change: transform, opacity;
}

.meteor {
  width: var(--tail, 120px);
  height: 1.5px;
  margin-left: calc(var(--tail, 120px) * -1);
  transform-origin: 100% 50%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(190, 225, 255, 0) 0%, rgba(190, 225, 255, 0.45) 70%, #ffffff 100%);
}

.meteor::after {
  content: "";
  position: absolute;
  right: -1.5px;
  top: 50%;
  width: 3px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(200, 230, 255, 0.75);
}

.meteor.is-bright {
  height: 2px;
}

.meteor.is-bright::after {
  box-shadow: 0 0 9px 3px rgba(210, 240, 255, 0.85), 0 0 18px 6px rgba(120, 255, 190, 0.25);
}

.meteor-train {
  height: 2px;
  transform-origin: 0 50%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(150, 200, 255, 0), rgba(150, 230, 210, 0.5) 75%, rgba(150, 230, 210, 0));
}

.page-container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Typography & Eyebrows */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.section-title-wrap {
  margin-bottom: 36px;
}

.section-title-wrap h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 10px;
}

.section-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 68ch;
}

/* Badge Pill */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  margin-bottom: 18px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-gold);
}

/* Hero Section */
.hero-section {
  margin-bottom: 64px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 30%, #b8b8c2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-muted);
  max-width: 64ch;
  line-height: 1.55;
  margin-bottom: 32px;
}

/* Showcase Interactive Scrub Card */
.interactive-showcase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}

.showcase-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 4px;
}

.showcase-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.showcase-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.showcase-badges {
  display: flex;
  gap: 8px;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.tag-accent {
  color: var(--accent-gold);
  border-color: rgba(242, 193, 78, 0.3);
}

/* Scrub Video Player */
.scrub-player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: ew-resize;
  user-select: none;
  overflow: hidden;
}

.scrub-player-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Low-resolution copy shown only while dragging before the full film has downloaded. */
.scrub-player-container .scrub-proxy {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.scrub-player-container.is-proxy .scrub-proxy {
  opacity: 1;
}

.scrub-hint-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 12, 0.35);
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

/* Hidden hints stop animating entirely instead of bouncing invisibly forever. */
.scrub-hint-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.scrub-hint-overlay.is-hidden .hint-pulse {
  animation: none;
}

/* Solid fill instead of backdrop blur: a blurred backdrop under a moving element is
   re-rasterised every frame over a video, for no visible gain at 90% opacity. */
.hint-pulse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(18, 18, 21, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: floatBounce 2.5s ease-in-out infinite alternate;
}

@keyframes floatBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

/* Ground Effects Corner Badge */
.weather-pack-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  background: rgba(14, 14, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(242, 193, 78, 0.38);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.weather-pack-badge.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.weather-pack-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(242, 193, 78, 0.14);
  border: 1px solid rgba(242, 193, 78, 0.3);
  color: var(--accent-gold);
  flex-shrink: 0;
}

.weather-pack-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.weather-pack-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

.weather-pack-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-gold);
}

.scrubber-controls {
  padding: 16px 20px;
  background: transparent;
}

.timeline-bar-wrap {
  position: relative;
  margin-bottom: 14px;
}

input[type=range]#timeScrubber {
  width: 100%;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  height: 24px;
  position: relative;
  z-index: 2;
}

/* The track doubles as a download indicator: the gold tint fills as the full film
   arrives in the background (--loaded is set by app.js), then settles once it is local. */
input[type=range]#timeScrubber.is-local {
  --loaded: 0% !important;
}

input[type=range]#timeScrubber::-moz-range-track {
  height: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(242, 193, 78, 0.22) var(--loaded, 0%), var(--bg-elevated) var(--loaded, 0%));
}

input[type=range]#timeScrubber::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, rgba(242, 193, 78, 0.22) var(--loaded, 0%), var(--bg-elevated) var(--loaded, 0%));
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

input[type=range]#timeScrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 3px solid #121215;
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
  margin-top: -6px;
  transition: transform 0.15s var(--ease-spring);
}

input[type=range]#timeScrubber:active::-webkit-slider-thumb {
  transform: scale(1.2);
}

/* Preset Quick Jump Bar - Wrapped 5x3 Grid */
.timeline-presets-scroll {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.preset-chip {
  text-align: center;
  padding: 8px 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-chip:active {
  transform: scale(0.97);
}

.preset-chip:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
  background: rgba(48, 48, 58, 0.7);
}

.preset-chip.active {
  color: var(--bg-base);
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* 360 Panorama Viewer Section */
.pano-section {
  margin-bottom: 72px;
}

.pano-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pano-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: grab;
  user-select: none;
  touch-action: none;
  overflow: hidden;
}

.pano-stage:active {
  cursor: grabbing;
}

.pano-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.pano-controls {
  padding: 16px 20px;
  background: transparent;
  border-top: 1px solid var(--border-subtle);
}

/* Add-on vs Full Experience Comparison Card */
.hdri-compare-card {
  margin-top: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.hdri-compare-intro {
  margin-bottom: 22px;
}

.hdri-gift-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(78, 168, 242, 0.12);
  border: 1px solid rgba(78, 168, 242, 0.35);
  color: var(--accent-blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hdri-compare-intro h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.25;
}

.hdri-compare-intro p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.hdri-compare-intro strong {
  color: var(--text-main);
}

.hdri-vs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hdri-vs-col {
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.hdri-col-static {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.hdri-col-full {
  background: linear-gradient(165deg, rgba(242, 193, 78, 0.08) 0%, rgba(26, 26, 31, 0.45) 100%);
  border: 1px solid rgba(242, 193, 78, 0.4);
  box-shadow: inset 0 1px 0 rgba(242, 193, 78, 0.15);
}

/* Ground Effects: a separate product released later, so it reads as secondary. */
.hdri-col-later {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.hdri-col-later .vs-item svg {
  color: var(--text-muted);
}

.vs-col-header {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.vs-col-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  margin-bottom: 6px;
}

.vs-tag-gold {
  background: rgba(242, 193, 78, 0.18);
  color: var(--accent-gold);
}

.vs-col-header h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.vs-col-header p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.vs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.vs-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.vs-item strong {
  color: var(--text-main);
}

.vs-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.vs-item.positive svg {
  color: var(--accent-gold);
}

.vs-item.limitation svg {
  color: var(--text-subtle);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(242, 193, 78, 0.1);
  border: 1px solid rgba(242, 193, 78, 0.25);
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.card-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Feature Grid - Balanced 2x2 Layout */
.feature-pills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Interactive Before / After Sliders */
.comparisons-section {
  margin-bottom: 72px;
}

.comparisons-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.comparison-module {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.comp-header {
  margin-bottom: 16px;
}

.comp-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.comp-header p {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 72ch;
}

/* Split Image Slider Container */
.slider-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  user-select: none;
  cursor: ew-resize;
  border: 1px solid var(--border-subtle);
}

.slider-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slider-layer img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.slider-layer.after {
  z-index: 1;
}

.slider-layer.before {
  z-index: 2;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

/* Floating Badges */
.slider-badge {
  position: absolute;
  top: 14px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  z-index: 4;
  pointer-events: none;
}

.slider-badge.left {
  left: 14px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.slider-badge.right {
  right: 14px;
  background: rgba(242, 193, 78, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(242, 193, 78, 0.5);
}

/* The Draggable Divider Handle */
.slider-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: #ffffff;
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  color: #121215;
}

.slider-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.comp-bullets {
  margin-top: 16px;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.comp-bullets li {
  margin-bottom: 4px;
}

/* Celestial Mechanics Grid */
.celestial-section {
  margin-bottom: 72px;
}

.time-of-day-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.tod-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.tod-card .img-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
  background: #000;
}

.tod-card .img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tod-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.tod-card span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-gold);
}

.subsection-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.moon-phase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.moon-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.moon-frame {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
  background: #000;
}

.moon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.moon-card h4 {
  font-size: 15px;
  font-weight: 700;
}

.moon-card span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* Motion / Video Loops */
.motion-section {
  margin-bottom: 72px;
}

.motion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.motion-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: center;
}

.motion-card:last-child:nth-child(odd) .motion-media-frame {
  margin-bottom: 0;
}

.motion-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow: hidden;
}

.motion-media-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  margin-bottom: 12px;
}

.motion-media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.motion-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.motion-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Benchmarks */
.benchmark-section {
  margin-bottom: 72px;
}

.benchmark-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.bench-item {
  margin-bottom: 24px;
}

.bench-item:last-child {
  margin-bottom: 0;
}

.bench-header {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.bench-gain {
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 12px;
}

.bench-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 70px;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}

.bar-name {
  color: var(--text-muted);
}

.bar-track {
  height: 10px;
  background: var(--bg-elevated);
  border-radius: 5px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s var(--ease-spring);
}

.bar-fill.stock {
  background: #363640;
}

.bar-fill.ms {
  background: var(--accent-gold);
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.bar-val {
  font-family: var(--font-mono);
  text-align: right;
  color: var(--text-muted);
}

.bar-val.highlight {
  color: var(--accent-gold);
  font-weight: 700;
}

/* Setup Steps */
.setup-section {
  margin-bottom: 72px;
}

.setup-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-gold);
  opacity: 0.8;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
}

kbd {
  background: var(--bg-elevated);
  border: 1px solid var(--border-focus);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* FAQ Accordion */
.faq-section {
  margin-bottom: 64px;
}

.faq-accordion {
  border-top: 1px solid var(--border-subtle);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
}

.faq-item summary {
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent-gold);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-content {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.faq-content p + p {
  margin-top: 10px;
}

/* Footer */
.page-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
  text-align: center;
}

.brand-sub {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 8px;
}

.page-footer p {
  font-size: 13px;
  color: var(--text-subtle);
}

/* Responsive adjustments */
@media (max-width: 680px) {
  .page-container {
    padding: 24px 16px 60px;
  }
  .showcase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .timeline-presets-scroll {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-pills-grid,
  .time-of-day-grid,
  .moon-phase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .motion-grid,
  .setup-steps-grid,
  .hdri-vs-grid {
    grid-template-columns: 1fr;
  }
  .motion-card:last-child:nth-child(odd) {
    grid-template-columns: 1fr;
  }
  .bar-row {
    grid-template-columns: 85px 1fr 60px;
  }
}

.compile-note {
  max-width: 820px;
  margin: 0 auto 28px;
  padding: 16px 20px;
  background: var(--accent-gold-soft);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}
.compile-note strong { display: block; color: var(--accent-gold); margin-bottom: 4px; }

/* Panorama: dim slightly while a new sky decodes so the click visibly registered. */
.pano-stage canvas {
  transition: opacity 0.25s ease;
}

.pano-stage.is-loading canvas {
  opacity: 0.55;
}

/* Browser surfaces in the page's own palette */
::selection {
  background: rgba(242, 193, 78, 0.32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

.preset-chip:focus-visible {
  outline-offset: 2px;
}

.slider-stage:has(.slider-range-input:focus-visible) {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

html {
  scrollbar-color: #2e2e38 var(--bg-base);
  color-scheme: dark;
}

/* Skip layout and paint for long sections until they approach the viewport. */
.comparisons-section,
.celestial-section,
.motion-section,
.benchmark-section,
.setup-section,
.support-section,
.faq-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .sky-twinkle {
    opacity: 0.6;
  }
}

/* Hardware notice under the hero: GPU (NVIDIA OptiX) vs CPU fallback */
.gpu-notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: -8px 0 28px;
  padding: 18px 20px;
  max-width: 820px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.2), rgba(16, 16, 20, 0.6) 70%);
  border: 1px solid rgba(255, 92, 92, 0.7);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.gpu-notice-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 77, 77, 0.18);
  color: #ff6b6b;
}

.gpu-notice-title {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #ffb3b3;
  margin-bottom: 4px;
}

.gpu-notice-body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.gpu-notice-body p strong {
  color: var(--text-main);
}

.gpu-notice-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.gpu-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(34, 34, 42, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.gpu-chip span + span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: #c9c9d2;
}

.gpu-chip.is-fast {
  border-color: rgba(74, 222, 128, 0.7);
  background: rgba(74, 222, 128, 0.12);
  color: #d9fbe5;
}

.gpu-chip.is-fast span + span {
  color: #4ade80;
}

@media (max-width: 680px) {
  .gpu-notice {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
}

/* The slow path in the hardware notice reads in the warning colour. */
.gpu-chip:not(.is-fast) {
  border-color: rgba(255, 92, 92, 0.5);
  background: rgba(255, 77, 77, 0.1);
  color: #ffd0d0;
}

.gpu-chip:not(.is-fast) span + span {
  color: #ff8a8a;
}

.gpu-notice-kicker {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #c9353a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Launch support: how to report problems, with console-log steps */
.support-section {
  margin-bottom: 72px;
}

.support-section .section-lead strong {
  color: var(--text-main);
}

/* Two support phases: an intensive launch window, then long-term upkeep. */
.support-phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.support-phase {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.support-phase-launch {
  border-color: rgba(242, 193, 78, 0.5);
  background: linear-gradient(165deg, rgba(242, 193, 78, 0.12), var(--bg-surface) 70%);
}

.support-phase-when {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.support-phase-launch .support-phase-when {
  color: var(--accent-gold);
}

.support-phase h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.support-phase p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.support-card {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 16px;
}

.support-col {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.support-col-log {
  border-color: rgba(78, 168, 242, 0.45);
  background: linear-gradient(165deg, rgba(78, 168, 242, 0.1), var(--bg-surface) 70%);
}

.support-col h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.support-col p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.support-list,
.support-steps {
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.support-list li + li,
.support-steps li + li {
  margin-top: 8px;
}

.support-steps strong {
  color: var(--text-main);
}

.support-steps code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(34, 34, 42, 0.8);
  color: var(--text-main);
}

@media (max-width: 680px) {
  .support-phases,
  .support-card {
    grid-template-columns: 1fr;
  }
}

/* Auto tour of the hero film (app.js): a quiet corner badge replaces the centred hint
   while the film plays itself, so nothing covers the sky. */
.autoplay-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 9999px;
  background: rgba(14, 14, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.autoplay-badge svg {
  color: var(--accent-gold);
}

.is-autoplaying .autoplay-badge {
  display: inline-flex;
}

.is-autoplaying .scrub-hint-overlay {
  opacity: 0;
  visibility: hidden;
}

.is-autoplaying .scrub-hint-overlay .hint-pulse {
  animation: none;
}

/* Six feature cards: three across on desktop, two on tablets, one on phones. */
@media (max-width: 900px) {
  .feature-pills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-pills-grid { grid-template-columns: 1fr; }
}

/* Periodic "drag to explore" nudge during the auto tour: fades in, holds about a second,
   fades out (app.js restarts it every 5 s until the visitor takes control). */
.drag-nudge {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 9999px;
  background: rgba(14, 14, 18, 0.88);
  border: 1px solid rgba(242, 193, 78, 0.6);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  pointer-events: none;
}

.drag-nudge svg {
  color: var(--accent-gold);
}

.drag-nudge.is-showing {
  animation: dragNudge 1.6s var(--ease-snappy) both;
}

.drag-nudge.is-showing svg {
  animation: dragNudgeArrows 1.6s ease-in-out both;
}

@keyframes dragNudge {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.94); }
  18%, 78% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.97); }
}

@keyframes dragNudgeArrows {
  0%, 20% { transform: translateX(0); }
  40% { transform: translateX(-5px); }
  60% { transform: translateX(5px); }
  80%, 100% { transform: translateX(0); }
}
