:root {
  --menubar-height: 28px;
  --popover-width: 292px;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --glass-bg: rgba(34, 36, 44, 0.78);
  --glass-border: rgba(255, 255, 255, 0.17);
  --glass-inner-rim: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 0.5px rgba(255, 255, 255, 0.09);
  --row-hover: rgba(255, 255, 255, 0.09);
  --hairline: rgba(255, 255, 255, 0.11);
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.58);
  --text-tertiary: rgba(255, 255, 255, 0.36);
  --accent-blue: #0a84ff;
  --accent-orange: #ff9f0a;
  --accent-red: #ff453a;
  --accent-teal: #5ac8fa;
  --accent-purple: #bf5af2;
  --accent-gray: #8e8e93;
}

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

html {
  scroll-behavior: smooth;
  background: #0b0e16;
  color: var(--text-primary);
  font-family: var(--font-system);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: #0b0e16;
}

/* SVG Filter host (zero layout footprint) */
.svg-defs {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Graded desktop layer — fixed 100vw x 100vh viewport container.
   Native CSS saturate() + brightness() works identically in Safari, Brave, Chrome & Firefox! */
#graded-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  filter: saturate(var(--display-sat, 1)) brightness(var(--display-brightness, 1));
  -webkit-filter: saturate(var(--display-sat, 1)) brightness(var(--display-brightness, 1));
}

/* Exact Kelvin RGB white-point multiply overlay (mathematically identical to Metal's color * whitePoint) */
.kelvin-multiply-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-color: rgb(255, 255, 255);
  display: none;
}

.kelvin-multiply-overlay.active {
  display: block;
}

.scroll-content {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ============================================================
   1. AUTHENTIC MACOS 27 MENU BAR
   ============================================================ */
.macos-menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--menubar-height);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 14px;
  background: rgba(22, 25, 34, 0.62);
  backdrop-filter: blur(28px) saturate(185%);
  -webkit-backdrop-filter: blur(28px) saturate(185%);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.94);
  user-select: none;
}

.menubar-left,
.menubar-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mb-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.12s ease;
}

.mb-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.mb-apple {
  padding: 0 8px;
}

.mb-app-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mb-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: none;
  cursor: default;
}

.mb-lumen-btn {
  position: relative;
  cursor: pointer;
  padding: 0 9px;
  gap: 5px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.mb-lumen-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.mb-lumen-btn.active {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.35);
}

.mb-lumen-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent-orange);
  box-shadow: 0 0 6px var(--accent-orange);
  display: none;
}

.mb-lumen-btn.has-custom-mode .mb-lumen-dot {
  display: inline-block;
}

.mb-clock {
  font-size: 12.5px;
  font-weight: 500;
  padding: 0 6px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ============================================================
   2. FLOATING MACOS 27 DISPLAYLUMEN POPOVER & HAND-DRAWN HINT
   ============================================================ */
.activate-demo-hint {
  position: fixed;
  top: calc(var(--menubar-height) + 4px);
  right: 120px;
  z-index: 60;
  display: inline-flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2px;
  padding: 2px 4px;
  border: none;
  background: transparent;
  color: rgba(255, 224, 178, 0.92);
  cursor: pointer;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
  transition: opacity 0.25s ease, transform 0.2s ease, color 0.2s ease;
}

.activate-demo-hint.scrolled-away {
  opacity: 0;
  pointer-events: none;
}

.activate-demo-hint:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.activate-demo-hint .hand-arrow-svg {
  margin-left: -4px;
  display: block;
  flex-shrink: 0;
}

.activate-demo-label {
  font-family: "Bradley Hand", "Marker Felt", "Segoe Print", "Comic Sans MS", cursive;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
  transform: rotate(-4deg);
  margin-top: 4px;
}

.popover-anchor-wrap {
  position: fixed;
  top: calc(var(--menubar-height) + 9px);
  right: 128px;
  z-index: 115;
  width: var(--popover-width);
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: top center;
}

.popover-anchor-wrap.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.97);
}

.popover-caret {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 8px;
  overflow: hidden;
  pointer-events: none;
}

.popover-caret::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: rgba(42, 45, 54, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  transform: rotate(45deg);
  border-radius: 2px 0 0 0;
}

.lumen-popover {
  width: 100%;
  padding: 10px 10px 8px;
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(44px) saturate(195%);
  -webkit-backdrop-filter: blur(44px) saturate(195%);
  border: 0.75px solid var(--glass-border);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.56),
    0 4px 16px rgba(0, 0, 0, 0.32),
    var(--glass-inner-rim);
  color: var(--text-primary);
  user-select: none;
}

.pop-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 8px 6px;
}

.pop-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pop-readout {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.pop-divider {
  height: 0.75px;
  background: var(--hairline);
  margin: 6px 6px;
}

.preset-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preset-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 5px 8px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background 0.12s ease, transform 0.08s ease;
}

.preset-row:hover,
.preset-row.demo-hover {
  background: var(--row-hover);
}

.preset-row.demo-press {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(0.985);
}

.preset-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.86);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.preset-row.active .preset-badge {
  background: var(--badge-color, var(--accent-blue));
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.preset-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.preset-name {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-row.active .preset-name {
  font-weight: 500;
}

.preset-sub {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.2;
}

.preset-edit-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.12s ease, background 0.12s ease;
  flex-shrink: 0;
}

.preset-row:hover .preset-edit-btn,
.preset-row.demo-hover .preset-edit-btn,
.preset-edit-btn:focus-visible {
  opacity: 1;
}

.preset-edit-btn:hover,
.preset-edit-btn.demo-hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.preset-chevron {
  color: var(--text-tertiary);
  padding-right: 4px;
  display: inline-flex;
  align-items: center;
}

.preset-row:hover .preset-chevron,
.preset-row.demo-hover .preset-chevron {
  display: none;
}

/* Keep Awake Row */
.keep-awake-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.keep-awake-row:hover {
  background: var(--row-hover);
}

.keep-awake-row.active .preset-badge {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(10, 132, 255, 0.45);
}

/* Authentic macOS Mini Switch */
.mac-switch {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease;
  padding: 0;
}

.mac-switch.on {
  background: var(--accent-blue);
}

.mac-switch::after {
  content: "";
  position: absolute;
  top: 1.5px;
  left: 1.5px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s cubic-bezier(0.25, 0.9, 0.35, 1);
}

.mac-switch.on::after {
  transform: translateX(13px);
}

/* Footer Rows */
.pop-footer {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 5px 8px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease;
}

.footer-row:hover {
  background: var(--row-hover);
}

.footer-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* Drill-Down Header & Editor Sliders */
.drill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 6px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 7px;
}

.back-btn:hover,
.back-btn.demo-hover {
  background: var(--row-hover);
}

.reset-btn {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
}

.reset-btn:hover,
.reset-btn.demo-hover {
  background: rgba(255, 255, 255, 0.22);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 6px 8px;
}

.slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.slider-label {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.slider-value {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
}

/* macOS Control Center Capsule Slider */
.cc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 0.75px solid rgba(255, 255, 255, 0.18);
  outline: none;
  cursor: pointer;
}

.cc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45), 0 0 0 0.5px rgba(0, 0, 0, 0.18);
  cursor: ew-resize;
  transition: transform 0.1s ease;
}

.cc-slider::-webkit-slider-thumb:active {
  transform: scale(1.06);
}

.cc-slider.temp-slider {
  background: linear-gradient(90deg, #ff4b2b 0%, #ff9f2e 38%, #ffe7b8 72%, #8ccaff 100%);
}

.cc-slider.sat-slider {
  background: linear-gradient(90deg, #636773 0%, #8a96a8 45%, #38bdf8 74%, #c056f7 100%);
}

.cc-slider.bright-slider {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.78) var(--fill, 100%),
    rgba(255, 255, 255, 0.14) var(--fill, 100%),
    rgba(255, 255, 255, 0.14) 100%
  );
}

.cc-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.brightness-pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auto-pill {
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.auto-pill.active {
  background: var(--accent-blue);
  border-color: transparent;
  color: #fff;
}

/* Settings & Schedule Controls */
.settings-block {
  padding: 2px 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.settings-caption {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.add-preset-row {
  display: flex;
  gap: 6px;
}

.mac-input {
  flex: 1;
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  border: 0.75px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

.mac-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.3);
}

.mac-btn-primary {
  height: 26px;
  padding: 0 11px;
  border-radius: 7px;
  border: none;
  background: var(--accent-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.mac-btn-primary:disabled {
  opacity: 0.45;
  cursor: default;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 2px 0;
}

.settings-presets-scroll {
  max-height: 148px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.mac-select {
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  border: 0.75px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 22, 30, 0.8);
  color: #fff;
  font-size: 11.5px;
  font-family: inherit;
}

/* Demo Status Pill below Popover */
.demo-status-pill {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 23, 32, 0.72);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 0.75px solid rgba(255, 255, 255, 0.14);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease;
}

.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #30d158;
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.8);
}

.demo-dot.running {
  background: var(--accent-orange);
  box-shadow: 0 0 8px rgba(255, 159, 10, 0.85);
  animation: pulseDot 1.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

/* ============================================================
   3. FULL-SCREEN WATER-RIPPLE CANVAS & AUTO-DEMO CURSOR
   ============================================================ */
#ripple-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 160;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease-out;
}

#ripple-canvas.active {
  opacity: 1;
  visibility: visible;
  transition: none;
}

#ripple-canvas.fading-out {
  opacity: 0;
  visibility: visible;
  transition: opacity 0.12s ease-out;
}

#demo-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 28px;
  pointer-events: none;
  z-index: 220;
  opacity: 0;
  transform: translate3d(60vw, 48vh, 0);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
  transition: opacity 0.35s ease;
}

#demo-cursor.visible {
  opacity: 1;
}

#demo-cursor.clicking svg {
  transform: scale(0.88);
}

#demo-cursor svg {
  transition: transform 0.09s ease;
  transform-origin: 2px 2px;
}

.cursor-click-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
}

.cursor-click-ring.pop {
  animation: clickRing 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes clickRing {
  0% { opacity: 0.95; transform: scale(0.35); }
  100% { opacity: 0; transform: scale(2.15); }
}

/* ============================================================
   4. MACOS DESKTOP WALLPAPER BACKDROP & PAGE CONTENT
   ============================================================ */
.desktop-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 68% 58% at 18% 20%, rgba(28, 114, 245, 0.42), transparent 62%),
    radial-gradient(ellipse 56% 52% at 78% 24%, rgba(255, 134, 48, 0.34), transparent 60%),
    radial-gradient(ellipse 60% 56% at 54% 82%, rgba(168, 68, 255, 0.28), transparent 64%),
    radial-gradient(ellipse 46% 42% at 15% 86%, rgba(16, 185, 155, 0.24), transparent 60%),
    linear-gradient(165deg, #0d1322 0%, #0b0f1b 48%, #090b12 100%);
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: calc(var(--menubar-height) + 38px) 36px 84px;
}

/* Hero reserves clear right-hand space for the always-open macOS popover */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 44px;
  align-items: start;
}

.hero-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 10px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.48));
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 0.75px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 4.6vw, 3.85rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 14ch;
  background: linear-gradient(180deg, #ffffff 15%, rgba(215, 226, 248, 0.82) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(230, 236, 248, 0.78);
  max-width: 54ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(180deg, #2796ff 0%, #0071e3 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 113, 227, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.btn-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 113, 227, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.btn-price-tag {
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 13px;
  font-weight: 600;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0.75px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(220, 228, 245, 0.58);
}

/* ============================================================
   5. COLOR-RICH LIVE PREVIEW CANVAS (MAKES PRESETS POP!)
   ============================================================ */
.live-canvas-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 8px;
}

.mac-window-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: rgba(22, 25, 35, 0.72);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 0.75px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.mac-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}

.traffic-lights {
  display: flex;
  gap: 6px;
}

.tl {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.tl.red { background: #ff5f57; }
.tl.yellow { background: #febc2e; }
.tl.green { background: #28c840; }

.window-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Vibrant landscape + color swatches card */
.photo-scene {
  position: relative;
  height: 182px;
  overflow: hidden;
  background: linear-gradient(180deg, #1b6dff 0%, #37b7ff 38%, #ffd166 68%, #ff6b4a 86%, #451c48 100%);
}

.photo-scene svg {
  width: 100%;
  height: 100%;
  display: block;
}

.swatch-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 12px 14px;
}

.swatch {
  height: 26px;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Code editor card — makes Red Light / Candle / Color Ink / B&W immediately legible */
.code-body {
  flex: 1;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: #e6edf7;
  margin: 0;
  white-space: pre;
  overflow-x: auto;
}

.tok-kw { color: #ff7ab2; }
.tok-type { color: #6bdfff; }
.tok-fn { color: #b281eb; }
.tok-num { color: #ffd166; }
.tok-str { color: #ff8170; }
.tok-cm { color: #7f8c9f; }

.preset-telemetry-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 500;
}

/* ============================================================
   6. BELOW-THE-FOLD SECTIONS (PRESETS, FEATURES, PRICING)
   ============================================================ */
.section {
  margin-top: 56px;
  max-width: 860px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5ac8fa;
  margin-bottom: 10px;
}

.section-heading {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-lead {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(226, 232, 246, 0.72);
  max-width: 58ch;
}

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

.preset-showcase-card {
  padding: 16px;
  border-radius: 15px;
  border: 0.75px solid rgba(255, 255, 255, 0.12);
  background: rgba(24, 27, 38, 0.66);
  backdrop-filter: blur(20px);
  text-align: left;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.preset-showcase-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(32, 36, 50, 0.78);
}

.preset-showcase-card.active {
  border-color: var(--card-accent, var(--accent-blue));
  box-shadow: 0 0 0 1px var(--card-accent, var(--accent-blue)), 0 14px 32px rgba(0, 0, 0, 0.35);
}

.psc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.psc-pill {
  font-size: 11px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.psc-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}

.psc-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(226, 232, 246, 0.68);
  margin: 0;
}

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

.feature-card {
  padding: 20px;
  border-radius: 16px;
  border: 0.75px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 25, 36, 0.64);
  backdrop-filter: blur(18px);
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(226, 232, 246, 0.7);
}

/* Pricing Card */
.pricing-card {
  padding: 28px;
  border-radius: 20px;
  border: 0.75px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(155deg, rgba(32, 38, 56, 0.82), rgba(18, 21, 31, 0.86));
  backdrop-filter: blur(26px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.sale-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffd5c8;
  background: rgba(255, 69, 58, 0.22);
  border: 0.75px solid rgba(255, 118, 92, 0.42);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.price-figure {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-regular {
  font-size: 22px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  text-decoration-thickness: 2px;
}

.price-was {
  opacity: 0.65;
  font-weight: 400;
  margin-right: 4px;
}

.price-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.price-perks {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: rgba(235, 240, 252, 0.84);
}

.site-footer {
  margin-top: 84px;
  padding-top: 24px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  max-width: 860px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

/* ============================================================
   7. RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 980px) {
  .page-shell {
    padding-top: calc(var(--menubar-height) + 46px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .popover-anchor-wrap {
    position: fixed;
    top: calc(var(--menubar-height) + 10px);
    right: 12px;
    left: auto;
    z-index: 115;
    max-width: calc(100vw - 24px);
  }

  .popover-caret {
    display: block;
  }

  .live-canvas-grid,
  .preset-cards-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .mb-hide-mobile {
    display: none;
  }
}
