/* Luma website. Self-contained: system fonts, no third-party assets. */

:root {
  --bg: #0F1218;
  --bg-deep: #0B0E13;
  --surface: #171C24;
  --surface-2: #1C222C;
  --glass: rgba(23, 28, 36, 0.66);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #E9EEF4;
  --muted: #A9B4C2;
  --faint: #8995A5;
  --ice: #8ADAFF;
  --ice-soft: #D3F1FF;
  --ice-deep: #3FA9E6;
  --ice-ink: #06131D;
  --lavender: #C3B4FF;
  --radius: 18px;
  --radius-lg: 26px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}

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

[hidden] { display: none !important; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.55rem + 3.7vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.75rem); }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }

p { margin: 0; text-wrap: pretty; }

a {
  color: var(--ice);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: #B8E9FF; }

strong { font-weight: 600; color: #F3F6FA; }

code, kbd { font-family: var(--mono); }

code {
  padding: 0.08em 0.42em;
  border: 1px solid rgba(138, 218, 255, 0.16);
  border-radius: 6px;
  background: rgba(138, 218, 255, 0.07);
  color: var(--ice-soft);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 2px 7px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

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

.icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ice);
  color: var(--ice-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--ice-ink); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 18, 24, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.header-inner > .btn-small { margin-left: 6px; }

@media (max-width: 880px) {
  .site-nav { display: none; }
  .header-inner > .btn-small { margin-left: auto; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn .icon { width: 20px; height: 20px; stroke-width: 1.9; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ice);
  color: var(--ice-ink);
  box-shadow: 0 12px 32px -14px rgba(138, 218, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover { background: #A8E5FF; color: var(--ice-ink); }
.btn-primary:focus-visible { outline-color: #EAF8FF; }

.btn-ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.07); color: var(--text); }

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  border-color: rgba(138, 218, 255, 0.3);
  border-radius: 11px;
  background: rgba(138, 218, 255, 0.12);
  color: var(--ice);
  font-size: 0.92rem;
}
.btn-small:hover { background: rgba(138, 218, 255, 0.2); color: var(--ice-soft); }

.btn-compact { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }

.chip-btn,
.copy-btn {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.chip-btn { min-height: 36px; padding: 0 16px; font-size: 0.92rem; }
.copy-btn { min-height: 30px; padding: 0 12px; font-size: 0.8rem; }
.chip-btn:hover:not(:disabled),
.copy-btn:hover { border-color: rgba(138, 218, 255, 0.38); background: rgba(138, 218, 255, 0.12); }
.chip-btn:disabled { cursor: default; opacity: 0.5; }

/* Hero */

.hero {
  position: relative;
  overflow: clip;
  padding: clamp(40px, 7vw, 92px) 0 clamp(56px, 8vw, 104px);
}
.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -180px;
  width: min(980px, 110vw);
  height: 760px;
  background: radial-gradient(closest-side, rgba(63, 169, 230, 0.16), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 5px 12px;
  border: 1px solid rgba(195, 180, 255, 0.28);
  border-radius: 999px;
  background: rgba(195, 180, 255, 0.08);
  color: var(--lavender);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lead {
  max-width: 34em;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.fine { margin-top: 16px; color: var(--faint); font-size: 0.92rem; }

.release { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
.release-meta > span:not([hidden]) ~ span:not([hidden])::before {
  content: "·";
  margin: 0 0.55em;
  color: var(--faint);
}
.release-state { color: var(--lavender); }
.release-hash {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 8px;
}
.release-hash code { font-size: 0.76rem; word-break: break-all; }
.hash-label {
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-pet { display: grid; gap: 14px; }

.pet-card {
  position: relative;
  overflow: hidden;
  padding: 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(23, 28, 36, 0.72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.pet-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30px;
  width: 440px;
  height: 330px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(138, 218, 255, 0.15), transparent);
  pointer-events: none;
}

.pet-caption { color: var(--faint); font-size: 0.88rem; text-align: center; }

.pet-controls {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 2px 8px 0;
}
.pet-activity {
  display: inline-flex;
  flex: 1 1 10em;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 36px;
  color: var(--muted);
  font-size: 0.9rem;
}
.pet-activity [data-luma-activity] {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pet-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 10px rgba(138, 218, 255, 0.8);
}
.pet-buttons { display: flex; gap: 8px; }

.pet-fallback {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 200px;
  height: auto;
  transform: translateX(-50%);
}

/* Original Luma renderer: DOM contract of luma/luma.js */

.luma-shell { position: relative; isolation: isolate; }

.luma-stage { position: relative; overflow: hidden; }

.luma-pet {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}

.luma-body {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 36%;
  background: none;
  color: inherit;
  font: inherit;
  transform-origin: 50% 94%; /* pivot used by crystal-dance.js danceBounds() */
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, opacity;
}
.luma-body canvas {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 3px rgba(189, 166, 223, 0.3)) drop-shadow(0 0 12px rgba(138, 218, 255, 0.16));
}
.luma-body:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

.luma-pet .halo {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #A4D5F1, transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}

.luma-pet .ground-shadow {
  position: absolute;
  left: 22%;
  bottom: 4%;
  width: 56%;
  height: 7%;
  border-radius: 50%;
  background: rgba(140, 200, 240, 0.16);
  filter: blur(5px);
  pointer-events: none;
}

.luma-sleep {
  position: absolute;
  top: 4%;
  right: 7%;
  display: none;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 5px;
  pointer-events: none;
}
.luma-pet.sleep .luma-sleep { display: block; }

.luma-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.luma-bubble {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  max-width: min(260px, calc(100% - 16px));
  padding: 9px 13px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(20, 25, 32, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
  pointer-events: none;
}

/* Hero stage: --pet-size is read by js/pets.js and passed to Luma.configure('size') */
.hero-shell .luma-stage {
  --pet-size: 200;
  height: calc(var(--pet-size) * 1px * 208 / 192 + 124px);
}
@media (max-width: 520px) {
  .hero-shell .luma-stage { --pet-size: 180; }
}

/* Sections */

.section {
  position: relative;
  padding: clamp(64px, 9vw, 116px) 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.section + .section { border-top: 1px solid rgba(255, 255, 255, 0.045); }

.section-head { max-width: 780px; }
.section-lead { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 14px;
  color: var(--ice);
  font-size: 0.95rem;
  font-weight: 600;
}
.kicker .icon { width: 20px; height: 20px; }
.kicker-ghost { color: var(--lavender); }

.keys { display: inline-flex; align-items: center; gap: 4px; }

.note {
  margin-top: 20px;
  padding: 12px 15px;
  border-left: 2px solid rgba(138, 218, 255, 0.45);
  border-radius: 0 12px 12px 0;
  background: rgba(138, 218, 255, 0.05);
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.split-reverse .split-copy { order: 2; }
.split.no-shot { grid-template-columns: minmax(0, 48rem); }
.split.no-shot .split-copy { order: 0; }
.split-copy > p + p { margin-top: 14px; }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-reverse .split-copy { order: 0; }
}

.shortcut-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.shortcut-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.shortcut-card:hover { border-color: rgba(138, 218, 255, 0.35); background: rgba(28, 34, 44, 0.85); color: var(--text); }
.shortcut-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 650; }
.shortcut-text { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

.ability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.ability-grid li {
  position: relative;
  padding: 13px 15px 13px 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  font-size: 0.97rem;
  line-height: 1.4;
}
.ability-grid li::before,
.tick-list li::before,
.extras li::before {
  content: "";
  position: absolute;
  transform: rotate(45deg);
  border-radius: 2px;
  background: linear-gradient(135deg, var(--ice), var(--ice-deep));
}
.ability-grid li::before {
  left: 17px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  box-shadow: 0 0 10px rgba(138, 218, 255, 0.45);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 22px;
  padding: 0;
  list-style: none;
}
.chip-list li {
  padding: 6px 14px;
  border: 1px solid rgba(138, 218, 255, 0.24);
  border-radius: 999px;
  background: rgba(138, 218, 255, 0.08);
  color: var(--ice-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.tick-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.tick-list li { position: relative; padding-left: 28px; }
.tick-list li::before { left: 4px; top: 0.6em; width: 9px; height: 9px; }

/* Screenshots: revealed when loaded, figure hidden by js/site.js when missing */

.shot { display: grid; gap: 10px; margin: 0; }
.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.shot figcaption { color: var(--faint); font-size: 0.88rem; text-align: center; }
.shot:not(.is-loaded) figcaption { visibility: hidden; }
.shot.is-loaded img { opacity: 1; }
.shot-wide { margin-top: clamp(32px, 4vw, 48px); }

/* Haunted focus */

.haunted::before {
  content: "";
  position: absolute;
  inset: 12% 0 auto;
  height: 70%;
  background: radial-gradient(45% 55% at 28% 55%, rgba(195, 180, 255, 0.07), transparent 70%);
  pointer-events: none;
}
.haunted > .wrap { position: relative; }

.haunt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(32px, 4vw, 48px);
}
@media (max-width: 920px) {
  .haunt-grid { grid-template-columns: minmax(0, 1fr); }
}

.haunt-demo {
  position: relative;
  padding: clamp(14px, 2.4vw, 24px);
  border: 1px solid rgba(195, 180, 255, 0.16);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 80% at 50% 38%, #1A1F2A, #11141A 72%);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border: 1px solid rgba(195, 180, 255, 0.28);
  border-radius: 999px;
  background: rgba(195, 180, 255, 0.1);
  color: var(--lavender);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.haunt-scene {
  --drain: 0.4;
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 3;
  margin: 6px auto 0;
}
.haunt-scene::before {
  content: "";
  position: absolute;
  inset: 6% 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(195, 180, 255, 0.24), transparent);
  opacity: var(--drain);
  pointer-events: none;
}

.haunt-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.haunt-shell {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.haunt-shell .luma-stage { position: absolute; left: 0; top: 0; overflow: visible; }
.haunt-shell .luma-pet {
  filter: grayscale(var(--drain)) saturate(calc(1 - var(--drain) * 0.5));
}

.thread { fill: none; stroke: #BFE9FF; stroke-linecap: round; }
.thread-base { stroke-width: 1; stroke-opacity: 0.22; }
.thread-flow { stroke-width: 1.6; stroke-opacity: 0.85; stroke-dasharray: 2 7; }
.ghost-float { transform-box: fill-box; transform-origin: 50% 50%; }

@media (prefers-reduced-motion: no-preference) {
  .ghost-float { animation: ghost-float 5.6s ease-in-out infinite; }
  .thread-flow { animation: thread-flow 1.5s linear infinite; }
  .ghost-2 .ghost-float { animation-duration: 6.3s; animation-delay: -1.7s; }
  .ghost-3 .ghost-float { animation-duration: 5.1s; animation-delay: -3.1s; }
  .ghost-4 .ghost-float { animation-duration: 6.8s; animation-delay: -0.9s; }
  .ghost-5 .ghost-float { animation-duration: 5.9s; animation-delay: -2.4s; }
  .haunt-scene.is-paused .ghost-float,
  .haunt-scene.is-paused .thread-flow { animation-play-state: paused; }
}

@keyframes ghost-float {
  0%, 100% { transform: translateY(-3px) rotate(-2deg); }
  50% { transform: translateY(3px) rotate(2deg); }
}
@keyframes thread-flow {
  to { stroke-dashoffset: -18; }
}

.haunt-control {
  margin-top: 8px;
  padding: 14px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.haunt-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.haunt-label-row label { font-weight: 600; }
.haunt-label-row output { color: var(--ice); font-family: var(--mono); font-size: 0.95rem; }

.energy-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 4px 0 0;
  background: transparent;
  cursor: pointer;
}
.energy-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6C6A80, var(--lavender) 35%, var(--ice));
}
.energy-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 2px solid var(--ice-deep);
  border-radius: 50%;
  background: #EAF8FF;
  box-shadow: 0 0 0 5px rgba(138, 218, 255, 0.16);
}
.energy-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6C6A80, var(--lavender) 35%, var(--ice));
}
.energy-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ice-deep);
  border-radius: 50%;
  background: #EAF8FF;
  box-shadow: 0 0 0 5px rgba(138, 218, 255, 0.16);
}
.energy-range:focus-visible { outline-offset: 2px; border-radius: 10px; }

.haunt-readout { min-height: 3.2em; margin-top: 4px; color: var(--muted); font-size: 0.9rem; }
.haunt-disclaimer { margin-top: 12px; color: var(--faint); font-size: 0.84rem; }

.haunt-rules {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
}
.rule-list {
  display: grid;
  gap: 15px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}
.rule-list li { position: relative; padding-left: 42px; color: var(--muted); }
.rule-list li::before {
  content: counter(rule);
  counter-increment: rule;
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(195, 180, 255, 0.28);
  border-radius: 50%;
  background: rgba(195, 180, 255, 0.1);
  color: var(--lavender);
  font-size: 0.8rem;
  font-weight: 700;
}
.rule-list strong { display: block; color: var(--text); }

/* Setup */

.steps {
  display: grid;
  gap: 14px;
  max-width: 880px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 22px 24px 22px 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}
.step::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 22px;
  top: 19px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(138, 218, 255, 0.3);
  border-radius: 12px;
  background: rgba(138, 218, 255, 0.1);
  color: var(--ice);
  font-family: var(--font-display);
  font-weight: 700;
}
.step h3 { margin-bottom: 6px; }
.step > p { color: var(--muted); }

.extras {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.extras li { position: relative; padding-left: 20px; }
.extras li::before { left: 1px; top: 0.62em; width: 7px; height: 7px; }
code.path { word-break: break-all; }

.release-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(11, 14, 19, 0.55);
  font-size: 0.95rem;
}
.release-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 22px;
  margin: 0;
}
.release-facts dt {
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.release-facts dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.release-facts .fact-wide { grid-column: 1 / -1; }
.hash-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hash-row code { font-size: 0.8rem; word-break: break-all; }
.release-pending { color: var(--lavender); }
.release-verify,
.release-notes { color: var(--muted); font-size: 0.92rem; }
.release-cta { margin-top: 2px; }

@media (max-width: 560px) {
  .step { padding: 18px 16px 18px 60px; }
  .step::before { left: 14px; top: 17px; width: 32px; height: 32px; border-radius: 10px; }
  .release-card { padding: 14px; }
}

/* Privacy cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
}
.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}
.icon-card { width: 26px; height: 26px; margin-bottom: 14px; color: var(--ice); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.more-link { margin-top: 22px; }

@media (max-width: 1040px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* FAQ */

.faq-wrap { max-width: 880px; }
.faq-list { display: grid; gap: 10px; margin-top: 28px; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
}
.faq-list details[open] { border-color: rgba(138, 218, 255, 0.22); background: rgba(26, 32, 41, 0.8); }
.faq-list summary {
  position: relative;
  padding: 17px 52px 17px 20px;
  border-radius: 16px;
  font-size: 1.02rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-list details[open] > summary::after { margin-top: -2px; transform: rotate(-135deg); }
.faq-list summary:focus-visible { outline-offset: -2px; }
.faq-list details > p { padding: 0 20px 18px; color: var(--muted); }

/* Footer */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--faint);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px 32px;
}
.footer-brand p { margin-top: 6px; }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.footer-note,
.footer-legal { grid-column: 1 / -1; max-width: 72em; }
.footer-note strong { color: var(--muted); }

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-nav ul { justify-content: flex-start; }
}

/* Simple pages: privacy, 404 */

.page { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); }
.prose h2 { margin-top: 44px; font-size: 1.4rem; }
.prose p,
.prose li { color: var(--muted); }
.prose p { margin-top: 14px; }
.prose ul { display: grid; gap: 8px; margin: 14px 0 0; padding-left: 1.2em; }
.prose .updated { margin-top: 10px; color: var(--faint); font-size: 0.9rem; }

.notfound { text-align: center; }
.notfound .lead { margin-inline: auto; }
.notfound .cta-row { justify-content: center; }
.nf-shell { width: 193px; margin: 0 auto 18px; }
.nf-shell .luma-stage { width: 193px; height: 251px; overflow: visible; }

/* Small screens */

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

@media (max-width: 560px) {
  .shortcut-cards,
  .ability-grid,
  .card-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .cta-row .btn { width: 100%; }
  .pet-card { padding: 6px 6px 10px; }
}

/* Preferences */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .pet-card,
  .card,
  .step,
  .shortcut-card,
  .ability-grid li,
  .haunt-rules,
  .faq-list details { background: var(--surface); }
}

@media (forced-colors: active) {
  .btn,
  .chip-btn,
  .copy-btn,
  .card,
  .step,
  .shortcut-card,
  .faq-list details,
  .haunt-demo,
  .haunt-rules { border: 1px solid CanvasText; }
  .energy-range { -webkit-appearance: auto; appearance: auto; }
}

/* Release landing */
.hero {background:linear-gradient(90deg,rgba(7,12,22,.96) 5%,rgba(8,16,31,.85) 38%,rgba(10,17,35,.30) 85%),url('/assets/clearing.jpg') center 60% / cover}
.hero .pet-card {background:transparent;border:0;box-shadow:none}
.hero .eyebrow {display:inline-block;color:#d9cdff;background:#242235;border:1px solid #49415e;border-radius:999px;padding:5px 13px}
.hero .release-hash,.hero .pet-caption {display:none}
.hero h1 {font-family:Georgia,serif;font-weight:500;letter-spacing:-.055em;font-size:clamp(3.3rem,6.7vw,6.2rem);line-height:.98}
.hero .luma-stage {--pet-size:280}
.pillars {display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:36px}
.pillars article {border-top:1px solid #484659;padding-top:24px}
.pillars h3 {margin:18px 0 12px;font-size:1.5rem}
.pillars p,figcaption {color:var(--muted)}
.showcase {background:linear-gradient(135deg,#101825,#161323)}
.split figure {margin:0}.split figure img,.split video {width:100%;height:auto;border-radius:16px}.split figcaption {font-size:.83rem;margin-top:.5rem}
@media(max-width:700px){.pillars{grid-template-columns:1fr}.hero .luma-stage{--pet-size:165}.hero-grid{gap:15px}.hero{padding-block:45px}}
