:root {
  --font-sans: "Google Sans Flex", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Google Sans Flex", "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-wordmark: "Google Sans Flex", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-win11: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Cascadia Code", "Cascadia Mono", Consolas, ui-monospace, SFMono-Regular, monospace;

  /* Deep twilight river-navy base matching the animated pixel-art river skyline */
  --bg-base: #0b1622;

  /* WinUI 3 Fluent glass cards over noisy gradient */
  --bg-card: rgba(19, 34, 50, 0.56);
  --bg-card-hover: rgba(25, 44, 64, 0.68);
  --bg-control: rgba(255, 255, 255, 0.068);
  --bg-control-hover: rgba(255, 255, 255, 0.105);
  --bg-control-active: rgba(255, 255, 255, 0.042);
  --bg-code: rgba(7, 15, 24, 0.56);

  --stroke-card: rgba(255, 255, 255, 0.088);
  --stroke-card-top: rgba(255, 255, 255, 0.135);
  --stroke-control: rgba(255, 255, 255, 0.10);
  --stroke-control-bevel: rgba(255, 255, 255, 0.16);
  --stroke-divider: rgba(255, 255, 255, 0.085);

  --text-primary: #f3f7fb;
  --text-secondary: rgba(226, 238, 249, 0.78);
  --text-muted: rgba(198, 217, 235, 0.56);

  /* WinUI 3 Windows 11 Dark Accent */
  --accent: #4cc2ff;
  --accent-hover: #6cd0ff;
  --accent-pressed: #37a8e6;
  --accent-fg: #0a0a0a;
  --accent-soft: rgba(76, 194, 255, 0.14);
  --warm-tint: #f4df9e;
  --success: #6ccb5f;

  /* Exact DimDock WinUI 3 Flyout & Menu Surfaces (Dark default) */
  --flyout-text: #ffffff;
  --flyout-text-secondary: rgba(255, 255, 255, 0.773);
  --flyout-text-muted: rgba(255, 255, 255, 0.529);
  --flyout-body: rgba(42, 42, 42, 0.86);
  --flyout-divider: rgba(25, 25, 25, 0.92);
  --flyout-footer: rgba(31, 31, 31, 0.90);
  --flyout-border: rgba(255, 255, 255, 0.10);
  --flyout-shadow: 0 24px 52px rgba(0, 0, 0, 0.56), 0 4px 12px rgba(0, 0, 0, 0.36);

  --menu-bg: rgba(44, 44, 44, 0.95);
  --menu-border: rgba(255, 255, 255, 0.125);
  --menu-hover: rgba(255, 255, 255, 0.08);

  --slider-track: rgba(255, 255, 255, 0.545);
  --slider-thumb-bg: #454545;
  --slider-thumb-border: rgba(255, 255, 255, 0.071);

  --taskbar-bg: rgba(28, 30, 36, 0.86);
  --taskbar-border: rgba(255, 255, 255, 0.09);
  --stage-brightness: 0.92;

  --radius-control: 6px;
  --radius-card: 12px;
  --radius-flyout: 8px;
}

/* Optional Light mode inside the interactive Windows 11 preview stage */
.desktop-stage[data-flyout-theme="light"] {
  --accent: #005fb8;
  --accent-fg: #ffffff;
  --flyout-text: #1b1b1b;
  --flyout-text-secondary: rgba(0, 0, 0, 0.72);
  --flyout-text-muted: rgba(0, 0, 0, 0.53);
  --flyout-body: rgba(243, 243, 243, 0.88);
  --flyout-divider: rgba(0, 0, 0, 0.09);
  --flyout-footer: rgba(232, 232, 232, 0.90);
  --flyout-border: rgba(0, 0, 0, 0.10);
  --flyout-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 4px 10px rgba(0, 0, 0, 0.14);

  --menu-bg: rgba(249, 249, 249, 0.96);
  --menu-border: rgba(0, 0, 0, 0.10);
  --menu-hover: rgba(0, 0, 0, 0.055);

  --slider-track: rgba(0, 0, 0, 0.36);
  --slider-thumb-bg: #ffffff;
  --slider-thumb-border: rgba(0, 0, 0, 0.14);

  --taskbar-bg: rgba(243, 243, 243, 0.88);
  --taskbar-border: rgba(0, 0, 0, 0.09);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Top scroll progress hairline */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  pointer-events: none;
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  background: linear-gradient(90deg, rgba(76, 194, 255, 0.45) 0%, var(--accent) 78%, #cceeff 100%);
  box-shadow: 0 0 12px rgba(76, 194, 255, 0.55);
  transition: opacity 240ms ease;
  will-change: transform;
}

html.is-scrolled .scroll-progress {
  opacity: 1;
}

/* Deep river-teal & skyline steel-blue gradient echoing pixel_art_river.gif */
.site-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(50% 44% at 84% 68%, rgba(76, 194, 255, 0.09), transparent 72%),
    radial-gradient(54% 48% at 16% 78%, rgba(28, 72, 102, 0.22), transparent 74%),
    radial-gradient(36% 28% at 48% 92%, rgba(244, 223, 158, 0.04), transparent 70%),
    linear-gradient(180deg, #0b1622 0%, #0b1622 36%, #0f1e2e 72%, #0a141f 100%);
}

/* Noisy grain texture (Frame 1_1.png) layered smoothly across the entire site background */
.site-grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: url("./grain.png");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.085;
  mix-blend-mode: overlay;
}

/* Main content sits opaquely above the fixed footer backdrop so the footer surface
   only shows from the footer border downward, extending seamlessly into mobile overscroll */
main {
  position: relative;
  z-index: 2;
  padding-bottom: 32px;
  background:
    radial-gradient(50% 44% at 84% 68%, rgba(76, 194, 255, 0.09), transparent 72%),
    radial-gradient(54% 48% at 16% 78%, rgba(28, 72, 102, 0.22), transparent 74%),
    radial-gradient(36% 28% at 48% 92%, rgba(244, 223, 158, 0.04), transparent 70%),
    linear-gradient(180deg, #0b1622 0%, #0b1622 36%, #0f1e2e 72%, #0a141f 100%);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.footer-brand-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.brand-wordmark {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.015em;
  line-height: 1;
}

/* WinUI 3 Rounded Hero Buttons */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-control);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 130ms ease, border-color 130ms ease, transform 130ms ease, color 130ms ease;
  user-select: none;
}

.pill-white {
  background: #ffffff;
  color: #0b0f17;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.pill-white:hover {
  background: #eaf2fb;
  transform: translateY(-1px);
}

.pill-white:active {
  transform: translateY(0);
}

.pill-glass {
  background: rgba(18, 22, 31, 0.62);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pill-glass:hover {
  background: rgba(28, 34, 46, 0.78);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.pill-glass:active {
  transform: translateY(0);
}

/* Full-bleed Pixel Art Hero that smoothly transitions into the noisy gradient background */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 96px 0 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url("./hero-bg.gif");
  background-size: cover;
  background-position: center center;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: brightness(0.95) contrast(1.02);
  transition: filter 140ms linear;
}

/* Live 1:1 art-pixel transition layers locked to hero-bg.gif's 500x288 grid */
.hero-water-tint,
.hero-water-blend {
  position: absolute;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Multiply layer darkens the live GIF frames directly so real water ripples animate right through the fade */
.hero-water-tint {
  mix-blend-mode: multiply;
}

/* Light atmospheric glaze: subtle left readability gradient while keeping the river reflections bright down to the pixel fade */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 21, 33, 0.28) 0%, rgba(11, 22, 34, 0.05) 30%, rgba(11, 22, 34, 0.06) 80%, rgba(11, 22, 34, 0.16) 100%),
    linear-gradient(90deg, rgba(9, 20, 32, 0.42) 0%, rgba(9, 20, 32, 0.18) 48%, rgba(9, 20, 32, 0.02) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 534px);
  align-items: center;
  gap: 44px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-wordmark);
  font-weight: 500;
  font-size: clamp(46px, 6.2vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 10px 34px rgba(7, 14, 22, 0.5);
}

.hero-subtitle {
  margin: 0 0 10px;
  max-width: 470px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.38;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(7, 10, 18, 0.65);
}

.hero-desc {
  margin: 0 0 26px;
  max-width: 460px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(235, 240, 250, 0.8);
  text-shadow: 0 2px 12px rgba(7, 10, 18, 0.65);
}

.hero-cta-group {
  display: inline-flex;
  flex-direction: column;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  gap: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.hero-screenshot-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  perspective: 1200px;
}

/* Live WinUI 3 Dark Acrylic 3-monitor hero panel:
   Replicates Windows 11 Control Center Acrylic (DWMSBT_TRANSIENTWINDOW):
   contrast(<1) lifts dark floors and compresses highlights like WinUI's Luminosity blend,
   keeping dark areas lifted to native #262b30 charcoal instead of crushing to black */
.dim-flyout.hero-flyout {
  --s: 1.5;
  --hero-rx: 2.2deg;
  --hero-ry: -7.5deg;
  --hero-sheen-x: 32%;
  --hero-sheen-y: 22%;
  --hero-shadow-x: 16px;
  --hero-shadow-y: 28px;
  position: relative;
  width: 100%;
  max-width: calc(356px * var(--s));
  border-radius: calc(var(--radius-flyout) * var(--s));
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: transparent;
  backdrop-filter: blur(22px) saturate(0.68) contrast(0.88) brightness(0.76);
  -webkit-backdrop-filter: blur(22px) saturate(0.68) contrast(0.88) brightness(0.76);
  box-shadow:
    var(--hero-shadow-x) var(--hero-shadow-y) 56px rgba(0, 0, 0, 0.48),
    4px 8px 20px rgba(0, 0, 0, 0.30),
    inset 0 1px 1px rgba(255, 255, 255, 0.03);
  transform: rotateX(var(--hero-rx)) rotateY(var(--hero-ry));
  transform-origin: center center;
  will-change: transform;
  animation: none;
}

.hero-flyout-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    520px circle at var(--hero-sheen-x) var(--hero-sheen-y),
    rgba(255, 255, 255, 0.022),
    rgba(255, 255, 255, 0.005) 45%,
    transparent 72%
  );
}

.dim-flyout.hero-flyout .dim-flyout-body {
  background: rgba(44, 44, 44, 0.26);
}

.dim-flyout.hero-flyout .acrylic-noise {
  opacity: 0.024;
}

.dim-flyout.hero-flyout .dim-flyout-divider {
  background: rgba(16, 16, 16, 0.38);
  box-shadow: none;
}

.dim-flyout.hero-flyout .dim-flyout-footer {
  background: rgba(28, 28, 28, 0.38);
}

/* Frosted WinGet bar matched to the exact width of the hero buttons */
.hero-winget-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  gap: 6px;
}

.hero-winget {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 5px 5px 5px 14px;
  border-radius: 8px;
  background: rgba(13, 19, 29, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 240ms ease, box-shadow 260ms ease;
}

.hero-winget.is-pending,
.winget-command-row.is-pending {
  background: rgba(13, 19, 29, 0.44);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  cursor: not-allowed;
}

.hero-winget.is-pending .winget-prompt,
.winget-command-row.is-pending .winget-prompt {
  color: rgba(198, 217, 235, 0.34);
}

.hero-winget.is-pending .winget-code,
.winget-command-row.is-pending .winget-code {
  color: rgba(198, 217, 235, 0.42);
  user-select: none;
}

.hero-winget.is-pending .copy-btn,
.winget-command-row.is-pending .copy-btn {
  background-color: rgba(24, 31, 40, 0.56);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  color: rgba(198, 217, 235, 0.36);
  cursor: not-allowed;
}

.hero-winget.is-pending .copy-btn:hover,
.winget-command-row.is-pending .copy-btn:hover {
  background-color: rgba(24, 31, 40, 0.56);
  border-color: rgba(255, 255, 255, 0.07);
}

.hero-winget.is-pending .copy-btn:active,
.winget-command-row.is-pending .copy-btn:active {
  transform: none;
}

.winget-pending-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(214, 228, 242, 0.62);
}

.hero-winget-group .winget-pending-note {
  width: 0;
  min-width: 100%;
  padding-left: 2px;
  text-shadow: 0 1px 8px rgba(7, 10, 18, 0.6);
}

.install-block .winget-pending-note {
  margin-top: 7px;
  color: var(--text-muted);
}

.hero-winget .winget-code {
  flex: 1;
  min-width: 0;
  padding-right: 78px;
}

.hero-winget.is-copied,
.winget-command-row.is-copied {
  border-color: rgba(108, 203, 95, 0.42);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(108, 203, 95, 0.14),
    0 0 22px rgba(108, 203, 95, 0.12);
}

.winget-sweep {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.winget-sweep::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 18%,
    rgba(108, 203, 95, 0.09) 38%,
    rgba(183, 245, 173, 0.24) 50%,
    rgba(76, 194, 255, 0.13) 62%,
    transparent 80%
  );
  transform: translateX(-115%);
  opacity: 0;
}

.is-copy-pulse .winget-sweep::after {
  animation: wingetSweep 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wingetSweep {
  0% {
    transform: translateX(-115%);
    opacity: 0.95;
  }
  100% {
    transform: translateX(115%);
    opacity: 0;
  }
}

.hero-winget > :not(.winget-sweep):not(.copy-btn),
.winget-command-row > :not(.winget-sweep):not(.copy-btn) {
  position: relative;
  z-index: 1;
}

.winget-prompt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--warm-tint);
  user-select: none;
  transition: color 220ms ease, transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.is-copied > .winget-prompt {
  color: var(--success);
  transform: translateX(1px);
}

.winget-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  transition: color 220ms ease;
}

.is-copy-pulse > .winget-code {
  animation: wingetCodeFlash 480ms ease;
}

@keyframes wingetCodeFlash {
  0% {
    color: var(--text-primary);
  }
  30% {
    color: #d8ffcf;
  }
  100% {
    color: var(--text-primary);
  }
}

.winget-code::-webkit-scrollbar {
  display: none;
}

.copy-btn {
  position: absolute;
  right: 5px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border-radius: 5px;
  background-color: rgba(31, 39, 48, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    -10px 0 14px rgba(7, 15, 24, 0.78),
    0 2px 8px rgba(0, 0, 0, 0.28);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.copy-btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1.5px solid var(--success);
  opacity: 0;
  pointer-events: none;
}

.copy-btn:hover {
  background-color: rgba(46, 54, 62, 0.97);
  border-color: rgba(255, 255, 255, 0.22);
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-icon-stack {
  position: relative;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.copy-btn .copy-icon,
.copy-btn .check-icon {
  position: absolute;
  inset: 0;
  width: 12px;
  height: 12px;
  display: block;
}

.copy-btn .copy-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  filter: blur(0);
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    filter 180ms ease;
}

.copy-btn .check-icon {
  color: var(--success);
  opacity: 0;
  transform: scale(0.55) rotate(-18deg);
  transition:
    transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 180ms ease;
}

.copy-btn .check-icon path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.copy-label-stack {
  position: relative;
  display: inline-block;
  height: 17px;
  width: var(--copy-w, auto);
  overflow: hidden;
  transition: width 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.copy-label {
  display: inline-block;
  width: max-content;
  line-height: 17px;
  white-space: nowrap;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    filter 220ms ease,
    color 200ms ease;
}

.copy-label-default {
  position: relative;
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

.copy-label-done {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(105%);
  opacity: 0;
  filter: blur(2px);
  color: #b7f5ad;
}

.copy-btn.is-copied .copy-label-stack {
  width: var(--copied-w, auto);
}

.copy-btn.is-copied {
  background-color: rgba(25, 48, 39, 0.97);
  border-color: rgba(108, 203, 95, 0.54);
  box-shadow:
    -12px 0 18px rgba(7, 15, 24, 0.88),
    0 0 0 1px rgba(108, 203, 95, 0.14),
    0 4px 16px rgba(108, 203, 95, 0.22),
    inset 0 1px 0 rgba(183, 245, 173, 0.22);
}

.copy-btn.is-copied:hover {
  background-color: rgba(31, 59, 43, 0.98);
  border-color: rgba(108, 203, 95, 0.66);
}

.copy-btn.is-copied .copy-icon {
  opacity: 0;
  transform: scale(0.55) rotate(14deg);
  filter: blur(1.5px);
}

.copy-btn.is-copied .check-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.copy-btn.is-copied .check-icon path {
  stroke-dashoffset: 0;
}

.copy-btn.is-copy-pulse .check-icon path {
  animation: checkDraw 340ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both;
}

.copy-btn.is-copied .copy-label-default {
  transform: translateY(-105%);
  opacity: 0;
  filter: blur(2px);
}

.copy-btn.is-copied .copy-label-done {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

.copy-btn.is-copy-pulse {
  animation: copyBtnPop 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.copy-btn.is-copy-pulse::after {
  animation: copyBtnRing 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes checkDraw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes copyBtnPop {
  0% {
    transform: scale(0.94);
  }
  45% {
    transform: scale(1.045);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes copyBtnRing {
  0% {
    opacity: 0.78;
    transform: scale(0.98);
  }
  100% {
    opacity: 0;
    transform: scale(1.22, 1.48);
  }
}

.copy-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--spark-size, 4px);
  height: var(--spark-size, 4px);
  border-radius: 1px;
  background: var(--spark-color, var(--success));
  box-shadow: 0 0 6px var(--spark-color, var(--success));
  pointer-events: none;
  z-index: 4;
  transform: translate(-50%, -50%);
  animation: copySparkBurst var(--spark-dur, 520ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes copySparkBurst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(var(--sx0, 0px), var(--sy0, 0px)) scale(1.1);
  }
  70% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--sx1, 0px), var(--sy1, 0px)) scale(0.25);
  }
}

/* Sections below hero */
.section {
  position: relative;
  z-index: 2;
  padding: 52px 0;
}

.preview-section {
  padding-top: 24px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2,
.preview-copy h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p,
.preview-copy p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Looping App Demo Video */
.demo-card {
  padding: 20px;
}

.demo-video-frame {
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #070f18;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.28);
  transition: opacity 640ms cubic-bezier(0.16, 1, 0.3, 1), transform 680ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 320ms ease, border-color 240ms ease;
}

/* Authentic DimDock WinUI 3 Acrylic Flyout */
.dim-flyout {
  --s: 1;
  width: 100%;
  max-width: calc(356px * var(--s));
  font-family: var(--font-win11);
  border-radius: calc(var(--radius-flyout) * var(--s));
  overflow: hidden;
  border: 1px solid var(--flyout-border);
  box-shadow: var(--flyout-shadow);
  backdrop-filter: blur(32px) saturate(135%);
  -webkit-backdrop-filter: blur(32px) saturate(135%);
  animation: flyoutIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes flyoutIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dim-flyout-body {
  position: relative;
  background: var(--flyout-body);
  padding: calc(18px * var(--s)) calc(20px * var(--s)) calc(6px * var(--s));
}

.acrylic-noise {
  position: absolute;
  inset: 0;
  background-image: url("./noise.png");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.025;
  pointer-events: none;
}

.monitor-list {
  position: relative;
  z-index: 1;
}

.monitor-row {
  margin-bottom: calc(12px * var(--s));
}

.monitor-header {
  display: flex;
  align-items: center;
  height: calc(22px * var(--s));
  gap: calc(10px * var(--s));
  margin-bottom: calc(4px * var(--s));
}

.monitor-glyph {
  width: calc(20px * var(--s));
  height: calc(20px * var(--s));
  display: block;
  color: var(--flyout-text);
  flex-shrink: 0;
}

.monitor-name {
  font-size: calc(14.5px * var(--s));
  font-weight: 400;
  line-height: calc(22px * var(--s));
  color: var(--flyout-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slider-row {
  display: grid;
  grid-template-columns: 1fr calc(46px * var(--s));
  align-items: center;
  gap: calc(2px * var(--s));
  padding-left: calc(2px * var(--s));
}

/* Authentic WinUI 3 Fluent Slider */
.fluent-slider {
  position: relative;
  height: calc(28px * var(--s));
  display: flex;
  align-items: center;
}

.fluent-slider-track {
  position: relative;
  width: 100%;
  height: calc(4px * var(--s));
  border-radius: calc(2px * var(--s));
  background: var(--slider-track);
  overflow: hidden;
}

.fluent-slider-fill {
  height: 100%;
  width: 75%;
  border-radius: calc(2px * var(--s));
  background: var(--accent);
}

.fluent-slider-thumb {
  position: absolute;
  top: 50%;
  left: 75%;
  width: calc(20px * var(--s));
  height: calc(20px * var(--s));
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--slider-thumb-bg);
  border: 1px solid var(--slider-thumb-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.fluent-slider-dot {
  width: calc(12px * var(--s));
  height: calc(12px * var(--s));
  border-radius: 50%;
  background: var(--accent);
  transition: transform 110ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fluent-slider:hover .fluent-slider-dot {
  transform: scale(1.167);
}

.fluent-slider.is-active .fluent-slider-dot {
  transform: scale(0.833);
}

.fluent-slider-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.monitor-value {
  text-align: right;
  font-size: calc(20px * var(--s));
  font-weight: 400;
  color: var(--flyout-text);
  font-variant-numeric: tabular-nums;
  line-height: calc(28px * var(--s));
  transform: translateY(calc(-1px * var(--s)));
}

.dim-flyout-divider {
  height: 1px;
  background: var(--flyout-divider);
}

.dim-flyout-footer {
  position: relative;
  height: calc(48px * var(--s));
  padding: 0 calc(14px * var(--s)) 0 calc(20px * var(--s));
  background: var(--flyout-footer);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dim-flyout-footer-label {
  position: relative;
  z-index: 1;
  font-size: calc(13px * var(--s));
  font-weight: 400;
  line-height: 1;
  transform: translateY(calc(-1px * var(--s)));
  color: var(--flyout-text-secondary);
}

.link-toggle {
  position: relative;
  z-index: 1;
  width: calc(30px * var(--s));
  height: calc(28px * var(--s));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: calc(5px * var(--s));
  background: transparent;
  color: var(--flyout-text-muted);
  cursor: pointer;
  transition: background-color 100ms ease, color 100ms ease;
}

.link-toggle svg {
  width: calc(14px * var(--s));
  height: calc(14px * var(--s));
  display: block;
}

.link-toggle:hover {
  background: var(--menu-hover);
  color: var(--flyout-text);
}

.link-toggle[aria-pressed="true"] {
  background: var(--menu-hover);
  color: var(--accent);
}

/* Authentic DimDock Tray Context Menu */
.dim-menu {
  width: 248px;
  padding: 4px;
  border-radius: 8px;
  background: var(--menu-bg);
  border: 1px solid var(--menu-border);
  box-shadow: var(--flyout-shadow);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  animation: flyoutIn 140ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dim-menu-item {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--flyout-text);
  font-family: var(--font-win11);
  font-size: 13px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: background-color 90ms ease;
}

.dim-menu-item:hover {
  background: var(--menu-hover);
}

.dim-menu-item.is-static {
  cursor: default;
}

.dim-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--flyout-text);
}

.dim-menu-value {
  font-size: 12px;
  color: var(--flyout-text-muted);
  font-variant-numeric: tabular-nums;
}

.dim-menu-sep {
  height: 1px;
  margin: 4px 0;
  background: var(--menu-border);
}

/* Windows 11 Pill Toggle Switch */
.fluent-switch {
  width: 34px;
  height: 18px;
  border-radius: 9px;
  border: 1px solid var(--flyout-text-muted);
  background: transparent;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.fluent-switch-knob {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--flyout-text-secondary);
  transform: translateX(0);
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), background-color 140ms ease;
}

.fluent-switch.is-checked {
  background: var(--accent);
  border-color: var(--accent);
}

.fluent-switch.is-checked .fluent-switch-knob {
  background: var(--accent-fg);
  transform: translateX(16px);
}

.is-hidden {
  display: none !important;
}

/* Miniature Windows 11 Taskbar */
.win-taskbar {
  position: relative;
  z-index: 3;
  height: 44px;
  padding: 0 12px 0 14px;
  background: var(--taskbar-bg);
  border-top: 1px solid var(--taskbar-border);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.win-start-icon {
  width: 18px;
  height: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  opacity: 0.92;
}

.win-start-icon span {
  background: var(--accent);
  border-radius: 1px;
}

.taskbar-tray {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--flyout-text);
}

.tray-chevron {
  width: 24px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.tray-sun-btn {
  position: relative;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: var(--menu-hover);
  color: var(--flyout-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: ns-resize;
  transition: background-color 100ms ease;
}

.tray-sun-btn:hover {
  background: var(--bg-control-hover);
}

.tray-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--menu-bg);
  border: 1px solid var(--menu-border);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  color: var(--flyout-text);
  font-size: 11.5px;
  line-height: 1.45;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 110ms ease, transform 110ms ease;
  font-variant-numeric: tabular-nums;
}

.tray-sun-btn:hover .tray-tooltip,
.tray-sun-btn:focus-visible .tray-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.tray-quick-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  opacity: 0.85;
}

.tray-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 11px;
  line-height: 1.2;
  padding-left: 4px;
  color: var(--flyout-text);
  font-variant-numeric: tabular-nums;
}

/* Hairline-Divided Cards with Animated Bayer-Dithered Pixel Canvas */
[data-pixel-surface] {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: rgba(8, 17, 27, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.pixel-dither-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.fluent-card {
  position: relative;
  z-index: 1;
  border-radius: 0;
  background: rgba(8, 17, 27, 0.36);
  border: 0;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.085);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.feature-card {
  padding: 24px 22px;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.feature-card:hover {
  background: rgba(16, 40, 62, 0.34);
  box-shadow: inset 0 0 0 0.5px rgba(76, 194, 255, 0.28);
}

.feature-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.pixel-icon {
  display: block;
  flex-shrink: 0;
  shape-rendering: crispEdges;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--accent);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), filter 240ms ease;
}

.feature-card:hover .feature-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 10px rgba(76, 194, 255, 0.38));
}

.feature-index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.78;
  font-variant-numeric: tabular-nums;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--text-secondary);
}

/* Install Section */
.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0;
}

.install-card,
.req-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.install-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.install-card h3,
.req-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.req-card h3 {
  margin-bottom: 14px;
}

.version-pill {
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 5px;
  background: var(--bg-control);
  border: 1px solid var(--stroke-control);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.install-block {
  min-width: 0;
}

.install-block + .install-block {
  margin-top: 18px;
}

.install-step-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.winget-command-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 6px 6px 6px 12px;
  border-radius: 8px;
  background: var(--bg-code);
  border: 1px solid var(--stroke-control);
  transition: border-color 240ms ease, box-shadow 260ms ease;
}

.winget-command-row .winget-code {
  flex: 1;
  min-width: 0;
  padding-right: 78px;
}

.winget-command-row .copy-btn {
  right: 6px;
  border-radius: 5px;
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.install-block:last-of-type {
  margin-bottom: 18px;
}

.install-note {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--stroke-divider);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.install-note a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 140ms ease;
}

.install-note a:hover {
  color: var(--text-primary);
}

/* WinUI 3 Buttons (used inside Install card) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 15px;
  border-radius: var(--radius-control);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 90ms ease, border-color 90ms ease;
  user-select: none;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-accent:active {
  background: var(--accent-pressed);
}

.btn-standard {
  background: var(--bg-control);
  color: var(--text-primary);
  border-color: var(--stroke-control);
  border-top-color: var(--stroke-control-bevel);
}

.btn-standard:hover {
  background: var(--bg-control-hover);
}

.btn-standard:active {
  background: var(--bg-control-active);
}

.settings-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.settings-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 0;
  border-top: 1px solid var(--stroke-divider);
}

.settings-list li:first-child {
  border-top: 0;
  padding-top: 2px;
}

.settings-list li:last-child {
  padding-bottom: 0;
}

.settings-key {
  font-size: 12px;
  color: var(--text-muted);
}

.settings-val {
  font-size: 13.5px;
  color: var(--text-primary);
}

/* Memory Benchmark Section */
.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}

.benchmark-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.benchmark-card:hover {
  background: rgba(16, 40, 62, 0.28);
  box-shadow: inset 0 0 0 0.5px rgba(76, 194, 255, 0.22);
}

.benchmark-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.benchmark-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
}

.benchmark-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.benchmark-hero-val {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.benchmark-hero-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.benchmark-bars {
  padding-top: 18px;
  border-top: 1px solid var(--stroke-divider);
}

.bar-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bar-stack + .bar-stack {
  margin-top: 14px;
}

.bar-stack-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.bar-name {
  color: var(--text-secondary);
  white-space: nowrap;
}

.bar-name.is-dimdock {
  color: var(--text-primary);
  font-weight: 600;
}

/* Flat 7px Pixel-Art Square Bar Graphs (matching background dither grid) */
.pixel-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  height: 7px;
  overflow: hidden;
}

.pixel-bar-cell {
  position: relative;
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 0;
  background: rgba(92, 132, 168, 0.14);
}

.pixel-bar-cell.is-filled::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.pixel-bar.is-dimdock .pixel-bar-cell.is-filled::after {
  background-color: var(--accent);
}

.pixel-bar.is-twinkle .pixel-bar-cell.is-filled::after {
  background-color: rgba(122, 162, 198, 0.44);
}

.bar-val {
  text-align: right;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
}

.bar-val.is-dimdock {
  color: var(--text-primary);
  font-weight: 600;
}

.benchmark-footer {
  grid-column: 1 / -1;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.benchmark-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.benchmark-footnote-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Footer & seamless mobile overscroll backdrop */
.footer-backdrop,
.footer-backdrop[data-pixel-surface] {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -120px;
  height: calc(65vh + 120px);
  z-index: 0;
  pointer-events: none;
  border: 0;
  border-radius: 0;
  background: rgba(8, 17, 27, 0.76);
}

.footer {
  position: relative;
  z-index: 2;
  margin-top: 0;
  border: 0;
  border-top: 1px solid var(--stroke-divider);
  border-radius: 0;
  padding: 32px 0;
  background: transparent;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1;
  color: var(--text-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-left .brand-wordmark {
  color: var(--text-primary);
  font-size: 14px;
}

.footer-meta a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 140ms ease;
}

.footer-meta a:hover {
  color: var(--text-primary);
}

.footer-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 140ms ease;
}

.footer-github:hover {
  color: var(--text-primary);
}

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 445px);
    gap: 32px;
  }

  .dim-flyout.hero-flyout {
    --s: 1.25;
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .install-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .benchmark-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hero-screenshot-wrap {
    justify-content: flex-start;
  }

  .dim-flyout.hero-flyout {
    --s: 1.25;
    --hero-rx: 0deg;
    --hero-ry: 0deg;
    --hero-shadow-x: 0px;
    --hero-shadow-y: 22px;
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-canvas {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: 82vh;
    padding: 288px 0 88px;
  }

  .demo-card {
    padding: 12px;
  }

  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dim-flyout,
  .dim-flyout.hero-flyout {
    --s: 1;
    max-width: 100%;
  }

  .tray-quick-icons {
    display: none;
  }

  .benchmark-card {
    padding: 22px 20px;
    gap: 20px;
  }

  .benchmark-footer {
    padding: 14px 20px;
  }

  .pixel-bar {
    gap: 2px;
  }
}

/* ==========================================================================
   Page Load & Scroll Choreography
   Progressive enhancement: only applies when html.anim-ready is set by JS
   and prefers-reduced-motion is not enabled.
   ========================================================================== */

html.anim-ready .hero-media {
  opacity: 0.72;
  transition: opacity 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.anim-ready.is-loaded .hero-media {
  opacity: 1;
}

html.anim-ready .hero-title,
html.anim-ready .hero-subtitle,
html.anim-ready .hero-desc,
html.anim-ready .hero-actions,
html.anim-ready .hero-winget-group {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 640ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 640ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.anim-ready .hero-title {
  transform: translate3d(0, 22px, 0);
  filter: blur(6px);
  transition-delay: 50ms;
}

html.anim-ready .hero-subtitle {
  filter: blur(4px);
  transition-delay: 120ms;
}

html.anim-ready .hero-desc {
  transition-delay: 185ms;
}

html.anim-ready .hero-actions {
  transition-delay: 250ms;
}

html.anim-ready .hero-winget-group {
  transition:
    opacity 640ms cubic-bezier(0.16, 1, 0.3, 1) 315ms,
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1) 315ms;
}

html.anim-ready.is-loaded .hero-title,
html.anim-ready.is-loaded .hero-subtitle,
html.anim-ready.is-loaded .hero-desc,
html.anim-ready.is-loaded .hero-actions,
html.anim-ready.is-loaded .hero-winget-group {
  opacity: 1;
  transform: none;
  filter: none;
}

html.anim-ready .dim-flyout.hero-flyout {
  opacity: 0;
  translate: 0 24px;
  scale: 0.96;
  transition:
    opacity 720ms cubic-bezier(0.16, 1, 0.3, 1) 150ms,
    translate 820ms cubic-bezier(0.16, 1, 0.3, 1) 150ms,
    scale 820ms cubic-bezier(0.16, 1, 0.3, 1) 150ms;
}

html.anim-ready.is-loaded .dim-flyout.hero-flyout {
  opacity: 1;
  translate: none;
  scale: none;
}

html.anim-ready .dim-flyout.hero-flyout .monitor-row,
html.anim-ready .dim-flyout.hero-flyout .dim-flyout-footer {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition:
    opacity 540ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.anim-ready .dim-flyout.hero-flyout .monitor-row:nth-child(1) {
  transition-delay: 280ms;
}

html.anim-ready .dim-flyout.hero-flyout .monitor-row:nth-child(2) {
  transition-delay: 350ms;
}

html.anim-ready .dim-flyout.hero-flyout .monitor-row:nth-child(3) {
  transition-delay: 420ms;
}

html.anim-ready .dim-flyout.hero-flyout .dim-flyout-footer {
  transition-delay: 470ms;
}

html.anim-ready.is-loaded .dim-flyout.hero-flyout .monitor-row,
html.anim-ready.is-loaded .dim-flyout.hero-flyout .dim-flyout-footer {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Subtle one-time sky-blue glint sweep on WinGet command bars */
.is-intro-glint:not(.is-copy-pulse) .winget-sweep::after {
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(76, 194, 255, 0.08) 40%,
    rgba(214, 242, 255, 0.22) 50%,
    rgba(76, 194, 255, 0.08) 60%,
    transparent 80%
  );
  animation: wingetSweep 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scroll-triggered section headers */
html.anim-ready .section-head[data-reveal] h2,
html.anim-ready .section-head[data-reveal] p {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  filter: blur(4px);
  transition:
    opacity 640ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 640ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.anim-ready .section-head[data-reveal] p {
  transition-delay: 85ms;
}

html.anim-ready .section-head[data-reveal].is-revealed h2,
html.anim-ready .section-head[data-reveal].is-revealed p {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

/* Scroll-triggered pixel surfaces & card cascades */
html.anim-ready [data-reveal-surface] {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(0.988);
  transition:
    opacity 680ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.anim-ready [data-reveal-surface].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

html.anim-ready [data-reveal-surface] [data-reveal-item] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 660ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    background-color 150ms ease,
    box-shadow 150ms ease;
}

html.anim-ready [data-reveal-surface].is-revealed [data-reveal-item] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Demo video settles smoothly inside revealed surface */
html.anim-ready .demo-surface:not(.is-revealed) .demo-video-frame video {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.988);
}

html.anim-ready .demo-surface.is-revealed .demo-video-frame video {
  opacity: 1;
  transform: none;
}

/* Feature icons settle crisply without fractional scaling as cards arrive */
html.anim-ready .features-grid:not(.is-revealed) .feature-icon {
  translate: 0 6px;
  opacity: 0;
}

html.anim-ready .features-grid.is-revealed .feature-icon {
  translate: 0 0;
  opacity: 1;
  transition:
    translate 520ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--reveal-delay, 0ms) + 80ms),
    opacity 420ms ease calc(var(--reveal-delay, 0ms) + 60ms),
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 240ms ease;
}

/* Memory benchmark bars */
html.anim-ready .benchmark-grid .pixel-bar-cell.is-filled::after {
  opacity: 0;
  transition: opacity 80ms steps(1, end) calc(var(--bar-delay, 0ms) + var(--cell-idx, 0) * 14ms);
}

html.anim-ready .benchmark-grid.is-revealed .pixel-bar-cell.is-filled::after {
  opacity: 1;
}

/* Settings list cascade inside revealed cards */
html.anim-ready [data-reveal-surface] .settings-list li {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition:
    opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.anim-ready [data-reveal-surface].is-revealed .settings-list li {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html.anim-ready [data-reveal-surface].is-revealed .settings-list li:nth-child(1) { transition-delay: 160ms; }
html.anim-ready [data-reveal-surface].is-revealed .settings-list li:nth-child(2) { transition-delay: 225ms; }
html.anim-ready [data-reveal-surface].is-revealed .settings-list li:nth-child(3) { transition-delay: 290ms; }
html.anim-ready [data-reveal-surface].is-revealed .settings-list li:nth-child(4) { transition-delay: 355ms; }

/* Footer reveal */
html.anim-ready .footer[data-reveal] .footer-inner {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.anim-ready .footer[data-reveal].is-revealed .footer-inner {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
