/* ——— Hero product mock ——— */
.mock-frame {
  position: absolute; inset: 32px 36px 100px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, transparent 0 40px, #ffffff05 40px 41px),
    radial-gradient(ellipse at 30% 40%, #1e1e23, #0d0d10);
  border: 1px solid var(--border);
  overflow: hidden;
}
.mock-frame::before {
  content: "SCENE 014 · FRAME PREVIEW"; position: absolute; bottom: 14px; left: 16px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--text-3);
}
.mock-frame::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 999px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
}
.mock-pin {
  position: absolute; transform: translate(-50%, -100%);
  animation: pinIn 600ms var(--ease-out) both; animation-delay: var(--d);
  pointer-events: none;
}
@keyframes pinIn { from { opacity: 0; transform: translate(-50%, -80%); } to { opacity: 1; transform: translate(-50%, -100%); } }
.mock-pin .pin-dot {
  display: block; width: 14px; height: 14px; border-radius: 999px;
  background: var(--lime); border: 2px solid #09090b;
  box-shadow: 0 0 0 4px #84cc1640, 0 2px 8px #00000080;
  position: relative; margin-bottom: 4px;
}
.mock-pin[data-color="orange"] .pin-dot { background: var(--orange); box-shadow: 0 0 0 4px #f9731640, 0 2px 8px #00000080; }
.mock-pin .pin-label {
  display: inline-block; transform: translateX(-50%); margin-left: 7px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em;
  color: #fff; background: rgba(9,9,11,0.9); border: 1px solid var(--border-strong);
  padding: 3px 7px; border-radius: 4px; white-space: nowrap;
}

.mock-timeline {
  position: absolute; bottom: 16px; left: 36px; right: 36px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.mock-track {
  height: 4px; background: var(--bg-3); border-radius: 999px; position: relative;
}
.mock-track-fill { position: absolute; inset: 0; width: 38%; background: var(--lime); border-radius: 999px; animation: tlfill 6s linear infinite; }
@keyframes tlfill { 0% { width: 20%; } 100% { width: 80%; } }
.mock-markers { position: absolute; inset: 16px 0 0; height: 4px; pointer-events: none; }
.mock-marker { position: absolute; top: -4px; width: 3px; height: 12px; background: var(--lime); border-radius: 2px; transform: translateX(-50%); }
.mock-marker[data-color="orange"] { background: var(--orange); }
.mock-playhead {
  position: absolute; top: 12px; left: 38%; width: 2px; height: 16px;
  background: #fff; animation: playhead 6s linear infinite;
}
@keyframes playhead { 0% { left: 20%; } 100% { left: 80%; } }
.mock-tc { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.05em; }

/* ——— Problem: scattered files, shifting focus — chaos lives in the mess ——— */
.chaos { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.ccard {
  position: absolute; width: 46%;
  padding: 11px 13px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 18px 34px -16px #000000d0;
  font-family: var(--font-mono);
  transform: rotate(var(--rot, 0deg));
  /* static depth of field — far cards blur and dim */
  filter: blur(calc(var(--depth, 0) * 4px));
  opacity: calc(1 - var(--depth, 0) * 0.55);
  z-index: calc(50 - var(--depth, 0) * 40);
}
.ccard-row { display: flex; align-items: center; gap: 8px; }
.ct-ic { width: 14px; height: 14px; display: block; color: var(--accent, var(--text-3)); flex: none; }
.ccard-t { font-size: 12.5px; color: var(--text); white-space: nowrap; }
.ccard-ext { color: var(--text-3); }
.ccard-note { display: block; margin-top: 4px; padding-left: 22px; font-size: 10.5px; font-style: italic; color: var(--text-3); }
/* the unanswerable note shimmers in the brand iridescent — never lime (lime = the answer) */
.ccard.lost .ccard-note {
  background: linear-gradient(90deg, #d8c8ff, #b6d8ff, #c8f5d8, #ffe9b8, #f5c8d8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* roaming focus — cards drift forward out of the blur, then fall back; nothing settles */
.ccard.roam { animation: pull-focus 7s var(--ease) infinite; animation-delay: var(--delay, 0s); }
@keyframes pull-focus {
  0%, 100% { filter: blur(3.5px); opacity: 0.4; transform: rotate(var(--rot, 0deg)) scale(0.9); z-index: 10; }
  44%, 56% { filter: blur(0); opacity: 1; transform: rotate(calc(var(--rot, 0deg) * 0.3)) scale(1.05); z-index: 200; }
}
@media (prefers-reduced-motion: reduce) {
  .ccard.roam { animation: none; filter: blur(1px); opacity: 0.7; }
}

/* ——— Solution order visual ——— */
.order { position: absolute; inset: 0; padding: 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.order-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.order-title { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.05em; }
.order-status { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--lime); display: inline-flex; align-items: center; gap: 6px; }
.order-status .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: pulse 2s infinite; }
.order-frame {
  height: 140px; border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, transparent 0 32px, #ffffff06 32px 33px),
    linear-gradient(180deg, #1e1e23, #0d0d10);
  border: 1px solid var(--border); position: relative;
}
.order-frame::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-strong);
}
.order-pins { display: flex; flex-direction: column; gap: 6px; }
.order-pin {
  display: grid; grid-template-columns: 52px 120px 1fr; gap: 12px; align-items: center;
  padding: 10px 12px; background: rgba(0,0,0,0.25); border: 1px solid var(--border);
  border-radius: 8px; animation: slideIn 500ms var(--ease-out) both;
}
.order-pin:nth-child(1) { animation-delay: 100ms; }
.order-pin:nth-child(2) { animation-delay: 250ms; }
.order-pin:nth-child(3) { animation-delay: 400ms; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.pin-tc { font-family: var(--font-mono); font-size: 11px; color: var(--lime); background: var(--lime-soft); padding: 3px 6px; border-radius: 4px; text-align: center; letter-spacing: 0.05em; }
.pin-name { font-size: 12px; color: var(--text); font-weight: 500; }
.pin-text { font-size: 12px; color: var(--text-2); }
.order-timeline { position: relative; padding: 8px 0 0; margin-top: auto; }
.order-track { height: 3px; background: var(--bg-3); border-radius: 999px; position: relative; }
.order-fill { position: absolute; inset: 0; width: 45%; background: var(--lime); border-radius: 999px; }
.order-marker { position: absolute; top: 4px; width: 3px; height: 11px; background: var(--lime); border-radius: 2px; transform: translateX(-50%); }

/* ——— Feature visuals ——— */
.f-pins {
  height: 120px; position: relative;
  background: repeating-linear-gradient(90deg, transparent 0 24px, #ffffff04 24px 25px);
  border: 1px solid var(--border); border-radius: 8px;
}
.f-pins::before, .f-pins::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--lime); border-radius: 2px;
}
.f-pins::before { left: 20%; box-shadow: 0 0 12px var(--lime); }
.f-pins::after { left: 65%; box-shadow: 0 0 12px var(--orange); background: var(--orange); }

.f-upload {
  height: 200px; border: 1px dashed var(--border-strong); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.05em;
  background: repeating-linear-gradient(45deg, transparent 0 8px, #ffffff03 8px 9px);
  position: relative; overflow: hidden;
}
.f-upload::before { content: "Longform · resumable"; }
.f-upload::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 72%;
  background: var(--lime); animation: uprise 3s var(--ease-out) infinite;
}
@keyframes uprise { 0% { width: 0; } 80%, 100% { width: 78%; } }

.f-share {
  height: 120px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.05em;
}
.f-share::before {
  content: "dfine.io/r/7kq2...9pMx · 🔒 pwd · ⏱ 7d";
  content: "dfine.io/r/7kq2···9pMx · PWD · EXP 7d";
}

.f-versions {
  height: 200px; display: flex; align-items: flex-end; gap: 4px; padding: 8px;
  background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 8px;
}
.f-versions::before, .f-versions::after { content: ""; flex: 1; background: var(--bg-4); border-radius: 2px; }
.f-versions::before { height: 40%; }
.f-versions::after { height: 100%; background: var(--lime); }

.f-live {
  height: 180px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.03em;
}
.f-live-video {
  position: relative; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  background:
    radial-gradient(ellipse at 35% 45%, #2a2a32 0%, #0d0d10 70%),
    repeating-linear-gradient(135deg, transparent 0 24px, #ffffff05 24px 25px);
}
.f-live-video::before {
  content: ""; position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border-strong);
}
.f-live-badge {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(9,9,11,0.8); border: 1px solid var(--border-strong); padding: 3px 7px; border-radius: 4px;
  color: #ff4444; font-weight: 600; font-size: 9px; letter-spacing: 0.12em;
}
.f-live-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: #ff4444;
  box-shadow: 0 0 6px #ff4444; animation: pulse 1.4s infinite;
}
.f-live-tc { position: absolute; top: 8px; right: 8px; color: var(--text-3); background: rgba(9,9,11,0.8); border: 1px solid var(--border); padding: 3px 7px; border-radius: 4px; }
.f-live-participants { position: absolute; bottom: 8px; left: 8px; display: flex; gap: -2px; }
.f-live-participants span {
  width: 22px; height: 22px; border-radius: 999px; background: var(--bg-4); border: 2px solid var(--bg-1);
  display: grid; place-items: center; color: var(--text-2); font-size: 9px; margin-left: -6px;
}
.f-live-participants span:first-child { margin-left: 0; background: var(--lime-soft); color: var(--lime); border-color: var(--bg-1); }
.f-live-participants span:nth-child(2) { background: #f9731622; color: var(--orange); }
.f-live-participants span:nth-child(3) { background: #a855f722; color: #c084fc; }
.f-live-participants .count { background: var(--bg-3); color: var(--text-2); font-size: 8px; letter-spacing: 0.05em; }
.f-live-pin {
  position: absolute; left: 22%; top: 38%;
  width: 10px; height: 10px; border-radius: 999px; background: var(--lime);
  box-shadow: 0 0 0 3px #84cc1640, 0 1px 4px #00000080;
}
.f-live-pin::after {
  content: "L"; position: absolute; left: 14px; top: -3px;
  background: rgba(9,9,11,0.9); border: 1px solid var(--border-strong); padding: 2px 5px; border-radius: 3px;
  font-size: 9px; color: #fff;
}
.f-live-cursor {
  position: absolute; left: 62%; top: 55%;
  width: 0; height: 0; border-left: 8px solid var(--orange); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  transform: rotate(-20deg);
}
.f-live-cursor::after {
  content: "M. Hartmann"; position: absolute; left: 10px; top: 4px;
  background: var(--orange); color: #09090b; padding: 1px 5px; border-radius: 3px;
  font-size: 8px; font-weight: 600; white-space: nowrap;
}
.f-live-side {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--border); border-radius: 8px; padding: 8px;
  background: rgba(0,0,0,0.2);
}
.f-live-side-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 8px; letter-spacing: 0.12em; color: var(--text-3); padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.f-live-side-head .live-dot {
  width: 5px; height: 5px; border-radius: 999px; background: var(--lime);
  box-shadow: 0 0 6px var(--lime); animation: pulse 2s infinite;
}
.f-live-line {
  display: grid; grid-template-columns: 36px 1fr; gap: 6px; align-items: baseline;
  padding: 3px 0; color: var(--text-2); font-size: 9px;
}
.f-live-line .tc { color: var(--lime); font-weight: 500; }
.f-live-line.typing .tc { color: var(--orange); }
.f-live-line.typing .txt::after {
  content: "▍"; color: var(--orange);
  animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.f-audit {
  height: 200px; display: grid; grid-template-rows: repeat(4, 1fr); gap: 4px;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.05em;
}
.f-audit > div {
  display: grid; grid-template-columns: 80px 1fr 80px; gap: 16px; align-items: center;
  padding: 0 12px; background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 4px;
}

/* Feature screenshot tiles */
.f-shot { position: relative; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; line-height: 0; background: #0d0d10; aspect-ratio: 16 / 9; }
.f-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0.95; }
.f-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, #131316e0 100%); pointer-events: none; }

/* ——— Motion off tweak ——— */
body[data-motion="off"] .reveal { opacity: 1; transform: none; }
body[data-motion="off"] * { animation-play-state: paused !important; transition: none !important; }
body[data-motion="subtle"] .product-mock { transform: perspective(1400px) rotateX(0deg) !important; }

/* ——— Walkthrough ——— */
.walk {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}
.walk-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: 100%;
}
.walk-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 16px 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
  color: var(--text-1);
  font-family: inherit;
  min-width: 0;
}
.walk-step .walk-arrow { display: none; }
.walk-step .walk-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.walk-step .walk-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.walk-step .walk-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
  display: block;
}
.walk-step:hover {
  background: rgba(255,255,255,0.03);
  border-color: var(--border-strong);
}
.walk-step:hover .walk-num { color: var(--text-2); }
.walk-step.active {
  background: rgba(132, 204, 22, 0.06);
  border-color: rgba(132, 204, 22, 0.35);
}
.walk-step.active .walk-num { color: var(--lime); }
.walk-step.active .walk-title { color: #fff; }
.walk-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  padding-top: 2px;
  min-width: 24px;
}
.walk-step.active .walk-num { color: var(--lime); }
.walk-text { display: flex; flex-direction: column; gap: 4px; }
.walk-title {
  font-size: 15px; font-weight: 600; color: var(--text-1);
  letter-spacing: -0.01em;
}
.walk-desc {
  font-size: 13px; color: var(--text-3); line-height: 1.5;
}
.walk-arrow {
  opacity: 0; transform: translateX(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
  color: var(--lime);
  display: flex; align-items: center; padding-top: 2px;
}
.walk-step.active .walk-arrow { opacity: 1; transform: translateX(0); }

.walk-stage {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-1);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
  overflow: hidden;
  background: #0d0d10;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.walk-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #131316;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px;
}
.walk-chrome .mock-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2a2a2e;
}
.walk-url {
  color: var(--text-2); margin-left: 12px;
}
.walk-slash { color: var(--text-3); margin: 0 4px; }
#walk-breadcrumb { color: var(--lime); transition: color 200ms ease; }
.walk-counter {
  margin-left: auto; color: var(--text-3); letter-spacing: 0.1em;
}
#walk-cur { color: var(--lime); }

.walk-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050507;
  overflow: hidden;
}
.walk-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 500ms ease, transform 800ms ease;
  pointer-events: none;
}
.walk-img.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.walk-caption {
  position: absolute;
  left: 24px; bottom: 24px;
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 18px;
  background: rgba(13, 13, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  max-width: 440px;
}
.walk-cap-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.12em;
  padding-top: 3px;
}
.walk-cap-title {
  font-size: 14px; font-weight: 600; color: var(--text-1);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.walk-cap-desc {
  font-size: 12px; color: var(--text-2); line-height: 1.5;
}

.walk-dots {
  display: flex; gap: 6px;
  padding: 16px;
  justify-content: center;
  background: #131316;
  border-top: 1px solid var(--border);
}
.walk-dot {
  width: 24px; height: 3px;
  background: #2a2a2e;
  border-radius: 2px;
  cursor: pointer;
  transition: background 240ms ease, width 240ms ease;
}
.walk-dot.active { background: var(--lime); width: 40px; }
.walk-dot:hover:not(.active) { background: #3a3a40; }

@media (max-width: 1100px) {
  .walk-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .walk-steps { grid-template-columns: repeat(2, 1fr); }
  /* Caption overlay would cover the small mobile image; step list already shows the labels */
  .walk-caption { display: none; }
}

